|
| 1 | +# Nowledge Mem — Bub Plugin |
| 2 | + |
| 3 | +> Bring your cross-tool knowledge into Bub, and share what you learn in Bub with every other tool. |
| 4 | +
|
| 5 | +Bub records every session through its tape system. This plugin connects Bub to your personal knowledge graph in Nowledge Mem — so decisions from Claude Code, preferences from Cursor, and insights from ChatGPT are all searchable inside Bub. And what you learn in Bub flows back to every other tool. |
| 6 | + |
| 7 | +## Install |
| 8 | + |
| 9 | +```bash |
| 10 | +pip install nowledge-mem-bub |
| 11 | +``` |
| 12 | + |
| 13 | +**Prerequisite:** `nmem` CLI must be in your PATH: |
| 14 | + |
| 15 | +```bash |
| 16 | +pip install nmem-cli # or: pipx install nmem-cli |
| 17 | +nmem status # verify connection |
| 18 | +``` |
| 19 | + |
| 20 | +## Verify |
| 21 | + |
| 22 | +```bash |
| 23 | +uv run bub hooks # should list nowledge_mem for system_prompt, load_state, save_state |
| 24 | +uv run bub run "what was I working on this week?" |
| 25 | +``` |
| 26 | + |
| 27 | +If you have existing knowledge in Nowledge Mem, the agent should find it through `mem.search`. |
| 28 | + |
| 29 | +## Tools |
| 30 | + |
| 31 | +| Tool | What it does | |
| 32 | +|------|-------------| |
| 33 | +| `mem.search` | Search knowledge from all your tools. Supports label and date filters. | |
| 34 | +| `mem.save` | Save a decision, insight, or preference so any tool can find it. | |
| 35 | +| `mem.context` | Read today's Working Memory — focus areas, priorities, recent activity. | |
| 36 | +| `mem.connections` | Explore how a piece of knowledge relates to others across tools and time. | |
| 37 | +| `mem.timeline` | Recent activity grouped by day. | |
| 38 | +| `mem.forget` | Delete a memory by ID. | |
| 39 | +| `mem.threads` | Search past conversations from any tool. | |
| 40 | +| `mem.thread` | Fetch full messages from a conversation with pagination. | |
| 41 | +| `mem.status` | Connection and configuration diagnostics. | |
| 42 | + |
| 43 | +All tools work as Bub comma commands too: `,mem.search query=...` |
| 44 | + |
| 45 | +**Bundled skill:** The `nowledge-mem` skill teaches the agent when and how to use these tools effectively. |
| 46 | + |
| 47 | +## Configuration |
| 48 | + |
| 49 | +No config needed for local use. The plugin reads `~/.nowledge-mem/config.json` and environment variables automatically. |
| 50 | + |
| 51 | +| Variable | Default | What it does | |
| 52 | +|----------|---------|-------------| |
| 53 | +| `NMEM_SESSION_CONTEXT` | `false` | Inject Working Memory + recalled knowledge each turn | |
| 54 | +| `NMEM_SESSION_DIGEST` | `true` | Feed Bub conversations into Mem for other tools to find | |
| 55 | +| `NMEM_API_URL` | *(local)* | Remote Nowledge Mem server URL | |
| 56 | +| `NMEM_API_KEY` | *(none)* | API key for remote access | |
| 57 | + |
| 58 | +### Remote Access |
| 59 | + |
| 60 | +```json |
| 61 | +// ~/.nowledge-mem/config.json |
| 62 | +{ |
| 63 | + "apiUrl": "https://your-server:14242", |
| 64 | + "apiKey": "your-key" |
| 65 | +} |
| 66 | +``` |
| 67 | + |
| 68 | +Or use environment variables (`NMEM_API_URL`, `NMEM_API_KEY`), which override the config file. |
| 69 | + |
| 70 | +## Two Modes |
| 71 | + |
| 72 | +| Mode | Config | What happens | |
| 73 | +|------|--------|-------------| |
| 74 | +| **Default** | nothing | The agent searches and saves on demand. Conversations flow into Mem for other tools to find. | |
| 75 | +| **Session context** | `NMEM_SESSION_CONTEXT=1` | Working Memory and relevant knowledge injected automatically each turn. | |
| 76 | + |
| 77 | +Most users should start with the default. |
| 78 | + |
| 79 | +## Troubleshooting |
| 80 | + |
| 81 | +**nmem not found:** Install with `pip install nmem-cli` or `pipx install nmem-cli`. |
| 82 | + |
| 83 | +**Plugin not loading:** Run `uv run bub hooks` and check that `nowledge_mem` appears in the hook list. |
| 84 | + |
| 85 | +**Server not running:** Start the Nowledge Mem desktop app, or run `nmem status` for diagnostics. |
| 86 | + |
| 87 | +## Links |
| 88 | + |
| 89 | +- [Documentation](https://mem.nowledge.co/docs/integrations/bub) |
| 90 | +- [Discord](https://nowled.ge/discord) |
| 91 | +- [GitHub](https://github.com/nowledge-co/community/tree/main/nowledge-mem-bub-plugin) |
| 92 | + |
| 93 | +--- |
| 94 | + |
| 95 | +Made with care by [Nowledge Labs](https://nowledge-labs.ai) |
0 commit comments