What are the current best practices for coding agents?
Current best practices for coding agents emphasize structured context management, skill-based specialization, and iterative agentic loops. Corroborated practices include using CLAUDE.md files to document project conventions 178, building context with 7 components to boost productivity 8× 182, employing agentic loops (plan → act → verify) for self-correction and autonomous shipping 262,518, delegating roles across models for cost/performance 125, and visually managing agents 266. The tooling landscape is anchored by Claude Code, with Hermes 321,372, iFixAi 105, and Freellmapi 110 as notable supporting tools. Many emerging tools and practices lack broad corroboration and should be tested cautiously.[10]
- Add a CLAUDE.md file documenting project conventions, rules, and context to prevent over-engineering and hallucinated APIs 178.
- Build context with 7 components—memory, instructions, examples, files, previous actions, tool results, state—to increase Claude Code productivity 8× 182.
- Employ agentic loops: plan → act → verify → repeat for self-correction; Anthropic writes >40% of code this way 262 and Claude Code’s loop/goal features enable overnight autonomous shipping 518.
- Start with predefined workflows and add autonomy only when the task demands it 227.
- Use Claude Code to automate video editing—jump cuts, captions, chapter titles, etc. 220.
- Install the Find Skills skill to discover and apply the best skills for any goal 183.
- Use OpenAI’s codex-plugin-cc to let Claude Code delegate tasks to Codex in the same terminal 141.
- Delegate roles across models: Fable for design, Opus for heavy reasoning, Sonnet for execution to optimize cost and performance 125.
- Use loops instead of single prompts to automate work 112.
- Point Claude Code at an Obsidian vault to turn notes into a searchable wiki 111.
- Use Freellmapi to aggregate free tiers of 16 LLM providers behind one local API 110.
- Run iFixAi to red-team agent configurations with 45 tests and independent grading 105.
- Rely on Claude Fable 5 to generate complex interactive visualizations from code without external assets 103.
- Use the ai-website-cloner template to reverse-engineer live websites into clean code 428.
- Build agent businesses by first doing the work manually, then automating the learned process 381.
- Run multiple Claude Code sessions in TMux with agent teams and Git worktree isolation for adversarial code reviews and parallel feature testing 376.
- Optimize Hermes agent costs by model choice, background tasks, and context usage 372.
- Let Hermes Agent learn repetitive workflows from a single demonstration and execute them autonomously 321.
- Set up a pixel office: turn each Claude Code session into a visual character with speech bubbles, file tracking, and permission visualization 266.
- Have Claude Code read and modify an open-source trading bot’s code to create a profitable automated strategy 446.
- Use TouchDesigner, MediaPipe, and Claude Code to build real-time hand-controlled 3D applications 180.
- Copy-paste from Anthropic’s official prompt library for task-specific prompts 176.
- Use Claude Code with Sonnet 5 to produce a professional website in 18 minutes 132.[24]
Core tool: Claude Code 111,112,125. Specialized agents: Hermes learns workflows from one demo 321 and can be cost-optimized 372; ECC bundles 60 agents and 231 skills (177, emerging). Security: iFixAi red-teams agents 105. Cost reduction: Freellmapi unifies 16 free LLM tiers 110; converting code to PNG images can cut token costs by ~80% (230, emerging). Multi-agent orchestration: codex-plugin-cc 141, Orca (137, emerging), TMux + Git worktree 376, ruflo (519, emerging), Cmux (578, emerging). Visual management: pixel office setup 266, CNVS (322, emerging). Browser automation: Browser Use CLI 3.0 (217, emerging). Website cloning: ai-website-cloner 428. Other emerging tools: Dotcode 130, Morph 124, Agent-Reach 114,443, Lev8 117, Ghost MCP 483. Many tools are early and lack extensive corroboration.[24]
Many practices remain based on single reports without independent confirmation. Examples: building a practical AI agent in under 10 minutes 224; generating a complete browser game from one spec file 429; achieving 624,900% margin on ad generation 116; shipping code 5× faster with Codex subagents 384; reducing engineering busywork by 50% 293; Anthropic running 99% of engineers with 300+ self-improving agent swarms 129; a solar-powered mesh node serving a 3B model offline 175; a $400 GPU rig replacing all cloud subscriptions 127; Claude Code autonomously running a full Instagram content strategy 442. Claims about specific performance lifts and niche hardware setups need broader validation before adoption.[9]
Added corroborated practices: using loops instead of single prompts (112), Obsidian vault integration (111), Freellmapi (110), iFixAi (105), Fable 5 visualizations (103), ai-website-cloner (428), manual-first approach (381), TMux multi-session (376), Hermes cost optimization (372), Hermes learning from demo (321), pixel office (266), trading bot modification (446), TouchDesigner hand control (180), prompt library (176), and Sonnet 5 website (132). Updated tooling to include Hermes, ECC, Orca, ru