# The Biggest AI Coding Agent Upgrade Is Already on Your Machine?!
<!--
ref: @content/youtube/cole-medin/the-biggest-ai-coding-agent-upgrade-is-already-on-your-machine
tags: [Claude Code, agent transcripts, agent self-improvement, data pipelines, Databricks, rules and hooks, token efficiency]
version: 2
updated_at: 2026-11-24T07:07:57.901Z
-->

**[Watch on YouTube](https://www.youtube.com/watch?v=td52e2tQFIU)**

# The Biggest AI Coding Agent Upgrade Is Already on Your Machine?!

*Synthesized from Cole Medin, 2026-09-25.*

Cole Medin presents solo, explaining how to mine the conversation logs that coding agents such as Claude Code already store on disk and turn them into fixes for the agent's rules, hooks, skills and sub-agents.

## Core Thesis
Cole argues that past agent conversations are an underused dataset. Each session is saved as a JSONL file that records prompts, tool and MCP calls and reasoning, so the agent can analyze them to find recurring failures. He proposes a simple prompt-based version first, then a structured version where the logs are loaded into tables so the agent does not have to reread hundreds of thousands of tokens each time.

## Key Insights
- **Logs are local and already available.** Claude Code stores each conversation as a JSONL file, and the transcript says it deletes them after 30 days by default unless they are kept elsewhere.
- **The simple method is one prompt.** Asking the agent to analyze past conversations and return a top-10 list of improvements works, and a limit on the list keeps it from producing many low-value suggestions (he notes this was a problem before Opus 5.5).
- **The structured method uses tables.** He uploads 62 of his largest conversations to a Databricks volume, has the Genie agent write the parsing code and create tables for sessions, tool calls and work stages, and then queries the result through the Databricks CLI and MCP server.
- **Concrete fixes followed.** He added about 38 lines to his global rules (for example, never guess a file path), added permissions to settings.json for Git, and added a session-start hook that injects the live repository structure so the agent stops guessing paths.
- **A specific failure was caught.** The analysis found the agent often exceeded the limit on simultaneous sub-agents, and the fix was a change to that sub-agent's configuration.
- **Privacy caveat.** He says uploaded logs should be checked first for API keys or other secrets.

## Actionable Takeaways
1. Keep agent transcripts beyond the 30-day default retention so there is data to analyze.
2. Start with a simple request that returns a capped top-10 list of improvements.
3. Once the analysis is repeated often, load the logs into structured tables so queries do not reread raw files.
4. Scrub API keys and secrets from transcripts before uploading them to any outside platform.
5. Turn each recurring failure into a specific rule, hook or sub-agent change, then check whether it recurs.

## Notable Quotes
> "The data I'm talking about is just the conversations you have with your agent, it's very simple." — Cole Medin

> "So I didn't write a single line of this code." — Cole Medin

---

*Related: `@content/youtube/sean-kochel/opus-4-7-is-insanely-powerful-and-insanely-expensive` · `@content/youtube/yifan-bth/i-reverse-engineered-claude-code-learn-these-agent-tricks` · `@content/youtube/yifan-bth/the-complete-claude-code-workflow-90-skip-this` · `@content/youtube/tiago-forte/stop-overthinking-ai-use-this-4-step-framework` · `@content/youtube/starter-story/my-ai-app-made-1000-last-week`*

---

*You're reading a protocol on [protocol.supply](https://protocol.supply) — hosted, searchable knowledge for AI agents. Think Agent Skills, as an API: bootstrap once (`curl -sL https://api.protocol.supply/bootstrap`), search (`/search?q=…`), fetch (`/@repo/slug`).*

*Any skill can become a protocol, and any protocol installs as a local skill — tell your agent "install this as a skill" or see [`@protocol/protocol-to-skill`](https://api.protocol.supply/@protocol/protocol-to-skill).*