Tools
Knowledge Gbrain Scribe
Learn from GBrain: a plugin that teaches an OpenClaw agent's Knowledge from the pages of its GBrain brains.
Install
openclaw plugins install @theangrypit/knowledge-gbrain-scribe
README
# Learn from GBrain 🧠 — your agent reads your brain so you don't repeat yourself
[](https://github.com/TheAngryPit/knowledge-gbrain-scribe/blob/main/package.json)
[](LICENSE)
An OpenClaw plugin that teaches an agent's Knowledge from the pages of its GBrain brains, once or as they change. For people who keep their notes in [GBrain](https://github.com/garrytan/gbrain) and want their OpenClaw agent to know what those notes say.
| | |
| --- | --- |
| Plugin type | Code plugin, ClawHub family `code-plugin` |
| Category | `memory` |
| Plugin id | `gbrain-scribe` |
| Adds | A **Learn from GBrain** page in the Control UI sidebar, and the `knowledge-gbrain-ingest` agent skill |
| Needs | OpenClaw 2026.12.1 or later, the bundled Knowledge plugin, and a GBrain brain the agent reaches over MCP |
| Changes GBrain | Never. It only reads pages (`list_pages`, `get_page`). |
## Install
```sh
openclaw plugins install @theangrypit/knowledge-gbrain-scribe
```
From a local build instead: run `bun run pack`, then `openclaw plugins install npm-pack:<path to the .tgz it wrote>`.
## Quick start
1. Turn on Knowledge. Vanilla OpenClaw ships it off.
```sh
openclaw plugins enable knowledge
openclaw gateway restart
```
2. Connect GBrain to your agent as an MCP server whose tools include `list_pages` and `get_page`. Over HTTP use `gbrain serve --http ... --advertise full`; over stdio use `--advertise full`, with only one client of a PGLite brain.
3. Send the agent any message, so it connects the server.
4. Open the Control UI, then **Learn from GBrain** in the sidebar. Pick the agent, tick the brain, choose **Keep learning** and press **Start**.
The page shows **Starting**, then **On** once the first run has imported pages. Each run reads up to 15 pages with the model and imports the rest in code. When no page is left, it checks again in an hour.
## Learn once or keep learning
Both work the way the bundled Knowledge scribes do. Start opens (or reuses) a conversation named "Scribe · Learn from GBrain".
- **Keep learning** declares one automation (declaration key `knowledge:scribe:gbrain`) and runs it now. **Start again** updates that automation in place. Pause, Resume, Run now and Turn off act on it from the page.
- **Learn once** sends one run into the conversation. Nothing is scheduled.
The page shows one state: Not started, Starting, On, Paused, Failing, Needs attention or Done. Each run ends with a line of counts, such as pages read, imported and remaining, and never with page content.
Keep learning, Pause, Run now and Turn off need the `operator.admin` scope. Learn once needs write access only.
## Which brains it reads
The page lists every MCP server of the agent that has both `list_pages` and `get_page`. On the Codex runtime OpenClaw never lists MCP tools, only servers that have not connected yet, so the page offers those and the first run checks them. It ticks the ones named like GBrain.
Start names the ticked brains in the run, so a brain you connect later needs **Start again**.
## Runtimes
The import program runs in OpenClaw's Code Mode or in Codex's own exec, the default with an OpenAI sign-in. In Codex it also needs the shell tool (`exec_command`) for its page reader.
What the plugin does not do, or does in a way you might not expect: [docs/limits.md](docs/limits.md).
## Development
```sh
bun install
bun run typecheck && bun run lint && bun run test
bun run build && bun run validate
bun run pack
```
`bun run pack` builds `dist/`, checks that every referenced file is in the tarball and that its entry loads, then writes the tarball for ClawHub. [RULES.md](RULES.md) maps each rule to what enforces it. The skill scripts are tested against an in-memory fake Knowledge vault in `test/`.
## License
[MIT](LICENSE)
tools
Comments
Sign in to leave a comment