How youssefadelde298-star/hackerclaw works
HackerClaw is a terminal-based AI assistant for authorized penetration testing and security research. The main workflow is: an operator starts the CLI and TUI, configures a model and target, then asks the agent to investigate using registered tools; the agent can record findings and testing coverage, with session state persisted locally. Skills, permission prompts, browser/Burp ingestion, and model-provider support are important adjacent capabilities. Some tool wiring and unsampled implementations are not shown, so those relationships are omitted rather than inferred.
Main entry points: agent.ts Agent loop · index.ts CLI bootstrap · server.ts Browser and Burp ingest · App.tsx Interactive TUI
Components 28
Terminal interaction
- CLI bootstrap
src/cli/index.ts - Interactive TUI
src/ui/App.tsx - Configuration
src/config/config.ts
Agent and tools
- Agent loop
src/agent/agent.ts - System prompts
src/agent/systemPrompt.ts - Tool registry
src/tools/registry.ts - Shell and file tools
src/tools/shell.ts - HTTP and web tools
src/tools/http.ts - Coverage tool
src/tools/coverage.ts - Skills registry
src/skills/registry.ts - Permission gates
src/permission/permission.ts
Model backends
- Provider selection
src/llm/factory.ts - Model providers
src/llm/providers.ts - Model client interface
src/llm/client.ts
Research state
- Session persistence
src/session/store.ts - Agent memory
src/memory/store.ts - Engagement target
src/target/target.ts - Findings storage
src/findings/store.ts - Coverage storage
src/coverage/store.ts - Intelligence store
src/intelligence/store.ts - Engagement context
src/engagement/store.ts
Security integrations
- Browser and Burp ingest
src/browser/server.ts - Browser capture store
src/browser/store.ts - Browser MCP server
src/browser/mcpServer.ts
Other components
- Operator
- Burp extension
- Model service
- Authorized target
Connections 28
- Operator → CLI bootstrap: launches
README.md - CLI bootstrap → Interactive TUI: renders
src/cli/index.ts - CLI bootstrap → Configuration: loads
src/cli/index.ts - Interactive TUI → Agent loop: drives
src/ui/App.tsx - CLI bootstrap → Agent loop: builds
src/cli/index.ts - Agent loop → System prompts: uses
src/agent/agent.ts - Agent loop → Tool registry: executes
src/agent/agent.ts - CLI bootstrap → Tool registry: registers tools
src/cli/index.ts - CLI bootstrap → Shell and file tools: registers
src/cli/index.ts - Agent loop → Model client interface: requests chat
src/agent/agent.ts - Provider selection → Model providers: selects
- CLI bootstrap → Provider selection: configures
src/cli/index.ts - Agent loop → Session persistence: saves and loads
src/agent/agent.ts - Agent loop → Agent memory: uses
src/agent/agent.ts - Agent loop → Engagement target: uses
src/agent/agent.ts - Agent loop → Skills registry: loads skills
src/agent/agent.ts - Agent loop → Permission gates: requests approval
src/agent/agent.ts - Agent loop → Coverage tool: queries coverage
src/agent/agent.ts - Coverage tool → Coverage storage: reads and writes
src/tools/coverage.ts - CLI bootstrap → Engagement context: loads
src/cli/index.ts - Agent loop → Intelligence store: uses
src/agent/agent.ts - CLI bootstrap → Browser and Burp ingest: starts bridge
src/cli/index.ts - Browser and Burp ingest → Browser capture store: passes store
src/browser/server.ts - Burp extension → Browser and Burp ingest: sends requests
README.md - Browser MCP server → Browser capture store: uses
- Operator → Authorized target: authorizes testing
README.md - HTTP and web tools → Authorized target: sends requests
- Model client interface → Model service: sends prompts
README.md