devloop

command
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 24, 2026 License: Apache-2.0 Imports: 20 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

devloop

The repeat orchestration chores around atrium, as a separate program. It lives under tools/ for now and imports nothing from atrium's internal/, so it can move to its own repo. It talks to atrium only over the hub HTTP API (127.0.0.1:7778, X-Atrium-Room), git and ssh. It is not part of the atrium binary or make build.

go build -o build.claude/devloop ./tools/devloop
GOOS=windows go build -o build.claude/devloop.exe ./tools/devloop
go test ./tools/devloop/...

Each step prints one line. Any failure exits non-zero.

land

devloop land claude/devloop --item t-devloop

In the main checkout (--repo, default the current directory, which must be on claude/main): refuses a dirty tree (untracked files do not count), runs git fetch hub, fast-forwards claude/main to the local <branch> when one exists, else hub/<branch>, or cherry-picks what it has that claude/main lacks, prints the new SHA, runs atrium-deploy.ps1 -Rooms hub under pwsh on every OS (--deploy, default C:\Users\claude\.atrium2\scripts\atrium-deploy.ps1, --no-deploy to skip), then marks the backlog item done (POST /_hub/backlog/<id>). A conflict aborts and resets claude/main to where it was.

prune

devloop prune claude/devloop --room sg3 --card sg3~01HXYZ

Exits the card (POST /v1/tasks/<id>/exit with X-Atrium-Room), then over ssh removes the branch's worktree and deletes the branch on the room, then deletes the local branch and the hub branch. A hub refusal is reported, not retried. --ssh names the host when it differs from the room, --remote-repo the repository on the room.

shots

devloop shots --room sg3 'C:\tmp\shots'

Copies the PNGs in a room's directory to build.claude/shots/<room>/ (--out to change). The bytes travel as base64 over ssh, since scp fails against a PowerShell default shell. --shell sh for a room whose shell is not PowerShell.

usage

devloop usage --since 2026-10-15T02:30:00Z --src D:\usage\1015 --out D:\notes --landed landed.json

Port of the sg4 build.ps1. Reads usage-<room>-*.jsonl and tasks-<room>-*.json from --src (newest by name per room, rooms from --rooms), pages the says from each room over the hub, and writes says-, tokens- and cards- CSVs plus summary-*.md to --out. A say is paired with the receiver's first say-caused turn that begins within 10 minutes after it. --until closes the window, --landed is an optional JSON object of card title to landed sha.

Documentation

Overview

devloop runs the repeat orchestration chores around atrium: landing a branch, pruning a finished one, collecting screenshots and summarizing usage. It is its own program on purpose. It talks to atrium only over the hub HTTP API, git and ssh, and imports only internal/base/gitexec from the atrium module, which starts its git.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL