a-team
Health Uyari
- License — License: MIT
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Low visibility — Only 5 GitHub stars
Code Gecti
- Code scan — Scanned 12 files during light audit, no dangerous patterns found
Permissions Gecti
- Permissions — No dangerous permissions requested
Bu listing icin henuz AI raporu yok.
Name your Claude Code sessions, run them in parallel, host them on any of your Macs, and reach them from your phone. I love it when a plan comes together.
a-team
I love it when a plan comes together.
Keep your Claude Code sessions straight: name them, run as many as you like in parallel, put them on whichever machine suits, and reach them from your phone. One command brings them all back after a reboot, grouped into the windows you actually work in, each holding only the credentials it should have.
█████╗ ████████╗███████╗ █████╗ ███╗ ███╗
██╔══██╗ ╚══██╔══╝██╔════╝██╔══██╗████╗ ████║
███████║█████╗ ██║ █████╗ ███████║██╔████╔██║
██╔══██║╚════╝ ██║ ██╔══╝ ██╔══██║██║╚██╔╝██║
██║ ██║ ██║ ███████╗██║ ██║██║ ╚═╝ ██║
╚═╝ ╚═╝ ╚═╝ ╚══════╝╚═╝ ╚═╝╚═╝ ╚═╝
What it is
An agent is a named folder. The registry remembers its name, where it lives, which machine it runs on, and which harness drives it. Everything else is built on that one mapping.
- Parallel sessions. Several chats in the same folder, each named and separately reachable.
- More than one machine. An agent's folder and session can live on another Mac over SSH, running in tmux so it outlives your window. Start something at your desk, pick it up in an airport.
- Reachable from a phone. Remote sessions start with Claude Code's Remote Control on, named after the agent, so they show up in the Claude app.
- Claude Code or Codex, chosen per agent.
- Back after a reboot.
a-team allrestores every persistent agent.
Requires macOS, Claude Code, and Python 3.11+. The picker, the TUI and a-team layout open windows for you in Ghostty (the default) or cmux, so they need one of the two; tmux is recommended so agents outlive their windows. atx works in any terminal.
New here? The FAQ answers the common questions directly.
Install
brew install pipx
pipx ensurepath
pipx install git+https://github.com/nigelglenday/a-team.git
For local dev:
git clone https://github.com/nigelglenday/a-team.git
cd a-team
pipx install -e .
Use
a-team splash + arrow-key picker (type to filter)
a-team <name> open that agent directly
a-team tui live dashboard: running sessions + unread messages
a-team all restore every persistent agent
a-team new <name> [<path>] --role R register an agent (path falls back to clipboard)
a-team here [name] register the current working directory
a-team scratch [label] one-off chat in ~/.a-team/scratch/<timestamp>[_<label>]/
a-team rm <name> unregister (folder is kept)
a-team ls plain list, pipe-friendly
a-team ls --json full records, for scripts and agents
a-team open <name> window on an agent: attach if up, else start
a-team archive <name> out of the picker, kept in the registry
a-team grants --check-files audit need-to-know wiring, both halves
a-team sync write each host's boot list from the registry
a-team layout rebuild the screen: every group, as tabs (desks in cmux)
a-team groups the group tree, and which window each lands in
a-team signal done|needs-input mark the agent's cmux workspace (a Claude Code hook)
a-team signal install print the hooks; --write adds them to settings.json
a-team resolve <name> --json where an agent lives (id, path, host, ssh, harness)
a-team config show current settings
a-team migrate backfill stable ids on an older registry
new and here take --host, --harness, --account and --category.
In the TUI, ● with a count means that many live sessions, · means stopped, and a yellow ? means the agent's host could not be reached, which is not the same as stopped.
Window groups
Examples here use invented clients (Acme, Northwind). Everything
installation-specific — the registry, the per-account grants, the org's own
config — lives outside this repo by design, which is what keeps it generic.
An agent's group says which WINDOW it belongs in, which is a different axis
from category (who the work is for). Groups are slash-nested:
deal the client Associates and Strategy
backoffice ops, sidekick, bookkeeper, concierge
backoffice/sidekick nested, and still in the backoffice window
By default a group's top-level segment is its window, so everything underbackoffice shares one. To give a nested group its own window, declare a
split, and nothing gets re-tagged:
a-team config split-windows backoffice/sidekick
The tree is stable; the layout is not. Keeping them separate means fanning
sidekicks out into their own window is one command rather than an edit to
every sidekick.
a-team layout opens the lot, one window per group, tabs within.
Agents are the main callers
Most of this is driven by other agents, not typed by a person, so the
machine-readable surfaces are the primary ones: resolve --json andls --json emit the full record (every field, plus the derived ssh alias)
so a caller never has to parse agents.toml itself. Commands are
non-interactive, exit non-zero on failure, and say what they did.
a-team grants audits need-to-know. It has two halves, and reporting one as
success is worse than reporting neither:
a-team grants # what the registry says
a-team grants --check-files # what is actually on each host
a-team grants --fix # backfill both halves from each agent's account
full means fenced to its own tenant and fenced off other customers' paths.HALF means one of the two, which looks correct and is not. NO TENANT means
the fence exists but grants nothing: no Atlas account for that client yet.
Without the picker
examples/atx does the same job from the registry alone, in any terminal:
atx list registered agents
atx <agent> attach to its session, starting it if needed
atx <agent> -n start an ADDITIONAL parallel session
atx <agent> --label Acme a session named for a client or topic ("Name: Acme")
atx <agent> -L list that agent's running sessions
atx <agent> -s 3 attach to parallel session 3
atx <agent> -d start detached, do not attach
atx <agent> -w open it in its own window
atx -l <agent> show where it lives, start nothing
Parallel sessions are the normal way to run several builds or investigations at once: the first is <id>, the next <id>-2, each with its own name so they stay tellable apart on a phone.
a-team new EA --role personal with no path uses your macOS clipboard. In Finder, Shift+Right-click a folder → Copy as Pathname, then run the command.
The picker also surfaces + Create new agent and - Manage so you rarely touch a config file.
When you open an agent, a-team asks how to start it:
- Continue last session (
claude --continue) — resume the most recent conversation (default) - New session (
claude) — start fresh, with an optional topic label for parallel chats - Resume a past session… (
claude --resume) — opens Claude Code's own session picker in the new window, so you can pick a specific earlier conversation
Agents that run on a non-default Claude account are badged in the picker (e.g. ⟨work⟩). a-team new / a-team here take --account <name> to set one explicitly; otherwise the account follows the category rule (see Config).
Config
~/.config/a-team/agents.toml. Hand-edit for bulk import.
[[agent]]
name = "Tasks"
path = "/Users/you/Documents/tasks"
kind = "persistent"
category = "Personal"
[[agent]]
name = "Webapp"
path = "/Users/you/code/webapp"
category = "Work"
boot = true
[[agent]]
name = "scratch"
path = "/Users/you/Documents/scratch"
boot = true agents are restored by a-team all; it is opt in, so everything
else stays dormant until you open it. status = "archived" keeps an agent in
the registry but out of the picker, the TUI and a-team ls (ls --all shows it).
category groups agents in the picker. Order in the file = order in the picker.
Remote hosts
An agent's folder and session can live on another machine, reached over SSH:
an always-on Mac as the server, your laptop as the cockpit. Hosts are configured,
never hardcoded:
[hosts]
server = "myserver" # key -> ssh target (a ~/.ssh/config alias
build = "[email protected]" # or user@host)
[[agent]]
name = "Build Agent"
path = "~/agents/build" # path on THAT machine; ~ expands there
host = "server"
a-team new "Build Agent" --role sidekick --host server # creates the folder on that machine
a-team config default-host server # new agents default there
With a default host set, a-team new "Build Agent" --role sidekick needs no other flag.
Remote agents run inside tmux new-session -A on their host, so they survive the
window closing, and attach over mosh (falling back to ssh -t). They also start
with Claude Code's Remote Control on, named after the agent, which makes them
reachable from the phone app and addressable by other sessions.
examples/atx is a cold-start helper that skips the picker entirely:atx build-agent resolves the agent and opens it on whichever host it belongs to.
Read docs/remote-agents.md before setting this up. It
covers the failure modes, chiefly that SSH logins on macOS cannot read the keychain,
which makes Claude Code fall back to API-key mode and silently disables Remote
Control until you start the tmux server from a GUI session.
One registry for several machines
With agents on two machines, keep the registry in a git repo and make~/.config/a-team/agents.toml on each machine a symlink to the file in that
repo's checkout. Two plain copies drift: a new agent lands in one, and every tool
reading the other is quietly wrong.
ln -sfn ~/dotfiles/config/agents.toml ~/.config/a-team/agents.toml # on every machine
[settings]
registry_source = "~/dotfiles/config/agents.toml" # refuse to write anywhere else
The checkout is only ever pulled. A command that changes the registry (new, set,archive, rm, config ...) never writes through the link: it adds a throwaway
worktree on a branch, commits there, pushes, and lands the branch on the default
branch, with a land command if one is on your PATH (it should merge into the
checkout and push), else by pushing to the default branch, fast-forwarding the
checkout and pulling it on each [hosts] machine. A change made from a copy that
is behind origin is refused, after the copy is brought up to date, so running the
command again works. To edit by hand, edit the file in your own worktree of the
repo, commit and land it; never in the checkout the link points at.
a-team doctor checks it: the link, the checkout against origin, uncommitted
edits in the checkout, and the same on each [hosts] machine over ssh.
Voice fields (Operator)
Operator, the voice switchboard in the toolkit, routes spoken messages by these optional
fields. All four are set with a-team set; '' clears one.
a-team set Preload-Builder --alias "Preload Builder" --purpose "Builds Preload's atlas" \
--readback full --voice <ElevenLabs voice id>
| Field | Meaning |
|---|---|
aliases |
Nicknames; --alias adds one (repeatable). Every a-team name resolves against them, so an alias that names another agent is refused |
purpose |
One line, at most 12 words, on what the agent does |
readback |
How Operator speaks its replies: summary (default), full, last, changes, nocode |
voice |
An ElevenLabs voice id for its replies; unset means [settings] default_voice |
a-team doctor warns on a readback outside those five and a purpose over 12 words.
Role, customer, skills, model
The toolkit's inherits builds each agent's instruction stack from four registry keys. a-team new
writes all four; --role is required (a --sibling takes its parent's role, customer and model).
| Key | Meaning |
|---|---|
role |
sidekick, associate, backoffice or personal (--role) |
customer |
The atlas-crm deal slug it serves; "" for none (--customer) |
skills |
Skills beyond the role's own set; starts as [] |
model |
The --model its session starts with; "default" passes none (--model) |
Every command that rewrites the registry keeps them, and a-team doctor warns on an active agent
with no role. Before starting an agent (not attaching to a running one), a-team runsinherits --check <id> on the agent's host when the tool is installed there (on PATH, or~/agents/toolkit/bin/inherits); exit 1 stops the start and prints its findings. Scratch sessions
are not checked.
Accounts
Each agent can run under a different Claude login, selected by CLAUDE_CONFIG_DIR (each config dir holds its own account login). Define account profiles and an optional category→account rule:
[accounts]
personal = "" # "" = the default ~/.claude
work = "~/.claude-work"
[account_by_category]
Work = "work"
An agent's account resolves as: an explicit account = "work" on the agent → the category rule → the default account. An explicit account counts only if it names a key in [accounts]: deployments also use that field for other per-agent bookkeeping, and an unknown name is not a login, so it is ignored here rather than silently resolving to the default root and skipping the category rule on the way. The default account is personal unless you set default_account under [settings]; set it as soon as personal names a real config dir, or every uncategorised agent follows the personal login. So with the rule above, a category = "Work" agent runs on the work profile automatically; set account on an individual agent to override (e.g. force one back to personal). To set a profile up, run CLAUDE_CONFIG_DIR=~/.claude-work claude once and /login. Only personal ships as a built-in default; define any other profiles and rules in the tables above.
A session's login can change while it runs. The account above is where a session starts. A boot script that reads the sessions.tsv that a-team sync writes (session-boot) also honours an override file, ~/.config/session-boot/accounts.tsv, one tmux-name<TAB>root per line, which beats the root in sessions.tsv. A failover tool writes it to move chosen sessions to another login (when one account's usage limit runs out, say) and clears it to move them back; a-team sync never touches it, so a re-sync does not undo a move. Two rules make that safe:
- Never
/logininside a session to switch accounts. Every session sharing thatCLAUDE_CONFIG_DIRroot shares its login, so a/loginin one moves all of them. - Each root keeps its own transcripts, under
<root>/projects/<slug>(the slug is the session's folder path with every non-alphanumeric character replaced by-). A session restarted on another root with--continuestarts cold unless that root'sprojects/<slug>is linked to the original root's. Link it (and copy the folder's trust record) before moving a session.
How it spawns windows
Ghostty has no +new-window CLI on macOS, so a-team opens a window in the running Ghostty instance via the File → New Window menu (AppleScript), then delivers the launch command by clipboard paste rather than keystroking it — System Events drops characters on long strings, which mangles the command. The pasted command re-emits the title via OSC-0 on a loop, exports CLAUDE_CONFIG_DIR for the agent's account, cds into the folder, and runs claude (--continue, --resume, or fresh, per your choice).
Local agents run inside tmux too, when tmux is installed: the window runs tmux new-session -A -s <agent-id>, the same attach-or-create that remote agents use. The agent then outlives its window, and any terminal can view it with tmux attach -t <agent-id>, so it can move between Ghostty, cmux or another tab without restarting. The account export goes inside the tmux command, because a new tmux session takes its environment from the tmux server, not from the window that started it. Set A_TEAM_LOCAL_TMUX=0 to run local agents straight in the window as before.
Terminals
Every agent runs in a named tmux session, so the terminal only shows it, and you can choose which one. Two are built in: Ghostty (the default, described above) and cmux.
[settings]
terminal = "cmux" # or "ghostty" (the default)
Or a-team config terminal cmux. --terminal NAME on a-team open, a-team layout, a-team all and a-team <name> overrides the setting once. If the chosen terminal is unavailable, a-team prints one line saying why and opens Ghostty instead.
cmux opens one workspace per agent, named after it, through the cmux CLI (on PATH or /opt/homebrew/bin/cmux). Opening an agent that already has a workspace of that name selects it rather than creating a duplicate. The agent's window group (the one a-team layout uses) becomes a cmux workspace group, and an optional color field on the agent colors its workspace:
[[agent]]
name = "Webapp"
path = "/Users/you/code/webapp"
group = "deal"
color = "Teal" # a cmux color name (Red, Teal, Navy, ...) or "#hex"
Session colors. With no color field, an agent's workspace takes its accent from a shared session-colors table (tab-separated match background text accent, the accent always the last column, old three-column rows still read; first match on the session or agent name wins), the one the toolkit's tmux tint reads. To set an agent's color, edit config/session-colors.tsv in the toolkit and land it: new sessions and workspaces pick it up, session-color <tmux-session> (on the M3) or session-color --all re-tints running tmux sessions, and cmux-layout colors recolors open cmux workspaces. a-team color <name> prints an agent's tint and accent, and a-team resolve --json and ls --json carry both. The table is $SESSION_COLORS, else session_colors under [settings], else ~/agents/toolkit/config/session-colors.tsv.
cmux only takes commands from processes it started. To drive it from another terminal, set a socket password in cmux Settings and export CMUX_SOCKET_PASSWORD=..., or run a-team from inside cmux. To read the password from a variable of your own, set cmux_password_env = "VARNAME" under [settings]. With no variable set, a-team reads ~/.config/cmux/socket-password if it exists.
The cmux workflow
cmux shows many agents at once and flags the ones waiting for you. Three pieces make it work.
Every agent runs in tmux, so a pane is only a view. Closing a cmux workspace, rebuilding the layout or restarting cmux never touches an agent; the pane just attaches again.
Desks. A desk (a-team's own term) is one cmux workspace showing several agents side by side: the first on the left, the rest stacked on the right. Declare desks in agents.toml:
[[desk]]
name = "Client-A"
group = "Clients" # cmux workspace group (optional)
agents = ["Client-A Associate", "Researcher", "Builder"]
color = "Blue" # optional
pin = true # optional
[[desk]]
name = "Ops"
group = "Back office"
agents = ["Ops"]
a-team layout --terminal cmux (or plain a-team layout with terminal = "cmux") closes the workspaces named after each desk or its agents, then builds every desk in file order. Agents not on a desk still get one workspace each, in their window group. --dry-run prints the plan and opens nothing. Every agent a desk names must be in the registry, or layout stops and lists the missing names. With no [[desk]] tables, layout works exactly as before: one workspace per agent. Ghostty ignores desks.
Notifications. a-team signal runs as a Claude Code hook. When an agent finishes a turn it marks the agent's workspace (or its desk) "done at 4:32 PM"; when the agent needs you it marks it "needs you: ". cmux's jump-to-unread then takes you to the next agent waiting. To set it up:
- In cmux, open Settings > Automation and set Socket Control Mode to Password. Save the password in
~/.config/cmux/socket-password(chmod 600it), or export it asCMUX_SOCKET_PASSWORD. - Run
a-team signal installto see the hooks, thena-team signal install --writeto add them to~/.claude/settings.json. It backs the file up first and leaves your other hooks alone.
a-team signal finds the agent from its tmux session name, else from the folder it runs in; --agent NAME names it outright. It sends at most one "done" per agent a minute, and skips Claude Code's idle reminder within ten minutes of a "done". Create ~/.config/a-team/signal-off to turn it off. Each signal is logged to ~/.local/state/a-team/signal.log.
Remote agents. The hook runs on the agent's host, where cmux is not. Have that host send the signal back over SSH: on the remote host, run a-team signal install --via <laptop> (with a-team installed there), or add the printed hooks by hand. Each hook runs ssh <laptop> a-team signal --agent <tmux session> done and passes the hook's input along. The laptop needs Remote Login on, a key the server can use, and a-team on the PATH that SSH commands see (use the full path, such as ~/.local/bin/a-team, if not). No daemon is involved.
Security. Password mode lets any process that knows the password drive cmux, not only processes cmux started. Keep the password file readable by you alone (chmod 600); a-team passes the password to cmux in its environment and never prints or logs it.
Adding a terminal is one class in src/a_team/terminals.py with a name, available() returning (ok, reason), and open(title, command, *, group, color, tab), plus one line in TERMINALS. The module docstring sketches an iTerm2 backend.
Docs
- FAQ — how do I start a second session, why does my remote agent show
?, I closed the window did I kill it, and the rest. - Running agents on a second machine — host setup, Remote Control, and the failure modes worth knowing before you rely on it (chiefly: SSH logins on macOS cannot read the keychain, which silently disables Remote Control).
Changelog
See CHANGELOG.md.
Part of termpaper.dev
a-team is part of termpaper.dev, a set of utilities for managing Claude Code state from the terminal:
- a-team — parallel sessions (this repo)
- whispertty — record + transcribe + diarize audio
- skillbox — inventory and manage skills, slash commands, subagents
- eagent — multi-session executive assistant pattern, file-based messaging
See termpaper.dev for the set.
License
MIT
Yorumlar (0)
Yorum birakmak icin giris yap.
Yorum birakSonuc bulunamadi