{"slug": "running-autonomous-pentest-agents-for-about-1-what-our-benchmarks-taught-us", "title": "Running Autonomous Pentest Agents for About $1 (What Our Benchmarks Taught Us)", "summary": "Foresight Labs ran its open-source Common Lisp agent Nodecode against Claude Code and Codex CLI on all 25 public ARC-AGI-3 games (183 levels) using identical models, finding Nodecode cost 41% less on Opus 5.5 ($124.09 vs $209.67) and 24% less on GPT-6.1 Sol ($32.55 vs $42.97) despite making more LLM calls, by keeping dead tool output out of each turn while relying on provider prefix caching. The team also released Nodecode Cyber v1, a DeepSeek V4.1 Flash-based model with abliterated refusal behavior, zero data retention, 1M context and $0.009/M cached input, and reported running open-source pentest agents like Strix and PentAGI against lab apps for roughly $0.59–$1.07 per run, including a 41-minute 10-agent scan of OWASP Juice Shop that logged 193 tool calls and 0 refusals.", "body_md": "When an AI agent runs for 200+ turns, you are not paying for fresh prompts. You are paying to **re-read the same growing conversation** over and over.\n\nWe hit this lesson twice: first in our ARC-AGI-3 agent benchmark ([FL-2026-006](https://foresight-labs.eu/research/fl-2026-006)), and again running real open-source pentest agents against isolated lab apps on [Nodecode Cyber v1](https://nodecode.ai/cyber).\n\nHere is the simple takeaway and the real numbers.\n\nIn [FL-2026-006](https://foresight-labs.eu/research/fl-2026-006), we ran our open-source Common Lisp agent [Nodecode](https://nodecode.ai) head-to-head against Claude Code and Codex CLI across all **25 public ARC-AGI-3 games (183 levels)** on the exact same models:\n\n| Model | Agent | Result | Avg tokens / call | Total cost | \n|---|---|---|---|---|\n| Opus 5.5 | **Nodecode** | 100/100 (183/183) | 77,000 | **$124.09** (-41%) | \n| Opus 5.5 | Claude Code | 100/100 (183/183) | 175,000 | $209.67 | \n| GPT-6.1 Sol | **Nodecode** | 25/25 won (99.5) | 20,500 | **$32.55** (-24%) | \n| GPT-6.1 Sol | Codex CLI | 25/25 won (99.9) | 74,700 | $42.97 | \n\nSurprisingly, Nodecode made **more** LLM calls on both models and still paid much less. The difference was keeping dead tool output out of every turn while still letting the provider's prefix cache do the heavy lifting between checkpoints.\n\nAutonomous security tools like [Strix](https://github.com/usestrix/strix) and [PentAGI](https://github.com/vxcontrol/pentagi) run even longer loops packed with port scans, HTTP dumps, and exploit probes. Standard frontier APIs trip over two things:\n\nThat is why we built **[Nodecode Cyber v1](https://nodecode.ai/cyber)** (`nodecode-cyber-v1`) - DeepSeek V4.1 Flash 1017 with its refusal direction abliterated, **strict zero data retention** (memory-only, no prompt logs, isolated per-org/per-user KV caches), 1M context, native OpenAI + Anthropic wire support, and **`$0.009/M` cached input** (97.3% off `$0.33/M` input, zero cache-write fee, `$1.32/M` output).\n\nBoth runs below hit disposable lab containers and are reproducible from our public upstream PRs:\n\n`$0.59` total:`UNION` dump.`~$1.07` total:`ctester` checks, then ran a 41-min 10-agent scan against OWASP Juice Shop (193 tool calls, 0 refusals) proving an unauthenticated SQLi login bypass and admin token replay.\n*(Quick tip if you use PentAGI / `langchaingo` with custom reasoning models: pass `extra_body: {reasoning_effort: \"none\"}` on non-reasoning roles - `reasoning.mode: \"off\"` omits the field for unknown model IDs and leaves thinking on.)*\n\nCyber v1 speaks standard OpenAI and Anthropic wire formats out of the box:\n\n```\ncurl https://api.nodecode.ai/v1/chat/completions \\\n  -H \"Authorization: Bearer $NODECODE_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"model\": \"nodecode-cyber-v1\",\n    \"messages\": [\n      {\"role\": \"user\", \"content\": \"22/tcp and 8080/tcp are open in lab scope. Verification order?\"}\n    ],\n    \"max_tokens\": 500\n  }'\n```\n\n", "url": "https://wpnews.pro/news/running-autonomous-pentest-agents-for-about-1-what-our-benchmarks-taught-us", "canonical_source": "https://dev.to/nodecode/running-autonomous-pentest-agents-for-about-1-what-our-benchmarks-taught-us-5gda", "published_at": "2026-11-28 01:07:42+00:00", "updated_at": "2026-11-28 01:14:17.792928+00:00", "lang": "en", "topics": ["ai-agents", "ai-tools", "large-language-models", "ai-safety"], "entities": ["Foresight Labs", "Nodecode", "Nodecode Cyber v1", "Claude Code", "Codex CLI", "DeepSeek V4.1 Flash", "Strix", "PentAGI"], "also_reported_by": [], "takeaway": "On long agent loops, pruning dead tool output from each turn while preserving provider prefix caching cut costs 41% on Opus 5.5 and 24% on GPT-6.1 Sol even with more LLM calls.", "recommendation": {"advice": "Strip stale tool output from agent context between checkpoints but keep the prompt prefix stable so provider prefix caching still applies; this cut benchmark costs 24–41%.", "playbook": "llm-cost", "playbook_url": "https://wpnews.pro/playbooks/llm-cost"}, "alternates": {"html": "https://wpnews.pro/news/running-autonomous-pentest-agents-for-about-1-what-our-benchmarks-taught-us", "markdown": "https://wpnews.pro/news/running-autonomous-pentest-agents-for-about-1-what-our-benchmarks-taught-us.md", "text": "https://wpnews.pro/news/running-autonomous-pentest-agents-for-about-1-what-our-benchmarks-taught-us.txt", "jsonld": "https://wpnews.pro/news/running-autonomous-pentest-agents-for-about-1-what-our-benchmarks-taught-us.jsonld"}}