evo-kernel
v0.3.0
Published
Deterministic Self-Evolving Meta-Kernel for AI Coding Agents — Offline Git Worktree Evolution, Deliverable Canonical Inspection, Zero-Dep Lexical-Structural Symbol Fingerprinting, and Zero Prompt-Cache Invalidation via a Single 5-Tool Meta-MCP Gateway.
Maintainers
Readme
🧬 EvoKernel (evo-kernel) — Context Virtualization, Git-Worktree Self-Evolution & Anti-Drift Memory MCP for Claude Code, Cursor & Codex
The Deterministic Self-Evolving Meta-Kernel for AI Coding Agents
Stop writing static .md rules that rot. Stop adding 20 MCP servers that bust your Prompt Cache.
1 Meta-Rule Seed (<80 lines) · 1 Fixed-Schema Meta-MCP Gateway · 4-Stage Deterministic Sandbox Gatekeeper · Zero External Dependencies
English · 简体中文 · 🌐 Live Interactive Cockpit · 📊 Benchmarks
[!NOTE] Disambiguation Note: EvoKernel (
evo-kernel) is an agent architecture and context engineering framework for AI coding assistants (Claude Code, Cursor, Windsurf, Codex, Gemini, etc.). It is not affiliated with academic ICML papers/benchmarks of similar naming or Linux kernel projects.
⚡ Quick Demo — Instant Scoring & Live Cockpit in 2 Commands
# 1. Instant 0-overhead diagnostic scoring (<25ms) — audits host rules, git bug hotspots, and AST memory coverage
npx evo-kernel score
# Export a shareable vector X-Ray badge/card for your README:
npx evo-kernel score --svg ./evo-xray.svg
# 2. Zero-dependency Live Cockpit UI — dark mode, 2D budget treemap, and interactive SVG AST memory constellation
npx evo-kernel ui
# Or open our live hosted demo: https://damonless.github.io/EvoKernel/📈 Reproducible 50-Turn Engineering Benchmark (npm run benchmark)
Simulated across 8 standard MCP servers (github, playwright, kubernetes, docker, linear, postgres, sentry, context7 — 77 tools total) + a mature repo knowledge base (10 rules, 4 skills, 5 micro-tools, 15 debugging memories) over a 50-turn coding session with 3 mid-session capability evolutions (reproduce locally via npm run benchmark):
| Metric | Raw Multi-MCP + Monolithic CLAUDE.md | 🧬 EvoKernel 5-Tool Meta-Gateway | Verified Improvement |
| :--- | :---: | :---: | :---: |
| Exposed Tool Schemas | 77 tools | 5 fixed meta-tools | -93.5% schema footprint |
| Eager Static Prefix / Turn | 27,150 tokens | 1,530 tokens | -94.4% prompt tax |
| Mid-Session Cache Invalidations | 3 full prefix busts | 0 (100% cache hit) | 100% KV Cache Shield |
| 50-Turn Cumulative Prompt Tokens | 1,931,250 tokens | 661,770 tokens | -65.7% total token load |
| 50-Turn Cost (Claude Sonnet 4.5) | $1.15 | $0.31 | -72.9% API cost |
| 50-Turn Cost (Claude Opus 4.5) | $5.76 | $1.56 | -72.9% API cost |
| AST Anti-Drift Memory Check | Unverified text (drifts silently) | 0.048 ms / memory | Deterministic AST Grounding |
⚡ Why Most "Self-Improving Agent" Setups Fail After 30 Sessions
Every developer using Claude Code, Cursor, Windsurf, Cline, Roo, Copilot, Codex, OpenCode, Gemini, or Antigravity hits five engineering walls:
- The Slop-Pile Rule Rot (
CLAUDE.mdBloat): Appending"Never do X"every time an agent makes a mistake turns your rules file into a 10,000-token contradictory junk drawer. Past ~1,500 tokens, LLM instruction-following degrades sharply (Lost-in-the-Middle). - Worker Grading Its Own Homework: Letting an LLM directly overwrite global skills or scripts without deterministic verification leads to broken, path-hardcoded scripts being crystallized as "permanent tools."
- The Dynamic MCP Prompt-Cache Collapse: If "evolving MCP tools" means spawning new MCP servers or mutating the top-level
tools/listschema mid-session, you invalidate the LLM's KV Prompt Cache prefix on every mutation—increasing token costs by 5–10x and requiring constant IDE restarts. - Third-Party MCP Sprawl: Adding 10 downstream MCP servers directly to your agent configuration dumps 50–100 tool definitions into every prompt header, diluting tool-calling accuracy and inflating baseline context costs.
- Confounded Causation & Hallucinatory Evolution: Agents mutate rules based on spurious correlation during complex multi-step sessions without isolating whether a rule actually helped, hurt, or was contested by confounding variables.
EvoKernel solves all five with a deterministic local compiler, worktree evolution engine & routing kernel:
📊 Comprehensive Competitive Benchmark Matrix
| Dimension | MemGPT / Letta | Aider | Direct MCP Proxies | affaan-m/ECC | AMAP-ML/SkillClaw | 🧬 EvoKernel v0.3.0 (Ours) |
| :--- | :--- | :--- | :--- | :--- | :--- | :--- |
| Primary Focus | Stateful conversational agent DB | Git-centric terminal pair programmer | Pass-through MCP aggregation | Static engineering prompt library | Background LLM evolutionary agent | Deterministic self-evolving meta-kernel for coding agents |
| Integration Architecture | Heavy external service / Postgres / Python daemon | Standalone Python CLI replacing developer IDE | Raw JSON-RPC bridge passing all child tools | Preloaded Markdown templates | Hijacks /v1/chat reverse proxy | Parasitic Meta-MCP + <80-line Seed injected into existing IDEs |
| Runtime Dependencies | Heavy (Postgres, Python, vector DBs) | Python pip packages | Node / Python packages | Zero (plain markdown) | Python FastAPI daemon | 0 Dependencies (Pure Node.js >= 22.5 built-ins: node:sqlite, node:module, node:test) |
| Prompt Cache Stability | Cache-unfriendly (frequent context shifts) | Varies per edit | Destructive (exposing all child tools busts KV prefix on every change) | High context footprint | Neutral | 100% Byte-Stable: Exactly 5 immutable meta-tools exposed to host |
| Downstream MCP Virtualization | None | None | Dumb pass-through (50+ tools in prompt) | None | None | Zero-cache-invalidation FTS5 index + on-demand stdio JSON-RPC proxy |
| Verification & Gatekeeper | Model self-reflection | Git commit diffs & tests | None | Manual /learn-eval | Async LLM reviewer | 4-Stage Deterministic Gatekeeper (Static AST, Sandbox Exit 0, BM25, 1500-tok Cap, Anti-Confounding) |
| Offline Worktree Optimization | None | None | None | None | Cloud LLM evaluations | evo optimize: Isolated Git worktrees, dual inv/dom cycles, automated probe evaluation & regression rollbacks |
| Deliverable Inspection | None | None | None | None | None | Zero-dependency canonical parser for .xlsx, .docx, .pptx, CSV, JSON/JSONL, and Markdown |
| Episodic Memory & Anti-Drift | Semantic vector embeddings (hallucination prone) | Repo map only | None | None (static docs) | No AST verification | Zero-Dep Lexical-Structural Symbol Fingerprinting (Fast regex/lexical AST hash, [STALE] demotion, Topology Penetration Anchors) |
| Cockpit & Diagnostic Scoring | Web UI with Postgres | None | None | None | Web UI | evo score (<40ms zero-cost scan) & evo ui (0-dep dark cockpit, SSE live-reload, strict CSP, exportable single-file HTML) |
| Causal Telemetry | None | Git diff size | None | None | Win/loss counter | Causal outcomes (helped, hurt, contested) with ERR_CONFOUNDED_CAUSATION protection |
| Multi-Agent Harness Support | Standalone only | Standalone only | Generic MCP clients | Claude Code / Cursor only | Generic proxy | 10 Native Harnesses (Claude, Cursor, Windsurf, Cline, Roo, Copilot, Codex, OpenCode, Gemini, Antigravity) |
| Cold-Start Gene Extraction | Empty until chat sessions accumulate | Git repo scan | Empty | Static catalog | Empty until chat history grows | evo bootstrap mines project stacks + git fixes in <10s |
🚀 Offline Git Worktree Optimization Engine (evo optimize)
EvoKernel v0.2.0 introduces an autonomous offline capability optimizer. It runs iterative evolution experiments inside isolated, transient Git worktrees without risking uncommitted changes in your main workspace:
# Run offline optimization across both Invariant and Domain dimensions
evo optimize --dim both -k 3
# Run targeted optimization using a session trajectory and deliverable inspector
evo optimize --trajectory session.jsonl --deliverable report.xlsx --applyKey Engineering Features:
- Zero Dirty-State Pollution: Worktrees are allocated under
.evo/.cache/optimize/worktrees/opt-...and completely cleaned up after each round. - Orthogonal Dual-Dimension Evolution:
- Invariant (
inv): Evolves cross-module architectural rules and anti-confounding guards. - Domain (
dom): Evolves domain-specific episodic troubleshooting memories and SOP playbooks.
- Invariant (
- Multi-Harness Trajectory Parsing:
- Replays session steps from Antigravity (
transcript.jsonlwith double-JSON unquoting), Codex CLI (thread-item), OpenCode (event stream), and Claude Code (stream-json).
- Replays session steps from Antigravity (
- Automated Proposer & Isolated Probe Verification:
- Runs candidate proposer scripts in the worktree.
- Executes isolated probe commands to evaluate scores against baseline.
- Strictly enforces
KEEP_BASErollbacks if candidate verification regresses or violates the 4-Stage Gatekeeper.
📑 Zero-Dependency Deliverable Canonical Consumer-Reader (deliverable-canonical-inspector)
AI agents frequently generate corrupted deliverables (.xlsx, .docx, .pptx, CSV, JSON) that look convincing on the surface but fail downstream consumption. EvoKernel includes a built-in, zero-dependency canonical deliverable validator:
# Validate any deliverable file directly via registered micro-tool
evo_run deliverable-canonical-inspector '{"targetFile": "report.xlsx", "expectedHeaders": ["ID", "Status"]}'Comprehensive Format Support:
- XLSX (.xlsx):
- Custom IEEE 802.3 CRC32 + ZIP central directory decompressor.
- Normalizes openpyxl leading slashes (
/xl/worksheets/sheet1.xml). - Strips phonetic
<rPh>runs before extracting cell text. - Correctly preserves sibling cells after self-closing XML nodes (
<c .../>). - Detects shared formula follower nodes and flags formula errors (
#REF!,#DIV/0!,#VALUE!,t="e"). - Detects empty sheets and verifies expected table header shape.
- DOCX (.docx):
- Canonical extraction of paragraphs, headings with spaces (
Heading 1,Heading 2,Title), and table cell matrices. - Flags
EMPTY_DOCUMENTdefects.
- Canonical extraction of paragraphs, headings with spaces (
- PPTX (.pptx):
- Numerically sorts slide decks and formats text into canonical
## Slide Nblocks. - Emits warnings on empty individual slides and flags
EMPTY_PRESENTATION.
- Numerically sorts slide decks and formats text into canonical
- CSV & JSON / JSONL:
- RFC-4180 compliant CSV parser handling escaped quotes and multi-line fields.
- Validates
requiredKeys,strictKeysper line, and flagsRAGGED_COLUMNS.
- Markdown (.md):
- Detects
UNCLOSED_CODE_FENCEsyntax errors. - Flags template placeholders (
{{VARIABLE}},[INSERT ...],<placeholder>) while ignoring valid variables inside fenced code blocks.
- Detects
🛡️ Causal Outcome Attribution & Anti-Confounding Gatekeeper
Most agent frameworks suffer from superstitious learning: an agent adds a rule after a successful run, even though an unrelated file edit was the actual cause of the fix.
EvoKernel solves this with Deterministic Causal Outcome Attribution:
- Outcome Ledger: Capabilities recalled during a session are classified in SQLite telemetry:
helped: Directly contributed to successful test passage and zero regressions.hurt: Recalled during a failed attempt or reverted commit.contested: Recalled during multi-step error recovery loops where multiple variables changed simultaneously.
- Anti-Confounding Gatekeeper (
ERR_CONFOUNDED_CAUSATION):- When multiple capabilities are recalled simultaneously during a bug-fix cycle, EvoKernel blocks single-variable credit assignment.
- Proposers must supply contrastive evidence or Stage-3 Topology Penetration Anchors (concrete file line ranges, caller chains, and negative dead-ends) to prove causation.
🎯 10-Agent Harness Matrix & Silent-Failure Surface Audit
EvoKernel connects cleanly to 10 major AI coding agent environments with non-destructive marker updates and stealth Git isolation:
| Agent / Harness | Rule Injection Target | MCP Gateway Target | Detection Mechanisms | Stealth Mode (.git/info/exclude) |
| :--- | :--- | :--- | :--- | :---: |
| Claude Code | CLAUDE.md | .mcp.json + .claude/settings.json | CLAUDE.md, .claude/, CLAUDE_CONFIG_DIR, ~/.claude | ✅ |
| Cursor | .cursor/rules/evo-kernel.mdc | .cursor/mcp.json | .cursor/, .cursorrules, CURSOR_AGENT, ~/.cursor | ✅ |
| Windsurf | .windsurfrules | .windsurf/mcp.json | .windsurf/, .windsurfrules, WINDSURF_DIR, ~/.windsurf | ✅ |
| Cline | .clinerules | .cline/mcp.json | .clinerules, .cline/, CLINE_DIR, ~/.cline | ✅ |
| Roo Code | .roo/rules/evo-kernel.md | .roo/mcp.json | .roo/, .roorules, ROO_DIR, ~/.roo | ✅ |
| GitHub Copilot / VS Code | .github/copilot-instructions.md | .vscode/mcp.json | .github/copilot-instructions.md, .vscode/, VSCODE_PID | ✅ |
| Codex CLI | AGENTS.md | .codex/config.toml | .codex/, CODEX_HOME, ~/.codex | ✅ |
| OpenCode | opencode.json + AGENTS.md | opencode.json | opencode.json, .opencode/, OPENCODE_CONFIG | ✅ |
| Gemini CLI | GEMINI.md | .gemini/settings.json | GEMINI.md, .gemini/, GEMINI_CLI_HOME, ~/.gemini | ✅ |
| Antigravity | GEMINI.md | mcp_config.json + .mcp.json | mcp_config.json, ANTIGRAVITY_AGENT, ~/.antigravity | ✅ |
Silent-Failure Surface Defenses:
- BOM Corruption Prevention: Strips and guards against UTF-8 Byte Order Marks (
0xFEFF) across all JSON and Markdown parsers. - Comment-Preserving Merging: Losslessly merges TOML (
.codex/config.toml) and JSON configs without stripping user comments or sibling server definitions. - Zero-Build Compilation Fallback: Routes harnesses through
scripts/boot-mcp.mjsusing native TypeScript stripping, ensuring immediate execution even ifdist/is unbuilt. - Idle Pipe Stdin Resilience: Safe asynchronous stdin stream handling with 50ms timeout ensures hooks never hang when spawned with open idle stdin pipes in non-TTY environments.
🪝 Universal Hook Router & Single-Line JSON Guard Hooks
EvoKernel provides a CLI hook router (evo hook <event>) for agent lifecycle integration (Claude Code PostToolUse / Stop hooks, Cursor automation, Antigravity native hooks, and Git pre-commit guards):
# 1. Post-Tool Hook: Tracks mutations, read-only diagnostics (>=10 reads), & recalls scoped rules
evo hook post-tool --tool Edit --file src/core/storage.ts
# 2. Stop Hook: Emits crystallization reminders (edits, diagnostics, user corrections) & anti-poisoning dirty alerts
evo hook stop
# 3. Pre-Commit Guard: Blocks commits if internal caches are staged or token budget >1500
evo hook pre-commit
# 4. Error Recovery Marker: Records recovery telemetry after command failures
evo hook mark-recovery- Single-Line JSON Output: Emits structured hook directives (
hook_trigger) compatible with all major agent frameworks. - Read-Only Diagnostic & Counter-Question Detection: Prompts experience crystallization on read-only troubleshooting sessions (
>= 10diagnostic reads with< 4edits) or when a user correction / rhetorical counter-question is detected. - Anti-Poisoning Alert: Alerts if source files are modified after capability crystallization without re-verification.
🔌 Downstream MCP Proxy Virtualization
EvoKernel virtualizes downstream MCP servers behind its Fixed 5-Tool Meta-MCP Gateway. Your agent interacts with only 5 meta-tools, while hundreds of downstream tools become searchable, inspectable, and executable on demand:
Host Coding Agent (Claude / Cursor / Copilot / etc.)
│
▼ Fixed 5-Tool stdio Interface (100% Byte-Stable KV Cache)
╔════════════════════════════════════════════════════╗
║ EvoKernel Meta-MCP ║
║ evo_search · evo_inspect · evo_run · propose · compact
╚════════════════════════════════════════════════════╝
│ │
FTS5 BM25 Search Proxy Execution (`evo_run`)
▼ ▼
┌────────────────────┐ ┌─────────────────────────────┐
│ capability_fts │ │ McpProxyManager (Pool) │
│ ext__postgres__... │ └──────────────┬──────────────┘
│ ext__github__... │ │ stdio JSON-RPC
└────────────────────┘ ▼
┌─────────────────────────────┐
│ Downstream MCP Servers │
│ postgres · github · docker │
└─────────────────────────────┘# Preview token savings without modifying files
evo virtualize --dry-run
# Fold all third-party stdio MCPs into EvoKernel's dynamic proxy
evo virtualize
# Losslessly restore virtualized MCP servers back to their original host configs
evo virtualize --restore🚀 Quick Start (60 Seconds)
Prerequisites: Node.js
>= 22.5or24+(uses nativenode:sqlite& native TypeScript stripping — 0 third-party npm dependencies).
# Option A: One-line npx initialization in any repository (or Claude Code: /plugin marketplace add damonless/EvoKernel)
npx evo-kernel init --targets auto --stealth
npx evo-kernel virtualize --dry-run
# Option B: Clone and build from source (takes <50ms, zero npm install required)
git clone https://github.com/damonless/EvoKernel.git
cd EvoKernel
node ./scripts/build.mjs
# Wire L0 Meta-Rule Seed + Single Meta-MCP into your active coding agents
node ./dist/cli/index.js init --targets auto --stealth
# Cold-start mine your repository structure, project stacks & Git fix history
node ./dist/cli/index.js bootstrap --max-commits=50
# Run offline worktree optimization cycle
node ./dist/cli/index.js optimize --dim both -k 3
# Inspect capability tree, multi-branch AST memory freshness & ROI ledger
node ./dist/cli/index.js tree
node ./dist/cli/index.js memory verify
node ./dist/cli/index.js stats
node ./dist/cli/index.js audit --global
node ./dist/cli/index.js doctorLive Terminal Output
╭──────────────────────────────────────────────────────────────────────────╮
│ 🧬 EvoKernel — Self-Evolving Capability Tree (.evo/) │
╰──────────────────────────────────────────────────────────────────────────╯
📦 Workspace: /path/to/your-repo
├── 🛡️ Rules (3 active | Core Token Budget: 317/1500 tokens)
│ ├── [CORE] gatekeeper-self-test-invariant (132 tok | hits: 4) — Every evolved Micro-Tool script must handle --self-test and exit 0.
│ ├── [CORE] esm-typescript-imports (154 tok | hits: 7) — Always use explicit .js extensions on relative imports in ESM TypeScript.
│ └── [STACK] stack-rust-core-invariants (126 tok | hits: 2) — Safe concurrency: prefer channels and arc mutex over raw pointers.
├── ⚡ Skills (3 verified L0/L1/L2 playbooks)
│ ├── [SOP] bug-to-guardrail-sop (hits: 3 | tags: debugging,evolution) — Standard workflow to turn a resolved root cause into a Rule.
│ ├── [SOP] evo-dev-verification-sop (hits: 5 | tags: dev,release) — Verification and preflight SOP for EvoKernel releases.
│ └── [SOP] evo-rule-architect (hits: 2 | tags: refactor,rules) — 4-stage rule decoupling and budget refactoring workflow.
├── 🔧 Micro-Tools (5 sandboxed scripts | Fixed Meta-MCP Routed)
│ ├── [NODE] agy-config-auditor (runs: 12 | pass: 100%) — Audits host rule budgets and memory AST symbols.
│ ├── [NODE] deliverable-canonical-inspector (runs: 18 | pass: 100%) — Zero-dep validator for .xlsx, .docx, .pptx, CSV, JSON, MD.
│ ├── [NODE] evo-release-preflight (runs: 8 | pass: 100%) — Audits multi-manifest parity and build freshness.
│ ├── [NODE] git-hotspot-analyzer (runs: 5 | pass: 100%) — Identifies top 10 frequently modified files in recent git history.
│ └── [NODE] workspace-metrics-scanner (runs: 9 | pass: 100%) — Scans file counts, LOC, and extension distribution.
└── 🧠 Episodic Memories (10 troubleshooting experiences | 10 VERIFIED · 0 STALE)
├── [VERIFIED] audit-broken-refs-and-hook-param-fix (confidence: HIGH | symbols: 2/2 fresh)
├── [VERIFIED] codex-hooks-corrupt-file-unlink (confidence: HIGH | symbols: 2/2 fresh)
├── [VERIFIED] git-fix-387153f (confidence: HIGH | symbols: 3/3 fresh)
├── [VERIFIED] git-fix-d0d4e13 (confidence: HIGH | symbols: 3/3 fresh)
├── [VERIFIED] harness-hook-filter-preserve-untouched-entries (confidence: HIGH | symbols: 3/3 fresh)
├── [VERIFIED] issue-8-workspace-isolation-and-atomic-compact (confidence: HIGH | symbols: 5/5 fresh)
├── [VERIFIED] issues-10-11-12-audit-hook-and-cross-lang-recall (confidence: HIGH | symbols: 7/7 fresh)
├── [VERIFIED] multi-harness-cascaded-detection-and-reversible-teardown (confidence: HIGH | symbols: 8/8 fresh)
├── [VERIFIED] open-idle-pipe-stdin-hang-fix (confidence: HIGH | symbols: 2/2 fresh)
└── [VERIFIED] worktree-probe-score-improvement (confidence: HIGH | symbols: 2/2 fresh)🧠 Core Architecture: 5 Fixed Meta-Tools
EvoKernel exposes exactly 5 immutable meta-tools over stdio to ensure 100% Prompt-Cache retention:
| Meta-Tool | Tier | Purpose |
| :--- | :--- | :--- |
| evo_search | L0 | FTS5 BM25 search across Rules, Skills, Micro-Tools, Virtualized External Tools, and Memories. Performs live Stage-2 AST fingerprint verification and demotes [STALE] memories automatically. |
| evo_inspect | L1 / L2 | Progressive disclosure loader. Delivers Symptom/Root-Cause/Solution triads, JSON Schemas for virtualized external tools, and Topology Penetration Anchors (live line spans, callers, and negative dead-ends). |
| evo_run | Execution | Executes local sandboxed Micro-Tools (.mjs, .py, .ps1, .sh) or proxies calls to downstream MCP servers via McpProxyManager. |
| evo_propose | Evolution | Submits a candidate Rule, Skill, Micro-Tool, or Memory through the 4-Stage Deterministic Gatekeeper (Static AST, Sandbox Dry-Run, BM25 Deduplication, Token Budget Cap, Anti-Confounding). |
| evo_compact | GC | Atomically merges fragmented rules or archives [STALE] memories into .evo/archive/ to keep core token consumption under the 1,500-token limit. |
🧪 Comprehensive Verification Suite
EvoKernel features a zero-dependency test suite executed via native Node test runner (node:test):
node ./scripts/test.mjsAll 11 test suites (267 tests) pass in ~17 seconds:
dist/tests/bootstrap.test.js: Bootstrap Cold-Start Expansion Suite (22 tests)dist/tests/causal-telemetry-and-catalog.test.js: Causal Telemetry, Outcome Attribution & Anti-Confounding Suite (18 tests)dist/tests/deliverable-inspector.test.js: Zero-Dependency Deliverable Canonical Consumer-Reader Suite (33 tests)dist/tests/evo-kernel.test.js: Core Gatekeeper, Sandbox, AST Cognitive Memory, and Invariants Suite (49 tests)dist/tests/hook.test.js: Universal Hook Router & Open-Pipe Stdin Non-Blocking Resilience Suite (31 tests)dist/tests/lifecycle-guard-hooks.test.js: Lifecycle Guard Hooks, Trigger Cues & Reference Integrity Suite (27 tests)dist/tests/mcp-proxy.test.js: Downstream MCP Proxy Virtualization Suite (10 tests)dist/tests/multi-harness.test.js: Multi-Agent Harness Matrix Suite (14 tests)dist/tests/optimize.test.js: Offline Git Worktree Optimization Engine Suite (19 tests)dist/tests/score-and-ui.test.js: Score, Live Cockpit UI, Warmup & Slash Commands Suite (12 tests)dist/tests/surface-audit-and-hardening.test.js: Multi-Harness Silent-Failure Audit Matrix & Hardening Suite (32 tests)
🙏 Acknowledgments & Architecture References
EvoKernel is an independent, from-scratch open-source engineering runtime built in zero-dependency TypeScript on Node.js 22 native modules (node:sqlite, node:test, stripTypeScriptTypes). Its design synthesizes foundational ideas from the agentic systems and software engineering community:
- Progressive Disclosure & Context Engineering: The 5 fixed meta-tools (
evo_search,evo_inspect,evo_run,evo_propose,evo_compact) and the L0/L1/L2 tiered loading architecture draw inspiration from Anthropic's engineering guidelines on context window economics, prompt-cache preservation, and progressive skill disclosure. - Offline Worktree Rollout & Orthogonal Capability Optimization: The
evo optimizeoffline Git worktree evaluation loop, invariant (inv) vs. domain (dom) orthogonal exploration, and canonical deliverable verification are informed by recent research on agent harness evaluation, trajectory replay, and automated capability refinement. - Original EvoKernel Contributions: The 4-Stage Deterministic Gatekeeper (Static AST Security, Sandbox
--self-testDry-Run, BM25 Deduplication, 1,500-Token Hard Cap, and Causal Anti-Confounding), the 3-Stage AST-Anchored Cognitive Memory with git-topology drift detection (VERIFIED/OTHER_BRANCH/STALE), and the 10-host lossless adapter matrix are original to EvoKernel.
📄 License
MIT License — see LICENSE.
