AI KNOW - Memory Kernel for long-running AI agents (Hermes ecosystem)
Project description
AI KNOW - Python MVP
Python 3.11 + FastAPI implementation of the AI KNOW Memory Kernel v0.1.
This is the primary execution path for v0.1; the Rust code under
src/backend/memory-core/ is retained as a reference implementation.
Layout
python-mvp/
├── ai_know/
│ ├── main.py # FastAPI app factory
│ ├── config.py # Pydantic Settings (env-driven)
│ ├── api/ # HTTP routers (health, events, memories, ...)
│ ├── core/ # Ingestor, extractor, arbitrator, ... (PR 3+)
│ ├── db/ # SQLAlchemy models + repositories (PR 2)
│ ├── schemas/ # Pydantic request/response schemas (PR 3+)
│ ├── providers/ # Embedding + LLM providers (PR 4+)
│ └── jobs/ # Background jobs (dream, consolidation) (PR 7+)
├── migrations/ # Alembic (PR 2)
├── tests/
│ ├── unit/ # No I/O
│ ├── integration/ # Needs Postgres / Redis (PR 2+)
│ └── evals/ # Mini evals (PR 8)
├── requirements.txt
├── pyproject.toml
├── Dockerfile
└── README.md
Quick start
From the ai-know repo root:
docker compose up --build
# One-shot: apply the schema.
docker compose exec api alembic upgrade head
curl http://localhost:8090/health
# → {"status":"ok","version":"0.1.0","environment":"dev"}
curl http://localhost:8090/health/ready
# → {"status":"ok",...,"database":"ok","redis":"ok"}
Host ports: API 8090, Postgres 5433, Redis 6380 (they coexist with Hermes on 8080/5432 and Claudio on 3001).
Local dev (no Docker)
cd src/backend/python-mvp
python3.11 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
export DATABASE_URL=postgresql+psycopg://ai_know:ai_know_dev@localhost:5433/ai_know
export REDIS_URL=redis://localhost:6380/0
alembic upgrade head
uvicorn ai_know.main:app --reload --port 8080
Tests
Unit only (no I/O):
pytest tests/unit -v
Integration (needs docker compose up):
# From inside the running api container:
docker compose exec api python -m pytest tests/integration -v
PR status (as of v0.1.0 tag)
| PR | Scope | Status | Tests |
|---|---|---|---|
| 1 | scaffold / FastAPI / health | ✅ done | – |
| 2 | DB migrations (9 tables + repos) | ✅ done | 14/14 |
| 3 | Events API | ✅ done | 44/44 |
| 4 | Episode + Claim extraction | ✅ done | 82/82 |
| 5 | Arbitration + consolidation | ✅ done | 109/109 |
| 6 | Context Pack builder | ✅ done | 149/149 |
| 7 | Feedback engine | ✅ done | 174/174 |
| 8 | Mini evals | ✅ done | 178/178 |
| 9 | Hermes adapter (dogfooding) | ✅ done | 187/187 |
| 10 | v0.1 release polish | ✅ done | 187/187 |
v0.1 backend RELEASE-READY. See the top-level CHANGELOG.md
for landing dates and commits. See ai_know/adapters/hermes.py
for the client-side SDK that lets hermes-agent (and any other host) talk
to this backend without reimplementing the wire contract.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hermes_ai_know-1.2.0.tar.gz.
File metadata
- Download URL: hermes_ai_know-1.2.0.tar.gz
- Upload date:
- Size: 305.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d9b803d661a366f13f16e99ce00f4915eb2630594d3c08c2e15251dce439f50e
|
|
| MD5 |
dcfbfaa6198cfbd59e3a2f5596cffc12
|
|
| BLAKE2b-256 |
5db7b70ce4da43883ef48099780729d8f853a29ff393e962007cfaa12c009b74
|
Provenance
The following attestation bundles were made for hermes_ai_know-1.2.0.tar.gz:
Publisher:
release.yml on darronyangpro-maker/AI-KNOW
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hermes_ai_know-1.2.0.tar.gz -
Subject digest:
d9b803d661a366f13f16e99ce00f4915eb2630594d3c08c2e15251dce439f50e - Sigstore transparency entry: 2217061834
- Sigstore integration time:
-
Permalink:
darronyangpro-maker/AI-KNOW@4654152e2bddeeed2d33fcb6d5302f0354ee8cf4 -
Branch / Tag:
refs/tags/v1.2.0 - Owner: https://github.com/darronyangpro-maker
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@4654152e2bddeeed2d33fcb6d5302f0354ee8cf4 -
Trigger Event:
push
-
Statement type:
File details
Details for the file hermes_ai_know-1.2.0-py3-none-any.whl.
File metadata
- Download URL: hermes_ai_know-1.2.0-py3-none-any.whl
- Upload date:
- Size: 389.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b903d8e320353f3272670ef91780bdb6116ebc377e9546d6ab20239984bd1ce0
|
|
| MD5 |
b2971f4ffd775eb4c05653606f9bac67
|
|
| BLAKE2b-256 |
f99435f384e6f75fb9fd90a16610e04022d488a996aa96c87af8562bd193df4f
|
Provenance
The following attestation bundles were made for hermes_ai_know-1.2.0-py3-none-any.whl:
Publisher:
release.yml on darronyangpro-maker/AI-KNOW
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hermes_ai_know-1.2.0-py3-none-any.whl -
Subject digest:
b903d8e320353f3272670ef91780bdb6116ebc377e9546d6ab20239984bd1ce0 - Sigstore transparency entry: 2217061866
- Sigstore integration time:
-
Permalink:
darronyangpro-maker/AI-KNOW@4654152e2bddeeed2d33fcb6d5302f0354ee8cf4 -
Branch / Tag:
refs/tags/v1.2.0 - Owner: https://github.com/darronyangpro-maker
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@4654152e2bddeeed2d33fcb6d5302f0354ee8cf4 -
Trigger Event:
push
-
Statement type: