๐Ÿ“š AegisAi Harness Wiki

Knowledge base for the AegisAi Harness project. Synthesizes information from the codebase, documentation, and development conversations.

Quick Navigation

Project Overview

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.

Architecture

The harness is an agent runtime: the model thinks, the harness decides what that thinking may touch.

Layers

  1. Backends (src/backends) โ€” Ollama + OpenAI-compatible, streaming, routing, circuit breakers. 18 providers with auto-detection.
  2. Agent loop (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.
  3. Tools (src/tools) โ€” coding tools, registry, capability filtering, tool sets, discovery, output compression. 64+ tools.
  4. Integrations (src/integrations) โ€” MCP client + security scanner, CDP browser (AX-first), REA/Ghidra/Craft.
  5. Memory & context โ€” SQLite persistence, compaction + archive, source-bound/bi-temporal memory, context files, context filesystem, capsules.
  6. Quality โ€” evals, benchmarks, harness score, reliability attribution, counterfactual optimizer, adversarial tests, CI template, conformance testing.
  7. Interfaces โ€” CLI/REPL, --web UI, --rpc, OpenAI-compatible --proxy, JSON --json, --tui, --mcp-server.

Key Modules

Core

Safety & Governance

Memory & Context

Quality & Observability

Interfaces

Concepts & Patterns

Roadmap

92 of 96 roadmap items implemented across Phases 1โ€“5 (v0.1โ€“v1.0.71). See ROADMAP.md for the full list.

Completed milestones

Truly blocked (native toolchain needed)