beme

module
v0.1.0-alpha.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 22, 2026 License: MIT

README

Be Me

A local-first, harness-independent, provenance-aware personal execution-context runtime. Be Me turns trusted personal operating principles, approved reusable knowledge, project policy, and bounded historical evidence into scope-safe, inspectable ContextPack objects for AI coding agents.

Give an agent the right, authorized evidence about how you work and decide — without inventing preferences, leaking unrelated data, or making you restate context on every session.

Project film

https://github.com/user-attachments/assets/78a1214e-08c6-47f5-8d94-e50f5df6cbd0

An illustrative project film about capability-bound evidence selection and a provenance-aware ContextPack for a coding decision. It uses reconstructed visuals and synthetic examples, not a live screen recording; adapter guidance remains advisory.

What Be Me is

  • A context runtime: it resolves what an agent should know before a material decision into a versioned, provenance-aware JSON pack.
  • Capability-bound: privacy is bound to immutable serving capabilities (personal, work-safe), never to model requests.
  • Two-stage: hard policy/scope eligibility runs first; relevance ranking second. The model can never widen its own authority.
  • Local-first: no cloud service is required; MCP is served over stdio only.

What Be Me is not

  • Not a personality clone or style emulator.
  • Not an agent, orchestrator, or reasoning loop.
  • Not a chat-history dump, transcript importer, vector database, or knowledge graph.
  • Not a replacement for your canonical knowledge repositories or session- continuity tooling — Be Me reads them through adapters and never takes ownership.

V2: second brain

The same beme executable now includes the existing V2 plain-Markdown work memory: decisions, open work, summaries and learnings; gated capture, Brain Doctor, snapshots/restore/freeze, bounded briefings and optional harness hooks. Notes remain non-canonical and do not enter V1 ContextPacks. The newer runtime, privacy ledger, retrieval and evaluation tooling are preserved. See docs/BRAIN.md, ADR-033–035, and docs/HANDOFF.md §1 for candidate verification and limits. Independent review and parent production-path replays closed the tracked audit defects, including two corrective cycles (ADR-036–040). The accepted integration is committed and proposed in PR #3. A separately authorized local rollout verified installed CLI and fresh MCP connections; that does not establish native model consumption or user benefit. Generated answers remain grading_pending until independent grade import; synthetic grades never establish live benefit. See EVALUATION_USAGE.md for the frozen-split and grading protocol.

Status

Alpha source version: v0.1.0-alpha.2. Contracts, context runtime, narrow MCP surface, CLI, learning review and non-canonical work memory are implemented. The GitHub releases list is the authority for published versions and downloadable assets; a source version alone is not a publication claim. See docs/HANDOFF.md §1 for current evidence and docs/ROADMAP.md for work-package state. Adapters remain advisory and live-model benefit is unmeasured. Release verification and the commit/push/versioned-package policy are documented in RELEASE_VERIFICATION.md.

beme/
├── docs/        # constitution, requirements, architecture, decisions, evaluation
├── schemas/     # versioned JSON contracts (source, record, policy, pack, eval)
├── internal/    # Go runtime: policy, resolver, storage, ingestion, workspace, learning
├── cmd/beme/    # CLI + MCP stdio server
├── adapters/    # harness adapter assets (Codex, Claude Code, Hermes, Cursor)
├── evals/       # public evaluation assets (synthetic cases, privacy invariants)
├── testdata/    # synthetic fixtures + negative/injection fixtures
├── scripts/     # contract validation tooling
└── examples/    # synthetic deployment examples

Quick start (validation from a clean checkout)

# 1. Python deps for contract validation (Python 3.11+; isolated venv —
#    never modify your system Python):
python3 -m venv .venv
.venv/bin/pip install jsonschema pyyaml

# 2. Public contract validation (repo-local; runs on any clean checkout):
PATH="$PWD/.venv/bin:$PATH" make validate

# 3. Go build + tests (Go 1.25+):
go build ./... && go test ./...

If your system python3 is older than 3.11, use any Python 3.11+ interpreter explicitly (e.g. python3.13 -m venv .venv). See docs/DEVELOPMENT.md for the full environment guide and the owner-gated private-evaluation workflow.

Install and first deployment

Install options, in order of preference. No Homebrew tap is provided yet.

  1. Recommended: release archive. Download the archive for your platform and SHA256SUMS from the GitHub releases, verify both, extract, and put beme on your PATH (details: Verifying a downloaded release):

    shasum -a 256 -c SHA256SUMS --ignore-missing   # Linux: sha256sum -c SHA256SUMS --ignore-missing
    gh attestation verify beme_0.1.0-alpha.2_<os>_<arch>.tar.gz --repo 0merUfuk/beme
    tar -xzf beme_0.1.0-alpha.2_<os>_<arch>.tar.gz   # Windows: extract the .zip
    
  2. go install a tagged version (Go 1.25+):

    go install github.com/0merUfuk/beme/cmd/beme@v0.1.0-alpha.2
    
  3. Build from source for development (Go 1.25+, from a checkout):

    go install ./cmd/beme ./cmd/beme-bench ./cmd/beme-eval ./cmd/beme-threat-corpus
    export PATH="$(go env GOPATH)/bin:$PATH"   # or set GOBIN to a directory on PATH
    

Then run the health check:

beme doctor            # health check; it names what is missing

A fresh deployment has no sources: registration is a file-authoring act (it is the trust act — Be Me has no command that registers a source for you). See Registering a source in docs/OPERATIONS.md, which also covers the lifecycle (build, preview, forget, purge, candidate), platform directories, and ledger backup and key custody. Harness/MCP setup is in docs/INTEGRATIONS.md.

Documentation

Start at docs/PROJECT_CONTEXT.md. Read order and contribution rules are in AGENTS.md and docs/DEVELOPMENT.md.

License

MIT. This project is in a pre-release state; no compatibility commitments exist yet.

Directories

Path Synopsis
cmd
beme command
Command beme is the administrative CLI (blueprint §12.2): source and profile lifecycle, preview, explain, doctor, forget, serve.
Command beme is the administrative CLI (blueprint §12.2): source and profile lifecycle, preview, explain, doctor, forget, serve.
beme-bench command
Command beme-bench runs the NFR-008 performance benchmark on the public synthetic seed corpus and writes a JSON evidence report.
Command beme-bench runs the NFR-008 performance benchmark on the public synthetic seed corpus and writes a JSON evidence report.
beme-eval command
Command beme-eval is the owner procedure for running the evaluation runner (internal/evalrunner) against a real deployment and a golden-case corpus.
Command beme-eval is the owner procedure for running the evaluation runner (internal/evalrunner) against a real deployment and a golden-case corpus.
beme-threat-corpus command
Command beme-threat-corpus runs the deterministic privacy/policy threat corpus — every blueprint §19 case plus the supplementary purge-reliability cases — and reports passed | failed | not_run per case.
Command beme-threat-corpus runs the deterministic privacy/policy threat corpus — every blueprint §19 case plus the supplementary purge-reliability cases — and reports passed | failed | not_run per case.
internal
app
Package app wires config, sources, projections, and resolution into the runtime the CLI and MCP server drive.
Package app wires config, sources, projections, and resolution into the runtime the CLI and MCP server drive.
benchmark
Package benchmark is the reproducible performance harness for NFR-008.
Package benchmark is the reproducible performance harness for NFR-008.
bootstrap
Package bootstrap exposes the canonical managed bootstrap text that the adapter installer writes into harness instruction files and that the evaluation runner gives to every bootstrap-bearing arm (B1–B4, ablations).
Package bootstrap exposes the canonical managed bootstrap text that the adapter installer writes into harness instruction files and that the evaluation runner gives to every bootstrap-bearing arm (B1–B4, ablations).
brain
Package brain is the V2 second-brain layer (ADR-033): a plain-markdown work-memory vault that carries decisions, open work, work summaries, and learnings across agent sessions.
Package brain is the V2 second-brain layer (ADR-033): a plain-markdown work-memory vault that carries decisions, open work, work summaries, and learnings across agent sessions.
contracts
Package contracts defines the core domain types of Be Me.
Package contracts defines the core domain types of Be Me.
durable
Package durable provides crash-durability, erasure, and inter-process locking primitives for Be Me's enforcement state (ADR-027 §5).
Package durable provides crash-durability, erasure, and inter-process locking primitives for Be Me's enforcement state (ADR-027 §5).
evalrunner
Package evalrunner implements validated, split-bound generation/retrieval and independent offline grading.
Package evalrunner implements validated, split-bound generation/retrieval and independent offline grading.
evalrunner/evalfixture
Package evalfixture builds the public synthetic deployment and golden case the evaluation runner's tests (and cmd/beme-eval's tests) use.
Package evalfixture builds the public synthetic deployment and golden case the evaluation runner's tests (and cmd/beme-eval's tests) use.
ingestion
Package ingestion reads registered source content safely.
Package ingestion reads registered source content safely.
learning
Package learning implements the observation → candidate → batch-review pipeline (blueprint §14, FR-050–055, ADR-010).
Package learning implements the observation → candidate → batch-review pipeline (blueprint §14, FR-050–055, ADR-010).
policy
Package policy implements the non-bypassable Stage-A eligibility gate (blueprint §9.1, ADR-007).
Package policy implements the non-bypassable Stage-A eligibility gate (blueprint §9.1, ADR-007).
privacycorpus
Package privacycorpus implements the deterministically testable threat cases from the blueprint's §19 ship-blocking list and the P1–P18 invariant groups of evals/EVALUATION_CONTRACT.md §7.
Package privacycorpus implements the deterministically testable threat cases from the blueprint's §19 ship-blocking list and the P1–P18 invariant groups of evals/EVALUATION_CONTRACT.md §7.
projection
Package projection adapts storage stores to the resolver's read interface, and builds projections from registered sources.
Package projection adapts storage stores to the resolver's read interface, and builds projections from registered sources.
resolver
Package resolver implements Stage B: facet classification, candidate retrieval, lexicographic precedence (§9.2), conflict preservation, budgeting, unknowns, and ContextPack emission.
Package resolver implements Stage B: facet classification, candidate retrieval, lexicographic precedence (§9.2), conflict preservation, budgeting, unknowns, and ContextPack emission.
storage
Migrations: versioned, atomic, rollback-aware schema evolution for projection stores (FR-064).
Migrations: versioned, atomic, rollback-aware schema evolution for projection stores (FR-064).
workspace
Package workspace implements trusted workspace identity resolution (blueprint §8.7, FR-014).
Package workspace implements trusted workspace identity resolution (blueprint §8.7, FR-014).
schemas

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL