A task branch, from idea to done.

rig is a small command-line tool for the mechanical parts of a branch-per-task workflow: pushing a task branch, opening and reading pull requests, waiting for CI, keeping tasks, findings and notes, and printing where the work stands. It was built for loops where coding agents run these steps many times a day, but it does not depend on any particular loop. rig runs standalone, and the ecosystem components are optional.

Read the docs Source on GitHub

A task card travelling through seven stops A task card moves left to right: todo (rig task new), in progress (rig task start), pushed (rig push), PR (rig pr open), CI (rig pr wait, shown pulsing amber while it runs), green (rig pr wait, exit 0) and done (rig task move, task, done). It ends on done. todo rig task new in progress rig task start pushed rig push PR rig pr open CI rig pr wait green rig pr wait exit 0 done rig task move <task> done
One task card, seven stops, and the rig command at each.

What it prints

Real output from rig 0.5.0: push a task branch, wait for CI, move the task to done.

$ rig push 08
# rig 0.5.0, captured 2026-11-24
pushed task/08-demo to origin
$ rig pr wait 52
# rig 0.5.0, captured 2026-11-24
CI green: PR #52
$ rig task move 08-demo done
# rig 0.5.0, captured 2026-11-24
t-a70j  done

What's new in rig 1.1

Real output from rig 1.1.0: a grouped help screen and two views of the workflow.

rig --help groups commands by what they do.

$ rig --help
# rig 1.1.0, captured 2026-12-04
usage: rig <command>

Tasks:
  rig task <subcommand>                     Create, show, list and move tasks

Findings and notes:
  rig finding <subcommand>                  Record and list review findings
  rig note <subcommand>                     Add and list notes

Planning:
  rig workflow <subcommand>                 Show or check the workflow
  rig next                                  List the tasks that are ready to work on
  rig context <task>                        Print the context an agent needs for a task
  rig status                                Show a summary of tasks by state

…

rig workflow show --tree prints the workflow as a tree.

$ rig workflow show --tree
# rig 1.1.0, captured 2026-12-04
planned (start)                                  start
└─ implementing [takes sha]                      open-pr
   └─ pr_open [takes pr]                         merge
      └─ merged [sha = implementing, takes sha]  -  (final)
* → stopped [takes reason] → ↩ previous state
* → dropped [takes reason]

rig workflow show --graph prints it as a graph.

$ rig workflow show --graph
# rig 1.1.0, captured 2026-12-04
● planned  (start)                                   start
│    takes sha
● implementing                                       open-pr
│    takes pr
● pr_open                                            merge
│    sha = implementing, takes sha
● merged                                             -  (final)

● stopped ◀── any non-final state ↩ previous state   decide  (human)

● dropped ◀── any non-final state                    -  (final) (drop)

rig runs standalone; the ecosystem components are optional.

The rest of 1.1 is in the changelog.

The narrow push

rig push takes a task id or a branch name and nothing else. It cannot push the default branch, a tag, a refspec or a force push, so it is safe to allow without a prompt.

Accepted

  • rig push <task id>
  • rig push task/<name>
  • rig push record/<name>

A branch by task id or name that exists locally and is not the default branch. It goes to the branch of the same name on origin.

Refused

  • Refused: the default branch
  • Refused: a tag
  • Refused: a refspec
  • Refused: a force push

There is no option for another remote, a force push or tags.

One interface over two forges

The same commands and the same output work on GitHub and GitLab. rig runs gh or glab underneath and uses the login you already have. It stores a token only for Jira, which has no such tool, and then in the OS keychain.

rig reaches GitHub and GitLab through gh and glab, and Jira directly rig calls gh, which talks to GitHub, and calls glab, which talks to GitLab, both using the login you already have. rig reaches Jira directly with a token kept in the OS keychain. rig gh glab GitHub GitLab Jira the login you already have the login you already have token in the OS keychain direct, no gh or glab
rig runs gh or glab underneath; Jira is reached directly.

Where tasks live

Tasks, findings and notes live in your repository's git directory, outside any branch. They are in refs/rig/ and .git/rig/ of the clone, so they stay on your machine: rig does not push or fetch them.

The task store sits in the git directory, beside your branches Inside the clone's git directory, your working branches sit beside the rig task store, which holds refs/rig/ and .git/rig/. The task store is outside every branch. A remote sits outside the clone, and rig neither pushes nor fetches the task store to it. your clone's git directory working branches maintask/<name> task store refs/rig/.git/rig/ remoteorigin not pushed or fetched
The task store is in the git directory, not on any branch, and is not pushed or fetched.