Skip to content

bm_recent: leave wiki projector files (index.md, log.md) out by default #2146

Open

Description

@phernandez

Problem

bm_recent returns the wiki projector's own files (index.md, log.md) alongside notes people and assistants wrote. The projector rewrites them after every accepted change, so in several projects they fill the recent list and make a project look active when no real note changed.

Seen from an assistant building a daily summary across a 13-project workspace (bm_feedback, 2026-11-20): projects with only projector churn ranked as the busiest, and the summary had to filter the files by name.

Proposal

Leave projector-owned files out of bm_recent by default. Keep an opt-in (for example include_system=true) for anyone who wants them.

Match on the projector-owned flag, not on file name: a user can write their own note called index.md, and that one should still appear.

Where

  • src/basic_memory/mcp/tools/projects.py (bm_recent)
  • src/basic_memory/mcp/tools/recent_activity.py
  • RESERVED_WIKI_FILENAMES and projector_owned in src/basic_memory/indexing/wiki_projector.py

Test

A project where the projector has rewritten index.md and log.md after a user edit: bm_recent returns the user's note and not the projector files, and returns both with the opt-in.

Activity

  1. added
    enhancement
    on Nov 22, 2026
  2. claude commented on Nov 22, 2026

    @claude
    Contributor

    Claude finished @phernandez's task in 10s —— View job


    Triage

    • Type: Enhancement (bm_recent default behavior change plus an opt-in flag)
    • Component: MCP tools (bm_recent in mcp/tools/projects.py and recent_activity.py). It is not a Cloud-specific issue.
    • Priority: Medium. This is a usability problem. Projector churn makes inactive projects look busy in cross-project summaries.
    • Complexity: Medium. The code is small, but the filter has to match on the projector-owned state, not the file name. The search found _is_projector_owned in index/local_wiki_projection.py, which checks content as well as name. The recent-activity query path may not have that state available yet, so that needs investigation first.
    • Duplicates: The search for bm_recent projector returned no matching issues.

    Notes for whoever picks this up:

    • Changing the default is a visible behavior change. It should be noted in the changelog and in the tool's manual page (bm man).
    • include_system is a reasonable name for the opt-in. The flag should also be documented in the tool signature.
    • The proposed test (a projector rewrite after a user edit, then checking bm_recent with and without the opt-in) is a good acceptance test. I'd add a case where a user-authored index.md still appears.

    Triage only. I haven't made any code changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions