using-gc
Operate a caller-selected Gas City 1.4 with upstream registry packs and native run-centered surfaces while keeping GC runtime state out of AgentOps verdicts. Triggers: "using gc", "gas city", "drive the mayor", "dispatch through gc".
git clone --depth 1 https://github.com/boshu2/agentops /tmp/using-gc && cp -r /tmp/using-gc/packs/agentops-executor/skills/using-gc ~/.claude/skills/using-gcSKILL.md
# Using GC Use Gas City only when the caller explicitly selects it. Treat it as a replaceable execution adapter, not a correctness or completion boundary. ## Choose the factory first AgentOps supports both Gas City and the [Agentic Coding Flywheel](https://agent-flywheel.com) as external software-factory runtimes. Use this skill only for Gas City. If the caller selects the Flywheel, use its native workflow instead of wrapping it in Gas City. AgentOps supplies skills and evidence contracts to either factory. It does not need its own Gas City formula or role pack. Install or link AgentOps skills into the provider runtime before starting workers; the upstream Mayor, coordinator, and workers can then discover and select `plan`, `implement`, `test`, `validate`, and other AgentOps skills normally. ## Gas City 1.4 operating model Gas City 1.4 is run-centered. The supervisor serves the dashboard and typed, paginated session/run APIs. Every graph-owning city or rig scope needs its own `core.control-dispatcher`; that deterministic worker advances formula control beads. Agent workers claim routed work. The upstream `gc.mayor` skill is the guided coordinator; `gc.run-operator` launches and supervises formulas. The normal AgentOps path is: 1. Install and pin the upstream `gascity` workflow and rig-role imports. 2. Add the project as a rig, prepare its stock maintainer runtime, and make AgentOps skills visible to its provider sessions. 3. Create a caller-owned bead and launch the upstream `build-basic`, continuation, review, or implementation formula that matches the available artifacts. 4. Read run, session, bead, artifact, and verdict state. Completion is never inferred from chat or pane prose. Prepare and qualify a rig before its first build with the shipped AgentOps CLI (no repo checkout required): ```sh ao gc prepare --city /path/to/city --rig /path/to/rig ao gc check --city /path/to/city --rig /path/to/rig ``` The command verifies the exact official workflow and role pins, snapshots the upstream validation scripts and schemas unchanged inside the rig's `.gc` runtime, installs only small AgentOps-owned wrappers at the formula check paths, selects an existing Python that can import PyYAML, and links the AgentOps skills into the city and rig Codex sinks. Skills come from the enclosing AgentOps checkout when one is present, otherwise from the installed skills root; pass `--skills-source` to pin a different directory. It never modifies the GC binary, cache, formulas, roles, or upstream pack. `check` issues only native inspection commands, writes no adapter files, and fails before model spend when that runtime contract is missing or drifted. ## Preferred pack and registries The built-in `main` registry catalogs official packs. The community registry is optional configuration: ```sh gc pack registry list gc pack registry refresh gc pack registry search --all gc pack registry show main:gascity gc pack registry add community https://registry.gascity.com/registry.toml gc pack registry search --registry community --all ``` `search` reads the local registry cache; `show` reports release provenance and exact import commands. `gc import add` declares a source/version, and `gc import install` resolves it into `packs.lock`. Prefer an exact accepted release for reproducible cities. AgentOps prefers the official `gascity` build pack, the workflow family visible in the public Maintainer City factory. The current accepted reference is `gascity` 0.1.6 at commit `3b3b89f2011e06d84459aa7bea1552382f13930a`: - dashboard: `https://factory.gascity.com`; - workflows: `build-basic`, `build-from-*`, `implement`, review, issue, and PR flows; - stock rig roles: `gc.run-operator`, `gc.implementation-worker`, planners, reviewers, and publisher; - scope-local formula control: `core.control-dispatcher`; - guided coordination: the upstream `gc.mayor` skill. Install the workflow pack at city scope and its sibling roles pack on every rig that runs work, following the exact commands returned by `gc pack registry show main:gascity`. Keep the stock `gc.*` namespace; do not nest or rename the roles behind an AgentOps pack. For a starter build: ```sh gc bd create "Add a --json flag to the export command" gc sling gc.run-operator <bead-id> --on build-basic \ --var artifact_root=plans/json-flag/build ``` For guided requirements, planning, and launch, tell the active agent: ```text Use skill gc.mayor ``` AgentOps skills are tools available to those factory agents, not a replacement workflow. Explicitly name a skill in the bead or prompt when its behavior is required. The current upstream decomposition does not automatically propagate a free-form `Required Skills` section from the caller-owned source bead into every generated work item. Inspect the decomposition before implementation; put a required skill name on the actual work item or worker prompt when its use is an acceptance condition. Skill presence and skill invocation are different facts. ## Upgrade an existing city to 1.4 Before starting its orchestrator, run once per city: ```sh gc doctor --fix gc import install gc supervisor stop --wait # macOS when an older direct supervisor remains gc start ``` Then confirm: - `gc version` reports `1.4.0` from the intended path; - `gc doctor` has no blocking failures; - each graph-owning rig has an unsuspended `core.control-dispatcher`; - imports and `packs.lock` resolve; - `ao gc check` accepts the contained maintainer runtime and AgentOps skill links; - on macOS, the supervisor LaunchAgent resolves to the same executable as the selected `gc` binary; - old standalone-dashboard bookmarks or reverse proxies are removed. A stale registered city may block every start. Repair that city with `gc doctor --fix`, or explicitly unregister it if it is intentionally retired. Retire an old HQ/canary by exact registered name or path, without stopping the machine-wide supervisor needed by its replacement:
Use Agent Mail as an optional messaging and Triggers: "coordinate writers", "reserve files".
>-
>-
Use when converting markdown plans into br beads with dependencies for implementation or swarm execution.
Use when switching AI coding CLI accounts quickly to recover from subscription rate limits or OAuth friction.
>-
Use when starting non-trivial work, mining lessons, or preventing repeated mistakes with cm procedural memory.
Mine past agent sessions for working Triggers: "cass", "mine past agent sessions for", "cass skill".