8000 GitHub - vyrwu/atelier: Window manager for parallel agentic workstreams via tmux and git-worktrees · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

vyrwuPublic

About

Window manager for parallel agentic workstreams via tmux and git-worktrees

Resources

Contributing

Security policy

Stars

2 stars

Watchers

1 watching

Forks

Repository files navigation

▄▀█ ▀█▀ █▀▀ █   █ █▀▀ █▀█
█▀█  █  ██▄ █▄▄ █ ██▄ █▀▄

atelier

A workshop for parallel coding agents.

Release CI License: MIT

Install · Quick start · Keys · Configuration · How it works · Troubleshooting · Contributing

atelier demo: starting spaces from the splash, switching between them, and reviewing a stack of pull requests, their diffs, and worktrees

atelier runs several coding agents side by side in your terminal, each on its own task, and tells you which one needs you. Describe a task and it becomes a space: a directory, a tmux session, and an agent already working. The pull requests your agents open come to you, with their diff and CI one key away.

Supported agents: Claude Code, Codex, Grok Build, and Antigravity CLI.

Highlights

  • Start in the background. M-n, describe the task, keep working. A status-line spinner says when the space is ready.
  • One signal for attention. A space waiting on you is marked in the status line and listed first.
  • Swap agents mid-task. M-x hands a space from one agent to another, for when one runs out of quota. Swapping back resumes where it left off.
  • See subscription usage. The status line shows each provider's available account quota; unsupported readings stay explicitly unknown.
  • Review in the terminal. Pull requests with CI, review, and merge-queue status, local diffs, and CI logs.
  • Worktrees that are never stale. Agents branch from the freshly fetched default branch.
  • Retire and restore. Clear a finished space; restoring resumes its conversation. Purge the ones you're done with by age.

Install

Requires
tmux 3.3+, git atelier runs its own tmux server
GitHub CLI run gh auth login first
Claude Code, Codex, Grok Build, or Antigravity CLI at least the agent new spaces start with
A Nerd Font 3.5.0+ for the GitHub and agent icons

Optional: diffnav or delta for diffs, gh-enhance for CI logs. macOS and Linux.

brew install --cask vyrwu/tap/atelier                 # macOS
go install github.com/vyrwu/atelier/cmd/atelier@latest

Or download a binary from releases, or run make install from a clone. For releases built with the provenance workflow, verify the downloaded archive before extracting it:

gh attestation verify <archive.tar.gz> --repo vyrwu/atelier \
  --signer-workflow vyrwu/atelier/.github/workflows/release.yml \
  --source-ref refs/tags/vX.Y.Z --deny-self-hosted-runners

Replace vX.Y.Z with the downloaded release's tag. Signed .deb, .rpm and .apk packages are also built for amd64 and arm64, with a signed checksum manifest and public keys. Follow the verification and native installation guide before installing. The release security guide describes the build checks and required setup. Public signing-key fingerprints are listed below.

Quick start

atelier install   # once: agent hooks, tmux bindings, the per-space guide
atelier           # start, or re-attach

Press M-n, describe a task, and press Enter (Tab cycles through agents). M-s lists your spaces. M- means Alt (Option on a Mac).

Using Codex? Its first launch asks you to review new hooks: trust atelier's (the ones running atelier hook). Until you do, Codex spaces show no status.

For Grok, install Grok Build and run grok login with your subscription account. Atelier reuses its login and selected model; no API key is required in atelier.

Choose Grok Build with Tab in the new-space or swap dialog, or use atelier create "Fix the tests" --agent grok and atelier swap <space> --to grok. Grok receives project-local hooks and atelier's MCP tools automatically. Its space titles are generated asynchronously through grok -p, using your configured Grok model. As with the other agents, naming = false disables this call and keeps the task text as the title. Atelier launches Grok with its native terminal theme so your terminal background and cursor colors stay intact. Its logo uses U+100001 in the Atelier Logos fallback font. Its normal tool approval and sandbox settings still apply; allow access to the source repository's git directory when committing from a worktree.

For Antigravity, install agy and sign in. Choose Antigravity with Tab, start a space with atelier create "Fix the tests" --agent antigravity, or switch with atelier swap <space> --to antigravity. Atelier registers i 8000 ts MCP tools in the space’s .agents/mcp_config.json. The CLI uses your model and permission settings. The space title comes from the task text.

The Antigravity logo uses U+100002 in Atelier Logos 1.1. Apply the updated nix-config and restart WezTerm to load it. For other terminals, add Atelier Logos to the font fallback list.

Keys

The splash (M-h) lists them all.

Anywhere In a space
M-n new space M-a the agent (restarts it if you exited)
M-s spaces M-x swap agent
M-t trash M-c command line
M-h home M-p pull requests
M-q detach M-w worktrees

In the overlays, type to filter, Up/Down to move, Esc to close.

M-P (Alt-Shift-p) in Spaces puts a space in focus: focused spaces sit in their own section at the top of the list, so the few you are working on are always first without typing a filter. M-P again takes it out. Focus stays until then, or until the space is deleted, and survives a trip through the Trash. While any active space is in focus, a new space joins it, so it does not land in others.

View Keys
Spaces Enter open · M-P focus or unfocus · M-x swap agent · M-d retire to Trash
Trash Enter restore · M-d delete permanently
Pull requests Enter diff · M-e checks · M-b browser · M-o reopen or ready · M-c close · M-y copy link · M-A all, or active only
Worktrees Enter shell in the worktree
New Enter start · Alt-Enter start and switch · Tab next agent · Ctrl-j newline
Swap y swap · n cancel · Tab next agent (choose the current one for a fresh conversation)

Pull requests are grouped by repository, each header counting its PRs by state, as each row in Spaces does; a PR in a merge queue counts under the queue's amber icon. Only open and draft PRs are listed at first; M-A (Alt-Shift-a) shows the merged and closed ones too, and M-A again hides them. The all │ active switch in the title line shows which is on, and each space keeps its choice.

In a PR's diff window, M-e opens its checks; in its checks window, M-d goes back to the diff.

Windows

A space's windows — its agent, its command line, a shell per worktree, a PR's diff and checks — can be listed, restarted, and closed from any shell, for when one hangs:

atelier win ls               # this space's windows: what each runs, how long it has been quiet
atelier win restart shell    # kill what the command line runs; a fresh one takes its place
atelier win restart agent    # restart the agent, resuming its conversation
atelier win kill pr-atelier-128
atelier win ls --all         # every space's windows

