Claude Code adds harness-audit command for AI agent infrastructure checks
The new Claude Code command audits AI agent settings, flags legacy code and suggests diffs without running or modifying project code.
In Claude Code, a new harness-audit command has appeared for checking AI agent infrastructure.
It can be run like this:
/claude-api harness-audit
The command checks the agent’s settings and helps to:
- find code written for outdated models;
- verify loop limits, subagent constraints, and context management;
- detect unnecessary workarounds and extra model reminders;
- identify parameters that need to be reconfigured;
- propose fixes as code changes (diffs);
- generate a plan for verifying the proposed fixes.
Important: the audit runs entirely in read-only mode. The command does not execute or change your project’s code.
Why it matters
AnalysisIt helps teams keep AI agent integrations current and safe without risking changes to working code.
Discuss in community
Share your questions and insights with developers
Related in Ecosystem
Practical guides, core terminology, and agent skills
Claude Code Can Run Commands Before Loading a Skill
SKILL.md now supports inline command execution, letting Claude Code inject command output into a skill before the model sees it.
Claude Code Projects: How a Single AI Orchestrates a Team of Autonomous Agents
A deep dive into Claude Code Projects: Coordinator and Threads architecture, parallel branches, shared memory via MEMORY.md, and cloud agent management.
Claude Code skill for security audits and post-quantum cryptography readiness
A new Claude Code skill automatically discovers public domains, APIs and MCP endpoints, assigns host security levels, and checks support for post-quantum TLS key exchange using X25519MLKEM768.
MCP Servers and Claude Code: A Practical Guide to Connecting and Building
How to expand Claude Code's capabilities with Model Context Protocol: connecting the filesystem, GitHub, PostgreSQL, Brave Search, and developing a custom server in TypeScript.