Skip to content

feat: add agent selection for memory bank sync#5

Open
MaksimSkorobogatov wants to merge 2 commits into
webzler:mainfrom
MaksimSkorobogatov:feat/choose_one
Open

feat: add agent selection for memory bank sync#5
MaksimSkorobogatov wants to merge 2 commits into
webzler:mainfrom
MaksimSkorobogatov:feat/choose_one

Conversation

@MaksimSkorobogatov
Copy link
Copy Markdown

@MaksimSkorobogatov MaksimSkorobogatov commented May 8, 2026

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:

  • 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.

Created to close the issue #4.

Co-authored by Kimi-K2.6.

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant