AgentTested hands-on log Tool: AgentCostGuard slug: agent-cost-guard date: 2026-12-04 version: 0.7.1 score: 8/10 tier: A cost_usd: 0 account: none purchase: none Which run sets the letter This December 4 run of agent-cost-guard 0.7.1 sets the list letter. The score is 8/10, tier A. That is the same number as the December 1 run of 0.6.2. This run sets the letter because 0.7.1 is the version PyPI installs with pip install -U agent-cost-guard. The December 1 log is kept at /test-logs/agent-cost-guard-2026-12-01.txt and does not set the letter. The score did not rise. record_turn still recorded $0.0504 against a $0.05 cap, and a blocked record_turn now includes that turn's dollars. On December 1 the blocked turn added $0. The score did not fall. reserve_budget refused the turn that would have crossed $0.05, and the recorded total stayed $0.048. The MCP stdio proxy stopped a repeated call and a blocked tool before the child process saw them. What was tested Whether agent-cost-guard 0.7.1, installed from PyPI, still stops identical tool calls and a $0.05 session, and whether reserve_budget refuses the next turn before that turn is recorded. The token counts were supplied by this test. The library priced them with its own table. No model API was called. What was not tested The $7 Pro pack was not bought. Claude Code hooks were not installed. A live model bill was not created. The proxy was pointed at a local echo server written for this test, not at a third-party MCP server. Machine Linux, Python 3.12.3. Package agent-cost-guard 0.7.1 from PyPI, installed with pip into a local target directory. The CLI is agent-cost-guard. Commands $ agent-cost-guard --version exit 0 wall_s 0.058 agent-cost-guard 0.7.1 $ agent-cost-guard estimate gpt-4o-mini --input-tokens 800 --output-tokens 200 --json exit 0 wall_s 0.057 estimated_cost_usd 0.00024 input_usd_per_1m 0.15 output_usd_per_1m 0.6 effective_date 2026-12-01 source_url https://developers.openai.com/api/docs/pricing $ agent-cost-guard doctor exit 0 wall_s 0.056 AgentCostGuard Doctor v0.7.1 (Python 3.12.3, 50 models) Status: ACTION_NEEDED MCP configs checked: 0 unprotected stdio servers: 0 Claude Code hooks active: False Past sessions scanned: 0 How The library function estimate_cost_usd returned 0.000240 for gpt-4o-mini at 800 input and 200 output tokens, and 0.002400 at 8000 input and 2000 output tokens. Loop session agenttested-loop-2026-12-04. record_turn. max_cost_usd 1.00, repeat_tool_threshold 3. Each turn recorded gpt-4o-mini, 800 input tokens, 200 output tokens, tool web_fetch, args {"url": "https://example.com/status"}. Budget session agenttested-budget-2026-12-04. record_turn. max_cost_usd 0.05, repeat_tool_threshold 8. Each turn recorded gpt-4o-mini, 8000 input tokens, 2000 output tokens, tool web_fetch, with a different url each step. Policy session agenttested-policy-2026-12-04. record_turn. blocked_tools ("drop_database",). One turn called that tool with 800 input and 200 output tokens. Reserve session agenttested-reserve-2026-12-04. max_cost_usd 0.05. Each step called reserve_budget for gpt-4o-mini at 8000 input and 2000 output tokens, then commit_reservation with those counts and a different url. The step that would cross the cap was not committed. MCP proxy session agenttested-proxy-2026-12-04. Command: agent-cost-guard mcp-proxy --model gpt-4o-mini --max-cost-usd 1 --repeat-limit 3 --blocked-tools drop_database -- python3 echo server. The child was a local line-delimited echo server. The client sent initialize, tools/list, three identical echo calls, and one drop_database call. Results The estimate CLI and estimate_cost_usd both priced one 800/200 gpt-4o-mini turn at $0.00024. Loop step 1 status ok, step_usd 0.00024, cumulative 0.00024, signature web_fetch#d69f1c702898. Loop step 2 status ok, step_usd 0.00024, cumulative 0.00048, same signature. Loop blocked at step 3. Error: Loop detected: 'web_fetch' called 3 consecutive times with identical arguments (web_fetch#d69f1c702898). Loop summary: steps 3, total tokens 3000, total_cost_usd 0.00072. The blocked turn was recorded at $0.00024. JSONL log has 3 lines. On December 1 the same loop ended at $0.00048 because the blocked turn added $0. Budget steps 1 through 20 were ok at $0.0024 each. Cumulative after step 20 was $0.048. Budget blocked at step 21. Error: Cost $0.0504 > cap $0.0500. Last status blocked_budget_usd. Summary total_cost_usd 0.0504, steps 21, tokens 210000. JSONL log has 21 lines. This matches the December 1 overshoot. Policy raised PolicyViolationError for drop_database. Summary total_cost_usd 0.00024, steps 1, tokens 1000. The blocked turn was recorded. On December 1 the same block added $0. Reserve steps 1 through 20 committed at $0.0024 each. Cumulative after step 20 was $0.048. Reserve refused step 21 before commit. Error: Preventive USD cap: projected $0.0504 > cap $0.0500. Recorded total stayed $0.048. Steps 20. The ledger did not go over the cap. MCP proxy initialize returned the echo server info in 0.061 s. tools/list returned echo and drop_database in 0.001 s. MCP echo call 1 and call 2 reached the child and returned "echoed echo". The proxy log priced them at about $0.00001 and $0.000011, cumulative $0.000021, cost source mcp_traffic_estimate. MCP echo call 3 did not reach the child. Error: Loop detected: 'echo' called 3 consecutive times with identical arguments (echo#bfe275df7a89). The proxy log line for that block has cost_usd 0. MCP drop_database did not reach the child. Error: Tool 'drop_database' matches blocked_tools policy 'drop_database'. The proxy log line has cost_usd 0. The child stderr lists initialize, notifications/initialized, tools/list, and two echo calls. It does not list the third echo or drop_database. Proxy process exit 0. doctor exited 0. This machine has no MCP config and no Claude Code hooks, so the status was ACTION_NEEDED. cost_usd 0. No network call to a model vendor was made. Verdict 8/10, tier A. This December 4 run of 0.7.1 sets the letter. reserve_budget held a $0.05 cap at $0.048. record_turn still stopped at $0.0504, and a blocked record_turn now includes that turn's price. The MCP proxy stopped the third identical call and a blocked tool before the child ran. The dollars are the library's price table, not a live invoice. The December 1 log does not set the letter.