v13.40.0
Added 9
- Add `teambrain join <invite-link>` command to connect an install to a TeamBrain team using device-code sign-in behavior changed · inferred, marked in the notes below
- Add `teambrain status`, `teambrain share`, `teambrain leave`, and `teambrain start` commands
- Show a team brief at SessionStart for installs that belong to a team, including open collisions, recent plans and decisions, active members, and items delegated to the user
- Add read-only `team_brief` and `team_search` MCP tools for agents
- Sync the work-state tracker to the cloud as a `work_state` content kind when enabled by the sync server, keeping rows locally until then
- Add opt-in batching of queued events for the Claude observer
- Give the NOTES summary section in the viewer its own icon
- Clamp long prompts in the viewer behind a "Show more" disclosure
- Add opt-in generic credential redaction patterns and document the redaction settings
Changed 5
- Joining a TeamBrain team with a team seat keeps the member's local observer provider unchanged
- Make the implicit 90-day recency window for search configurable
- Spare a silent worker whose liveness heartbeat is fresh, for a bounded time
- Keep the day log open instead of re-opening it for each line
- Local database schema moves to v67 on first open; older builds refuse databases opened by newer builds behavior changed · inferred, marked in the notes below
Fixed 19
- Bundle Zod so cached Codex hooks load without node_modules
- Reject a Codex host root that lacks its dependencies in the hook resolver
- Finish Codex teardown before removing the private runtime
- Reject unparseable dateStart/dateEnd search parameters with 400 INVALID_DATE
- Validate search limit/offset parameters with 400 INVALID_PAGINATION
- Strip nested and overlapping memory tags for privacy
- Register an unknown project when hook payloads have no cwd
- Apply CLAUDE_MEM_SKIP_BASH_PATTERNS to the PowerShell tool
- Skip SessionEnd processing for sessions that are never tracked
- Fix hook spool delivery to remote workers
- Promote a merged-from project to a read key only for whole-project merges
- Keep CLAUDE.md/AGENTS.md symlinks when refreshing context files
- A trailing /** exclusion pattern also excludes the directory itself
- Preserve user's own Cursor hooks.json entries on install and uninstall
- Ad-hoc re-sign the compiled binary on macOS before the protocol probe
- Show help for install, update, uninstall and other action verbs instead of running them
- Keep every table's header when collapsing duplicate DSH rows
- Verify the tree-sitter CLI loads, not just that it exists
- Leave posthog-node's optional OpenTelemetry import unresolved in the build
2 changes to check, marked in the notes below
From claude-mem
What's new
TeamBrain from the terminal
npx claude-mem teambrain join <invite-link>connects this install to a TeamBrain team using the same device-code sign-in asinstall. You approve the device in the browser, then choose which projects to share. Also:teambrain status,teambrain share,teambrain leave,teambrain start. (#4815)- Members who join with a team seat keep their own local observer — joining never switches your observer provider.
- When an install belongs to a team, SessionStart adds a short team brief: open collisions in this project, recent plans and decisions, who else is active, and items delegated to you. Agents also get read-only
team_briefandteam_searchMCP tools. Installs that are not in a team see no change.
Work-state sync
- The agent's work-state tracker (
work_state_write/work_state_read) now syncs to the cloud as awork_statecontent kind, for accounts where the sync server enables it. Until then rows wait locally — they are never dropped. Devices that skipped work-state ops on older builds apply them once after upgrading. (#4569)
Also new
- The Claude observer can batch queued events (opt-in). (#4793)
- Viewer: the NOTES summary section has its own icon (#4776); long prompts clamp behind a "Show more" disclosure (#4765).
Fixes
- Codex: bundle Zod so cached hooks load without
node_modules(#4771); reject a host root without its dependencies in the hook resolver (#4766); finish teardown before removing the private runtime (#4792). - Search: reject an unparseable
dateStart/dateEndwith400 INVALID_DATE(#4786); validatelimit/offsetwith400 INVALID_PAGINATION(#4787); make the implicit 90-day recency window configurable (#4773). - Privacy: strip nested and overlapping memory tags (#4761); opt-in generic credential patterns, with the redaction settings documented (#4762).
- Ingest: register an unknown project when hook payloads have no cwd (#4774); apply
CLAUDE_MEM_SKIP_BASH_PATTERNSto the PowerShell tool (#4756). - Hooks: skip SessionEnd for sessions that are never tracked (#4780); fix hook spool delivery to remote workers (#4626).
- Worker: spare a silent worker whose liveness heartbeat is fresh, for a bounded time (#4794).
- Projects: promote a merged-from project to a read key only for whole-project merges (#4789).
- Context files: keep CLAUDE.md/AGENTS.md symlinks when refreshing context (#4784).
- Exclusions: a trailing
/**pattern also excludes the directory itself (#4785). - Cursor: preserve your own
hooks.jsonentries on install/uninstall (#4783). - Logger: keep the day log open instead of re-opening it per line (#4791).
- Launcher: ad-hoc re-sign the compiled binary on macOS before the protocol probe (#4781).
- CLI: show help for
install,update,uninstalland other action verbs instead of running them (#4767). behavior changed · inferred - DSH: keep every table's header when collapsing duplicate rows (#4790).
- Tree-sitter: verify the CLI loads, not just that it exists (#4777).
- Build: leave posthog-node's optional OpenTelemetry import unresolved (#4795).
Upgrade notes
- The local database schema moves to v67 on first open. Older builds refuse a database a newer build has opened (no downgrade), so update every install that shares
~/.claude-mem. behavior changed · inferred - If work-state sync is enabled for your account, your existing work-state history uploads once.
- Using claude-mem on more than one machine? Update all of them — builds older than v13.29.0 cannot skip sync content they don't recognize.