PugBase/Docs

Team Memory

A shared, human-reviewable memory for your workspace: AI agents connected over MCP save durable facts (decisions, conventions, gotchas) as notes, and every future AI session - anyone's - starts already knowing them.

Before you start

  • The workspace OWNER must be on the Pro plan or higher (Pro: 200 memories per workspace, Max: 500). On the free plan the feature is locked.
  • An AI agent must be connected over MCP - see the Claude Code installation guide. Memories are written and read through that connection.
  • The feature is ON by default for eligible workspaces. Nothing to install.

Turning it on / off

Workspace Settings -> AI tab. Only the workspace owner can flip the Team Memory switch; the same tab shows a live 'Memories used N / cap' counter.

The Team Memory switch and live usage counter in Workspace Settings, AI tab

Turned off: agents' save_memory calls are politely rejected, the review strip and sidebar badges disappear, and existing memory notes are kept read-only as ordinary notes. Every other MCP tool (docs, reports, reading notes) keeps working - turn it off freely if the workspace only uses MCP for docs or test reports.

Plan limits

Team Memory is a Pro-and-up feature, keyed on the workspace owner's plan. The cap is per workspace; updating an existing memory never counts against it.

FreeProMax
Memories per workspace200500

How it works day to day

  1. 1While working, an agent saves a durable fact (a human corrected it, the team settled a decision, a trap cost real time) with the save_memory tool. Each memory becomes a note in the Memory session, filed by type.
  2. 2An index note named MEMORY.md keeps one line per memory. At the start of every MCP session the server announces it, and the agent reads the index before its first task - opening an individual memory only when relevant, to keep token use low.
  3. 3Saving the same memory id again UPDATES that note (the old body goes to version history) instead of creating a duplicate.
  4. 4Secrets are rejected on write, and one memory is capped at 4,000 characters - long material belongs in a normal note with a reference memory pointing at it.

Reviewing what agents saved

New agent-saved memories show an amber strip at the top of the workspace until someone on the team has looked. Open one to read it, tick it to acknowledge, or use Mark all reviewed.

A memory is a normal note: edit or delete it and your version wins - agents always read the current note content. If an agent later updates a memory a human already reviewed, it returns to the review strip.

Verified vs unverified

Every memory is either VERIFIED (a person on the team confirmed it) or UNVERIFIED (an agent saved it, or PugBase drafted it from a failure). The MEMORY.md index lists verified memories first, grouped by type, and unverified ones under their own heading marked as hints - so an agent can tell a settled fact from a note nobody has looked at.

Owners can switch on 'Agents see verified memories only' in Workspace Settings, AI tab. Unverified memories then stay out of the index and out of recall_memory until someone reviews them. Use it when the team wants a human in front of every rule agents follow.

Drafts from QA and reviews

The lessons worth keeping are the ones that cost something, and agents forget to write those. So when QA reopens a task with a reason, or a reviewer requests changes on a local PR or a GitHub PR, PugBase drafts a feedback memory from that reason by itself. It arrives in the review strip labelled 'from QA' or 'from review' - keep it, edit it, or delete it.

The same reason coming back merges into the one draft and counts the recurrence; from the second time it is typed convention, because a repeated failure is a pattern, not a one-off.

Memories about code go stale - and say so

When an agent saves a memory about code, it can attach files (paths, folders or globs) and the commit it was true at. With the GitHub integration connected, every push is matched against those paths: a memory whose files changed is marked MAY BE STALE in the index, pushed down in recall results, and listed in the review strip with a 'still true' button.

Agents are told to run git log <commit>..HEAD -- <files> before relying on such a memory, and to re-save it with the same slug if the code moved - that clears the flag. Memories without files are never flagged automatically; they only expire when a human edits or deletes them.

Which memories actually help

When an agent ticks a task with mark_task_done or push_result it can cite the memory slugs that guided the work. Each cite counts a use; if QA later reopens that task, every memory cited on it takes a reopen. The index shows 'used 4x, reopened 1x' next to each memory, recall ranks well-used memories higher, and a memory that keeps getting reopened sinks - the team sees which memories are earning their place.

Finding the right memory for a task

recall_memory takes a few words about the task plus the files the agent is about to touch and returns the best matches with the reason each one ranked: term matches, 'about src/auth/session.ts', verified, may be stale, usage. No vector database - the ranking is word overlap plus the trust and usage signals above, which is enough for a few hundred memories and stays explainable.

Saving a memory whose title overlaps an existing one gets a warning naming the look-alike. It is not a block: if it is the same thing, re-save with the existing slug; if it is really different, reword the title so the two stay apart.

Saving a memory yourself

Select text in any note and press the brain button in the formatting toolbar. Pick a type (decision / convention / gotcha / feedback / reference) and save - human-saved memories skip the review strip.

Exporting to a repo file

Ask your agent to 'export team memory as CLAUDE.md' - the export_memories tool compiles every memory into one markdown document the agent can write into your repo. The notes in PugBase stay the live source of truth.

PugBase x Claude Code - plan it in PugBase, build it with Claude, review it together.