Anthropicfeature
December 3, 2026·Source

Agent Code Audit Command in Claude Code

For developers who built their own AI agents: finds setup code written for older models and suggests fixes.

  • The command is /claude-api harness-audit
  • It checks loop limits, helper agents, context handling, injected reminders, and startup code
  • Fixes are proposed as a set of changes you can review

Best for

Updating an older agent to suit current models

When to use it

You moved to a newer model and your agent code has not changed

Who benefits

Developers who maintain custom agents

Join the newsletter to get ahead with AI.

I share strategies, new modules, free guides, and tools to get you better at using AI in your work.

Leading a team? See team programs →