How ianloe/aegis-harness works
Aegis Harness governs AI-assisted coding from specification and task creation through model-backed implementation, security checks, approval, and Git check-in. Its principal execution modes are SDD, bounded agent loops, and multi-agent graphs; shared controls include routing/redaction, policy, sandboxing, persistent state, and tamper-evident audit. The README documents the major product branches and their handoffs; source excerpts and the SOURCE INDEX provide additional implementation evidence, but unsampled internals are not assumed.
Main entry points: router.py Model gateway · cli.py Harness CLI · runner.py Governed SDD runner · store.py Operational state store
Components 25
Coding workflows
- Harness CLI
src/harness/cli.py - SDD workspace
src/harness/sdd/workspace.py - Governed SDD runner
src/harness/sdd/runner.py - Agent loop engine
src/harness/loops/engine.py - Workflow graph schema
src/harness/graphs/schema.py - Graph executor
src/harness/graphs/executor.py - Audit remediation
src/harness/gitops/audit_loop.py
Policy and controls
- Prompt redaction
src/harness/gateway/redactor.py - Policy engine
src/harness/policy/engine.py - Configuration
src/harness/config/schema.py - Isolated sandbox
src/harness/sandbox/manager.py - Injection defense
src/harness/sandbox/injection.py - Task tokens and kill switch
src/harness/sandbox/tokens.py - Security gates
src/harness/gitops/gates.py
Model and Git
- Model gateway
src/harness/gateway/router.py - Provider adapters
src/harness/gateway/adapters.py - Git workflow
src/harness/gitops/workflow.py
Audit and state
- Tamper-evident audit
src/harness/audit/chain.py - Operational state store
src/harness/audit/store.py
Operations and telemetry
- Operations dashboard
src/harness/dashboard/app.py - Telemetry exporter
src/harness/telemetry/exporter.py - Telemetry events
src/harness/telemetry/schema.py
Other components
- Developer
- Model providers
- Aegis service
Connections 32
- Developer → Harness CLI: runs commands
README.md - Harness CLI → Governed SDD runner: runs SDD
README.md - Governed SDD runner → SDD workspace: scaffolds features
README.md - Governed SDD runner → Model gateway: requests model work
README.md - Harness CLI → Agent loop engine: runs loops
README.md - Agent loop engine → Model gateway: requests coding
README.md - Agent loop engine → Security gates: verifies output
README.md - Harness CLI → Graph executor: runs graphs
README.md - Graph executor → Workflow graph schema: validates graph
README.md - Graph executor → Model gateway: executes agent nodes
README.md - Model gateway → Prompt redaction: redacts prompts
README.md - Model gateway → Provider adapters: dispatches requests
README.md - Provider adapters → Model providers: calls providers
README.md - Model gateway → Configuration: routes by policy
README.md - Policy engine → Configuration: evaluates rules
README.md - Isolated sandbox → Policy engine: checks commands
README.md - Isolated sandbox → Task tokens and kill switch: checks task tokens
README.md - Injection defense → Tamper-evident audit: records incidents
README.md - Security gates → Injection defense: scans repository
README.md - Audit remediation → Security gates: runs checks
README.md - Audit remediation → Model gateway: requests remediation
README.md - Git workflow → Security gates: requires passing checks
README.md - Git workflow → Policy engine: checks approvals
README.md - Governed SDD runner → Tamper-evident audit: records provenance
README.md - Governed SDD runner → Operational state store: tracks task spend
README.md - Agent loop engine → Operational state store: persists loop runs
README.md - Graph executor → Operational state store: persists graph runs
README.md - Operations dashboard → Operational state store: shows queue status
src/harness/dashboard/app.py - Telemetry exporter → Telemetry events: emits events
README.md - Telemetry exporter → Aegis service: sends telemetry
README.md - Operational state store → Telemetry exporter: queues events
README.md - Harness CLI → Operations dashboard: serves dashboard
src/harness/cli.py