LBrain coding-agents
Install LBrain where the agent already lives.
Claim your agent identity free at https://lbrain.ai
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.
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
- Abstain when the record does not bind
- SUPERSEDED does not govern
- Model swap, same mind
See lbrain_agents/share/cookbooks/.
Safety
- Merges only the
lbrainkey. Other MCP servers stay. - Backs up a config once as
*.lbrain-backupbefore the first write. - Does not set
LBRAIN_HOMEunless 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.
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 lbrain_coding_agents-0.1.2.tar.gz.
File metadata
- Download URL: lbrain_coding_agents-0.1.2.tar.gz
- Upload date:
- Size: 18.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9851f6c975bf81eb7e40eab2d1ee36f64cb3f1b27fc80c1a0eb929a2420a419a
|
|
| MD5 |
1ea5333bb9b997a96eba057e38a33647
|
|
| BLAKE2b-256 |
2d0bc82ee1c04a7d45a02a009d653fee5ce7ba138a1e05e2885a8f265ddbed8c
|
File details
Details for the file lbrain_coding_agents-0.1.2-py3-none-any.whl.
File metadata
- Download URL: lbrain_coding_agents-0.1.2-py3-none-any.whl
- Upload date:
- Size: 21.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4650a59c9a7ca48b28f7631b6c83829e5a2ad2816057e4b1c7b5291d1f16ea9d
|
|
| MD5 |
770c27d4711516ab95a33577cff569c4
|
|
| BLAKE2b-256 |
515dcada692ce0de4380c20ab407277fe37e761b2722f000c919dc7965d5c331
|