@ouro.bot/cli 0.1.0-alpha.143 → 0.1.0-alpha.145
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/changelog.json +15 -8
- package/dist/heart/daemon/agent-service.js +207 -314
- package/dist/heart/daemon/daemon-cli.js +225 -5
- package/dist/heart/daemon/heartbeat-timer.js +3 -2
- package/dist/heart/daemon/mcp-server.js +128 -1
- package/dist/heart/daemon/ouro-path-installer.js +10 -0
- package/dist/heart/daemon/process-manager.js +11 -0
- package/dist/heart/daemon/session-id-resolver.js +131 -0
- package/dist/heart/target-resolution.js +4 -0
- package/dist/mind/friends/channel.js +9 -0
- package/dist/mind/prompt.js +4 -0
- package/dist/repertoire/coding/spawner.js +8 -9
- package/dist/repertoire/tools-base.js +11 -3
- package/dist/scripts/claude-code-hook.js +41 -0
- package/dist/scripts/claude-code-stop-hook.js +47 -0
- package/dist/senses/bluebubbles-client.js +48 -0
- package/dist/senses/bluebubbles.js +22 -6
- package/dist/senses/inner-dialog.js +15 -0
- package/dist/senses/pipeline.js +9 -0
- package/dist/senses/shared-turn.js +196 -0
- package/package.json +1 -1
- package/skills/configure-dev-tools.md +41 -69
|
@@ -1,109 +1,81 @@
|
|
|
1
1
|
# Configure Dev Tools for MCP Agent Bridge
|
|
2
2
|
|
|
3
|
-
Set up your development tools (Claude Code, Codex) to communicate with Ouroboros agents via MCP
|
|
3
|
+
Set up your development tools (Claude Code, Codex) to communicate with Ouroboros agents via MCP. One command does everything.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Setup
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
```json
|
|
10
|
-
{
|
|
11
|
-
"mcpServers": {
|
|
12
|
-
"ouro": {
|
|
13
|
-
"command": "ouro",
|
|
14
|
-
"args": ["mcp-serve", "--agent", "<agent-name>"]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
Replace `<agent-name>` with the name of the agent you want to connect to (e.g., `slugger`).
|
|
21
|
-
|
|
22
|
-
### Per-project configuration
|
|
23
|
-
|
|
24
|
-
You can also add the MCP entry to a project-level `.claude/settings.json` to scope it to a specific workspace.
|
|
25
|
-
|
|
26
|
-
## Codex Setup
|
|
27
|
-
|
|
28
|
-
Add the MCP server using the Codex CLI:
|
|
7
|
+
### Claude Code
|
|
29
8
|
|
|
30
9
|
```bash
|
|
31
|
-
|
|
10
|
+
ouro setup --tool claude-code --agent <agent-name>
|
|
32
11
|
```
|
|
33
12
|
|
|
34
|
-
|
|
13
|
+
This command:
|
|
14
|
+
1. Registers the MCP server with Claude Code via `claude mcp add`
|
|
15
|
+
2. Configures lifecycle hooks (SessionStart, Stop, PostToolUse) for passive awareness
|
|
16
|
+
3. Detects dev vs installed mode automatically and uses the correct command path
|
|
35
17
|
|
|
36
|
-
|
|
18
|
+
### Codex
|
|
37
19
|
|
|
38
20
|
```bash
|
|
39
|
-
|
|
21
|
+
ouro setup --tool codex --agent <agent-name>
|
|
40
22
|
```
|
|
41
23
|
|
|
42
|
-
|
|
24
|
+
This command:
|
|
25
|
+
1. Registers the MCP server with Codex via `codex mcp add`
|
|
26
|
+
2. Detects dev vs installed mode automatically
|
|
43
27
|
|
|
44
28
|
## Verification
|
|
45
29
|
|
|
46
|
-
After
|
|
30
|
+
After setup, verify the connection:
|
|
47
31
|
|
|
48
|
-
1. **Check daemon is running**:
|
|
49
|
-
2. **Test from Claude Code**:
|
|
50
|
-
3. **Test from Codex**: Run `codex exec "Use the
|
|
32
|
+
1. **Check daemon is running**: `ouro up` (installed) or `ouro dev --repo-path <path>` (dev mode).
|
|
33
|
+
2. **Test from Claude Code**: Start a new session and use the `status` tool.
|
|
34
|
+
3. **Test from Codex**: Run `codex exec "Use the <agent-name> status tool"`.
|
|
35
|
+
4. **Check registration**: `claude mcp list` or `codex mcp list`.
|
|
51
36
|
|
|
52
37
|
## Available MCP Tools
|
|
53
38
|
|
|
54
|
-
Once connected,
|
|
39
|
+
Once connected, these tools are available:
|
|
40
|
+
|
|
41
|
+
### Conversation tools (new)
|
|
42
|
+
- **send_message** -- Send a message and get a synchronous agent response (full turn with tools)
|
|
43
|
+
- **check_response** -- Check for pending messages from the agent (after ponder or proactive surface)
|
|
55
44
|
|
|
45
|
+
### Read-only tools
|
|
56
46
|
- **ask** -- Ask the agent a question (uses memory and context)
|
|
57
47
|
- **status** -- Get agent's current status and activity
|
|
58
48
|
- **catchup** -- Get recent activity summary
|
|
59
|
-
- **delegate** -- Request the agent to handle a task
|
|
60
49
|
- **get_context** -- Get agent's current working context
|
|
61
50
|
- **search_memory** -- Search agent's memory for specific topics
|
|
62
51
|
- **get_task** -- Get details of the agent's current task
|
|
63
52
|
- **check_scope** -- Verify if something is in scope for current work
|
|
64
|
-
- **request_decision** -- Ask agent to make a decision about something
|
|
65
53
|
- **check_guidance** -- Get guidance on how to approach something
|
|
54
|
+
|
|
55
|
+
### Write tools
|
|
56
|
+
- **delegate** -- Request the agent to handle a task (runs full conversation turn)
|
|
57
|
+
- **request_decision** -- Ask agent to make a decision about something
|
|
66
58
|
- **report_progress** -- Report progress on delegated work
|
|
67
59
|
- **report_blocker** -- Report a blocker on delegated work
|
|
68
60
|
- **report_complete** -- Report completion of delegated work
|
|
69
61
|
|
|
70
|
-
## Hybrid Model
|
|
71
|
-
|
|
72
|
-
The MCP bridge creates a hybrid collaboration model:
|
|
73
|
-
|
|
74
|
-
- **Dev tool** (Claude Code / Codex) handles code editing, file operations, and tool execution
|
|
75
|
-
- **Agent** (Ouroboros) provides context, memory, task awareness, and decision-making
|
|
76
|
-
- **Communication** flows both directions via MCP tool calls
|
|
77
|
-
|
|
78
|
-
This means the dev tool can ask the agent for guidance mid-task, and the agent can monitor progress through structured reports.
|
|
79
|
-
|
|
80
62
|
## Troubleshooting
|
|
81
63
|
|
|
82
64
|
### "Daemon not running" error
|
|
83
|
-
|
|
84
|
-
```bash
|
|
85
|
-
ouro daemon --agent <agent-name>
|
|
86
|
-
```
|
|
65
|
+
Most read-only tools work without the daemon (reads filesystem directly). For write operations and `send_message`, start the daemon with `ouro up` or `ouro dev`.
|
|
87
66
|
|
|
88
|
-
### MCP server not appearing
|
|
89
|
-
-
|
|
90
|
-
-
|
|
91
|
-
- Restart your dev tool
|
|
67
|
+
### MCP server not appearing
|
|
68
|
+
- Run `claude mcp list` or `codex mcp list` to verify registration
|
|
69
|
+
- Re-run `ouro setup` to fix
|
|
70
|
+
- Restart your dev tool (MCP loads at session start)
|
|
92
71
|
|
|
93
72
|
### Connection timeouts
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
"mcpServers": {
|
|
103
|
-
"ouro": {
|
|
104
|
-
"command": "ouro",
|
|
105
|
-
"args": ["mcp-serve", "--agent", "<agent-name>", "--friend", "<friend-id>"]
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
}
|
|
73
|
+
- Ensure `dist/` is built: `npm run build`
|
|
74
|
+
- Check that the entry point path is correct (setup auto-detects this)
|
|
75
|
+
|
|
76
|
+
### Removing
|
|
77
|
+
```bash
|
|
78
|
+
claude mcp remove ouro-<agent-name>
|
|
79
|
+
# or
|
|
80
|
+
codex mcp remove ouro-<agent-name>
|
|
109
81
|
```
|