Skip to content

Agents

OpenSploit's penetration testing agent hierarchy.

OpenSploit replaces OpenCode’s default coding agents with a penetration testing hierarchy: a master pentest orchestrator plus ten specialized sub-agents, one per phase or capability. When the plugin is loaded, pentest becomes the default agent.

The orchestrator plans the engagement and delegates work down the hierarchy — each sub-agent is scoped to a single job, with its own prompt and tool access, and they all share live engagement state (hosts, ports, credentials, findings).


Orchestrator

pentest

The master agent you talk to. It reads your objective, plans the engagement across phases, spawns the right sub-agent for each step, and keeps every sub-agent working from the same shared state.


Phase agents

These map to the pentest phases. The orchestrator invokes them automatically; you can also invoke one directly by @-mentioning it.

AgentRole
pentest/reconReconnaissance — discover hosts, ports, and services; map the target.
pentest/enumEnumeration — probe discovered services for versions, misconfigurations, and attack surface.
pentest/exploitExploitation — attempt a foothold against the enumerated attack surface.
pentest/postPost-exploitation — privilege escalation, lateral movement, and loot collection.
pentest/reportReporting — turn engagement state and findings into a structured report.

Capability agents

Specialized helpers the orchestrator and phase agents call on.

AgentRole
pentest/researchVulnerability and CVE research — exploits, techniques, and references for the target.
pentest/tool-runnerRuns security tools via the MCP registry and returns normalized results.
pentest/buildBuilds payloads and compiles tooling (reverse shells, binaries) when an exploit needs them.
pentest/captchaSolves captchas encountered during web engagements.
pentest/validatorHidden. After a successful engagement, re-runs the procedure to verify each reported step reproduces, then saves a canonical solve to memory; failed re-validations are logged as a reliability flag.

Switching agents

  • Tab cycles the primary agent.
  • @-mention a sub-agent to invoke it directly — e.g. @pentest/recon.

Configuring agents

OpenSploit’s agents use OpenCode’s standard agent system, so you can override their model, permissions, temperature, and prompt the same way as any OpenCode agent. See the OpenCode agents docs for the full list of options.