@heretyc/subagent-mcp 2.12.7 → 2.12.8

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/README.md CHANGED
@@ -184,7 +184,7 @@ keeps running either way. Full spec: [docs/spec/permissions.md](docs/spec/permis
184
184
  - **"It won't start a new agent (cap reached)."** You've hit the concurrent
185
185
  limit. Use `list_agents` to see what's running and `kill_agent` on anything
186
186
  you no longer need — that frees a slot immediately. Raising the number in
187
- `global-concurrency.jsonc` also works.
187
+ `global-subagent-mcp-config.jsonc` also works.
188
188
  - **"Where are the logs?"** Each agent's recent output is available any time via
189
189
  `poll_agent`. The server's own diagnostics go to your host's normal MCP
190
190
  server log (your Claude Code or Codex session logs) — all server logging goes
@@ -196,7 +196,7 @@ keeps running either way. Full spec: [docs/spec/permissions.md](docs/spec/permis
196
196
  |---|---|
197
197
  | [docs/spec/arch-rationale.md](docs/spec/arch-rationale.md) | Why it's built this way — the full design rationale |
198
198
  | [docs/registration.md](docs/registration.md) | Per-platform setup: Claude Code, Codex, Gemini CLI, Claude Desktop |
199
- | [docs/tools.md](docs/tools.md) | Full tool reference — all eight tools, parameters, return shapes |
199
+ | [docs/tools.md](docs/tools.md) | Full tool reference — all nine tools, parameters, return shapes |
200
200
  | [docs/usage.md](docs/usage.md) | Model & effort matrix, ultracode mode, usage examples |
201
201
  | [docs/SPEC.md](docs/SPEC.md) | Full technical specification |
202
202
  | [docs/spec/permissions.md](docs/spec/permissions.md) | Permission system — ceiling modes, shared engine, threat model |
package/dist/index.js CHANGED
@@ -515,7 +515,7 @@ const ORCHESTRATION_INSTRUCTIONS = "subagent-mcp - CANONICAL OPERATING MODEL (fu
515
515
  const SUBAGENT_INSTRUCTIONS = "SUB-AGENT SESSION: you are a child process launched by subagent-mcp. Follow the parent prompt. Do not treat yourself as the orchestrator, do not re-trigger orchestration carryover, and do not launch further sub-agents unless the parent prompt explicitly assigns that.\n\nMODEL SELECTION MODE (parallel to orchestration-mode, set via the model-selection-mode tool). DEFAULT is \"smart\" and is used whenever unset: in smart, launch_agent REJECTS any call supplying provider/model/effort selectors and the server auto-picks the best model. \"user-approved-overrides\" opens a 30-MINUTE window where selectors are HONORED, enforced LAZILY (the mode reverts to smart on the next launch_agent call after 30 minutes) and re-enabling does NOT extend an active window. HONOR-BASED: you MUST NOT set \"user-approved-overrides\" without explicit interactive USER authorization via the structured-question tool (AskUserQuestion on Claude / request-user-input on Codex); never enable it on your own initiative.";
516
516
  const server = new McpServer({
517
517
  name: "subagent-mcp",
518
- version: "2.12.7",
518
+ version: "2.12.8",
519
519
  description: "Launches always-interactive local Claude and Codex sub-agent sessions and is the orchestrator's sole launch channel. Claude runs via the Claude Agent SDK over the local Claude Code executable; Codex via `codex app-server` over stdio. The server never calls Anthropic or OpenAI HTTP APIs directly.",
520
520
  }, {
521
521
  instructions: process.env.SUBAGENT_MCP_SUBAGENT === "1"
package/dist/init.js CHANGED
@@ -21,7 +21,7 @@ export const INIT_BLOCK = [
21
21
  "",
22
22
  "ORCHESTRATION ON — you are the ORCHESTRATOR. Allowed tools: only the structured-question tool (AskUserQuestion on Claude / request-user-input on Codex), subagent-mcp, and the /workflows tool. There is no inline-by-right; every step runs in a sub-agent. If one atomic step truly cannot run in a sub-agent, ask the user via the structured-question tool for a one-time exception for that single step, perform only that step, then resume delegating. Sole channel: while subagent-mcp is connected, every sub-agent launch goes through `launch_agent`; never use harness-native sub-agent tools or shell-spawned agents.",
23
23
  "",
24
- "ORCHESTRATOR WORKTREE SETUP: launch sub-agents in the main checkout cwd (they no longer self-isolate into per-agent worktrees); serialize any sub-agents that write the same files — never run concurrent writers over overlapping paths (no cwd-level lock exists).",
24
+ "ORCHESTRATOR WORKTREE SETUP: for mutating work, first place sub-agents in a compliant linked worktree/work branch; the main checkout cwd applies only to read-only work or already-isolated target-tree contexts (sub-agents no longer self-isolate into per-agent worktrees). Serialize any sub-agents that write the same files — never run concurrent writers over overlapping paths (no cwd-level lock exists).",
25
25
  "",
26
26
  "READ-ESCALATION LADDER (the orchestrator's only read channels, in order): (1) subagent-mcp `poll_agent` TAIL; (2) if the tail is insufficient, dispatch ONE sub-agent to return a single summary of <=100 lines, trusted as-is (no separate verification step); (3) anything larger: the USER reads the document directly. No reads or writes occur outside these channels. An empty or stalled tail means the agent is ALIVE, not dead — do NOT busy-loop poll_agent; learn completion via `wait`. Large inter-agent data: the orchestrator assigns scratch-file paths (%TEMP% on Windows, /tmp on POSIX) in prompts; the producing sub-agent writes, the consuming sub-agent reads; the orchestrator NEVER reads those files.",
27
27
  "",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@heretyc/subagent-mcp",
3
- "version": "2.12.7",
3
+ "version": "2.12.8",
4
4
  "description": "MCP server that launches and manages always-interactive Claude Code and Codex sub-agent sessions (no direct Anthropic/OpenAI API).",
5
5
  "keywords": [
6
6
  "mcp",