Skip to content

Getting Started and Onboarding

magalz edited this page Nov 26, 2026 · 1 revision

Getting Started and Onboarding

This guide covers installing ignis-swarm, completing the interactive /ignis-onboarding wizard, understanding the persisted ~/.ignis-broker/onboarding.json state, and reconfiguring or resetting your setup later.


1. Prerequisites

  • Google Antigravity (App or agy CLI)
  • Node.js >= 20 on PATH (used by all lifecycle hooks, the bundled MCP broker, and the headless blind review runner; zero npm dependencies required)
  • Git (used by stop-gate.mjs, run-blind-review.mjs, and repo-root discovery)

2. Installing ignis-swarm

From GitHub (Recommended)

agy plugin install https://github.com/magalz/ignis-swarm

From a Local Clone (for development or customization)

git clone https://github.com/magalz/ignis-swarm.git
cd ignis-swarm
agy plugin validate --strict .
agy plugin install .

Verify Installed Components

agy plugin list

Expected entry:

- ignis-swarm (enabled, 1.0.0)
    Components: 10 skills, 1 agent, 1 rule, 1 MCP server, 5 hooks

3. First-Run Onboarding (/ignis-onboarding)

When you start your first interactive user session in a project workspace (a directory containing .git, package.json, Cargo.toml, go.mod, pyproject.toml, or docs), hooks/session-start.mjs checks ~/.ignis-broker/onboarding.json. If onboarding is not yet completed, it injects a one-time prompt instructing the agent to load ignis-onboarding.

Subagent isolation: hooks/session-start.mjs validates isInteractiveUserSession(payload) (requiring user input in the session and rejecting subagent payloads), so subagents and /swarm workers never receive onboarding prompts.

You can also invoke /ignis-onboarding manually at any time to reconfigure your setup.

Step 1 — Environment Probe

The wizard runs:

node <plugin-root>/scripts/ignis-broker.mjs onboarding --probe

This read-only probe collects:

  • Discovered MCP servers from ~/.gemini/config/mcp_config.json (secrets redacted; ignis-swarm_broker itself excluded).
  • Local CLI availability (claude, codex, memtrace) using cross-platform PATH + Windows PATHEXT resolution.
  • Dynamic Codex CLI models from ~/.codex/models_cache.json and ~/.codex/config.toml (when Codex is installed).
  • Current onboarding state from ~/.ignis-broker/onboarding.json.

Step 2 — The Interactive Questions (Q1–Q5)

All choices are presented neutrally without pre-selected defaults:

Question Mode What it configures
Q1 — MCP Broker Multi-select Which discovered MCP servers ignis-broker should manage (All discovered MCPs, individual server names, or None / skip). Never mutates your existing ~/.gemini/config/mcp_config.json.
Q2 — Opt-In Issue Trackers Multi-select Connect None, Linear, ItsAPlan, and/or GitHub Issues for Phase 0 discovery and Phase 3 ADR/BDR mirroring.
Q3 — Opt-In Memtrace Single-select Enable or disable Memtrace code-intelligence health checks in SessionStart and broker integration.
Q4 — Phase 4 Review Routing Single-select Choose antigravity_gemini_only, antigravity_first, or headless_always.
Q5 — External CLI & Model (only if Q4 uses external CLIs) Single-select Pick claude (Opus) or codex (Sol + probed model slug or Codex config default) and optionally run --smoke-test to verify auth immediately.

Step 3 — Automatic Registration & Persistence

Based on your answers, the wizard runs the broker CLI to:

  1. Register selected MCPs into ~/.ignis-broker/servers.json (0o700 dir / 0o600 file permissions).
  2. Register HTTP tracker endpoints if requested (add-http-mcp), or surface the official Linear Marketplace plugin card.
  3. Save preferences to ~/.ignis-broker/onboarding.json (0o600).

4. onboarding.json Schema

Default location: ~/.ignis-broker/onboarding.json (overridable via IGNIS_BROKER_HOME or IGNIS_BROKER_DATA).

{
  "version": 1,
  "completed": true,
  "skipped": false,
  "completedAt": "2026-11-26T18:51:15.215Z",
  "brokerManagedServers": [
    "itsaplan",
    "firecrawl",
    "memtrace"
  ],
  "tracker": {
    "kind": "itsaplan",
    "mcpServer": "itsaplan"
  },
  "trackers": [
    {
      "kind": "itsaplan",
      "mcpServer": "itsaplan"
    }
  ],
  "memtrace": {
    "enabled": false
  },
  "reviewRouting": {
    "strategy": "antigravity_first",
    "headlessBackend": "claude",
    "headlessModel": null,
    "effort": "high"
  },
  "compaction": {
    "transcriptThresholdKb": 550
  }
}

Key Fields

  • tracker / trackers: Primary tracker (backward-compatible) and full multi-tracker list (kind: "none" | "linear" | "itsaplan" | "github").
  • memtrace.enabled: When true, SessionStart runs memtrace status (3s timeout) and /plan queries Memtrace for prior slice context.
  • reviewRouting.strategy:
    • "antigravity_gemini_only" — Uses only the bundled blind-edge-hunter subagent.
    • "antigravity_first" — Uses blind-edge-hunter first, falling back to headlessBackend if native quota is exhausted.
    • "headless_always" — Uses scripts/run-blind-review.mjs directly, falling back to native blind-edge-hunter only on failure.
  • compaction.transcriptThresholdKb: Active transcript byte threshold (in KB, default 550) used by hooks/compaction-watch.mjs.

5. Managing Onboarding via CLI

# Inspect current saved onboarding state
node <plugin-root>/scripts/ignis-broker.mjs onboarding --get

# Probe environment (MCPs, CLIs, Codex models) without changing state
node <plugin-root>/scripts/ignis-broker.mjs onboarding --probe

# Save/merge a partial JSON update
node <plugin-root>/scripts/ignis-broker.mjs onboarding --save '{"compaction":{"transcriptThresholdKb":450}}'

# Mark onboarding skipped (stops first-run prompts)
node <plugin-root>/scripts/ignis-broker.mjs onboarding --skip

# Reset onboarding to trigger the first-run wizard on the next session
node <plugin-root>/scripts/ignis-broker.mjs onboarding --reset

Clone this wiki locally