Skip to main content

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 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.1.0.tar.gz (7.9 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.1.0-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

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

Hashes for openmneme-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ab6e245505d4388a82a397f6044c57995afa3b9a3f19afed2a5576673d901cc7
MD5 95950cae7a6fcc197d4abef2aca22acf
BLAKE2b-256 3a096d9f665e52b6e570359bb82deac59cbfdf6a23c6d47e505f280d3dfcfe9c

See more details on using hashes here.

Provenance

The following attestation bundles were made for openmneme-0.1.0.tar.gz:

Publisher: publish.yml on alanpaul1969/openmneme

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for openmneme-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 03e49e7008023b373b545cc637fc4da8186474494633dc8875d2778bb798bca7
MD5 e811eb40a34a59ac9d5a025f97e895ec
BLAKE2b-256 72b688cd4a97066fca9149d8eea14217dc3441941e9c151068ce6db821861d34

See more details on using hashes here.

Provenance

The following attestation bundles were made for openmneme-0.1.0-py3-none-any.whl:

Publisher: publish.yml on alanpaul1969/openmneme

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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