feat: add agent selection for memory bank sync#5
Open
MaksimSkorobogatov wants to merge 2 commits into
Open
Conversation
Previously, agentMemory automatically configured and synced with ALL agents
(kilocode, cline, roocode, opencode) simultaneously, cluttering the project
directory with files the user never intended to use.
This commit adds full support for choosing which coding agents to sync with:
- New src/mcp-server/agent-config.ts: centralized agent registry and
.agentMemory/agents.json config file management
- Updated memory-bank-sync.ts: only syncs to agents listed in agents.json
- Updated tools.ts: new configure_agents MCP tool + interactive TTY prompt
- Updated server.ts: parses --agents=kilocode,opencode CLI flag
- Updated config.ts: VS Code QuickPick multi-select during setup
- Updated SKILL.md, README.md, API.md, ARCHITECTURE.md: document the new flow
Agent selection methods:
- VS Code Extension: showQuickPick with canPickMany
- CLI: --agents=kilocode,opencode flag
- TTY: interactive readline prompt during project_init
- Later: configure_agents({ agents: "..." }) MCP tool
The selection is persisted in .agentMemory/agents.json and respected by
import, export, file watching, and AGENTS.md generation.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
WARNING: please, merge the PR #2 before
Previously, agentMemory automatically configured and synced with ALL agents
(kilocode, cline, roocode, opencode) simultaneously, cluttering the project
directory with files the user never intended to use.
This commit adds full support for choosing which coding agents to sync with:
.agentMemory/agents.json config file management
Agent selection methods:
The selection is persisted in .agentMemory/agents.json and respected by
import, export, file watching, and AGENTS.md generation.
Created to close the issue #4.
Co-authored by Kimi-K2.6.