Primitives for local-first AI agents — slash-skill, plan-mode, reviewer-gate, RLM.
Project description
openmneme
Primitives for local-first AI agents. Zero dependencies, pure stdlib.
v0.1.0 ships four 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 |
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
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 openmneme-0.1.0.tar.gz.
File metadata
- Download URL: openmneme-0.1.0.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ab6e245505d4388a82a397f6044c57995afa3b9a3f19afed2a5576673d901cc7
|
|
| MD5 |
95950cae7a6fcc197d4abef2aca22acf
|
|
| BLAKE2b-256 |
3a096d9f665e52b6e570359bb82deac59cbfdf6a23c6d47e505f280d3dfcfe9c
|
Provenance
The following attestation bundles were made for openmneme-0.1.0.tar.gz:
Publisher:
publish.yml on alanpaul1969/openmneme
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
openmneme-0.1.0.tar.gz -
Subject digest:
ab6e245505d4388a82a397f6044c57995afa3b9a3f19afed2a5576673d901cc7 - Sigstore transparency entry: 2101161445
- Sigstore integration time:
-
Permalink:
alanpaul1969/openmneme@500ecaea48d5c079ce3627a1e4326d0ed4cf7c47 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/alanpaul1969
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@500ecaea48d5c079ce3627a1e4326d0ed4cf7c47 -
Trigger Event:
push
-
Statement type:
File details
Details for the file openmneme-0.1.0-py3-none-any.whl.
File metadata
- Download URL: openmneme-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
03e49e7008023b373b545cc637fc4da8186474494633dc8875d2778bb798bca7
|
|
| MD5 |
e811eb40a34a59ac9d5a025f97e895ec
|
|
| BLAKE2b-256 |
72b688cd4a97066fca9149d8eea14217dc3441941e9c151068ce6db821861d34
|
Provenance
The following attestation bundles were made for openmneme-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on alanpaul1969/openmneme
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
openmneme-0.1.0-py3-none-any.whl -
Subject digest:
03e49e7008023b373b545cc637fc4da8186474494633dc8875d2778bb798bca7 - Sigstore transparency entry: 2101161635
- Sigstore integration time:
-
Permalink:
alanpaul1969/openmneme@500ecaea48d5c079ce3627a1e4326d0ed4cf7c47 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/alanpaul1969
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@500ecaea48d5c079ce3627a1e4326d0ed4cf7c47 -
Trigger Event:
push
-
Statement type: