Skip to content

rig home · Documentation

Changelog

All notable changes to rig are recorded in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

Unreleased

1.1.0 - 2026-12-03

Added

  • rig workflow show --tree prints the workflow as an indented tree and --graph as a box-drawing graph. Each is exclusive with --json and with the other (exit 2) (#154, #155).
  • rig workflow validate now says where each problem is and what was probably meant: text output adds (line N, column M) and did you mean "x"?, and --json problems gain line, column and suggestion (omitted when they do not apply). A file that does not parse is still exit 2.
  • The workflow JSON Schema is published at schema/workflow.schema.json (https://raw.githubusercontent.com/AindriuB/rig/main/schema/workflow.schema.json), and a workflow file may carry a top-level "$schema" key, which rig accepts and ignores.
  • rig task graph [--format text|mermaid|dot] [--all] prints the tasks' depends links as a graph and flags missing dependencies and cycles (exit 1).
  • rig clean previews, and with --apply removes, stale task worktrees, their branches, stale worktree metadata and build folders, only when every guard passes, and reports the space freed. It deletes a branch only on proof that it landed (git ancestry, or with --online a merged forge PR) or with --dropped. See docs/design.md.
  • rig task landed <task> [--sha <sha>] [--online] [--json] exits 0 when the task's commit is on the default branch, 1 when it is not and 2 on an error. It works as a command gate on the merged transition (offline it refuses squash merges; use --online for those).
  • clean.buildDirs and clean.disposable config keys name the build folders and ignored paths rig clean may remove. They are read only from the global config.

Fixed

  • A rig tracker push resume no longer replaces an existing tracker-sync snapshot, so a later refresh still compares against the values the task was last synced with. It writes one from its last read only when the link has none and the read has a revision.
  • A resume writes its parent record only while the attach is still pending, checked under the lock, so a link changed during the push is refused instead of overwritten.
  • A GitHub issue whose parent is in another repository resumes as wrong-parent and is not moved.

1.0.1 - 2026-11-30

Fixed

  • Jira no longer refuses (HTTP 400) a description where inline code sits inside emphasis, bold or strikethrough, for example after a bare * in O(n*m): code text now keeps only its code mark and any link.
  • A failed Jira request now shows Jira's own error messages and field errors, with control characters dropped and capped at 300 bytes, instead of a bare HTTP status.

1.0.0 - 2026-11-30

Added

  • The 1.0 compatibility promise: docs/release.md lists what stays stable within a major version and what a major, minor and patch release may change.

Changed

  • Breaking: a tracker is now on only where a repository opts in. A tracker.kind at the top level of the global config, or in .claude/rig.json, no longer turns a tracker on: the tracker commands exit 2 as with no tracker, and rig prints the command to run. Migrate by running rig config set tracker.kind <kind> --repo (or --local) in each repository that used the global kind. rig tracker status now prints kind: <kind> (<scope>), the scope the kind came from, and rig tracker status --json gains a kindScope field with the same value.
  • rig pr wait now waits up to 3600 seconds by default (was 1800).

Fixed

  • rig hooks deliver no longer runs a hook's program after another runner has taken over its lease: it checks the lease before each try and writes nothing for a lost one.
  • rig hooks deliver --follow with no queued hooks now waits until interrupted instead of returning.

0.10.0 - 2026-11-29

Added

  • rig task drop <task> --reason <text> ends a task that will not be merged by moving it to the workflow's drop state, as rig task move does. A workflow marks one final state "drop": true; with none, the command exits 1 and writes nothing.
  • rig workflow explain [<file>] says in plain words what a workflow's states, moves, gates and hooks do. rig workflow try [<file>] walks every move on a scratch task in memory and exits 1 when a move cannot be taken, a state is not reached or a state has no way out. rig workflow diff <file> exits 1 when a new workflow file would strand a task in flight.
  • rig init --template minimal|pr-gated|kit-loop [--out <file>] [--force] [--json] writes a starter workflow file, .rig/workflow.json by default, checks it and prints how to point rig at it. It exits 1 when the file exists without --force, and 2 for a missing or unknown template or a file that fails the check.
  • rig tracker report --if-linked exits 0 and sends nothing when the task has no tracker link or no tracker is configured; --json prints skipReason. A hook with "when": "linked" fires only for a task linked to a tracker issue.
  • rig hooks init <hook> [--json] saves a from: now hook's cursor at the current tips, so events written after it are delivered. It exits 1 and writes nothing when the hook already has a cursor, is from: start, or is unknown or inline.
  • rig hooks deliver --json (one-shot only) prints {"parked":[…],"skipped":[…]}. With --follow it exits 2.
  • rig hooks status shows each hook's pending events, as <n> pending (oldest <time>) in text and "pending": {"count", "oldest"} in --json.
  • The first rig hooks deliver pass on a from: now hook with no cursor warns once when earlier matching events will not be delivered.

Changed

  • The text output of rig next, rig status, and the rig task and rig finding commands names a task by its slug first, as <slug> (<short>), and a finding by its title, as <title> (<f-short>), with the full summary on the next line when the title is cut. --json and markdown output are unchanged.
  • rig task start <task> takes any task the store knows, by ULID, short id or slug. A store task starts on task/<slug> when it has a <slug>.md task file, else on the branch it records. A store task with no task file uses its owns field, and exits 1 when it has neither.
  • rig push <task|branch> resolves a store task by ULID, short id or slug, and a task file named exactly <task>.md to task/<task>, before the old prefix lookup. A slug two store tasks share, with no such task file, exits 2.
  • A one-shot rig hooks deliver exits 1 when it parked or skipped an event (it exited 0). An exit 2 still wins.
  • rig hooks deliver runs each queued hook in its own worker, so a failing hook no longer holds the others back. A one-shot run exits with the highest worker's exit code.
  • An event past a queued hook's maxDepth, or one whose selector fails, is skipped instead of parked: the runner prints rig hooks deliver: <hook>: skipped <event> of <task>: <reason> and goes on with the task's later events.
  • rig tracker push resumes a parent attach that failed on an earlier push instead of listing the task skipped. The child is listed created-not-attached, and the next push lists it verified, attached, attach-failed, not-verified or wrong-parent without creating a second issue; the last three exit 2.
  • The basic workflow preset gains a final dropped state that needs a reason, and rig next leaves drop states out when it works out how near a task is to done.

Fixed

  • rig hooks skip on a hook with no saved cursor starts where the hook's from says, so skipping on a from: now hook no longer replays earlier history.
  • rig hooks deliver saves its cursor per log, so it no longer undoes a rig hooks skip.
  • A from: now hook with parked events and no saved cursor starts before its earliest parked event, so changing from from start to now after a park no longer loses the parked event.
  • rig hooks status shows a hook with parked events but no saved cursor as started.

0.9.0 - 2026-11-28

Added

  • rig help <group> lists that group's subcommands, and rig help --all prints the full help text.

Changed

  • rig needs Go 1.27 or later to build (was 1.24). Go 1.21 and later download the newer toolchain for go install unless GOTOOLCHAIN=local is set.
  • rig task finish --sha takes only a full commit id (40 or 64 lowercase hex), compared with the branch tip as text. --sha HEAD, a branch name or a short id now exits 2 naming the rule.
  • rig help lists the command groups instead of the full text. A group command run bare or with an unknown subcommand prints its group's help.
  • rig hooks deliver delivers the other hooks past one hook's lease, state or feed error. A one-shot run exits 2 after the pass when any hook failed; --follow logs each failure once and keeps looping. A failed park or cursor save is fatal: the runner releases its leases and exits 2. A runner whose lease is taken over stops before the hook's next program and writes no state for it.
  • Releases are built with the latest Go 1.27 patch, and the signed assets are verified before the GitHub release is created.

Fixed

  • rig hooks status and the no-runner warning no longer suggest that a hook that has not started will have its events delivered.
  • A hook state file whose cursor has an unknown format is refused instead of crashing the runner.
  • A repeated rig task new --from <key> --once <k> prints the repeat line, not the existing task.
  • rig task link on a task already linked to the same issue keeps the link's stored owned list, so a later rig tracker refresh no longer writes another sync.
  • A feed started without a cursor walks each log's history in batches.

0.8.0 - 2026-11-28

Added

  • Queued hooks ("mode": "queued") are delivered, and from and maxDepth are acted on. rig hooks deliver [--follow] is the runner: it delivers at least once, in order within a task, keeps one cursor per hook, makes 5 attempts in all (waiting 1, 2, 4 and 8 seconds between them) and then parks the event. rig never starts the runner; docs/hooks.md has a launchd plist and a systemd unit. A write a queued hook matches warns when no runner is alive.
  • rig hooks status [--json], rig hooks retry <hook> and rig hooks skip <hook> <event> show a hook's runner and parked events, release them for another try, or drop one. skip refuses while a live runner holds the hook.
  • --once <k> on the write commands (rig task new|edit|parent|link|unlink|move|set|count, rig finding add|set, rig note add, rig tracker report) makes a write happen once per key and reports a repeat. Inside a hook the key is made from the hook, event and command by default.
  • RIG_HOOK_DEPTH is set for every hook. A write whose cause event is not in the log, as across repositories, takes its depth from it.

Changed

  • A queued hook with no maxDepth is uncapped.
  • rig events holds a log it cannot read until it can be read, and warns once when it is held and once when it is released. A --cursor-file saved by 0.7.0 may already record such a log at its tip; delete the cursor file once after upgrading so the log is re-read and reported.

0.7.0 - 2026-11-27

Added

  • Hooks have a name, a per-hook timeout (up to 30 seconds), env and a mode. Selectors are transition, enter:<state>, leave:<state>, final, kind:<kind> and kind:*, and on may be a list. queued mode and the from and maxDepth keys are accepted but not acted on yet. A hook without a name is called hook-<n> with a warning.
  • Hooks run for every event a single-task write produces, not only the first event of rig task move. Their payload is {"format":1,"event","task","effective"}. No rig tracker command runs inline hooks, including single-task report and push; rig events sees their events.
  • Hooks run as RIG_ACTOR=hook:<name>, with RIG_HOOK_NAME, RIG_HOOK_EVENT and RIG_HOOK_TASK. A write a hook makes records a cause with a depth read from the log, and a write at depth 3 runs no inline hooks. A hook that times out gets SIGTERM and 5 seconds before it is killed (Unix).
  • rig events [--since <file> | --cursor-file <file>] [--from-start] [--follow] [--json] lists events across all tasks and repository notes, from a cursor.
  • rig hooks start [--json] [--] <cmd> [args...] starts long work that outlives its hook, without the RIG_HOOK_* variables.
  • docs/hooks.md: the hook reference, with recipes.

Changed

  • Hooks now get an allowlisted environment instead of rig's whole environment. PATH, HOME, locale, proxy, desktop-session and tool-config variables and RIG_WORKFLOW pass; GH_TOKEN, RIG_*_TOKEN, cloud credentials and SSH_AUTH_SOCK do not. A hook that relied on one lists it, for example { "on": "enter:pr_open", "env": ["GH_TOKEN"], "run": ["pr-comment", "{short}"] }. command gates and exec tracker programs are unchanged.

0.6.0 - 2026-11-26

Tracker create and push have been tested against fakes only. A live check against GitHub, GitLab and Jira Cloud is planned for 0.7.0.

Added

  • rig tracker push creates issues in the linked tracker for tasks that have none, and sub-issues under a parent. It works with Jira, GitHub, GitLab and exec trackers. A retry does not create a duplicate: each attempt is recorded as an intent event and the issue carries a marker label rig/<repo>/<slug>-<8 hex> that a retry searches for. A partial failure returns the created key and URL with the error. It writes a tracker-push event, which older versions skip. (#78, #80)
  • The workflow file's tracker key gains push with levels and types, which choose the issue type for each task level. rig workflow show prints them, and validation names the path of a bad value. (#69)
  • The tracker port gains Create and IssueTypes, with a contract test suite that adapters must pass. (#70)
  • GitHub adapter creates issues and sub-issues, with labels and, when the organisation has them, issue types. (#71)
  • Jira adapter creates issues on Cloud and on Server/Data Center, including a parent through fields.parent or an Epic Link field. (#73)
  • GitLab adapter creates project work items with a parent, creating missing labels first, and group epics are keyed epic-<iid>. (#74, #76)
  • The exec tracker protocol gains the ops create and types. A program that answers unsupported keeps working, and the protocol version stays 1. (#72)
  • Release runbook and site: a rig-site rebuild is dispatched on release. (#68)
  • Docs: rig tracker push in the README, docs/design.md, docs/workflows.md and docs/phase-3.5.md, and Mermaid diagrams for the release flow, the command map, task moves, the review loop and tracker links. (#81, #82, #83)

Changed

  • rig with no command or an unknown one prints an indented usage screen with one-line descriptions, at most 100 columns wide. rig tracker usage lists push. (#79)
  • Pushing a task under a parent already on the tracker picks the issue type by one rule: the task's own type, else its own issue's type, else one level below the parent. Push refuses only when the parent's type is not a known level. (#80)
  • The CI go test step runs with a 20 minute timeout on all three operating systems. (#77)

Fixed

  • GitHub create sends the body and acceptance checklist exactly, and returns the created parent. When attaching or re-reading fails after the issue was created, it returns the issue's key and link with the error. (#75, #80)
  • The exec adapter reports create and types only when the program supports them, validates the key a create returns, and returns ErrUnsupported for types when the program has none. (#75)

0.5.0 - 2026-11-24

Added

  • rig tracker report <task> sends a linked task's progress to its issue: a status change from the workflow's tracker.report.status, then a comment from a fixed template (--comment pr|state|summary). Findings and notes are sent only with --include. --dry-run prints exactly what a real run would send, and a repeated report is skipped. It exits 1, sending nothing, when the state has no mapping or the tracker has no such transition. It writes a tracker-report event, which older versions skip. (#47, #48)
  • --actor <name> (alias --role) on the commands that write the store (task new, edit, move, set, count, parent, link, unlink; finding add, set; note add; tracker pull, refresh). Precedence: the flag, then $RIG_ACTOR, then git user.name. An empty value, a control character, or --actor and --role with different values exits 2. (#45)
  • rig login jira --token as the new name for --pat; --pat still works. (#48)

Changed

  • --actor also rejects invisible formatting characters (bidi overrides, zero-width characters, line and paragraph separators). (#46)
  • rig task finish refuses with exit 1 and changes nothing when the main checkout has uncommitted changes to tracked files, or a merge, cherry-pick, revert, rebase, bisect or sequencer operation in progress. (#46, #48)
  • rig version with an argument exits 2. (#48)
  • In rig tracker report, a dry run honours trackers that cannot comment, and a status the tracker does not support is dropped before the skip check. (#48)

0.4.0 - 2026-11-24

Added

  • rig tracker pull | refresh | show | status link tasks to issues in an external tracker. (#38)
  • Tracker adapters: GitHub issues through gh (#35), GitLab issues through glab (#36), Jira Cloud REST v3 and Server/Data Center REST v2 (#37), and exec, which runs a program of your own over a JSON protocol (#34).
  • Config keys tracker.command (global only), tracker.jira.api and tracker.jira.epicField, and the exec tracker kind. A tracker.url from a committed or unverifiable .rig/config.json is dropped. (#27)
  • An optional top-level tracker key in the workflow file (intake.states, map, report.status), and parent, external and drift in the task view. (#30)
  • Task hierarchy and external links: task new --from, task parent, task link, task unlink, task list --parent, --roots and --tree, and task show --children. Fields owned by a tracker link cannot be changed with task set or task edit. (#28, #40)
  • --format text|markdown|json (aliases --json, --markdown) on task show, task list and context, with a stable Markdown rendering. (#33)
  • rig task start <slug> and rig task finish <task> --sha <sha> create and merge task worktrees under worktrees.root. (#42)
  • rig status gains a store section (STORE TASKS, STORE FINDINGS) and a store field in --json. (#41)

Changed

  • rig push <task-id> finds the task file in the enclosing workspace repository when the code repository is a child clone. (#39)
  • Token environment variables (RIG_<X>_TOKEN) are removed from the environment of the gh, glab and tracker programs rig runs. (#31, #35, #36)

Fixed

  • A task with no external link no longer gets an invalid branch such as rig/ from a branch template containing {key}; the short id is used instead. (#29)

0.3.0 - 2026-11-23

Added

  • A generic task store kept in git refs under refs/rig/tasks, with findings and notes. (#9, #11)
  • rig task new | show | list | move | set | count | is | log | edit. Moves are checked against the workflow's gates, and a refused move exits 1 with no event written. (#18)
  • rig finding add | list | set and rig note add | list. (#17)
  • rig workflow show | validate, and the built-in basic workflow. Workflow files define states, gates and hooks, and are chosen by $RIG_WORKFLOW, the workflow config key, or the preset. (#10, #13, #14)
  • rig next [--who] [--limit] [--json] lists the tasks that can move, human first. (#15)
  • rig context <task> [--budget] [--json] prints a task's brief within a size budget. (#16)
  • rig config get | set | unset | list with --global, --repo and --local scopes, --json and --show-origin. Layered config reads global, repository, local and .claude/rig.json files. pushPrefixes, push.prefixes, workflow and jira.token cannot be set this way. (#8, #12)
  • rig login github | gitlab | jira | status and rig logout. Jira tokens are kept in the OS keychain or a 0600 file and are never taken from the command line. (#7, #19)
  • docs/workflows.md describes the workflow file format. (#22)

Fixed

  • rig login jira refuses a tracker.url from a tracked .rig/config.json, including a tracked .RIG directory, a gitlink, or a symlinked .rig, and exits 2 before any prompt. (#21, #23)
  • rig login github and gitlab name the host before running gh or glab auth login, and use forge.host only when it fits the forced kind. (#21)

0.1.0 - 2026-11-20

Added

  • rig push <task-id|branch> [--worktree <path>] pushes one branch to origin. It refuses the default branch, tags, refspecs and force pushes, and pushes only branches whose prefix is in pushPrefixes (default task, record).
  • rig pr view, rig pr list, rig pr checks, rig pr open and rig pr wait give GitHub and GitLab one output form, with --json and stable exit codes. They run gh or glab and use your existing login.
  • rig status [--json] prints the handoff note, task files, worktrees and open pull requests.
  • rig version.
  • Optional .claude/rig.json with the keys forge, host and pushPrefixes.