Skip to main content

Primitives for local-first AI agents — slash-skill, plan-mode, reviewer-gate, RLM, provenance.

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 mattersreviewer_gate and rlm are async-native; slash_skill and plan_mode are 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.0prune() 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.2.0.tar.gz (11.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

openmneme-0.2.0-py3-none-any.whl (11.1 kB view details)

Uploaded Python 3

File details

Details for the file openmneme-0.2.0.tar.gz.

File metadata

  • Download URL: openmneme-0.2.0.tar.gz
  • Upload date:
  • Size: 11.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for openmneme-0.2.0.tar.gz
Algorithm Hash digest
SHA256 1d8850014e66998d1b34aa58e28f5df4a3d32cb451eccf7d699660be61c7e0bc
MD5 6919c159228a6bbbf34319505e27c697
BLAKE2b-256 feda8adc6ec28378d22af261d79910b07ee09bd6454dd0f2e487a16b244d605b

See more details on using hashes here.

File details

Details for the file openmneme-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: openmneme-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 11.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for openmneme-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a4fd6013ab50856b9cbb352296456b4c45ea3b85b85a607b0d0d49193c51ebc1
MD5 fd8b7381df7dc0b41548a4a5e2f002fd
BLAKE2b-256 15f57f2afce5f2e32092b62c08dc976315268cd3f8cf6bcec36052711de7bee4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page