GitHub Symphony is a multi-tenant AI coding agent orchestration platform built on the OpenAI Symphony specification. A CLI-first orchestrator polls GitHub Projects for open issues, dispatches worker runs per repository, and resolves all workflow policy from each repository's WORKFLOW.md at runtime.
- Node.js (v24+) with npm
- Git
- One GitHub auth source with required scopes (
repo,read:org,project):- GitHub CLI (
gh):gh auth login --scopes repo,read:org,project
- Or
GITHUB_GRAPHQL_TOKENfor CI, containers, or token-only shells:export GITHUB_GRAPHQL_TOKEN=ghp_your_classic_token
- GitHub CLI (
npm install -g @gh-symphony/cliOr use the official container image:
docker pull ghcr.io/hojinzs/github-symphony:latest
docker run --rm ghcr.io/hojinzs/github-symphony:latest gh-symphony --versionVerify the installation:
gh-symphony --versionValidate the local prerequisites before setup:
gh-symphony doctor
gh-symphony doctor --fix
gh-symphony doctor --json
gh-symphony doctor --smoke
gh-symphony doctor --bundleToken-only validation works without gh:
GITHUB_GRAPHQL_TOKEN=ghp_your_classic_token gh-symphony doctor --jsonThe official image is designed for headless orchestration and defaults to:
- image:
ghcr.io/hojinzs/github-symphony:<tag> - repository runtime volume:
<repo>/.runtime/orchestrator - default command:
gh-symphony repo start - runtime user:
symphony(UID:GID 1000:1000)
Supported container environment variables:
GITHUB_GRAPHQL_TOKEN: recommended auth source inside containers; requiresrepo,read:org,projectGH_SYMPHONY_CONFIG_DIR: optional override for the runtime config directory; defaults to/var/lib/gh-symphony
Supported volume mounts:
- a cloned repository directory: persists
WORKFLOW.mdand.runtime/orchestrator/across restarts
Named Docker volumes work as-is. If you use a host bind mount such as -v ./data:/var/lib/gh-symphony, the host directory must be writable by UID:GID 1000:1000 or the container will fail to persist state.
Prepare a bind-mounted host directory:
mkdir -p ./data
sudo chown -R 1000:1000 ./dataIf you need to run the container with your host user instead, pass --user "$(id -u):$(id -g)" and make sure the mounted directory is writable by that same UID/GID:
docker run --rm -it \
--user "$(id -u):$(id -g)" \
-e GITHUB_GRAPHQL_TOKEN=ghp_your_classic_token \
-v "$(pwd)/data:/var/lib/gh-symphony" \
ghcr.io/hojinzs/github-symphony:latest \
gh-symphony repo start --onceInitialize the repository runtime from inside the mounted repository once:
docker run --rm -it \
-e GITHUB_GRAPHQL_TOKEN=ghp_your_classic_token \
-v "$(pwd):/repo" \
-w /repo \
ghcr.io/hojinzs/github-symphony:latest \
gh-symphony setup --non-interactiveThen start the long-running orchestrator:
docker run -d \
--name gh-symphony \
--restart unless-stopped \
-e GITHUB_GRAPHQL_TOKEN=ghp_your_classic_token \
-v "$(pwd):/repo" \
-w /repo \
ghcr.io/hojinzs/github-symphony:latestExample docker compose deployment:
services:
gh-symphony:
image: ghcr.io/hojinzs/github-symphony:latest
restart: unless-stopped
environment:
GITHUB_GRAPHQL_TOKEN: ${GITHUB_GRAPHQL_TOKEN}
volumes:
- gh-symphony-data:/var/lib/gh-symphony
volumes:
gh-symphony-data:If you prefer a host bind mount in docker compose, align the container user with the host directory owner:
services:
gh-symphony:
image: ghcr.io/hojinzs/github-symphony:latest
user: "${UID:-1000}:${GID:-1000}"
environment:
GITHUB_GRAPHQL_TOKEN: ${GITHUB_GRAPHQL_TOKEN}
volumes:
- ./data:/var/lib/gh-symphonyCreate ./data ahead of time and ensure it is writable by the UID/GID that you pass through user.
For a first-run smoke check against an existing mounted config directory:
docker run --rm \
-e GITHUB_GRAPHQL_TOKEN=ghp_your_classic_token \
-v gh-symphony-data:/var/lib/gh-symphony \
ghcr.io/hojinzs/github-symphony:latest \
gh-symphony doctor --smoke --project-id your-project-idNavigate to the repository you want to orchestrate, then run:
cd your-repo
gh-symphony setupThe one-command setup flow will:
- Authenticate via
ghCLI - Let you select a GitHub Project
- Map project status columns to workflow phases (active / wait / terminal)
- Configure the repository runtime for the orchestrator
- Generate the following files:
| File | Description |
|---|---|
WORKFLOW.md |
Workflow policy — the agent prompt template with lifecycle config |
.codex/skills/ (or .claude/skills/) |
Agent skill definitions, including /gh-symphony references |
Before writing anything, the interactive wizard shows a final summary that combines the workflow file preview and the repository runtime that will be saved under .runtime/orchestrator/.
Non-interactive mode:
gh-symphony setup --non-interactiveNavigate to the repository you want to orchestrate, then run:
cd your-repo
gh-symphony workflow initPreview the generated files without writing anything:
gh-symphony workflow init --dry-run
gh-symphony workflow validate
gh-symphony workflow preview --issue owner/repo#123
gh-symphony doctor --smoke --issue owner/repo#123The interactive wizard will:
- Authenticate via
GITHUB_GRAPHQL_TOKENor fall back toghCLI - Let you select a GitHub Project to bind
- Map project status columns to workflow phases (active / wait / terminal)
- Generate the following files:
| File | Description |
|---|---|
WORKFLOW.md |
Workflow policy — the agent prompt template with lifecycle config |
.codex/skills/ (or .claude/skills/) |
Agent skill definitions, including /gh-symphony references |
Project discovery is pagination-aware for larger GitHub accounts, so personal projects, organization pages, and organization-owned projects are fetched across multiple API pages before selection. If the CLI hits a discovery safety cap, it keeps the partial list and prints a warning before you choose a board.
gh-symphony workflow init --dry-run resolves the same generated outputs, shows whether each path would be created, updated, or left unchanged, and prints the detected environment inputs that shaped the preview.
Those detected inputs are also threaded into the generated artifacts themselves: WORKFLOW.md and the runtime skill templates include repository-aware validation guidance based on the detected package manager, monorepo shape, and explicit validation entry points when present.
workflow init is not limited to Node repositories. The detector now recognizes conservative validation signals for:
- JavaScript / TypeScript lockfiles and
package.jsonscripts - Python repositories with
uv.lock,poetry.lock,pyproject.toml,pytest.ini, andrequirements*.txt - Go repositories with
go.mod - Rust repositories with
Cargo.toml - Top-level command runners such as
Makefileandjustfile
When the repository exposes an unambiguous entry point, the generated guidance will prefer commands such as make test, just lint, uv run pytest, go test ./..., or cargo test. When signals conflict at the same confidence level, the generator intentionally falls back to generic validation guidance instead of guessing.
Token-only interactive setup is supported:
export GITHUB_GRAPHQL_TOKEN=ghp_your_classic_token
gh-symphony workflow initThe generated skill files (under .codex/skills/ or .claude/skills/) define how the AI agent handles commits, pushes, pulls, and project status transitions. The /gh-symphony skill also includes references/ files for workflow schema details and prompt-body postures (implement, review, and maintain) that can be composed when designing or refining WORKFLOW.md.
You can further customize the agent's behavior by editing WORKFLOW.md or by adding repository-specific reference markdown under the /gh-symphony skill's references/ directory. WORKFLOW.md remains the policy layer that controls what the agent does at each workflow phase.
Currently supported runtimes: Codex, Claude Code
GitHub Project V2 priority is repository policy in WORKFLOW.md. The runtime uses exactly one configured source and never falls back or guesses renamed labels, Project fields, or option values. Anything unmapped resolves to priority = null.
Use a Project single-select field:
tracker:
kind: github-project
project_id: PVT_kwDOxxxxxx
state_field: Status
priority:
source: project-field
field: Priority
values:
Urgent: 0
High: 1
Medium: 2
Low: 3Or use exact repository labels:
tracker:
kind: github-project
project_id: PVT_kwDOxxxxxx
state_field: Status
priority:
source: labels
labels:
P0: 0
P1: 1
P2: 2Or disable priority dispatch explicitly:
tracker:
kind: github-project
priority:
source: disabledLower numbers dispatch first. If an issue has multiple configured priority labels, Symphony uses the lowest numeric value and emits priority.label_conflict_resolved. If an active issue carries an unmapped configured-source value, it resolves to priority = null and emits priority.unmapped.
Legacy tracker.priority_field: Priority remains supported for existing workflows, but it is deprecated because it uses live Project option order. To migrate, replace it with tracker.priority.source: project-field, copy the exact field name, and write explicit option-name-to-number mappings. If both legacy and explicit config are present, explicit tracker.priority wins and diagnostics warn about the conflict.
gh-symphony workflow validate reports local config errors and legacy priority warnings. gh-symphony doctor additionally checks live Project/repository drift: missing fields, missing labels, unmapped live options, stale configured mappings, and active issues that currently resolve to priority = null because their priority-like value is unmapped.
From inside the cloned repository that should run orchestration, initialize the workflow and repository runtime:
gh-symphony setupThe interactive wizard will:
- Authenticate via
GITHUB_GRAPHQL_TOKENor fall back toghCLI - Let you select a GitHub Project
- Optionally limit processing to issues assigned to the authenticated user
- Write
WORKFLOW.md, support files, and.runtime/orchestrator/in the repository
Project discovery is pagination-aware here as well, so large personal and organization-backed GitHub accounts can browse across multiple project pages. If discovery stops at a safety limit, the wizard warns that the visible list may be incomplete.
Token-only setup is supported too when exactly one GitHub Project is visible to the token:
export GITHUB_GRAPHQL_TOKEN=ghp_your_classic_token
gh-symphony setupIf non-interactive setup needs an explicit GitHub Project selection, run the two commands directly:
GITHUB_GRAPHQL_TOKEN=ghp_your_classic_token gh-symphony workflow init --non-interactive --project PVT_xxx --output WORKFLOW.md
GITHUB_GRAPHQL_TOKEN=ghp_your_classic_token gh-symphony repo initRepository commands:
gh-symphony doctor # Validate local prerequisites, auth, config, WORKFLOW.md, and runtime command
gh-symphony doctor --fix # Create safe missing paths and print/run remediation follow-ups
gh-symphony doctor --smoke # Final preflight: validate a live issue without dispatching work
gh-symphony doctor --bundle # Export a redacted support bundle for bug reports
gh-symphony repo init # Bind .runtime/orchestrator to the cwd repository
gh-symphony repo status # Show current repository orchestration status
gh-symphony repo explain owner/repo#123 # Explain why one issue is not dispatching
gh-symphony repo start # Start this repository
gh-symphony repo start --once # Run one orchestration tick for this repository
gh-symphony repo stop # Stop this repositorygh-symphony repo start # Start (foreground)
gh-symphony repo start --once # First managed-project smoke run, then exit
gh-symphony repo start --daemon # Start (background)
gh-symphony repo stop # Stop the daemon
gh-symphony repo stop --force # Force stop with SIGKILLMonitor:
gh-symphony repo status # Show current status
gh-symphony repo status --watch # Live dashboard
gh-symphony repo logs # View event logs
gh-symphony repo logs --follow # Stream logs in real-time
gh-symphony repo logs --issue org/repo#1 # Filter by issue
gh-symphony repo logs --run <run-id> # Read events for a specific run
gh-symphony repo logs --level <level> # Filter by log levelCreate a shareable support bundle when reporting setup or orchestration failures:
gh-symphony doctor --bundle
gh-symphony doctor --bundle ./tmp/support-bundle
gh-symphony doctor --bundle --project-id your-project-idThe bundle includes manifest.json, doctor.json, redacted config and project
metadata, WORKFLOW.md, runtime status files when present, and bounded tails of
recent run logs/events. Optional missing files are recorded in the manifest
instead of failing the export.
Dispatch a single issue:
gh-symphony repo run org/repo#123
gh-symphony repo run org/repo#123 --watch # Watch status after dispatchUse gh-symphony repo explain <owner/repo#number> as the first diagnostic
when a GitHub Project issue stays idle:
gh-symphony repo explain owner/repo#123
gh-symphony repo explain owner/repo#123 --json
gh-symphony repo explain owner/repo#123 --workflow ./WORKFLOW.mdThe report checks whether the repository is linked to the active managed
project, the issue is present in the GitHub Project item set, the current
project status maps to active / wait / terminal in WORKFLOW.md, blockers are
resolved, an existing run / retry / convergence state already owns the issue,
and project or per-state concurrency limits still have capacity.
If the project has no previous local run snapshot and the repository path is
not stored in the managed project config, pass --workflow so the command
evaluates the same WORKFLOW.md that orchestration will use.
Example:
Issue dispatch explanation: owner/repo#123
Not dispatchable: Project state "Backlog" maps to wait, not active, in WORKFLOW.md.
Checks:
✓ Repository owner/repo is linked to the active managed project.
✓ Issue is present in the bound GitHub Project item set.
✗ Project state "Backlog" maps to wait, not active, in WORKFLOW.md.
Hint: Move the GitHub Project item to an active state or run 'gh-symphony workflow preview' to inspect WORKFLOW.md state mappings.
Hints point back to existing troubleshooting commands such as workflow preview, doctor, repo status, and repo logs --issue.
Recover stalled runs:
gh-symphony repo recover # Recover stalled runs
gh-symphony repo recover --dry-run # Preview what would be recoveredgh-symphony repo init binds the orchestrator to the cwd repository. It reads WORKFLOW.md, infers owner/name from the Git remote, and writes per-repo runtime state under .runtime/orchestrator/.
For Linear tracker repositories, WORKFLOW.md remains the source of truth:
tracker:
kind: linear
api_key: $LINEAR_API_KEY
project_slug: symphony-0c79b11b75ea
pickup_labels:
include:
- agent
- dev-ready
exclude:
- no-agent
- needs-specgh-symphony repo init validates that tracker.project_slug is present and that the tracker.api_key reference resolves, for example through LINEAR_API_KEY. Linear config aliases such as tracker.project_id, projectId, project_id, and teamId are rejected. The legacy .gh-symphony/config.json file is not used as the Linear source of truth.
gh-symphony repo start --assigned-only also applies to Linear trackers. Linear pushes the filter into GraphQL as assignee.isMe = true, so the result set is scoped to the user represented by the configured API key. With a personal API key this means issues assigned to that person; with a service-account key it means issues assigned to the service account, and Symphony does not fail fast because Linear does not expose enough token metadata in the issue query path to distinguish those cases reliably.
Linear workflows may also configure tracker.pickup_labels.include and tracker.pickup_labels.exclude as pickup eligibility gates. Excluded labels always win; when include labels are configured, an issue needs at least one include label before a worker starts. Label changes are not an interruption control for already running workers; move the Linear issue state to drive lifecycle and handoff behavior.
Linear orchestration is polling-only. There is intentionally no Linear webhook setup command; state transitions, workpad comments, and PR handoff policy belong in WORKFLOW.md. See docs/examples/linear-WORKFLOW.md for a complete example.
gh-symphony config show # Show configuration
gh-symphony config set <key> <val> # Set a configuration value
gh-symphony config edit # Open config in $EDITORgh-symphony doctor runs a single first-run diagnostic pass and exits non-zero if any required prerequisite is missing. gh-symphony doctor --fix adds a remediation pass on top of the same checks. gh-symphony doctor --smoke is the recommended final preflight before gh-symphony repo start --once: it resolves the active managed project, checks the GitHub Project binding, confirms the repository and target issue are readable through the project, renders WORKFLOW.md for that issue, verifies the runtime command, workspace root, and configured hook paths, and exits without dispatching a worker.
Use an explicit issue when you want a deterministic check:
gh-symphony doctor --smoke --issue owner/repo#123
gh-symphony doctor --smoke --issue owner/repo#123 --jsonWithout --issue, doctor auto-selects one active live issue from the managed project. If none is suitable, the report explains which active states it expected and suggests re-running with --issue.
gh-symphony doctor --fix can:
- create missing config, runtime, and workspace directories
- launch
gh auth login/gh auth refreshin TTY environments, or print the exact command in non-interactive environments - launch
gh-symphony workflow initwhenWORKFLOW.mdis missing or invalid - launch
gh-symphony setupwhen the repository runtime or GitHub Project binding must be reconfigured - print environment-specific runtime install guidance when the configured command is missing from
PATH
The diagnostic checks cover:
- the active GitHub auth source (
GITHUB_GRAPHQL_TOKENfirst, otherwisegh) and required scopes (repo,read:org,project) - Node.js runtime version against the documented minimum (
v24+) and the currentprocess.version - Git installation availability on
PATH, includinggit --versionwhen available - repository runtime resolution and GitHub Project binding lookup
- runtime root and repository workspace writability
- repository
WORKFLOW.mdpresence and parse validity - configured runtime command availability on
PATH - with
--smoke: linked repository readiness, live issue readability, strict prompt rendering, and hook path resolution
Use --json for setup automation and smoke checks. When combined with --fix, the JSON report also includes a structured remediation step list with applied, skipped, or manual outcomes.
gh-symphony doctor --json
gh-symphony doctor --fix --json
gh-symphony doctor --smoke --json
gh-symphony repo start --onceJSON output includes the resolved auth source as env or gh.
gh-symphony completion bash # Print bash completion script
gh-symphony completion zsh # Print zsh completion script
gh-symphony completion fish # Print fish completion script- Project — one GitHub Project bound to a set of repositories. Each project gets its own config, leases, and status snapshot. A single orchestrator manages multiple projects.
- WORKFLOW.md — the per-repository (or per-project fallback) workflow policy file. Contains YAML front matter for lifecycle config and a Markdown body used as the agent prompt template.
GitHub Symphony supports two authentication paths.
GITHUB_GRAPHQL_TOKENfor local shells, containers, and CI-like environmentsghCLI for interactive developer machines
Run gh setup once if you want to use the CLI-managed path:
gh auth login --scopes repo,read:org,projectOr if you need to add scopes to an existing login:
gh auth refresh --scopes repo,read:org,projectUse GITHUB_GRAPHQL_TOKEN when gh is unavailable or undesirable:
export GITHUB_GRAPHQL_TOKEN=ghp_your_classic_tokenGITHUB_GRAPHQL_TOKEN takes priority over gh CLI. Interactive gh-symphony workflow init and gh-symphony setup will use the env token first when it is present and valid, and only fall back to gh when no usable env token is available. gh-symphony doctor also reports the resolved auth source as env or gh.
WORKFLOW.md contains YAML front matter for lifecycle configuration and a Markdown body used as the agent prompt template.
The generated file includes:
- Lifecycle:
active_states,terminal_states, explicitblocker_check_states, andplanning_statesderived from the status column mapping - Runtime:
agent_commandderived fromgh-symphony workflow init - Hooks:
after_createhook path - Scheduler:
poll_interval_ms - Retry:
base_delay_ms,max_delay_ms - Status Map: visual mapping of status columns to roles
- Agent Instructions: prompt template with
{{issue.*}}and{{guidelines}}variables
Available template variables:
| Variable | Description |
|---|---|
{{issue.identifier}} |
e.g. acme/platform#42 |
{{issue.title}} |
Issue title |
{{issue.state}} |
Current tracker state |
{{issue.description}} |
Issue body |
{{issue.url}} |
Issue URL |
{{issue.repository}} |
owner/name |
{{issue.number}} |
Issue number |
{{attempt}} |
Retry attempt number (null on first run) |
{{guidelines}} |
Prompt guidelines from WORKFLOW.md |
gh-symphony workflow init generates a WORKFLOW.md in the current directory.
With a project already registered:
cd my-repo
gh-symphony workflow init # generates ./WORKFLOW.md from active project config
gh-symphony workflow init --dry-run
gh-symphony workflow validate
gh-symphony workflow preview --issue owner/repo#123--dry-run resolves the same generated WORKFLOW.md and runtime skill files,
then prints whether each path would be created, updated, or left unchanged
without writing anything.
When gh-symphony workflow init detects repository validation entry points, it bakes that information back into the generated policy files so the out-of-the-box workflow already tells agents which test/lint/build commands to prefer and whether workspace-aware validation is expected. That includes non-Node repositories when the detector can prove a conservative command from Makefile, justfile, Python tooling, go.mod, or Cargo.toml.
Without a project (standalone):
gh-symphony workflow init --non-interactive --project PVT_xxx --output WORKFLOW.md
gh-symphony workflow init --non-interactive --project PVT_xxx --dry-rungh-symphony workflow validate parses the target file, strictly renders the prompt body and continuation guidance with canonical sample variables, and prints a compact runtime/lifecycle summary.
gh-symphony workflow preview --issue owner/repo#123 is the fastest validation step after workflow init: it resolves the active managed project (or --project-id) and renders the exact worker prompt from the live GitHub Project issue. Linear workflows can preview a single issue with gh-symphony workflow preview ENG-123, which routes through the configured Linear tracker adapter and LINEAR_API_KEY. Keep --sample <path-to-json> for fixture-based debugging, and use --attempt <n> to inspect retry prompts before changing policy files.
The orchestrator resolves the workflow policy using this fallback chain:
- Repository WORKFLOW.md — if the target repository has a
WORKFLOW.mdat its root, use it. - Project WORKFLOW.md — if the repository has no
WORKFLOW.md, fall back to the project-levelWORKFLOW.md. - Hardcoded defaults — if neither file exists, use built-in defaults (
Todo,In Progressas active;Doneas terminal; blocker check and planning states disabled).
This means you can:
- Run without any
WORKFLOW.mdand rely on defaults - Use a single project-level
WORKFLOW.mdfor all repositories - Override per-repository by committing a
WORKFLOW.mdto the repo root
For project-specific secrets or staging settings, place a .env file under the orchestrator runtime project directory instead of committing values into WORKFLOW.md or repository scripts.
- Default path:
~/.gh-symphony/projects/<project-id>/.env - If you run the CLI with a custom
--config <dir>, the path becomes<dir>/projects/<project-id>/.env - The file is loaded as base env for workspace hooks and worker processes
# ~/.gh-symphony/projects/my-project/.env
STAGING_API_HOST=https://staging.example.com
PLAYWRIGHT_BASE_URL=http://localhost:3000
API_SECRET_KEY=sk-secret-xxxEnvironment variables are merged from three sources (later overrides earlier):
| Priority | Source | Description |
|---|---|---|
| 1 (lowest) | Project .env |
~/.gh-symphony/projects/<project-id>/.env |
| 2 | System environment | Orchestrator process's process.env |
| 3 (highest) | Symphony context | Auto-injected SYMPHONY_* variables |
In CI, regular process env can override the project .env without changing WORKFLOW.md.
All hooks (after_create, before_run, after_run, before_remove) automatically receive the following variables in addition to the merged environment above:
| Variable | Description |
|---|---|
SYMPHONY_PROJECT_ID |
Orchestrator project ID |
SYMPHONY_ISSUE_WORKSPACE_KEY |
Workspace key for the issue |
SYMPHONY_ISSUE_SUBJECT_ID |
Issue subject ID (tracker-specific) |
SYMPHONY_ISSUE_IDENTIFIER |
e.g. acme/platform#42 |
SYMPHONY_WORKSPACE_PATH |
Absolute path to the issue workspace |
SYMPHONY_REPOSITORY_PATH |
Absolute path to the cloned repository |
SYMPHONY_RUN_ID |
Current run ID (absent in after_create) |
SYMPHONY_ISSUE_STATE |
Current tracker state (absent in after_create) |
Keep the mapping logic in versioned hook code while actual values stay in the runtime-only project .env:
# WORKFLOW.md
hooks:
after_create: |
echo "API_HOST=$STAGING_API_HOST" >> .env.development
echo "SECRET=$API_SECRET_KEY" >> .env.development
before_run: |
echo "BASE_URL=$PLAYWRIGHT_BASE_URL" > playwright.env$STAGING_API_HOST and $API_SECRET_KEY are resolved from the project .env at runtime — nothing secret is committed to the repository.
For complex setup logic, point the hook to a shell script committed in the repository. Hook commands containing a / (without spaces) are automatically prefixed with bash ./, so a repository-relative path works as-is.
# WORKFLOW.md
hooks:
after_create: hooks/after_create.sh# hooks/after_create.sh
#!/usr/bin/env bash
set -euo pipefail
# cwd is the repository root
# Project .env variables are available as environment variables
echo "API_HOST=$STAGING_API_HOST" >> .env.development
echo "SECRET=$API_SECRET_KEY" >> .env.development
# Use auto-injected SYMPHONY_* variables
echo "Setting up workspace at $SYMPHONY_WORKSPACE_PATH"
echo "Issue: $SYMPHONY_ISSUE_IDENTIFIER"Hooks always run with
cwdset to the repository root. Script paths are relative to that root.
The orchestrator runs independently as long as the repository has been initialized with gh-symphony repo init.
# Via the CLI daemon
gh-symphony repo start # continuous polling + status API on 127.0.0.1:4680
gh-symphony repo start --once # run startup cleanup + one poll/reconcile/dispatch tick
gh-symphony repo start --once --http # keep the dashboard/API available after the one-shot tick until Ctrl+C
gh-symphony repo run beta/api#42 # dispatch a single issue
# Via the orchestrator package directly
pnpm --filter @gh-symphony/orchestrator start -- run
pnpm --filter @gh-symphony/orchestrator start -- run-once
pnpm --filter @gh-symphony/orchestrator start -- dispatch --project-id <id>
pnpm --filter @gh-symphony/orchestrator start -- run-issue --project-id <id> --issue <owner/repo#number>
pnpm --filter @gh-symphony/orchestrator start -- recover
pnpm --filter @gh-symphony/orchestrator start -- statusRuntime state lives under .runtime/orchestrator/:
| Path | Contents |
|---|---|
project.json |
Repository runtime metadata |
config.json |
Active repository runtime pointer |
leases.json |
Active or released issue-phase leases |
status.json |
Latest repository status snapshot |
runs/<run-id>/run.json |
Run snapshot, retry state, worker assignment |
runs/<run-id>/events.ndjson |
Structured orchestration events |
Read orchestration state via the status API (/api/v1/projects/<id>/status) rather than reading status files directly.
Run gh-symphony doctor --smoke before the first start --once when you want a safe pre-dispatch readiness check. gh-symphony repo start --once is the first production-like run: it validates the real GitHub Project binding, repository WORKFLOW.md, and dispatch eligibility, then performs one poll/reconcile/dispatch tick instead of starting a long-lived poller. Add --http when you want the dashboard/API available; with --once --http, the one-shot tick still completes, but the HTTP server stays up afterward and the process keeps the project lock until you stop it with Ctrl+C.
Before shipping a change:
pnpm lint
pnpm test
pnpm typecheck
pnpm buildThis project is released under the MIT License.