Bug: New Devin actors cannot start while daemon is running — MCP setup fails until CCCC restart
Bug: New Devin actors fail MCP installation until CCCC is restarted
Summary
When using CCCC with the Devin runtime, existing Devin-backed actors run normally, but newly-added Devin actors cannot be started while the CCCC daemon is already running.
The new actor fails to start with:
{
"v": 1,
"ok": false,
"result": {},
"error": {
"code": "actor_start_failed",
"message": "failed to install MCP for runtime: devin",
"details": {}
}
}
However, if CCCC is stopped and started again, the same actor starts successfully without any other configuration changes.
This appears to indicate a runtime/MCP state lifecycle issue where the Devin runtime is correctly initialised at daemon startup but is not correctly initialised or refreshed when a new actor is added while the daemon is already running.
Environment
- Operating system: Windows
- CCCC: 0.4.34
- Runtime: Devin CLI
- Runner: PTY / Windows ConPTY
The CCCC environment check reports both the Devin runtime and Windows PTY support as available.
Existing actors work correctly
There are already multiple Devin-backed actors running successfully in the same CCCC group.
All use the standard Devin command:
devin --permission-mode dangerous
These existing actors continue to run normally.
This therefore does not appear to be a general Devin installation, authentication, PTY, or runtime discovery problem.
Reproduction
1. Add a new Devin actor while CCCC is already running
cccc actor add compliance-agent --runtime devin
The actor is successfully added to the CCCC actor configuration.
2. Start the new actor
cccc actor start compliance-agent
Result:
{
"v": 1,
"ok": false,
"result": {},
"error": {
"code": "actor_start_failed",
"message": "failed to install MCP for runtime: devin",
"details": {}
}
}
The actor remains stopped.
Important observation: restarting CCCC fixes the problem
If CCCC is stopped and started again, the same actor can then be started successfully.
No changes are made to:
- the Devin installation
- Devin authentication
- the actor definition
- the actor command
- the CCCC group configuration
The only change is restarting CCCC.
This strongly suggests that some runtime/MCP state is initialised during daemon startup but is not correctly refreshed when a new actor is added later.
MCP investigation
Running:
cccc setup --runtime devin
returns:
{
"ok": true,
"result": {
"mcp": {
"devin": {
"mode": "manual",
"command": "'<DEVIN_PATH>' mcp add -s user cccc -- '<CCCC_PATH>' mcp"
}
},
"notes": [
"devin: MCP CLI failed; run the command shown in result.mcp.devin.command"
]
}
}
The command supplied by CCCC was then run manually using the installed Devin CLI.
Devin successfully returned:
✓ Added MCP server 'cccc' to user config
The Devin MCP configuration was then checked with:
devin mcp list
which showed:
Configured MCP servers:
• sentry
URL: https://mcp.sentry.dev/mcp
• cccc
Command: <CCCC executable> mcp
• notion
URL: https://mcp.notion.com/mcp
Despite the CCCC MCP being successfully registered with Devin, attempting to start the new actor still returns:
failed to install MCP for runtime: devin
Therefore manually registering the MCP with Devin does not resolve the actor startup problem.
Additional observation
The actor itself is successfully persisted by CCCC when it is created. The failure occurs during actor startup/runtime initialisation rather than during the actor creation operation.
This is consistent with the following sequence:
CCCC daemon already running
|
v
Add new Devin actor
|
v
Actor configuration successfully persisted
|
v
Start actor
|
v
CCCC attempts Devin MCP setup
|
X
"failed to install MCP for runtime: devin"
|
v
Actor remains stopped
After restarting CCCC:
Restart CCCC
|
v
Start same actor
|
v
SUCCESS
Expected behaviour
I would expect the following to work without restarting the CCCC daemon:
cccc actor add compliance-agent --runtime devin
cccc actor start compliance-agent
Adding a new actor should not require restarting the orchestration daemon or disrupting existing actors.
Actual behaviour
A newly-added Devin actor cannot be started until CCCC is restarted.
The error consistently reports:
failed to install MCP for runtime: devin
Suspected cause
This appears likely to be a runtime/MCP setup state lifecycle issue. Possibilities include:
- Devin MCP installation state being cached by the daemon at startup.
- Runtime setup state not being invalidated when a new actor is added.
- New actors not receiving the corresponding runtime capability/MCP state.
- The Devin MCP installation being attempted unnecessarily during actor startup.
- A failed runtime setup state being cached and reused.
- Runtime setup occurring during daemon initialisation but not correctly during dynamic actor creation.
Why this does not appear to be a Devin installation problem
- CCCC successfully detects the Devin runtime.
- Existing Devin actors are already running successfully.
- The Devin CLI successfully accepts the MCP registration command supplied by CCCC.
devin mcp listshows the CCCC MCP server as configured.- Manually registering the MCP does not resolve the problem.
- The same newly-created actor starts successfully after restarting CCCC.
Workaround
The current workaround is to restart CCCC after creating a new Devin actor:
cccc actor add compliance-agent --runtime devin
# Restart CCCC
cccc actor start compliance-agent
This is inconvenient for a live multi-agent environment because adding an agent requires restarting the orchestration daemon and potentially disrupting existing agents.
Request
Could the Devin runtime/MCP initialisation path be checked for actors added dynamically while the CCCC daemon is already running?
In particular, it would be useful to understand whether the Devin MCP setup state is intended to be:
- installed once per daemon/runtime,
- installed once per actor,
- checked idempotently on each actor start, or
- dynamically refreshed when actors are added.
The fact that a daemon restart immediately resolves the problem suggests that some runtime state is being correctly established during startup but is not being refreshed or initialised when a new Devin actor is created.
Reproducibility
The issue is consistently reproducible with newly-created Devin actors while the CCCC daemon is already running.
Restarting CCCC consistently allows the previously-failing actor to start.
Thank you for the detailed information; we will check and fix it as soon as possible.