/sgc:agent-loopfrom sgc
File-poll helper — list / show / submit pending agent spawns. For external actors (you, in this Claude Code session) to fulfill spawns when no LLM key + no claude CLI are available.
Ships in sgc. Installing the plugin adds it to Claude Code.
The escape hatch when the dispatcher fell back to file-poll mode (no ANTHROPIC_API_KEY, no OPENROUTER_API_KEY, no claude CLI). You read the prompt, formulate the YAML response, submit it.
command -v sgc.mjs >/dev/null 2>&1 || { IFS= read -r SGC_PLUGIN_BIN <<'SGC_PLUGIN_ROOT'
${CLAUDE_PLUGIN_ROOT}/bin
SGC_PLUGIN_ROOT
PATH=$SGC_PLUGIN_BIN:$PATH; }
command -v sgc.mjs >/dev/null 2>&1 || { echo "sgc CLI not found: the sgc plugin's bin/sgc.mjs could not be reached. In a terminal in this project, run claude plugin list. If sgc@sgc shows a Read from line, or Claude Code was started with --plugin-dir, restore bin/sgc.mjs in that directory. Otherwise, for a Scope the list shows for sgc@sgc, run claude plugin uninstall sgc@sgc --scope <scope> && claude plugin install sgc@sgc --scope <scope>. The list can include other projects' installs; an uninstall that fails changes nothing, so then try the next Scope" >&2; exit 1; }
sgc.mjs agent-loop --list # all spawns with [x]/[ ] markers
sgc.mjs agent-loop --show <spawn_id> # print the prompt for one spawn
sgc.mjs agent-loop --submit <spawn_id> # read YAML from stdin
sgc.mjs agent-loop --submit <spawn_id> --from /path/to/result.yaml
--list first to see pending spawns.--show <id> to read the prompt; produce a YAML response that exactly matches the agent's declared outputs (any deviation → §9 OutputShapeMismatch).--submit <id> with the YAML; the blocked sgc <cmd> call in the other terminal will unblock immediately.If ANTHROPIC_API_KEY or OPENROUTER_API_KEY is set, the dispatcher uses real LLM modes and this command becomes unnecessary. Check with /sgc:agent-loop --list — if file-poll spawns are accumulating, an LLM key is the better fix than typing prompts by hand.
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
17 commands in this plugin
/compound4-agent compound cluster (context → related → solution → prevention) + dedup → write solutions/{cat}/{slug}.md. Usually janitor-triggered, not direct./csoGS-5 pre-ship security review: secret scan + dependency audit + events.ndjson anomaly detection. Append-only report under .sgc/cso/. Exit 1 on fail, 0 on pass/warn./debugGS-4 4-phase systematic-debugging walker (investigate → analyze → hypothesize → implement). `close` is an Iron Law #3 hard-gate requiring root-cause + fix-commit + verify-command./discoverTurn vague topic into structured forcing-questions (goal / constraints / scope / edge-cases / acceptance). Feeds into sgc plan --motivation./doctorConsistency scan across contracts/sgc-capabilities.yaml ↔ prompts/ ↔ slot-only annotations. Zero LLM, read-only. Exit 1 on any failure./handoffGS-2 session-state checkpoint — scans .sgc/ across 6 namespaces, derives the Iron Law #2 verify command, writes tasks/<slug>-paused.md for post-compaction recovery.npx claudepluginhub sdsrss/sgc --plugin sgc