VSA and local LLM AI engine
  • Rust 75.3%
  • Python 22.8%
  • Shell 1.4%
  • Dockerfile 0.2%
  • JavaScript 0.1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Till Wegmüller 17f94ecd05
All checks were successful
CI / test-sokar-sharing (push) Successful in 2m27s
CI / check-seshat (push) Successful in 2m26s
CI / check-akh-medu (push) Successful in 5m11s
CI / test-sokar (push) Successful in 10m3s
CI / docker-seshd (push) Successful in 10m50s
CI / docker-akh-transcripts (push) Successful in 8m44s
CI / publish-chart (push) Successful in 9m20s
CI / docker-sokard (push) Successful in 17m51s
CI / test-session-platform (push) Successful in 23m42s
CI / test-akh-medu (push) Successful in 24m45s
CI / platform-images-core (push) Successful in 34m41s
CI / platform-images-home (push) Successful in 50m32s
CI / platform-images-daemons (push) Successful in 50m20s
CI / platform-images-fleet (push) Successful in 27m4s
CI / platform-images-collect (push) Successful in 4m27s
test(runtime): measure disposable profile conformance in native images (#664)
2026-10-17 14:12:00 +00:00
.anima/wip Merge remote-tracking branch 'origin/claude/wi-019e4909-self-identity-contamination-episode-blee' into develop 2026-06-14 19:17:53 +02:00
.cargo fix(illumos): portability — onig_sys alloca, mmap-rs sysctl/areas, libc CPUTIME clock ids 2026-07-11 13:25:31 +02:00
.claude feat(roman-mini): stable signed core path for Local Network TCC persistence 2026-09-27 22:26:36 +02:00
.claude-plugin fix: Idempotent triple insertion + Claude Code plugin scaffold 2026-03-18 22:16:50 +01:00
.forgejo test(runtime): measure disposable profile conformance in native images (#664) 2026-10-17 14:12:00 +00:00
.github/workflows Make Candle opt-in per akhomed; keep default server and context builds lean 2026-09-03 22:49:35 +02:00
.solstice Install the protected snapshot Git prerequisite in native CI 2026-10-06 21:25:00 +02:00
agents fix: Idempotent triple insertion + Claude Code plugin scaffold 2026-03-18 22:16:50 +01:00
benches style: rustfmt sweep across workspace 2026-09-05 13:06:23 +02:00
benchmarks feat(lilith): package runtime training and Runpod handoff 2026-09-22 22:34:04 +02:00
book docs: purge references to tools removed in 05e8f8c 2026-07-18 10:22:34 +02:00
charts fix(sokar): correct upload deadlines and isolate public admission 2026-10-12 10:54:34 +02:00
contrib feat: package independent services and validate upstream client boundaries 2026-09-12 02:53:17 +02:00
crates fix(runtime): make unknown-job sweep tests deterministic (#663) 2026-10-16 10:24:25 +00:00
data data(lilith): care doors — add the Swiss 143 line (Dargebotene Hand / La Main Tendue) 2026-10-05 18:58:34 +02:00
deploy test: refresh dojo teacher goldens for current evidence guidance 2026-10-12 13:38:47 +02:00
docker test(runtime): measure disposable profile conformance in native images (#664) 2026-10-17 14:12:00 +00:00
docs fix(native): treat steering cancellation as interruption, not LLM failure (#650) 2026-10-15 20:37:07 +00:00
eval_data fix(heka): harden phase 42c acceptance paths 2026-08-23 13:34:28 +02:00
examples fix: align local validation with current main APIs and formatting 2026-10-12 11:36:46 +02:00
experiments WI-474: add offline task-lane fit contracts and evaluation harness 2026-10-06 19:40:39 +00:00
hooks feat: [MEDIUM] Zero episodic memory: 7+ days of rituals never ingested (019e5356) 2026-06-01 16:01:23 +00:00
observability Merge origin/main into feat/runtime-otlp-job-archive (OTLP telemetry + native Candle internal runtime) 2026-09-21 08:26:47 +02:00
packaging feat(release): Solstice release pipeline + lean binstall-able remote akh client 2026-06-30 16:09:54 +02:00
plugin-skills docs(plugin-skills): add lane-slot-hygiene recovery skill 2026-09-13 17:39:43 +02:00
scripts test(runtime): measure disposable profile conformance in native images (#664) 2026-10-17 14:12:00 +00:00
services/sokar-sharing feat(sharing): Postgres companion and verified link migration (PR 5/9) (#661) 2026-10-16 08:54:54 +00:00
skills fix(sokar): integrate 52f with 52g 2026-10-12 14:02:55 +02:00
src feat(core): workspace recovery and Sokar artifact manifests (PR 4/9) (#655) 2026-10-16 07:10:29 +00:00
tests feat(schema): built-in fleet memory pack for every akh 2026-09-25 23:38:18 +02:00
training docs(lilith): RESULT for program runs 7 and 7b — repair unit from the Brown anchor; loops traced to self-distillation and contrast pairs; care unchanged 2026-10-08 23:44:08 +02:00
vendor feat(lilith): package runtime training and Runpod handoff 2026-09-22 22:34:04 +02:00
wit Add configurable tool registry with danger metadata, CLI tools, and WASM runtime (Phase 10) 2026-02-14 01:51:00 +01:00
.dockerignore feat: package independent services and validate upstream client boundaries 2026-09-12 02:53:17 +02:00
.gitignore fix(sokar): address round-two surface and renderer review 2026-10-12 09:03:08 +02:00
.mcp.json chore: empty project .mcp.json (seshat moved to user scope) 2026-04-23 20:43:43 +02:00
AGENTS.md docs: ADR 113 full akh always + deploy-from-main rule 2026-09-24 18:16:02 +02:00
build.rs feat(reconcile): forward-port candle boundary + ROCm GPU + Gemma4 audio; keep Ollama 2026-06-20 14:46:35 +02:00
Cargo.lock feat(store): verified migration and exclusive ownership (PR 1/9) (#652) 2026-10-15 21:54:58 +00:00
Cargo.toml feat(core): workspace recovery and Sokar artifact manifests (PR 4/9) (#655) 2026-10-16 07:10:29 +00:00
CLAUDE.md docs(lilith): ADR 116 rev 4 — full autonomy, T3 actions taken and announced 2026-09-27 17:53:14 +02:00
CONTEXT.md feat(lilith): package runtime training and Runpod handoff 2026-09-22 22:34:04 +02:00
justfile CI must not touch ollama: quarantine ALL ollama-dependent tests to a manual suite (the ndjson flake reds ~45% of runs) 2026-08-31 00:04:59 +02:00
LICENSE Add GNU General Public License v3 2026-02-11 20:48:52 +01:00
README.md wip(recover): uncommitted 2026-09-09..11 edits from the main checkout 2026-09-13 12:44:09 +02:00
release.toml Use cargo-release for version management and tagging 2026-02-14 16:01:41 +01:00

akh-medu

A neuro-symbolic AI engine made to run on the CPU. Made for people. Not for robber barons.

Documentation

For per-akh OpenAI API, Codex and Claude agent sessions, see coding-agent backends.

akh-medu combines hyperdimensional computing (Vector Symbolic Architecture) with knowledge graphs and symbolic reasoning. It runs entirely on the CPU with no LLM dependency, no GPU requirement, and no external NLP models.

  • Infer new knowledge via spreading activation, backward chaining, and superposition reasoning
  • Reason symbolically using e-graph rewrite rules (equality saturation)
  • Search semantically using 10,000-bit binary hypervectors
  • Act autonomously via an OODA-loop agent with 15 built-in tools
  • Parse and generate natural language in 5 languages via a grammar framework
  • Serve knowledge over REST and WebSocket APIs

Quick Start

cargo build --release
akh-medu init
akh-medu seed apply ontology
akh-medu grammar parse "Dogs are mammals" --ingest
akh-medu query --seeds Dog --depth 2

See the Quick Start Tutorial for a full walkthrough.

Architecture

┌──────────────────────────────────────────────────────────┐
│                      Engine API                          │
├──────────┬──────────┬──────────┬──────────┬──────────────┤
│   VSA    │Knowledge │Reasoning │Inference │   Agent      │
│  Ops     │  Graph   │  (egg)   │ Engine   │  OODA Loop   │
│ ─────────│──────────│──────────│──────────│──────────────│
│ HyperVec │petgraph  │ rewrite  │spreading │ 15 tools     │
│ SIMD     │oxigraph  │ rules    │backward  │ planning     │
│ ItemMem  │SPARQL    │ e-graphs │superpos. │ psyche       │
├──────────┴──────────┴──────────┴──────────┴──────────────┤
│                   Tiered Storage                         │
│  Hot (DashMap) · Warm (mmap) · Durable (redb)            │
└──────────────────────────────────────────────────────────┘

The rest of the workspace

The engine is the root crate. Around it:

Crate Role
seshat Shared corpus library — RAG over pgvector
heka Postgres+pgvector evaluation store for long-term memory
akhomed-store Postgres-backed durable store for relocatable Akhs
anima-ai Multi-engine natural-language routing
grug-data / grug-train Grug-Brain BabyLLM data generation and Burn training beachhead
akh-egraph-bench E-graph reasoning microbenchmarks
benchmarks/harness-core The agentic-task benchmark harness (below)

Deployment: a Helm chart in charts/akh-medu, Linux and illumos packaging in packaging/, and cargo binstall support that pulls prebuilt akh binaries from the Forgejo releases rather than compiling.

Benchmarks

benchmarks/ is a reproducible harness for agentic tasks, not a marketing table. Each run is pinned to a task-set hash and a harness SHA; once a task-set hash has a published run against it, that hash is frozen — edits land under a new hash rather than silently changing what an earlier row measured. benchmarks/LEADERBOARD.md is generated by bench-tool leaderboard from the committed runs under benchmarks/results/, never edited by hand.

The harnesses include illumos-e2e and illumos-orchestration — real operating-system maintenance and fleet-orchestration tasks, graded autonomously on a VM — alongside frontiercode, locomo and longmemeval. Published pass rates run from 100% on fleet-orchestration down to 0% on frontiercode. They are recorded as measured.

Documentation

The full documentation is hosted at akh-medu.dev and covers:

To build the docs locally:

cd book && mdbook serve

License

This repository is licensed under GPL-3.0-only. See the LICENSE file.

For integration into proprietary applications, contact the author — commercial licences are sold deliberately, and the money funds the FLOSS work.

Contributing

Contributions are welcome under the arrangement that pays for this project: contributors agree that their contribution may also be offered under a paid proprietary licence alongside the GPL. That is what lets proprietary vendors fund FLOSS work instead of free-riding on it. Open the discussion before a large change so nobody wastes an evening.

Dependencies and IP boundaries

  • The engine ships no model weights and requires none. No LLM dependency, no GPU, no external NLP models — VSA operations, the knowledge graph, e-graph reasoning and the grammar framework are all implemented in this repository and run on the CPU.
  • All third-party dependencies are unmodified upstream crates from crates.io under their own licences, pinned by Cargo.lock. Notable ones are egg (e-graphs), oxigraph (RDF/SPARQL), petgraph, redb, dashmap and burn.
  • No proprietary code or datasets are included, and no training corpus is committed. data/ holds hand-authored seed ontologies, compartment definitions and a schema.org schema pack; training/ holds run configs and scripts only. Training data is generated by grug-data in this repository.
  • Optional external services are the operator's own: PostgreSQL with pgvector for seshat and heka, and any cloud model endpoint a benchmark harness is pointed at. akh-medu holds no credentials of its own and phones nothing home.
  • Everything an operator puts in — symbols, triples, corpora, benchmark runs — stays the operator's.