Skip to content
stacks

Coding agent guides

Practical guides to starting projects, working with coding agents, and checking the result.

Subscribe with RSS
  1. AGENTS.md in a monorepo: nested files

    Put repo-wide commands in a root AGENTS.md and package details in nested ones. How Codex, Claude Code and Cursor load them, with examples of what goes where.

  2. Why AI agents install outdated packages

    Coding agents pin old versions and call renamed APIs because they write from training data. Four fixes, and a project brief that stops pinning from memory.

  3. Claude Code hooks examples: block and format

    Working Claude Code hooks examples: block a destructive Bash command in PreToolUse, format files after edits in PostToolUse, and test each hook by hand.

  4. Cursor rules examples with .mdc files

    Cursor project rules are .mdc files in .cursor/rules. Copy an always-on rule and a glob-scoped rule, see when AGENTS.md fits better, and test that each loads.

  5. How to review code a coding agent wrote

    Review AI-generated code in four passes: what ran and what it counted, files outside the feature, new dependencies, then the logic. Commands included.

  6. How to add GitHub Actions CI to an existing repo

    Add GitHub Actions CI to an existing repo with a workflow that runs your project's scripts on pull requests, then require its check before merging.

  7. AGENTS.md example for Codex, with config

    An AGENTS.md example for Codex records real project commands and rules; .codex/config.toml sets the sandbox and when approval is requested.

  8. AGENTS.md vs CLAUDE.md: which one to use

    Use AGENTS.md for shared coding-agent instructions and CLAUDE.md for Claude-specific notes, with an @AGENTS.md import to keep shared rules in one place.

  9. Best tech stack for vibe coding with AI agents

    The best tech stack for vibe coding has types and checks an agent can run: React and Vite over an existing API, Next.js for full-stack, Python for data.

  10. Claude Code project structure, file by file

    A Claude Code project structure puts shared instructions in CLAUDE.md, team permissions and hooks in .claude/settings.json, and personal overrides outside git.

  11. CLAUDE.md examples for Go, Next.js and Python

    Useful CLAUDE.md examples record tested commands, project boundaries and guardrails, with Go, Next.js and Python guidance kept in shared AGENTS.md.

  12. Make Claude Code run tests before it's done

    Make Claude Code run tests before finishing with explicit CLAUDE.md commands, a Stop hook that blocks failed checks, and a full verification run.

  13. Spec-driven development with Claude Code

    Use spec-driven development with Claude Code by writing requirements before code, reviewing a plan, and turning acceptance criteria into runnable checks.

  14. How to start a new project with Claude Code

    Start a new Claude Code project in an empty Git repository, describe a small working feature, then use /init to record conventions once code exists.

  15. How to stop Claude Code from changing tests

    Stop Claude Code from changing tests with file-edit deny rules, a test-running Stop hook, and diff review that includes the test command.