spec-kit icon indicating copy to clipboard operation
spec-kit copied to clipboard

Running multiple agents with spec-kit in one project?

Open robertfeldt opened this issue 1 year ago • 7 comments

Anyone have tried and maybe even got to work running more than one coding agent with spec-kit in one and the same project?

Background: I have been running spec-kit with Claude code for some time and impressed with the workflow and quality so far. However, I also have access to Gemini as well as OpenAI Codex. When weekly Claude code quotas are used up it would be nice to be able to "continue" with one of the others. Anyone got this to work or would it just mess things up?

robertfeldt avatar Oct 27 '25 15:10 robertfeldt

I'd like to hear more about this idea. Been having the same thoughts, several plans might benefits from different agents capabilities.

mikevb3 avatar Nov 23 '25 15:11 mikevb3

I wonder if it's just a matter of where the spec files are placed and named, like <project>/.claude/commands. The code in .specify seems to be agnostic about which agent is being used.

borfast avatar Nov 24 '25 12:11 borfast

I'm facing the same situation, and here are my attempts.

First I initialize spec-kit for GitHub Copilot with specify init --here --ai copilot. After setting up the constitution with /speckit.constitution, it is written into .specify/memory/constitution.md. After that I've finished several specify -> plan -> tasks -> implement flows as usual.

Then I initialize spec-kit again for Claude Code with specify init --here --ai claude and ignore the warning:

Warning: Current directory is not empty (xx items)
Template files will be merged with existing content and may overwrite existing files
Do you want to continue? [y/N]: y

spec-kit writes slash commands into .claude/commands as expected, but also overrides constitution.md. Quite straightforwardly, I keep changes in .claude only and ignore all the others. And everything seems to work fine with both GitHub Copilot and Claude Code.

Image

Though, in my humble opinion, the init command is not clear enough for spec-kit. As for OpenSpec, its CLI allows user to re-configure coding agents that are not checked at the first time, and by default leaves a general AGENTS.md stub for other coding agents.

z0gSh1u avatar Jan 05 '26 17:01 z0gSh1u

I have an idea on how we can implement this. Please correct me if I am mistaken. If we could somehow instruct the AI agent to place a hyphen (-) inside tasks that it is currently working on, so that other AI agents will not inadvertently pick them up, it could be beneficial.

Do any of you have any suggestions or ideas on how to achieve this?

We should prioritize its implementation.

satputekuldip avatar Jan 06 '26 11:01 satputekuldip

I have an idea on how we can implement this. Please correct me if I am mistaken. If we could somehow instruct the AI agent to place a hyphen (-) inside tasks that it is currently working on, so that other AI agents will not inadvertently pick them up, it could be beneficial.

Do any of you have any suggestions or ideas on how to achieve this?

We should prioritize its implementation.

I do this now. I have a project that reads the tasks.md file and syncs them with ADO. I use [~] (a tilde character) to rerepsent in progress tasks.

MarkStokes-outlook avatar Jan 12 '26 18:01 MarkStokes-outlook

I'm facing the same situation, and here are my attempts.

First I initialize spec-kit for GitHub Copilot with specify init --here --ai copilot. After setting up the constitution with /speckit.constitution, it is written into .specify/memory/constitution.md. After that I've finished several specify -> plan -> tasks -> implement flows as usual.

Then I initialize spec-kit again for Claude Code with specify init --here --ai claude and ignore the warning:

Warning: Current directory is not empty (xx items)
Template files will be merged with existing content and may overwrite existing files
Do you want to continue? [y/N]: y

spec-kit writes slash commands into .claude/commands as expected, but also overrides constitution.md. Quite straightforwardly, I keep changes in .claude only and ignore all the others. And everything seems to work fine with both GitHub Copilot and Claude Code. Image

Though, in my humble opinion, the init command is not clear enough for spec-kit. As for OpenSpec, its CLI allows user to re-configure coding agents that are not checked at the first time, and by default leaves a general AGENTS.md stub for other coding agents.

I was hoping it would be like this. The only unfortunate part is you're gonna have to wait for it to regenerate constitution before replacing/rejecting the changes. Or was you able to stop it before then with no problem?

ErraticFox avatar Feb 08 '26 05:02 ErraticFox

Delivered by #2389

mnriem avatar May 06 '26 19:05 mnriem