Skip to content

feat(ai): give every agent brain tools through MCP, CLI and skill #4671

Done

Description

@dan-petty

Problem or Motivation

The owner (2026-11-11): "we also need to make sure all agents have access to skills and/or tools to search, add, read, and update the project brain when appropriate."

The brain plan (tracker #4624) fills a brain index in Valkey from the alternatives check and runs daily and weekly upkeep tasks. It gives the alternatives check a digest, but it gives no other agent a way to use the brain. Today the agents that would read or add project insights are:

  • workstation agents: Claude Code, Kilo, Gemini and Copilot sessions in this repository;
  • the implement Coder in the runner Jobs (pydantic-ai, with its own toolsets);
  • the Service model jobs: refine, stage and alternatives.

An agent that finds a cross-item insight, a tool decision or a good reference implementation has no place to record it, and the next agent does not see it.

Proposed Solution & Architectural Design

One brain service module with four operations: search, read, add and update. It serves three standard surfaces, with no custom logic for each agent:

  1. CLI: devops brain search|show|add|update, with --json and --dry-run (a dry run makes no request).
  2. MCP: a lazy brain tool domain on the existing devops-cli MCP server (src/devops_cli/ai/mcp/server.py, domains and roles in roles.py): read tools for every role, and add and update for agent roles. Pods use the remote mode of the same server. The implement Coder and the Service model jobs connect with the pydantic-ai MCP client, or get the same functions as one toolset.
  3. Skill: one project-brain skill in .agents/skills, copied to the other agent roots by the same means as the other skills. It says when to search (before planning a change, before choosing a tool, before filing an issue) and when to add (a cross-item insight, a tool decision with an ADR, a checked reference implementation), and that each entry needs its sources.

Rules for writes:

  • An add or an update is a proposal. The brain upkeep tasks (evaluate, consolidate; they come with feat(roadmap): run brain repair, consolidate and evaluate daily #4687, which is open) accept, merge or refuse it, so the brain index keeps one writer (ADR 0021).
  • Each proposal records who wrote it, when, and its source links. An accepted entry gets its durable copy, as other derived insights do.
  • A proposal holds no secret. A proposal about a private repository stays in that repository's scope (the ACL users of valkey-roadmap exist since feat(k8s): add the valkey-roadmap instance, its setting and ACL users #7294: brain reads and writes roadmap:v1:brain-*, and agent only reads them, src/devops_cli/k8s/cluster_secrets.py:83; the index holds no entry of a private repository).
  • Reads use the two tiers of the brain and fall back to the local tier when Valkey is down. Each tier timeout is shorter than the call around it.

Target Subsystem

src/devops_cli/roadmap/ (the brain index of #4676 is brain_entries.py, brain_index.py and brain_sync.py there; no src/devops_cli/brain/ exists), src/devops_cli/commands/, src/devops_cli/ai/mcp/ (server.py, roles.py), .agents/skills/, the implement and stage toolsets.

Existing Tool Considered

The Model Context Protocol server that the project already runs, its lazy domains and roles, the pydantic-ai MCP client, and the skill format that the agent harnesses already read. The only new code is the thin brain service module and its CLI and MCP bindings.

Acceptance criteria

  • devops brain search "<text>" --json returns ranked entries with their sources. With Valkey down, it returns the local-tier result and says so.
  • The MCP server lists the brain domain after hydrate_tool_domain brain. A read role gets search and read only; an agent role also gets add and update.
  • An add through the CLI or MCP creates a proposal with author, time and source links, and the next upkeep run accepts or refuses it with a reason in its audit trail.
  • The implement Coder and the stage planner can call brain search in a test with a fake brain.
  • The project-brain skill exists in every agent skill root, and a test checks that the copies are equal.

Dependencies

Related

The brain ACL item, the generalization plan (skills generated for each agent root).

Source: 4624

Alternatives check of 2026-11-26: partly.
Tool: doobidoo/mcp-memory-service (https://github.com/doobidoo/mcp-memory-service), Apache-2.0, last activity 2026-11-26, maintained.
Reason: Web searches returned nothing usable, but the memory backend the issue records, doobidoo/mcp-memory-service, gives agents shared search, store and retrieve over MCP; it lacks the Valkey index, tier fallback, upkeep-gated proposals, repo scope, secret check and devops CLI.

Covers:

  • MCP server with shared memory store, semantic search and retrieve
  • REST API, CLI and OAuth so every agent surface uses one service
  • Knowledge graph, consolidation and per-agent scoped retrieval

Lacks:

  • No Valkey brain index, two cache tiers or local-tier fallback
  • No proposal queue where scheduled upkeep is the single writer
  • No per-repository ACL scope or secret check before write
  • No devops brain CLI domain or project-brain skill copies

Proposed design

Problem statement

Agents can find cross-item insights, tool decisions and reference implementations, but they have no shared place to record or read them. The brain index from #4624 stores the alternatives findings, but no CLI, MCP tool or skill lets workstation agents, the implement Coder or the Service model jobs use it. This issue adds one brain service with search, show, add and update. It exposes the service through the devops CLI, a lazy MCP brain domain and a project-brain skill. It wires the implement Coder and the stage planner to the service.

Acceptance criteria

Requirement: CLI search returns ranked entries

The devops brain search command SHALL return ranked brain entries with their sources as JSON.

Scenario: Search with valkey-roadmap up

  • WHEN A test seeds two brain entries in a fake valkey-roadmap and runs devops brain search "token budget" --json.
  • THEN The command exits 0 and prints the two entries in rank order with their sources.

Requirement: CLI search falls back to the local tier

The devops brain search command SHALL return the local-tier cached result and state the fallback when valkey-roadmap is down.

Scenario: Search with valkey-roadmap down

  • WHEN A test puts one cached result in the local tier, sets the valkey-roadmap client to fail, and runs devops brain search "token budget" --json.
  • THEN The command exits 0, prints the cached entry and marks the result as a local-tier fallback.

Requirement: CLI search reports an empty index

The devops brain search command SHALL return an empty list and mark the brain index unavailable when valkey-roadmap is down and the local tier holds no cached result.

Scenario: Search with no tier

  • WHEN A test sets the valkey-roadmap client to fail and leaves the local tier empty, then runs devops brain search "token budget" --json.
  • THEN The command exits 0, prints an empty list, and marks the brain index as unavailable.

Requirement: CLI show reads one entry

The devops brain show command SHALL return one brain entry with its sources as JSON.

Scenario: Show one entry

  • WHEN A test stores one brain entry in the fake brain and runs devops brain show <id> --json.
  • THEN The command exits 0 and prints the entry with its sources.

Requirement: CLI dry run makes no request

Each devops brain command SHALL make no request when --dry-run is set.

Scenario: Dry-run add

  • WHEN A test runs devops brain add --dry-run with a fake brain client.
  • THEN The command exits 0, prints the proposal plan, and the fake client records no read and no write.

Requirement: MCP brain domain lists tools by role

The stdio MCP server SHALL list the brain domain after hydrate_tool_domain brain, and each job role server SHALL expose only the read-only brain tools.

Scenario: Hydrate the brain domain and build a role server

  • WHEN A test calls hydrate_tool_domain brain on the stdio server and builds the implementation role server.
  • THEN The stdio server lists brain_search, brain_show, brain_add and brain_update, and the implementation server lists brain_search and brain_show only.

Requirement: Brain writes create proposals

Each brain add or update through the CLI or MCP SHALL create a pending proposal with author, time, source links and repository scope.

Scenario: Add through the CLI

  • WHEN A test runs devops brain add --json with a fake brain store, one source link and the repository scope owner/repo.
  • THEN The stored proposal has the author, a timestamp, the source link and the scope, and its state is pending.

Requirement: Upkeep accepts or refuses a proposal with a reason

The next brain upkeep run SHALL accept or refuse each pending proposal and SHALL write the reason to its audit trail.

Scenario: Upkeep refuses an unsourced proposal

  • WHEN A test runs the upkeep accept step on a pending proposal with no source link.
  • THEN The proposal state is refused, the brain-events audit trail has a reason, and no durable brain entry is written.

Requirement: Accepted proposal gets a durable copy

The brain upkeep SHALL write the durable copy of each accepted proposal.

Scenario: Upkeep accepts a sourced proposal

  • WHEN A test runs the upkeep accept step on a pending proposal with one source link.
  • THEN The proposal state is accepted, the brain-events audit trail has a reason, and a durable brain entry holds the proposal text and source link.

Requirement: Implement Coder calls brain search

The implement Coder toolset SHALL call brain_search against a fake brain in a test.

Scenario: Coder brain search test

  • WHEN A test builds the implement Coder toolset with a fake MCP server that returns one brain entry and calls the toolset's brain_search.
  • THEN The toolset returns the one entry and the test records one brain_search call.

Requirement: Implement Coder writes a proposal

The implement Coder SHALL call brain_add and brain_update through an in-process toolset that reaches the brain service.

Scenario: Coder brain add and update test

  • WHEN A test builds the implement Coder with a fake brain service, calls brain_add with one source link, and calls brain_update for an existing entry.
  • THEN The fake brain service holds one pending proposal for the add and one pending proposal for the update, each with the author and the source link.

Requirement: Stage planner calls brain search

The stage planner toolset SHALL call brain_search against a fake brain in a test.

Scenario: Stage planner brain search test

  • WHEN A test builds the stage planner toolset with a fake MCP server that returns one brain entry and calls the toolset's brain_search.
  • THEN The toolset returns the one entry and the test records one brain_search call.

Requirement: Project-brain skill copies are equal

The project-brain skill SHALL exist in .claude/skills, .agents/skills and .kilocode/skills with identical SKILL.md text.

Scenario: Skill copy check

  • WHEN A test reads project-brain/SKILL.md from each of the three skill roots.
  • THEN Each root has the file and all three texts are equal.

Requirement: Project-brain skill names its triggers

The project-brain skill SHALL name the search triggers, the add triggers and the source requirement.

Scenario: Skill text check

  • WHEN A test reads project-brain/SKILL.md from .agents/skills.
  • THEN The text names planning a change, choosing a tool and filing an issue as search triggers, names a cross-item insight, a tool decision with an ADR and a checked reference implementation as add triggers, and requires sources for each entry.

Requirement: Brain add refuses a secret

A brain add or update SHALL refuse a proposal that contains a detected secret.

Scenario: Add with an AWS key id

  • WHEN A test runs devops brain add with a body that contains an AWS access key id in the documented example form, which the test builds at run time.
  • THEN The command exits nonzero and the fake brain store holds no proposal.

Requirement: Private repository proposal stays scoped

A brain proposal from a private repository SHALL be returned only in that repository's scope.

Scenario: Search from another repository

  • WHEN A test stores a proposal under the key of private/repo and runs brain search with the scope of public/repo.
  • THEN The search result excludes the private proposal.

Requirement: Tier timeouts bound the fallback

Each brain read tier SHALL use a timeout shorter than the brain search call.

Scenario: Valkey times out

  • WHEN A test sets the valkey-roadmap tier to sleep past its timeout and runs brain search.
  • THEN The command returns the local-tier result before the outer search timeout.

Existing Tool Considered

The alternatives check in the issue body records a partly verdict for doobidoo/mcp-memory-service (Apache-2.0, maintained). The proposal keeps the item and adds the missing parts that the check lists: the Valkey brain index and local-tier fallback, the proposal queue where upkeep is the single writer, the per-repository ACL scope and secret check, the devops brain CLI, the lazy brain MCP domain and the project-brain skill. Building these missing parts costs about 120,000 tokens to build, 30,000 tokens a year to keep and fix, and about 3 days of elapsed time.

Key questions

  • Where does the MCP server keep the lazy domain list that a brain domain joins?: CONST_MCP_LAZY_DOMAINS in src/devops_cli/config/constants.py holds the lazy domains. hydrate_tool_domain in src/devops_cli/ai/mcp/server.py refuses a name that is not in the set. docs/MCP_TOOLS.md mirrors the set. brain is in none of them today, so the change adds it. [sources: src/devops_cli/config/constants.py, src/devops_cli/ai/mcp/server.py, docs/MCP_TOOLS.md]
  • Where does the project-brain skill live and how are copies kept equal?: There is no copy step for project skills. The same SKILL.md is committed by hand in .claude/skills, .agents/skills and .kilocode/skills. .gitignore un-ignores the Claude copy. tests/invariants/test_skills.py lists the three roots and fails when a project skill's text differs across them. The change adds project-brain/SKILL.md to all three roots, adds !.claude/skills/project-brain/ to .gitignore, and adds the skill to PROJECT_SKILLS with its devops brain commands. [sources: tests/invariants/test_skills.py, CONTRIBUTING.md]
  • Which module owns the four brain operations?: A new src/devops_cli/brain/ service module owns search, show, add and update, the proposal records, the repository scope and the two-tier read. The CLI commands, the MCP tools and the pydantic-ai toolsets bind to it and hold none of its rules. (best practice) [sources: CONTEXT.md, docs/adr/0023-the-project-brain-is-a-derived-index-in-two-cache-tiers-and-two-scheduled-runs-keep-it.md]
    • Chosen: One brain service module with thin CLI, MCP and toolset bindings. It keeps the proposal, scope, secret and fallback rules in one place; the CLI, MCP and pydantic-ai surfaces only bind to it.
    • Rejected: Separate logic in each surface. It duplicates the rules and lets the surfaces drift.
    • Rejected: Use doobidoo/mcp-memory-service as the service. The alternatives check records a partly verdict and lists the missing Valkey index, proposal queue, ACL scope, secret check, CLI, role domain and skill.
  • Which MCP roles get which brain tools?: The stdio ops server lists all four brain tools after hydrate_tool_domain brain. The planning, implementation and review role servers get brain_search and brain_show only, because tools_for_role admits a job tool only when its read-only hint is true. brain_add and brain_update are non-read-only and stay off every role server. The Coder and Service jobs write through the in-process toolset. (best practice) [sources: src/devops_cli/ai/mcp/roles.py, src/devops_cli/ai/mcp/remote.py, SECURITY.md, src/devops_cli/ai/mcp/generator.py]
    • Chosen: Read-only role servers, writes only on the in-process ops server. It keeps the recorded rule that a job role holds a read-only tool only, and still gives workstation agents the write tools.
    • Rejected: All brain tools for every role. tools_for_role admits only tools whose read-only hint is true, and SECURITY.md records that rule.
    • Rejected: No write tools in MCP. The workstation agents would lose the add and update path the issue asks for.
  • How do the implement Coder and the Service model jobs reach the brain?: They reuse build_roadmap_mcp_toolset for brain_search and brain_show over the implementation and planning role endpoints. Because those endpoints expose no write tool, brain_add and brain_update come from a small in-process pydantic-ai toolset that calls the brain service. The role server's read-only rule stays intact. (best practice) [sources: src/devops_cli/roadmap/mcp.py, src/devops_cli/roadmap/implement/implement_step.py, src/devops_cli/roadmap/stage/stage_toolbox.py, src/devops_cli/ai/mcp/roles.py]
    • Chosen: Read via the existing MCP client, writes via an in-process toolset. It reuses the role-checked read path and keeps write tools off the network role servers.
    • Rejected: All four operations via the MCP client. The remote role endpoints expose no write tool.
    • Rejected: All four operations via a new in-process toolset. It duplicates the role-checked read path and the existing RoadmapMcpToolset.
    • Rejected: Direct calls to the brain store. It bypasses the MCP role checks and the lazy domain.
  • How does an add or update keep one writer?: It writes a pending proposal with author, time, source links and repository scope. The brain upkeep (evaluate, consolidate) accepts, merges or refuses it and writes the reason to the brain-events audit trail. An accepted proposal gets its durable copy. This follows ADR 0023's insight flow and ADR 0021 rule 1, so Valkey never holds the only copy of a decision. (best practice) [sources: docs/adr/0023-the-project-brain-is-a-derived-index-in-two-cache-tiers-and-two-scheduled-runs-keep-it.md, docs/adr/0021-the-roadmap-service-is-a-webhook-router-cluster-pods-run-the-roadmap-jobs-and-valkey-holds-their-shared-state.md]
    • Chosen: Proposal queue with the brain upkeep as the single writer. It matches ADR 0023's insight flow and keeps one writer with an audit reason.
    • Rejected: Direct write to the brain index. It gives many writers and loses the audit reason.
    • Rejected: Write only the durable copy. It bypasses the brain index and its caches.
  • What does brain search return when valkey-roadmap is down?: The brain index is read from valkey-roadmap only. A missing or unreachable index gives the empty digest. Brain search serves the local-tier cache of earlier search results when it has one. Otherwise it returns an empty list marked unavailable. It does not keep a local copy of the index. Each tier bound is shorter than the search call. (best practice) [sources: docs/adr/0023-the-project-brain-is-a-derived-index-in-two-cache-tiers-and-two-scheduled-runs-keep-it.md, src/devops_cli/valkey/cache.py]
    • Chosen: Empty digest plus a local cache of search results. ADR 0023 reads the brain index from valkey-roadmap only, and a search-result cache is a class C cache in the local tier.
    • Rejected: A local copy of the whole index. ADR 0023 section 2 reads the brain index from valkey-roadmap only.
    • Rejected: Fail the command. The issue asks for a fallback and a stated result.
  • How does a proposal from a private repository stay in its scope?: Every brain key uses RepoRef.valkey_key. A proposal is stored under roadmap:v1:brain-*:<owner>/<name>, and a read with another repository's RepoRef cannot match it. Until the brain ACL users exist, ADR 0023 section 8 keeps a private repository on the local tier and the shared tier holds public repositories only. (best practice) [sources: src/devops_cli/github/repo_ref.py, docs/adr/0023-the-project-brain-is-a-derived-index-in-two-cache-tiers-and-two-scheduled-runs-keep-it.md]
    • Chosen: Repository-scoped keys, local tier for private until ACL users. The key form already separates repositories, and ADR 0023 section 8 gives the interim state for private repositories.
    • Rejected: A shared global namespace. It leaks a private repository's proposals to another scope.
    • Rejected: Wait for the ACL item. The base can scope keys and use the local tier without it.
  • How is a secret kept out of a proposal?: The brain service runs the existing mask_secrets over the title and body. When the text changes, it refuses the proposal and writes no key. This reuses the project's detector for AWS key ids, GitHub tokens, passwords and the other patterns. (best practice) [sources: src/devops_cli/security/sanitizer.py]
    • Chosen: Reuse mask_secrets. It reuses the project's maintained detector and its AWS key id pattern.
    • Rejected: A new regex list. It duplicates a maintained detector and drifts from it.
    • Rejected: Rely on review. The proposal reaches Valkey before a person sees it.
  • How are the MCP tool names formed?: The generator names a tool by joining its command path with underscores. The CLI devops brain show becomes brain_show, not brain_read. The change keeps the CLI names search|show|add|update and uses brain_search, brain_show, brain_add and brain_update in the MCP domain. (best practice) [sources: src/devops_cli/ai/mcp/generator.py]
    • Chosen: Generated names from the CLI paths. The generator already derives the tool name from the command path, so show gives brain_show.
    • Rejected: Hand-write a brain_read alias. It gives two names for one tool.
    • Rejected: Rename the CLI command to read. The issue names the CLI command show.

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

#4624

Activity

  1. added
    source/agent
    on Nov 11, 2026
  2. added
    type/feature
    scope/ai
    status/new
    value/high
    effort/medium
    on Nov 11, 2026
  3. dan-petty commented on Nov 11, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.

    • Type: type/feature. The feat prefix of the title gives the type.
    • Scope: scope/ai. The (ai) scope of the title gives the scope.
    • Priority: P2-Medium. It extends agent capabilities but depends on tracker #4624 and is not a blocking defect.
    • Value: High. It gives every agent a way to record and retrieve project insights, closing a knowledge gap.
    • Effort: Medium. It adds a thin service module plus CLI, MCP, and skill bindings across multiple agent surfaces.
    • Related: feat(ai): ask-jev command, MCP tool and skill #4306, which asks for a different change. Both add a CLI command, an MCP tool domain, and an agent skill, but #4306 serves the Jev decision model while the candidate serves the project brain.
  4. added
    priority/p2-medium
    on Nov 11, 2026
  5. dan-petty commented on Nov 12, 2026

    @dan-petty
    OwnerAuthor

    Scope from the content freshness plan (2026-11-11)

    This issue is child 16 of #4880, the content freshness tracker. The scope adds documents, the citation form and a local fallback to brain search.

    Why

    This issue plans brain search, read, add and update. But it does not read documents, it has no citation form, it has no local tier for document search, and it does not tell agents where to fix a stale fact. AGENTS.md has 12 characters of room (6,488 of 6,500 characters on main at 9208717; src/devops_cli/commands/ai.py line 923 counts characters with len()). A new route must replace a row.

    New scope

    1. Brain search runs the resolvers of feat(ai): generate the project digest from code at run time #3904 first, then the RAG docs collection with the doc_class filter of feat(ai): RAG points carry the commit and the document class #4921, then the brain index. It returns ranked entries in the citation form of docs(adr): keep reference docs in git as cited brain sources #4884.
    2. When Valkey or Qdrant is down, ripgrep over the checkout answers with citations at HEAD. Each shared tier falls back to its local tier.
    3. Brain add verifies its sources with the citation module of feat(roadmap): re-anchor a stale citation that matches one line #4479. It refuses a commit that is not on main.
    4. The project-brain skill tells agents to answer with the citation and to fix the source document or the code, never the brain entry.
    5. The PR updates the "Project brain" term in CONTEXT.md and replaces the knowledge base row of the AGENTS.md routing table.

    Acceptance added

    • The acceptance of this issue stays.
    • A test with Valkey and Qdrant down returns a ripgrep citation at HEAD.
    • A name question returns the resolver answer before any RAG passage.
    • AGENTS.md stays at or under 6,500 characters.

    Depends on: #4921, #4479, #3904, and the dependencies that this issue already names.

  6. dan-petty commented on Nov 12, 2026

    @dan-petty
    OwnerAuthor

    Scope from the embedding serving study (2026-11-11)

    This issue is also child 8 of #4961, the tracker of embedding and reranking serving for retrieval. The new scope gives brain search one ranked list over its sources, ordered by the gateway cross-encoder.

    Why

    Brain search merges brain index entries (Valkey, in-memory cosine, ADR 0023) with passages from Qdrant. Their scores are on different scales, so a sort by score does not give one fair order. On the census questions of the project eval set (the closest proxy for brain questions), the current RAG path has nDCG@10 0.202 and dense search only 0.259. Qdrant hybrid search plus the cross-encoder has 0.453 (+0.252 against the current path, p 0.001). Over the hybrid pool alone, the cross-encoder adds +0.224 on census questions (p 0.002).

    New scope

    1. The resolver answers of feat(ai): generate the project digest from code at run time #3904 stay first, as the content freshness scope of this issue says.
    2. Brain search takes the brain index top 25 by cosine and the retriever hits before rerank (the Qdrant hybrid top 25 of feat(ai): search RAG with Qdrant dense and BM25 fusion #4971, with the doc_class filter of feat(ai): RAG points carry the commit and the document class #4921). It sends the union to the gateway rerank route of feat(k8s): serve a cross-encoder rerank route on TEI #4970 once, and returns one ranked list with its sources in the citation form of docs(adr): keep reference docs in git as cited brain sources #4884.
    3. When the rerank route fails or times out, brain search merges the two lists with RRF (k 60) and says so. The rerank timeout is shorter than the brain search timeout.
    4. Brain entries stay out of Qdrant (ADR 0023).

    Acceptance added

    • The acceptance of this issue stays.
    • devops brain search makes one rerank call for each query, over at most 50 candidates.
    • With the rerank route down, brain search returns the RRF merge and counts a fallback.
    • On the census questions of the eval set of test(ai): a gold set measures retrieval of knowledge base facts #3902, brain search over the docs gives nDCG@10 >= 0.45.
    • git grep finds no write of a brain entry to Qdrant.

    Depends on: #4972 (the retriever rerank stage), and the dependencies that this issue already names.

  7. devops-cli-service commented on Nov 14, 2026

    @devops-cli-service
    Contributor

    Alternatives check: partly

    Reason: The searches turned up Basic Memory, an open MCP server with a CLI and Python package over a local-first knowledge base of Markdown notes and a knowledge graph, so it already gives agents one shared place to search, read, add and update project knowledge through MCP and a command line. It does not cover the parts this issue is built on: the Valkey brain index with its two cache tiers and local fallback (ADR 0023), the proposal-and-upkeep single-writer flow with author, time and sources, the per-repository ACL scope, the citation checks, or the devops brain command, the lazy brain MCP domain with roles and the project-brain skill in this project.

    Tool: basicmachines-co/basic-memory (https://github.com/basicmachines-co/basic-memory)

    • License: AGPL-3.0
    • Last activity: 2026-11-13
    • Maintained: yes

    Covers:

    • An MCP server over a shared, local-first knowledge base of Markdown notes and a knowledge graph, so agents can query and write the same store.
    • A CLI and Python package beside the MCP server, so workstation agents and jobs reach the same notes.
    • Notes live as files with a knowledge graph, which fits the project's rule that brain entries cite documents kept in git (ADR 0025).

    Lacks:

    • No Valkey brain index filled by the alternatives check, no in-memory cosine tier, and no fallback to a local tier when Valkey is down (ADR 0023).
    • No proposal queue where the brain upkeep runs (evaluate, consolidate) are the single writer and accept, merge or refuse with a reason in an audit trail.
    • No author/time/source record on a write, no per-repository ACL scope for private repositories, and no secret check.
    • No citation form or source verification against main as the content-freshness and rerank scopes require.
    • No devops brain search|show|add|update command, no lazy brain tool domain with read and agent roles in the devops-cli MCP server, and no pydantic-ai toolset for the implement Coder and stage planner.
    • No project-brain skill copied to each agent skill root.

    Tools considered:

    Searches run:

    • open source MCP server shared knowledge base for AI agents search add update notes, results: 5
    • Basic Memory MCP server markdown knowledge base agents, results: 5
    • mem0 open source memory layer MCP server agents, results: 5
    • modelcontextprotocol servers memory server knowledge graph MCP, results: 5
    • basic-memory github basicmachines knowledge base MCP, results: 5
    • basic-memory, results: 5
    • mem0, results: 5
    • basic-memory MCP tools search_notes write_note read_note CLI, results: 5
    • basic memory MCP knowledge graph markdown notes claude skill, results: 5
    • docs.basicmemory.com basic memory, results: 5

    Sources:

    Checked on 2026-11-13. A person decides what this means for the item. The check changes no label and closes no issue.

  8. devops-cli-service commented on Nov 14, 2026

    @devops-cli-service
    Contributor

    Refine cannot set this item to Ready at 7eda155 while the items below stay open. The next refine round looks at the item again when they close, or when a person replies in a comment or edits the body.

  9. devops-cli-service commented on Nov 20, 2026

    @devops-cli-service
    Contributor

    The result in the alternatives block of the issue body changed. Before this check: partly, tool https://github.com/basicmachines-co/basic-memory. A person decides what the new result means for the item.

    Searches (9)

    Tools considered:

    Searches run:

    • basic-memory MCP knowledge base markdown notes CLI, results: 5
    • open source shared knowledge base MCP server CLI for AI agents to search add update notes, results: 5
    • basic-memory github AGPL local-first knowledge base MCP, results: 5
    • mem0 cognee OpenMemory MCP server shared memory agents self-hosted, results: 5
    • basic-memory, results: 5
    • MCP memory server knowledge graph persistent, results: 5
    • mcp-memory-service doobidoo semantic memory MCP REST API CLI consolidation, results: 5
    • "mcp-memory-service", results: 5
    • mem0 OpenMemory MCP memory add search update delete scoped by user, results: 5

    Sources:

  10. 20 remaining items

  11. removed
    owner/service
    on Nov 29, 2026
  12. added
    status/in-review
    and removed
    status/blocked
    on Nov 29, 2026
  13. removed
    status/in-review
    on Nov 29, 2026
  14. devops-cli-service commented on Nov 29, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-29 18:59 UTC

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

    effort/mediumpriority/p2-mediumscope/aisource/agenttype/featurevalue/high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions