Skip to main content

LBrain coding-agents

Install LBrain where the agent already lives.

The free name is generic. Make it permanent: https://lbrain.ai/claim.html

Native MCP + companion skill + fail-closed session-start for Claude Code, Codex, Cursor, Copilot, Grok Build, Gemini CLI, Antigravity, and OpenClaw.

This package does not modify the LBrain engine. It wires hosts to lbrain mcp. The Official MCP Registry / VS Code @mcp gallery entry also execs that same stdio server.

VS Code: search LBrain in Extensions, or @mcp lbrain. Marketplace: https://marketplace.visualstudio.com/items?itemName=metavolve-labs.lbrain

Install the engine first

pip install "lbrain[local]"
lbrain init --source ~/notes
lbrain import && lbrain embed --stale

Wire your coding agents

pip install lbrain-coding-agents
python3 -m lbrain_agents status
python3 -m lbrain_agents install            # lists detections, changes nothing
python3 -m lbrain_agents install all        # every detected harness
python3 -m lbrain_agents install claude-code grok-build
python3 -m lbrain_agents install all --dry-run

A bare install is a no-op. That is deliberate: wiring every agent on the machine never happens by accident.

Paste to a desktop AI (no terminal)

Some people never open a shell. They paste this into Claude, Cursor, Codex, Copilot, or Grok and the agent does the work:

Install LBrain as my local memory.

pip install "lbrain[local]" lbrain-coding-agents
If python3 -m lbrain_agents works here, run: python3 -m lbrain_agents install all
Otherwise add an MCP server named lbrain: command lbrain, args ["mcp"], stdio.

Then call whoami. Prefer binds. Near-miss is not an answer. Abstain if nothing binds. SUPERSEDED must not govern. Leave LBRAIN_HOME alone if it is already set.

https://lbrain.ai/integrations.html

Existing lbrain MCP entries are left untouched unless you pass --force. Skills are copied to each host's skills directory. Session-start injects lbrain whoami (Claude Code).

Two-line wrap

from openai import OpenAI
from lbrain_agents.wrap import wrap_openai

client = wrap_openai(OpenAI(), home="~/.lbrain")

Recall first. If nothing binds, the model is told to abstain. Writes are opt-in (remember=True).

Agent Plugin

lbrain_agents/share/agent-plugin/ is a portable bundle (plugin.json + mcp.json + skill) for hosts that speak the Agent Plugins spec.

Cookbooks

  1. Abstain when the record does not bind
  2. SUPERSEDED does not govern
  3. Model swap, same mind

See lbrain_agents/share/cookbooks/.

Safety

  • Merges only the lbrain key. Other MCP servers stay.
  • Backs up a config once as *.lbrain-backup before the first write.
  • Does not set LBRAIN_HOME unless you pass --home. A working seat mount is not overwritten.
  • HTTP MCP is not enabled by this installer. stdio only. The engine's HTTP transport has no auth; do not bind it to the world.

What this package is not

This is the free installer and the serve-boundary skill. It is not LBrain Connect, Managed LBrain, or LBrain Govern. It does not issue gcx:// names, inscribe permanence, or ship study gold sets. The engine's resolver client is open; registrar issuance is not in this tree.

License

BSD-3-Clause. Metavolve Labs, Inc.

Patents pending. The licence covers the code; it does not grant patent rights.

Metadata

Release files for lbrain-coding-agents 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lbrain-coding-agents 0.1.3
File Size Uploaded Provenance
lbrain_coding_agents-0.1.3.tar.gz 18.7 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for lbrain-coding-agents 0.1.3
File Interpreter ABI Platform
lbrain_coding_agents-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 40.2 kB

Release files / lbrain_coding_agents-0.1.3.tar.gz

Download URL lbrain_coding_agents-0.1.3.tar.gz
Size 18.7 kB
Tags Source
SHA-256 checksum
How to use checksums
c37353e4082d7765047011e4ca5bf5d0ac3ba96129fda850125074a9cd94554a
BLAKE2b-256 checksum
How to use checksums
e98d9a56ac096c2d12bd400961f7a8c47e3f84dae11b8fb5b9536bbdbb090df0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.12

Release files / lbrain_coding_agents-0.1.3-py3-none-any.whl

Download URL lbrain_coding_agents-0.1.3-py3-none-any.whl
Size 21.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
96312b70143f5fcf1a0254f4a4164096dc317d22a61cec033ad8300f5502e4e7
BLAKE2b-256 checksum
How to use checksums
fc2a5eebbf1e0bebe327e95f7105b7cfffc40227d9a03ab08a33b295cb1120a3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.12

Security for lbrain-coding-agents 0.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page