Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .incode/contracts.json
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@
}
},
"RateLimitInfo": {
"_owner": "src/agent/claude_code.rs — subscription quota, reported instead of a dollar figure. Wire names are camelCase; the Rust names are snake_case via serde rename.",
"_owner": "src/agent/claude_code/wire.rs — subscription quota, reported instead of a dollar figure. Wire names are camelCase; the Rust names are snake_case via serde rename.",
"fields": {
"status": "string — `allowed` is the only value that means work can proceed",
"resets_at": "i64 (wire: resetsAt)",
Expand Down
4 changes: 2 additions & 2 deletions docs/ARCHITECTURE.md
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,7 @@ That is why the fallback is traced rather than silent.

### The mechanical half

`agent/` discovers an installed agent and drives it as a model — `claude_code.rs`
`agent/` discovers an installed agent and drives it as a model — `claude_code/`
speaks its stream protocol and opens the tool bridge per turn, `api.rs` is the API
route's own tool loop, `catalogue.rs` is the one list of agents, `worker.rs` hands one
ledger task at a time. `cli/` is the terminal, and `cli/agent_turn.rs` is one
Expand Down Expand Up @@ -936,7 +936,7 @@ incode (parent) ──spawns──▶ agent CLI (the model; its own tools off)
- `incode --tool-server` (`src/tool_bridge.rs`) speaks MCP on stdio to the CLI, through
the framing shared with the team server (`src/mcp_stdio.rs`). It runs nothing: each
`tools/list` and `tools/call` is forwarded to the parent over a loopback socket.
- The parent (`Bridge`, opened per turn by `src/agent/claude_code.rs` `run_turn`) binds
- The parent (`Bridge`, opened per turn by `src/agent/claude_code/turn.rs` `run_once`) binds
`127.0.0.1:0`, makes a 256-bit token, and passes both to the CLI through its
ENVIRONMENT (`INCODE_TOOL_BRIDGE`, `INCODE_TOOL_TOKEN`), never its argv. The CLI's
stdio servers inherit that environment (measured live).
Expand Down
580 changes: 151 additions & 429 deletions src/agent/agy.rs

Large diffs are not rendered by default.

Loading
Loading