Skip to main content

Agentic Dev Environment & AI Coding Playbook

Using an AI coding assistant out of the box is easy—getting consistent, fast, low-cost, production-grade results across real engineering work takes an intentional setup.

This showcase summarizes the personal AI development toolkit and optimization playbook I built and refined across Claude Code, Google Antigravity, and OpenCode—combining persistent project instructions, reusable skills, specialized reviewer subagents, connected MCP tools, and token-efficiency practices.

Human-Driven Prompting vs AI-Driven Harness Engineering


Core Building Blocks​

Building BlockWhat It Does in Plain English
Project Memory (CLAUDE.md / GEMINI.md)Always-on project handbook telling the AI your coding style, test commands, and architecture rules so you never repeat yourself.
Reusable Skills (SKILL.md)Modular playbooks (code review, page design, spec writing, note-taking) that load automatically only when relevant.
Connected Tools (MCP Hub)Lets the AI safely read your Obsidian notes, inspect live documentation (Context7), navigate code graphs, and test UIs in a real browser (Playwright).
Specialized SubagentsDedicated helper personas (architect, go-reviewer, python-reviewer, security-reviewer) that run in clean, isolated contexts so noisy research doesn't bloat the main chat.
Smart Context & Cost HygieneStructured habits (caching, compaction, right-sized models, targeted searches) that cut token usage and keep responses fast.

1. Teach Once with Persistent Rules & Skills​

Instead of writing long prompts every morning, conventions are organized into two lightweight layers:

  • Global & Project Rules: Define language conventions, folder structure, and verification habits once—automatically applied to every session (or scoped to specific file types like *.py or *.ts).
  • On-Demand Skills: Reusable workflows live as simple markdown files. Because skills only load when needed, the assistant stays sharp and fast without drowning in irrelevant instructions.

Structured Specifications Across Project Types


2. Connected Workspace via MCP Servers​

Rather than copy-pasting context back and forth between apps, the local dev environment connects directly to everyday engineering tools via Model Context Protocol (MCP):

  • Knowledge & Notes (Obsidian): Pull architecture notes, past investigations, and daily learning logs straight into a coding session—and save structured summaries back.
  • Up-to-Date Docs (Context7): Fetch accurate, version-matched library documentation on demand instead of relying on outdated model memory.
  • Code Intelligence (CodeGraph): Trace symbol references and impact across large repositories quickly.
  • Browser Automation (Playwright): Verify live UI changes, inspect layouts, and catch visual bugs automatically.

3. Specialized Reviewer Subagents​

Asking one chat thread to plan, write code, run noisy tests, and review security quickly fills up context and degrades quality. Splitting work across focused subagents keeps every step crisp:

  • architect: Evaluates trade-offs, system boundaries, and implementation plans before coding starts.
  • go-reviewer / python-reviewer: Reviews diffs for idiomatic patterns, error handling, and edge cases.
  • security-reviewer: Audits authentication, input validation, and secrets hygiene before merging.

4. Practical Token & Speed Optimization Habits​

Working heavily with AI agents every day makes latency and token efficiency matter. Five high-impact practices from my research notes:

  1. Match the Model to the Task: Use fast, lightweight models for quick lookups, summaries, and routine edits; reserve heavyweight reasoning models for complex debugging and architecture design.
  2. Keep Prompts Cache-Friendly: Keep stable instructions at the top and avoid injecting changing values (like live timestamps) into system prompts so prompt caching stays hot.
  3. Isolate Noisy Exploration: Delegate broad codebase searches and bulk screenshot/log audits to subagents that return short, text-only summaries.
  4. Compact Intentionally: Compact long sessions between phases (with custom instructions telling the AI to preserve code diffs and test results) and start fresh sessions for unrelated tasks.
  5. Search Before Reading: Locate exact line ranges with fast search/outline tools instead of reading entire 1,000-line files unnecessarily.

Under the Hood (Tools & Ecosystem Used)
  • Agent Runtimes: Claude Code, Google Antigravity, OpenCode
  • MCP Integrations: Obsidian, Context7, CodeGraph, Playwright, Sequential Thinking, Atlassian
  • Productivity Plugins & Hooks: Session memory persistence, automated lifecycle hooks (post-compaction reminders, quality checks), Git worktree isolation for parallel tasks