gjc-delegation · git:20260807.25952a2 · 2026-08-07 · sha256 e037fe5b32d84f02
gjc-delegation git:20260807.25952a2A
Immutable. This exact content is served forever at /api/v1/blob/e037fe5b32d84f02.
--- name: gjc-delegation description: Delegate planning, execution, and team workflows to gajae-code via the coordinator MCP server. --- # GJC delegation This plugin exposes gajae-code's coordinator MCP server so a host agent can delegate whole workflows to GJC and receive durable turn status plus artifacts. ## Tools | Tool | Workflow | GJC skill | Purpose | | --- | --- | --- | --- | | `gjc_delegate_plan` | plan | /skill:ralplan | Delegate consensus planning to GJC (runs /skill:ralplan to a pending-approval plan). | | `gjc_delegate_execute` | execute | /skill:ultragoal | Delegate execution to GJC (runs /skill:ultragoal to completion with verification). | | `gjc_delegate_team` | team | /skill:team | Delegate parallel team execution to GJC (runs /skill:team with internal tmux workers). | ## Fail-closed safety The bundled MCP config sets `GJC_COORDINATOR_MCP_WORKDIR_ROOTS` to the host project directory and does **not** set `GJC_COORDINATOR_MCP_MUTATIONS`. Delegation is read-only until the user explicitly enables a mutation class and passes `allow_mutation: true` per call. `GJC_COORDINATOR_MCP_REPO` is a namespace label only, never a filesystem path. ## Codex resume bridge correlation After registering an app-server handoff with `gjc_coordinator_register_codex_handoff`, pass the same `session_id` as `codex_host_session_id` on delegate calls so new GJC sessions auto-bind to the Codex thread for wake-on-completion and questions. Acknowledge durable wakes by `wake_key` with `gjc_coordinator_ack_codex_handoff`; heartbeats are unsupported (`automation_update_unavailable`), so delivery is event-driven with startup drain. ## Polling Each delegate returns a `turn_id`. Poll `gjc_coordinator_await_turn` (bounded) or `gjc_coordinator_watch_events` for the `delegation.started` event and the terminal turn state. Turn state is the source of truth, not terminal scrollback.