Skip to main content

Nowledge Mem — Bub Plugin

Bring your cross-tool knowledge into Bub, and share what you learn in Bub with every other tool.

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.

Install

pip install nowledge-mem-bub

Prerequisite: nmem CLI must be in your PATH:

pip install nmem-cli    # or: pipx install nmem-cli
# Arch Linux: yay -S nmem-cli  # or: paru -S nmem-cli
nmem status             # verify connection

Verify

uv run bub hooks        # should list nowledge_mem for system_prompt, build_prompt, save_state
uv run bub run "what was I working on this week?"

If you have existing knowledge in Nowledge Mem, the agent should find it through mem.search.

Tools

Tool What it does
mem.search Search knowledge from all your tools. Supports label and date filters.
mem.save Save a decision, insight, or preference so any tool can find it.
mem.context Read Context Bundle — identity, active scope, active rules, and Working Memory.
mem.connections Explore how a piece of knowledge relates to others across tools and time.
mem.timeline Recent activity grouped by day.
mem.forget Delete a memory by ID.
mem.threads Search past conversations from any tool.
mem.thread Read one small targeted message range (default 8); an explicit known offset is supported.
mem.status Connection and configuration diagnostics.

All tools work as Bub comma commands too: ,mem.search query=...

Bundled skill: The nowledge-mem skill teaches the agent when and how to use these tools effectively.

Bounded thread reads

Search memories or threads first, then choose the specific conversation and message range needed. Call mem.thread or nmem --json t show at most once per question, using a small message limit (for example 8) and a content limit of 1200 where supported. A known target range may use a nonzero offset once.

Never loop over offsets to reconstruct a conversation. Do not raise --content-limit to compensate for a slow or incomplete read. Small output limits do not guarantee cheap server-side work on every deployed backend. If a read is slow, incomplete, fails or times out, stop, report the evidence gap, and refine the search rather than retrying pages. A later explicit user request for another range is a new bounded read; a routine “continue” is not permission to drain the thread.

Configuration

No config needed for local use. The plugin reads ~/.nowledge-mem/config.json and environment variables automatically.

Customize without editing the plugin

Bub does not currently expose a dedicated user-owned instruction file through this package.

  • Use Bub's own runtime prompt or configuration surface if you need extra behavior guidance.
  • Keep connection and lane behavior in shared config or env vars.
  • Do not patch the installed Bub plugin files directly.
Variable Default What it does
NMEM_SESSION_CONTEXT false Inject Context Bundle + recalled knowledge each turn
NMEM_SESSION_DIGEST true Feed Bub conversations into Mem for other tools to find
NMEM_SPACE (unset) Ambient space lane for this Bub process
NMEM_API_URL (local) Remote Nowledge Mem server URL
NMEM_API_KEY (none) API key for remote access

Remote Access

// ~/.nowledge-mem/config.json
{
  "apiUrl": "https://your-server",
  "apiKey": "your-key"
}

Or use environment variables (NMEM_API_URL, NMEM_API_KEY), which override the config file.

Two Modes

Mode Config What happens
Default nothing The agent searches and saves on demand. Conversations flow into Mem for other tools to find.
Session context NMEM_SESSION_CONTEXT=1 Context Bundle and relevant knowledge injected automatically each turn.

Most users should start with the default.

If one Bub process naturally belongs to one project or agent lane, set NMEM_SPACE="Research Agent" before launch. All CLI-backed Context Bundle, search, save, and thread commands will then stay in that lane. Legacy NMEM_SPACE_ID still works for older setups.

Bub is process-scoped today: if you run multiple Bub agents that need different memory lanes, give each process its own NMEM_SPACE (or keep them on Default). Shared spaces, default retrieval, and agent guidance still come from Mem's shared /spaces profile.

Troubleshooting

nmem not found: Install with pip install nmem-cli or pipx install nmem-cli.

Plugin not loading: Run uv run bub hooks and check that nowledge_mem appears in the hook list.

Server not running: Start the Nowledge Mem desktop app, or run nmem status for diagnostics.


Made with care by Nowledge Labs

Metadata

Release files for nowledge-mem-bub 0.7.5

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

Source distribution (sdist)

Source distribution for nowledge-mem-bub 0.7.5
File Size Uploaded
nowledge_mem_bub-0.7.5.tar.gz 14.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for nowledge-mem-bub 0.7.5
File Interpreter ABI Platform
nowledge_mem_bub-0.7.5-py3-none-any.whl Python 3 none any Details

Total release size: 30.0 kB

Release files / nowledge_mem_bub-0.7.5.tar.gz

Download URL nowledge_mem_bub-0.7.5.tar.gz
Size 14.2 kB
Tags Source
SHA-256 checksum
How to use checksums
3251720399721c6fc8ae0f35015320983aa7f113648b12c8de190a118a04bab4
BLAKE2b-256 checksum
How to use checksums
f0df1ccc8f374424fa596f8f725f7c37255ef8b311ba2e1eab949b41c9e77e3a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 11, 2026.

Transparency log

Release files / nowledge_mem_bub-0.7.5-py3-none-any.whl

Download URL nowledge_mem_bub-0.7.5-py3-none-any.whl
Size 15.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d48298e226ccf35056a05355896524526b3ebba8a9c74f2b095ed8fe85c232a5
BLAKE2b-256 checksum
How to use checksums
ad195922526667bc7ed0cbee978e678ddb73d11bc2b569b3d7b0be4b5611b1f6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 11, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.7.5 This release

2 release files

0.7.4

2 release files

0.7.3

2 release files

0.7.2

2 release files

0.7.0

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

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