Knowledge base for the AegisAi Harness project. Synthesizes information from the codebase, documentation, and development conversations.
AegisAi Harness is a feature-rich, local-only AI agent harness. OpenCode-class runtime, but offline-first: no cloud dependencies, no telemetry. Phases 1โ5 complete (92/96 roadmap items), ~384 modules, 744 tests, CI green.
Successor to aegisai-next โ that project is deprecated; all features have been ported here.
The harness is an agent runtime: the model thinks, the harness decides what that thinking may touch.
src/backends) โ Ollama + OpenAI-compatible, streaming, routing, circuit breakers. 18 providers with auto-detection.src/agent/run.js) โ tool calls, fallback models, budgets, gates (policy, charter, read-only, action guard, admission, MCP security), hooks, doom-loop detection, capsules, ledger capture.src/tools) โ coding tools, registry, capability filtering, tool sets, discovery, output compression. 64+ tools.src/integrations) โ MCP client + security scanner, CDP browser (AX-first), REA/Ghidra/Craft.--web UI, --rpc, OpenAI-compatible --proxy, JSON --json, --tui, --mcp-server.src/agent/run.js โ agent loop with tool calls, streaming, fallback, doom-loop, stop conditionssrc/tools/registry.js โ tool registry with capability filtering, tool sets, discoverysrc/backends/index.js โ multi-backend adapter (Ollama, OpenAI-compat, router, circuit breaker)src/storage/db.js โ SQLite persistence (WAL mode)src/core/security.js โ path safety, process spawningsrc/core/config.js โ central configurationsrc/policy.js โ YAML policy enginesrc/charter.js โ governance chartersrc/guardrails.js โ input/output guardrailssrc/sandbox_rings.js โ 4-tier privilege ringssrc/mcp_security.js โ MCP tool poisoning scannersrc/pii.js โ PII redactionsrc/read_only.js โ read-only boundary enforcementsrc/admission.js โ admission gate for consequential actionssrc/memory_rag.js โ cosine similarity search over memory embeddingssrc/memory_extract.js โ LLM-driven fact extractionsrc/graph_memory.js โ knowledge graph with spreading activationsrc/hippocampus.js โ Hebbian writeback, post-turn consolidationsrc/temporal_memory.js โ bi-temporal memory (validFrom/validTo)src/source_memory.js โ source-bound memorysrc/decision_memory.js โ remember/recall/reflectsrc/agent/compact.js โ context compaction + archivesrc/context_files.js โ AGENTS.md/CLAUDE.md loadingsrc/harness_lint.js โ lint/review/security-audit the harness itselfsrc/skill_eval.js โ skill quality/security/compat evaluationsrc/adversarial.js โ adversarial stress testingsrc/harness_score.js โ harness scoringsrc/reliability.js โ reliability attributionsrc/tracing.js โ tracing with OpenTelemetry exportsrc/ledger.js โ hash-chained audit ledgersrc/merkle.js โ Merkle tree rootssrc/index.js โ entry point (CLI/web/MCP/RPC/TUI)src/tui.js โ multi-pane terminal workbenchsrc/mcp_server.js โ Streamable HTTP MCP serversrc/acp.js โ ACP adaptersrc/a2a.js โ A2A adaptersrc/lsp.js โ LSP clientsrc/git_integration.js โ git-aware editingsrc/diff_review.js + src/diff_review_ui.js โ multi-file diff review92 of 96 roadmap items implemented across Phases 1โ5 (v0.1โv1.0.71). See ROADMAP.md for the full list.