Authorization notice. Pentest Harness is dual-use. Only use it on software, sites and systems you own or have explicit permission to test.
Who it is forA student or hobbyist who plays CTF events or runs security lab exercises and wants an AI assistant that remembers progress across sessions.
The problemLong CTF or lab sessions lose context, and restarting the work costs time and momentum.
The outcomeA durable session you can stop and reopen, with the agent continuing from the saved replay.
What you need first
- Node.js 20+ (Node 22 recommended) and pnpm installed
- An API key from a supported provider such as OpenAI, Anthropic, DeepSeek, or any OpenAI-compatible gateway
- Written authorization for every target you point the agent at
Steps
- Clone the repository with
git clone https://github.com/S1N6H/pentest-harness.gitand enter the folder withcd pentest-harness. - Install with
pnpm installand build withpnpm build. - Start the workspace with
pnpm dsh weband open http://127.0.0.1:2323. - Add a provider under Settings, then Models, and select a model in the composer.
- Start a session for the challenge, and reopen it later to resume from the saved replay.
Prompt for your agent
Clone https://github.com/S1N6H/pentest-harness, run `pnpm install && pnpm build`, then start the Web UI with `pnpm dsh web`. Open a session for the CTF challenge at <target> and confirm the session can be reopened after a restart. Report the session identifier and whether the replay restored.
Caveat. The README names CTFs and security labs as intended use, but it does not list any challenge platform integrations, so you connect targets yourself.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for S1N6H/pentest-harness and "Work through CTF challenges and security labs with an AI agent"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer