For Claude Code, Cursor, Codex, OpenCode, Gemini CLI & Copilot

See What Your AI Agent
Loads and Runs.

A Rust CLI & TUI that shows what your coding agent loads and runs — secrets it can read, always-loaded instructions, MCP tools per agent, skills and shell overhead — and fixes what it can. Every number is measured, never guessed.

$ brew install dautovri/tap/agentprof
Secret Files Claude Code Can Read
2 readable 0
⚡ Demo workspace; agentprof fix writes Read deny rules — Claude Code ignores .claudeignore
Interactive Login vs Bare Spawn
617.6ms 5.3ms
⚡ One zsh + Oh My Zsh setup; what agents pay per command varies — agentprof bench measures yours
MCP Tool Definitions
33,869 tok 12,153 tok
⚡ Measured; after disabling the 2 heaviest servers (per turn for agents that load them up front)

The Complete Agent Optimization Stack

Written in Rust. Every figure it reports is measured, never guessed.

🔐

Secrets Your Agent Can Read

Claude Code does not read .claudeignore; only Read(...) deny rules in .claude/settings.json keep files away from it. agentprof checks every .env, key and credential file against the deny rules actually in effect, and agentprof fix merges the missing rules in — keeping your settings and a backup.

Protection check managed · user · project · local settings
🔌

MCP Tool Schema Profiler

Performs a real initialize → tools/list handshake with every configured server and reports the load per agent — full definitions where they are loaded up front, tool names only where Claude Code defers them. Servers defined inside a repository are only started with --trust-workspace.

Schema Load ghidra: 14.1k tok • lldb: 3.4k tok
🎯

Skills & Trigger Collision Auditor

Agents keep every skill's name and description in context and load SKILL.md only when it runs. agentprof skills reports both, flags oversized skills and missing descriptions, and finds skills competing for the same intent (review, qa, design).

Collision Guard 76 Skills • 6 Trigger Overlaps
🔍

Instruction Linter & Contradiction Detector

Finds instruction files that prescribe conflicting conventions (e.g. ObservableObject vs @Observable, npm vs pnpm) while ignoring rejections like "instead of". agentprof compile moves language-specific sections into path-scoped rules — .claude/rules, .cursor/rules, Copilot instructions — so they load only when relevant.

Rule Conflict Linter Conflicts pinpointed by file & line
🛡️

CI Gate & GitHub Action

uses: dautovri/agentprof@v0.3.0 installs a checksum-verified binary, writes the health report to the job summary, and fails the pull request when the score drops, a secret becomes readable by Claude Code, or instruction files contradict each other. Scores use only repository contents, so every runner agrees. SARIF output feeds GitHub code scanning.

One step uses: dautovri/agentprof@v0.3.0 · fail-under: 80

Estimate Your Team's Agent Overhead

Estimate the overhead agentprof surfaces across a team, so you can decide what is worth cutting.

Daily Agent Tool Calls (per dev) 50
Active Developers in Team 5
Active MCP Servers 4
Monthly Developer Time Lost To Shell Startup
0.9 hrs
Monthly Token Cost Of MCP Schemas
$165.00
Assumes 100ms of shell overhead per command, 2,500 tokens of tool definitions per MCP server loaded up front, and Claude Sonnet 5 cache-read pricing ($0.20/Mtok, since agents cache these). Run agentprof bench and agentprof mcp --probe for your own numbers.