# "Claude Code's 5 Worst Habits (And How to Fix Them)" <!-- ref: @content/youtube/sean-kochel/claude-code-s-5-worst-habits-and-how-to-fix-them tags: [Claude Code, intent layers, security scanning, React best practices, agent memory, browser verification] version: 2 updated_at: 2026-11-22T13:42:54.948Z --> **[Watch on YouTube](https://www.youtube.com/watch?v=hqcZZuvBUSY)** # Claude Code's 5 Worst Habits (And How to Fix Them) *Synthesized from Sean Kochel, 2026-05-29.* Sean Kochel presents solo, demonstrating five open-source tools inside a real Next.js project, each aimed at a weakness of coding agents. ## Core Thesis Sean argues that coding agents forget everything, ignore your codebase, ship bugs and code blind, and that five tools fix those gaps: Intent Layers, Deep Sec, Vercel's React best practices skill, agent memory, and a browser verification loop. His broader point is that vibe coders should borrow conventions from experienced practitioners. ## Key Insights - Intent Layers is a skill that builds hierarchical agent markdown files: a root index (agents.markdown or inside the Claude markdown file) linking to child files wherever a directory exceeds about 20,000 tokens. Each describes what lives there, conventions, patterns, anti-patterns and "global invariants". - His invariant example: Next.js 16 replaced middleware with a proxy file, but models trained on older versions may try to recreate or delete files, breaking the project. - Deep Sec, a security harness from Vercel: run `npx deepsec init`, install packages inside its folder, paste the supplied setup prompt to the agent for a threat model, then `pnpm deepsec scan` (candidate files via matchers), `pnpm deepsec process` (batched deep analysis) and a report step producing a markdown file graded critical to general bug. On a small project he says it costs roughly 20 to 30 dollars in tokens. It flagged a prompt-injection path where recipe content went unescaped into a system prompt. - Vercel's React best practices skill (added with `skills add vercel-labs/agent-skills`) groups findings by severity and gives incorrect versus correct code, such as sequential awaits that could run in parallel, import issues and caching gaps. He suggests feeding results into a spec-driven development tool to implement them. - Agent memory (about 18,000 GitHub stars): npm install, start the server, connect to Claude Code. It has four tiers (working, episodic, semantic, procedural), decays unused memories, offers semantic search, timelines and a dashboard. He frames it as a living version of Claude markdown and rules files. - Browser verification: start Claude with the `--chrome` flag so it can iterate and check visual changes; his example extracted a modal into a settings page. He turned this into a slash command for front-end checks. ## Actionable Takeaways 1. Run the Intent Layers skill on an existing codebase, then rerun it to update. 2. Record version-specific invariants that conflict with model training data. 3. Run Deep Sec scan, process and report in that order, budgeting about 20 to 30 dollars for a small project. 4. Add the Vercel React best practices skill and audit before refactoring. 5. Install a persistent memory tool and launch Claude with `--chrome` for visual verification loops. ## Notable Quotes > "language models are still pattern followers." — Sean Kochel > "over time 80% of the stuff that you do ends up really becoming lost to Claude code" — Sean Kochel --- *Related: `@content/youtube/zazencodes/build-your-own-ai-software-factory-with-claude-code` · `@content/youtube/ai-jason/how-to-build-proactive-agents-self-improving-company-fully-explained` · `@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`* --- *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).*