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 --treeprints the workflow as an indented tree and--graphas a box-drawing graph. Each is exclusive with--jsonand with the other (exit 2) (#154, #155).rig workflow validatenow says where each problem is and what was probably meant: text output adds(line N, column M)anddid you mean "x"?, and--jsonproblems gainline,columnandsuggestion(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'dependslinks as a graph and flags missing dependencies and cycles (exit 1).rig cleanpreviews, and with--applyremoves, 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--onlinea 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 acommandgate on the merged transition (offline it refuses squash merges; use--onlinefor those).clean.buildDirsandclean.disposableconfig keys name the build folders and ignored pathsrig cleanmay remove. They are read only from the global config.
Fixed¶
- A
rig tracker pushresume no longer replaces an existingtracker-syncsnapshot, 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-parentand 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
*inO(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.kindat 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 runningrig config set tracker.kind <kind> --repo(or--local) in each repository that used the global kind.rig tracker statusnow printskind: <kind> (<scope>), the scope the kind came from, andrig tracker status --jsongains akindScopefield with the same value. rig pr waitnow waits up to 3600 seconds by default (was 1800).
Fixed¶
rig hooks deliverno 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 --followwith 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, asrig task movedoes. 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.jsonby 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-linkedexits 0 and sends nothing when the task has no tracker link or no tracker is configured;--jsonprintsskipReason. A hook with"when": "linked"fires only for a task linked to a tracker issue.rig hooks init <hook> [--json]saves afrom: nowhook'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, isfrom: start, or is unknown or inline.rig hooks deliver --json(one-shot only) prints{"parked":[…],"skipped":[…]}. With--followit exits 2.rig hooks statusshows each hook's pending events, as<n> pending (oldest <time>)in text and"pending": {"count", "oldest"}in--json.- The first
rig hooks deliverpass on afrom: nowhook with no cursor warns once when earlier matching events will not be delivered.
Changed¶
- The text output of
rig next,rig status, and therig taskandrig findingcommands 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.--jsonand markdown output are unchanged. rig task start <task>takes any task the store knows, by ULID, short id or slug. A store task starts ontask/<slug>when it has a<slug>.mdtask file, else on the branch it records. A store task with no task file uses itsownsfield, 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>.mdtotask/<task>, before the old prefix lookup. A slug two store tasks share, with no such task file, exits 2.- A one-shot
rig hooks deliverexits 1 when it parked or skipped an event (it exited 0). An exit 2 still wins. rig hooks deliverruns 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 printsrig hooks deliver: <hook>: skipped <event> of <task>: <reason>and goes on with the task's later events. rig tracker pushresumes a parent attach that failed on an earlier push instead of listing the taskskipped. The child is listedcreated-not-attached, and the next push lists itverified,attached,attach-failed,not-verifiedorwrong-parentwithout creating a second issue; the last three exit 2.- The
basicworkflow preset gains a finaldroppedstate that needs a reason, andrig nextleaves drop states out when it works out how near a task is to done.
Fixed¶
rig hooks skipon a hook with no saved cursor starts where the hook'sfromsays, so skipping on afrom: nowhook no longer replays earlier history.rig hooks deliversaves its cursor per log, so it no longer undoes arig hooks skip.- A
from: nowhook with parked events and no saved cursor starts before its earliest parked event, so changingfromfromstarttonowafter a park no longer loses the parked event. rig hooks statusshows 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, andrig help --allprints 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 installunlessGOTOOLCHAIN=localis set. rig task finish --shatakes 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 helplists 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 deliverdelivers 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;--followlogs 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 statusand 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 linkon a task already linked to the same issue keeps the link's stored owned list, so a laterrig tracker refreshno 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, andfromandmaxDepthare 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.mdhas 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>andrig hooks skip <hook> <event>show a hook's runner and parked events, release them for another try, or drop one.skiprefuses 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_DEPTHis 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
maxDepthis uncapped. rig eventsholds 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-filesaved 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-hooktimeout(up to 30 seconds),envand amode. Selectors aretransition,enter:<state>,leave:<state>,final,kind:<kind>andkind:*, andonmay be a list.queuedmode and thefromandmaxDepthkeys are accepted but not acted on yet. A hook without a name is calledhook-<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"}. Norig trackercommand runs inline hooks, including single-taskreportandpush;rig eventssees their events. - Hooks run as
RIG_ACTOR=hook:<name>, withRIG_HOOK_NAME,RIG_HOOK_EVENTandRIG_HOOK_TASK. A write a hook makes records acausewith 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 theRIG_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 andRIG_WORKFLOWpass;GH_TOKEN,RIG_*_TOKEN, cloud credentials andSSH_AUTH_SOCKdo not. A hook that relied on one lists it, for example{ "on": "enter:pr_open", "env": ["GH_TOKEN"], "run": ["pr-comment", "{short}"] }.commandgates andexectracker 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 pushcreates issues in the linked tracker for tasks that have none, and sub-issues under a parent. It works with Jira, GitHub, GitLab andexectrackers. A retry does not create a duplicate: each attempt is recorded as an intent event and the issue carries a marker labelrig/<repo>/<slug>-<8 hex>that a retry searches for. A partial failure returns the created key and URL with the error. It writes atracker-pushevent, which older versions skip. (#78, #80)- The workflow file's
trackerkey gainspushwithlevelsandtypes, which choose the issue type for each task level.rig workflow showprints them, and validation names the path of a bad value. (#69) - The tracker port gains
CreateandIssueTypes, 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.parentor 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
exectracker protocol gains the opscreateandtypes. A program that answersunsupportedkeeps working, and the protocol version stays 1. (#72) - Release runbook and site: a rig-site rebuild is dispatched on release. (#68)
- Docs:
rig tracker pushin the README,docs/design.md,docs/workflows.mdanddocs/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¶
rigwith no command or an unknown one prints an indented usage screen with one-line descriptions, at most 100 columns wide.rig trackerusage listspush. (#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 teststep 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
execadapter reportscreateandtypesonly when the program supports them, validates the key a create returns, and returnsErrUnsupportedfortypeswhen 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'stracker.report.status, then a comment from a fixed template (--comment pr|state|summary). Findings and notes are sent only with--include.--dry-runprints 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 atracker-reportevent, 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 gituser.name. An empty value, a control character, or--actorand--rolewith different values exits 2. (#45)rig login jira --tokenas the new name for--pat;--patstill works. (#48)
Changed¶
--actoralso rejects invisible formatting characters (bidi overrides, zero-width characters, line and paragraph separators). (#46)rig task finishrefuses 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 versionwith 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 | statuslink tasks to issues in an external tracker. (#38)- Tracker adapters: GitHub issues through
gh(#35), GitLab issues throughglab(#36), Jira Cloud REST v3 and Server/Data Center REST v2 (#37), andexec, which runs a program of your own over a JSON protocol (#34). - Config keys
tracker.command(global only),tracker.jira.apiandtracker.jira.epicField, and theexectracker kind. Atracker.urlfrom a committed or unverifiable.rig/config.jsonis dropped. (#27) - An optional top-level
trackerkey in the workflow file (intake.states,map,report.status), andparent,externalanddriftin the task view. (#30) - Task hierarchy and external links:
task new --from,task parent,task link,task unlink,task list --parent,--rootsand--tree, andtask show --children. Fields owned by a tracker link cannot be changed withtask setortask edit. (#28, #40) --format text|markdown|json(aliases--json,--markdown) ontask show,task listandcontext, with a stable Markdown rendering. (#33)rig task start <slug>andrig task finish <task> --sha <sha>create and merge task worktrees underworktrees.root. (#42)rig statusgains a store section (STORE TASKS,STORE FINDINGS) and astorefield 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 thegh,glaband 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 | setandrig note add | list. (#17)rig workflow show | validate, and the built-inbasicworkflow. Workflow files define states, gates and hooks, and are chosen by$RIG_WORKFLOW, theworkflowconfig 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 | listwith--global,--repoand--localscopes,--jsonand--show-origin. Layered config reads global, repository, local and.claude/rig.jsonfiles.pushPrefixes,push.prefixes,workflowandjira.tokencannot be set this way. (#8, #12)rig login github | gitlab | jira | statusandrig logout. Jira tokens are kept in the OS keychain or a0600file and are never taken from the command line. (#7, #19)docs/workflows.mddescribes the workflow file format. (#22)
Fixed¶
rig login jirarefuses atracker.urlfrom a tracked.rig/config.json, including a tracked.RIGdirectory, a gitlink, or a symlinked.rig, and exits 2 before any prompt. (#21, #23)rig login githubandgitlabname the host before runningghorglab auth login, and useforge.hostonly when it fits the forced kind. (#21)
0.1.0 - 2026-11-20¶
Added¶
rig push <task-id|branch> [--worktree <path>]pushes one branch toorigin. It refuses the default branch, tags, refspecs and force pushes, and pushes only branches whose prefix is inpushPrefixes(defaulttask,record).rig pr view,rig pr list,rig pr checks,rig pr openandrig pr waitgive GitHub and GitLab one output form, with--jsonand stable exit codes. They runghorglaband use your existing login.rig status [--json]prints the handoff note, task files, worktrees and open pull requests.rig version.- Optional
.claude/rig.jsonwith the keysforge,hostandpushPrefixes.