Primitives for local-first AI agents — slash-skill, plan-mode, reviewer-gate, RLM, provenance, RSI.
Project description
openmneme
Primitives for local-first AI agents. Zero dependencies, pure stdlib.
v0.2.0 ships five primitives, mirrored in Python and JavaScript:
| Primitive | Purpose |
|---|---|
slash_skill |
/skill-name invocation protocol — first token is the tool call |
plan_mode |
Read-only pre-execution planning gate (enter / write / exit) |
reviewer_gate |
Blind adversarial audit, fire-and-forget, parallel reviewers |
rlm |
Artifact-by-reference with TTL — store big blobs, pass tiny refs to LLM |
provenance |
Content-addressed lineage DAG, append-only audit trail |
Install
pip install openmneme
Quick start
from openmneme import slash_skill, plan_mode, reviewer_gate, rlm
import asyncio
# 1. Slash-skill
print(slash_skill.parse("/weather Tokyo")) # -> 'weather'
print(slash_skill.args_after("/weather Tokyo")) # -> 'Tokyo'
# 2. Plan mode
p = plan_mode.Plan(session_id="s1")
p.enter("migrate ingest").write(["read schema", "write migrator", "smoke test"]).exit(True)
# 3. Reviewer gate
async def my_reviewer(text):
return reviewer_gate.ReviewVerdict(clean=True, issues=[], reviewer="haiku")
verdict = asyncio.run(reviewer_gate.gate("see fig. 1 et al.", [my_reviewer]))
# 4. Artifact store (RLM)
store = rlm.ArtifactStore() # ~/.openmneme/artifacts
art = store.register("s1", b"col1,col2\n1,2\n", "csv", "tiny table")
print(art.short_ref()) # -> 'art:26028620 [csv, 18B, 0h, "tiny table"]'
data = store.resolve("s1", art.id) # -> b'col1,col2\n1,2\n'
Design
- No dependencies — pure stdlib for Python, zero deps for JS.
- Async where it matters —
reviewer_gateandrlmare async-native;slash_skillandplan_modeare sync. - Errors as values — each primitive raises a typed exception (e.g.
SkillNotFound,PlanError,ArtifactNotFound). - Cross-language symmetry — Python and JS expose the same method names.
Roadmap
- v0.2.0 —
prune()cron hook, reviewer pool presets (haiku / sonnet / opus), Hermes skill bridge. - v0.3.0 — Provenance DAG (artifact → review → plan chain), remote artifact store.
- v1.0.0 — Stable API, real-world integrations (Hermes, AutoPKM, OpenScience).
License
Apache-2.0
Links
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
openmneme-0.3.0.tar.gz
(15.1 kB
view details)
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
openmneme-0.3.0-py3-none-any.whl
(14.3 kB
view details)
File details
Details for the file openmneme-0.3.0.tar.gz.
File metadata
- Download URL: openmneme-0.3.0.tar.gz
- Upload date:
- Size: 15.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8018e6708741931f3b98c2331fb5f1ecbfee87d8873038b102aa82e97fc777be
|
|
| MD5 |
0eee89fcdcd1f295f994c16e92ff1a00
|
|
| BLAKE2b-256 |
5e0a2278b265d396c21185a39cee3a02cfb384afe1454cc72621b864c3c4a5b6
|
File details
Details for the file openmneme-0.3.0-py3-none-any.whl.
File metadata
- Download URL: openmneme-0.3.0-py3-none-any.whl
- Upload date:
- Size: 14.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f6a5ebaf8d4c4fd4e1e29bbc4699008a433aa7194fc1202d08571f280f3c781d
|
|
| MD5 |
da5f17d750f1fc50a67b9691a942f941
|
|
| BLAKE2b-256 |
245a12e4458577eeea111dc0df22e0c86b9f2e47dc94149af8cfd5e2fd9a88dc
|