The space is the one you are in — the window you typed in, else the space the agent runs in, else the directory — or the one named with --space <slug>. A window goes by the name ls shows, whole. restart runs again what the window was opened with, where it was opened, and leaves you in the window you were in (in a split window, it restarts the focused pane; the agent's window restarts whole). What the window ran, and the job in its foreground, get two seconds to exit after the hangup, then are terminated, and killed a second later if they still haven't; a job started with nohup, or disowned, is left running. Closing a space's last window ends its session; the space stays, and opening it starts the agent again. The agent's window can't be restarted or closed in the middle of a swap. atelier help lists the commands.

Cleaning up

Spaces you retire wait in the Trash until you delete them. To clear out old ones from a shell:

atelier ls --older-than 2w           # spaces untouched for two weeks, stalest first
atelier purge --older-than 30d       # delete Trash untouched for 30 days (asks first)
atelier purge --older-than 30d --all # active spaces too
atelier gc                           # sweep up what deleted spaces left behind

A space's age is from when it was last touched: made, swapped, retired, restored, or last worked in by its agent. purge keeps any space whose worktrees hold uncommitted changes or commits that aren't on a remote or in a pull request (including unpublished commits in initialized submodules), unrecognized files outside verified worktrees, or an incomplete directory scan. It also keeps running sessions: retire those spaces first, or pass --force to stop them and discard unsaved work. The enclosing space and the space containing the current directory are always excluded. --dry-run shows what it would delete; --yes skips the question.

gc deletes no work. It drops records whose directory is gone, puts space directories with no record in the Trash (or active Spaces if their session is still running), recovers their agent from session metadata or conversations, stops sessions still running for a space in the Trash, removes stale cache files and Claude's entries for deleted spaces, and prunes source repositories' records of deleted worktrees. Swap lock files are retained so concurrent swaps keep sharing the same lock. Cleanup stops on an unknown session-query result, and a failed session stop keeps the workspace on disk. atelier gc --dry-run reports without changing anything.

Configuration

Optional, in ~/.config/atelier/config.toml:

root         = "~/ateliers"  # where spaces live
socket       = "atelier"     # atelier's tmux socket
agent        = "claude"      # "claude", "codex", "grok", or "antigravity"
naming       = true          # let the agent title new spaces
naming_model = "sonnet"      # the model Claude titles them with

ATELIER_ROOT and ATELIER_SOCKET override root and socket. Every agent reads one shared guide, ~/.config/atelier/WORKSPACE_CLAUDE.md; edit it to change what they're told. GROK_HOME is respected for Grok config, login, and transcript discovery.

How it works

tmux -L atelier               atelier's own server; your tmux is untouched
├── home                      the splash: keymap and dependency check
└── spry-otter                one session per space
    ├── claude                the selected coding agent
    ├── shell                 M-c
    └── pr-atelier-128        a PR diff, opened from M-p
  • Status comes from agent hooks or, for Antigravity, a session-only status-line command that also runs your existing status line.
  • Swapping saves the outgoing agent's conversation to .atelier/handoff/ in the space. The incoming agent starts at once with it, resuming its own earlier conversation there if it had one. Grok reads its native session updates. Antigravity records the native transcript path in .atelier/antigravity/ when its TUI reports it.
  • Usage is each provider's own reading: Codex's every minute, Claude's after each turn or every 15 minutes. ~ marks a reading that may be out of date; — means unknown. Each agent's weekly figure comes first, without a label, and the line ends 7d spent; any other window follows it, labelled by length (5h, 1d, or plan for the plan's own period). A 5h window that reads 80% or less is hidden beside a readable longer one. Grok reads the account balance behind its native /usage view once a minute through the CLI's ACP billing endpoint, including on Grok Build 1.0.70. Antigravity shows the percentage spent for its quota windows, labelled by length like Claude's and by model family when it reports more than one; a window of unknown length keeps its native name. At 90% spent, it also shows the time until reset. Readings come from a running agy session, and switch when it reports a different account, or from agy's own /usage once they are 15 minutes old, while the last session report carried a signed-in account, so a window that resets between sessions is read again. They are not marked ~. A window that cannot be read, including an unknown or expired one, shows — instead of a percentage. Token counts are never treated as subscription quotas.
  • Codex runs without its sandbox and approval prompts. A worktree's git data lives in its source repository, outside the space, so the sandbox would block every commit.

The reasoning behind all of it is in DESIGN.md.

Troubleshooting

  • M- keys do nothing. Make your terminal send Option as Meta: iTerm2 Left Option key: Esc+, Terminal.app Use Option as Meta key, Ghostty macos-option-as-alt = true, kitty macos_option_as_alt yes, Alacritty option_as_alt = "Both". WezTerm works by default.
  • Icons show as boxes. Use a Nerd Font, 3.5.0 or newer for the agent icons.
  • Colours look flat. Start atelier from a terminal with COLORTERM=truecolor.
  • A key doesn't match this README. Open any overlay once after upgrading, or run atelier install.
  • A PR doesn't appear. Check gh auth status. A PR shows up when its branch is a worktree in the space, or the agent registered it.
  • A space shows the wrong agent after an upgrade. Restart its agent once (exit it, then M-a).

Roadmap

  • Remote spaces: run a space's agent on another host. (#104)
  • Embedded CLI: describe a command in a shell, get it ready to run. (#103)

Development

make dev        # an isolated instance under ~/.atelier-dev, own tmux socket
make test
golangci-lint run ./...

Releases come from Conventional Commits via release-please. Read CONTRIBUTING.md before opening a pull request.

License

MIT © vyrwu

Release signing keys

These fingerprints identify the public keys distributed with signed releases. Compare them before trusting a downloaded key. Private keys are stored only in the protected release environment; key rotation updates this table.

Key Signs Fingerprint
atelier.asc .rpm, .deb, checksums.txt 70A2553E9D05AAE5EE4AE0FD8946100349BDF034
atelier.rsa.pub .apk SHA-256 924b2c7196f8aa9f5ec08711691215a9e829eb4d377c0f538506e5f8f9d8c128

About

Window manager for parallel agentic workstreams via tmux and git-worktrees

Resources

Contributing

Security policy

Stars

2 stars

Watchers

1 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages

0