# dhinesh2411/opencode-hackbot architecture

> Architecture diagram of the GitHub repository dhinesh2411/opencode-hackbot, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-03). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/dhinesh2411/opencode-hackbot
- Repository: https://github.com/dhinesh2411/opencode-hackbot

## Overview

opencode-hackbot is a portable OpenCode workspace for authorized bug-bounty work. The documented hunt workflow starts with a user invoking a hunt command, proceeds through the bounty playbook and specialist agents, and produces evidence and findings; the multi-model harness routes roles and stores artifacts. Separate capabilities include recon-only mapping, candidate verification, MCP configuration, and a large curated skill catalog. The README documents these product-level links; sampled harness excerpts show artifact handling, while most agent, command, and skill implementations were not supplied, so their internal call relationships are not inferred.

Main entry points: [`commands`](https://github.com/dhinesh2411/opencode-hackbot/tree/main/commands) (Hunt Commands), [`skills`](https://github.com/dhinesh2411/opencode-hackbot/tree/main/skills) (Bug Bounty Skills), [`config`](https://github.com/dhinesh2411/opencode-hackbot/tree/main/config) (Workspace Configuration), [`agents`](https://github.com/dhinesh2411/opencode-hackbot/tree/main/agents) (Discover-Test-Exploit)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workspace["OpenCode Workspace"]
  node_opencode["OpenCode Runtime"]
  node_configuration["Workspace Configuration"]
  node_config_render["Config Renderer<br/>[render_config.py]"]
  node_mcp_status["MCP Status<br/>[mcp_status.py]"]
  node_mcp_services{{"Configured MCPs"}}
end

subgraph group_hunt["Hunt Workflow"]
  node_hunt_commands["Hunt Commands"]
  node_bounty_playbook["Bounty Playbook<br/>[bugbounty.md]"]
  node_specialist_agents["Specialist Agents"]
  node_discover_test_exploit["Discover-Test-Exploit"]
  node_advisor["Advisor Review<br/>[bounty-advisor.md]"]
end

subgraph group_harness["Bounty Harness"]
  node_router_store[("Role Router and Store<br/>[route.py]")]
  node_advisor_gates["Artifact Gates<br/>[advisor-check.py]"]
  node_evidence[("Evidence Artifacts")]
end

subgraph group_capabilities["Skills and Extensions"]
  node_skill_catalog["Bug Bounty Skills"]
  node_osint_scanner["Sector OSINT Scanner"]
  node_webshell_reference["Web-Shell Reference<br/>[shell.php]"]
  node_wordpress_shell["WordPress Shell<br/>[shell.php]"]
  node_video_extensions["Optional Video Skills"]
end

node_user(("Hunting User"))

node_user -->|"invokes"| node_opencode
node_opencode -->|"runs"| node_hunt_commands
node_hunt_commands -->|"binds playbook"| node_bounty_playbook
node_bounty_playbook -.->|"coordinates"| node_specialist_agents
node_hunt_commands -->|"starts loop"| node_discover_test_exploit
node_discover_test_exploit -->|"routes findings"| node_advisor
node_discover_test_exploit -.->|"uses harness"| node_router_store
node_router_store -->|"stores artifacts"| node_evidence
node_advisor_gates -->|"reads artifacts"| node_evidence
node_advisor -.->|"reviews gates"| node_advisor_gates
node_hunt_commands -.->|"loads skills"| node_skill_catalog
node_configuration -->|"configures"| node_opencode
node_config_render -->|"renders"| node_configuration
node_mcp_status -->|"checks availability"| node_mcp_services
node_configuration -->|"declares servers"| node_mcp_services
node_skill_catalog -->|"includes"| node_osint_scanner
node_skill_catalog -->|"includes"| node_webshell_reference
node_skill_catalog -->|"includes"| node_wordpress_shell
node_user -.->|"optionally installs"| node_video_extensions

click node_configuration "https://github.com/dhinesh2411/opencode-hackbot/tree/main/config"
click node_config_render "https://github.com/dhinesh2411/opencode-hackbot/blob/main/scripts/render_config.py"
click node_mcp_status "https://github.com/dhinesh2411/opencode-hackbot/blob/main/scripts/mcp_status.py"
click node_hunt_commands "https://github.com/dhinesh2411/opencode-hackbot/tree/main/commands"
click node_bounty_playbook "https://github.com/dhinesh2411/opencode-hackbot/blob/main/agents/bugbounty.md"
click node_specialist_agents "https://github.com/dhinesh2411/opencode-hackbot/tree/main/agents"
click node_discover_test_exploit "https://github.com/dhinesh2411/opencode-hackbot/tree/main/agents"
click node_advisor "https://github.com/dhinesh2411/opencode-hackbot/blob/main/agents/bounty-advisor.md"
click node_router_store "https://github.com/dhinesh2411/opencode-hackbot/blob/main/bounty-harness/route.py"
click node_advisor_gates "https://github.com/dhinesh2411/opencode-hackbot/blob/main/bounty-harness/advisor-check.py"
click node_evidence "https://github.com/dhinesh2411/opencode-hackbot/tree/main/bounty-harness"
click node_skill_catalog "https://github.com/dhinesh2411/opencode-hackbot/tree/main/skills"
click node_osint_scanner "https://github.com/dhinesh2411/opencode-hackbot/blob/main/skills/offensive-osint/scripts/sector_mass_scan.py"
click node_webshell_reference "https://github.com/dhinesh2411/opencode-hackbot/blob/main/skills/security-webshells/references/Web-Shells/laudanum-1.0/php/shell.php"
click node_wordpress_shell "https://github.com/dhinesh2411/opencode-hackbot/blob/main/skills/security-webshells/references/Web-Shells/laudanum-1.0/wordpress/templates/shell.php"
click node_video_extensions "https://github.com/dhinesh2411/opencode-hackbot/tree/main/extras/skills-video"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_opencode,node_configuration,node_config_render,node_mcp_status,node_mcp_services,node_user toneBlue
class node_hunt_commands,node_bounty_playbook,node_specialist_agents,node_discover_test_exploit,node_advisor toneAmber
class node_router_store,node_advisor_gates,node_evidence toneMint
class node_skill_catalog,node_osint_scanner,node_webshell_reference,node_wordpress_shell,node_video_extensions toneRose
```

## Components

### OpenCode Workspace

- **OpenCode Runtime**
- [Workspace Configuration](https://github.com/dhinesh2411/opencode-hackbot/tree/main/config): `config`
- [Config Renderer](https://github.com/dhinesh2411/opencode-hackbot/blob/main/scripts/render_config.py): `scripts/render_config.py`
- [MCP Status](https://github.com/dhinesh2411/opencode-hackbot/blob/main/scripts/mcp_status.py): `scripts/mcp_status.py`
- **Configured MCPs**

### Hunt Workflow

- [Hunt Commands](https://github.com/dhinesh2411/opencode-hackbot/tree/main/commands): `commands`
- [Bounty Playbook](https://github.com/dhinesh2411/opencode-hackbot/blob/main/agents/bugbounty.md): `agents/bugbounty.md`
- [Specialist Agents](https://github.com/dhinesh2411/opencode-hackbot/tree/main/agents): `agents`
- [Discover-Test-Exploit](https://github.com/dhinesh2411/opencode-hackbot/tree/main/agents): `agents`
- [Advisor Review](https://github.com/dhinesh2411/opencode-hackbot/blob/main/agents/bounty-advisor.md): `agents/bounty-advisor.md`

### Bounty Harness

- [Role Router and Store](https://github.com/dhinesh2411/opencode-hackbot/blob/main/bounty-harness/route.py): `bounty-harness/route.py`
- [Artifact Gates](https://github.com/dhinesh2411/opencode-hackbot/blob/main/bounty-harness/advisor-check.py): `bounty-harness/advisor-check.py`
- [Evidence Artifacts](https://github.com/dhinesh2411/opencode-hackbot/tree/main/bounty-harness): `bounty-harness`

### Skills and Extensions

- [Bug Bounty Skills](https://github.com/dhinesh2411/opencode-hackbot/tree/main/skills): `skills`
- [Sector OSINT Scanner](https://github.com/dhinesh2411/opencode-hackbot/blob/main/skills/offensive-osint/scripts/sector_mass_scan.py): `skills/offensive-osint/scripts/sector_mass_scan.py`
- [Web-Shell Reference](https://github.com/dhinesh2411/opencode-hackbot/blob/main/skills/security-webshells/references/Web-Shells/laudanum-1.0/php/shell.php): `skills/security-webshells/references/Web-Shells/laudanum-1.0/php/shell.php`
- [WordPress Shell](https://github.com/dhinesh2411/opencode-hackbot/blob/main/skills/security-webshells/references/Web-Shells/laudanum-1.0/wordpress/templates/shell.php): `skills/security-webshells/references/Web-Shells/laudanum-1.0/wordpress/templates/shell.php`
- [Optional Video Skills](https://github.com/dhinesh2411/opencode-hackbot/tree/main/extras/skills-video): `extras/skills-video`

### Other components

- **Hunting User**

## Connections

- Hunting User → OpenCode Runtime: invokes (evidence: `README.md`)
- OpenCode Runtime → Hunt Commands: runs (evidence: `README.md`)
- Hunt Commands → Bounty Playbook: binds playbook (evidence: `README.md`)
- Bounty Playbook → Specialist Agents: coordinates (evidence: `README.md`)
- Hunt Commands → Discover-Test-Exploit: starts loop (evidence: `README.md`)
- Discover-Test-Exploit → Advisor Review: routes findings (evidence: `README.md`)
- Discover-Test-Exploit → Role Router and Store: uses harness (evidence: `README.md`)
- Role Router and Store → Evidence Artifacts: stores artifacts (evidence: `bounty-harness/route.py`)
- Artifact Gates → Evidence Artifacts: reads artifacts (evidence: `bounty-harness/advisor-check.py`)
- Advisor Review → Artifact Gates: reviews gates (evidence: `README.md`)
- Hunt Commands → Bug Bounty Skills: loads skills (evidence: `README.md`)
- Workspace Configuration → OpenCode Runtime: configures (evidence: `README.md`)
- Config Renderer → Workspace Configuration: renders (evidence: `README.md`)
- MCP Status → Configured MCPs: checks availability (evidence: `scripts/mcp_status.py`)
- Workspace Configuration → Configured MCPs: declares servers (evidence: `README.md`)
- Bug Bounty Skills → Sector OSINT Scanner: includes (evidence: `README.md`)
- Bug Bounty Skills → Web-Shell Reference: includes (evidence: `README.md`)
- Bug Bounty Skills → WordPress Shell: includes (evidence: `README.md`)
- Hunting User → Optional Video Skills: optionally installs (evidence: `README.md`)
