How enowdev/antares works
Antares is a self-hosted AI assistant and authorized penetration-testing workspace, delivered through a Go server, dashboard, terminal UI, and desktop shell. The main workflow is a user request entering through the server or gateway, being handled by the agent with model and tool capabilities, and producing streamed responses or persisted work. Separate capabilities include security testing and reporting, content creation, memory/RAG, scheduling, and integrations. The README and source index establish major subsystems; some internal links remain unverified because their implementations were not sampled.
Main entry points: main.go CLI and TUI · agent.go Agent runtime · ragcontext.go Turn memory · engagement Security testing
Components 26
Interfaces
- CLI and TUI
cmd/antares/main.go - Web dashboard
web/src/App.tsx - Chat streaming
web/src/lib/chatStreamController.ts - HTTP server
internal/server/server.go - Pipeline UI
web/src/components/creator/parts.tsx - Desktop shell
desktop/internal/core/manager.go - Desktop connection UI
desktop/frontend/app.js - Desktop bridge
desktop/frontend/bridge.js - Desktop demo mode
desktop/frontend/demo.js
Agent runtime
- Agent runtime
internal/agent/agent.go - Model clients
internal/llm/client.go - Agent tools
internal/tools/register.go - Browser control
internal/browser/session.go - Turn memory
internal/agent/ragcontext.go
Security work
- Security testing
internal/engagement - Findings and reports
internal/findings/findings.go - Test procedures
internal/hookpack/hookpack.go
Workspace capabilities
- RAG index
internal/rag/rag.go - Persistent state
internal/store/sql.go - Content pipeline
internal/creator/service.go - Import migration
internal/migrate/common.go
Services and integrations
- Scheduled work
internal/cron/runner.go - Messaging gateways
internal/gateway/gateway.go - MCP connections
internal/mcp/client.go - Command dispatch
internal/commands/handlers.go
Other components
- User
Connections 27
- User → CLI and TUI: invokes
- User → Web dashboard: uses
- Web dashboard → Chat streaming: streams chat
web/src/App.tsx - CLI and TUI → Agent runtime: runs
cmd/antares/main.go - CLI and TUI → HTTP server: starts
cmd/antares/main.go - HTTP server → Agent runtime: serves requests
internal/server/server.go - Agent runtime → Model clients: requests completions
- Agent runtime → Turn memory: builds turn context
- Turn memory → RAG index: indexes and retrieves
internal/agent/ragcontext.go - Turn memory → Persistent state: reads state
internal/agent/ragcontext.go - Agent runtime → Agent tools: uses tools
- Agent tools → Browser control: drives browser
- User → Security testing: authorizes testing
- Security testing → Findings and reports: records findings
- Security testing → Test procedures: uses procedures
- User → Pipeline UI: runs stages
- Pipeline UI → Content pipeline: starts pipeline
- CLI and TUI → Content pipeline: prepares creator runs
cmd/antares/main.go - CLI and TUI → Scheduled work: starts scheduler
cmd/antares/main.go - CLI and TUI → Messaging gateways: starts gateways
cmd/antares/main.go - CLI and TUI → MCP connections: initializes MCP
cmd/antares/main.go - CLI and TUI → Command dispatch: routes gateway commands
cmd/antares/main.go - User → Import migration: imports prior data
- Desktop connection UI → Desktop bridge: calls bridge
desktop/frontend/app.js - Desktop bridge → Desktop shell: invokes shell
- Desktop demo mode → Desktop bridge: provides demo calls
desktop/frontend/bridge.js - Desktop shell → HTTP server: connects dashboard