atgc v1.1.0

atgc

agentic is in our dna

A terminal client for Tangled, designed for atproto and agents.

$ cargo install --locked --git https://tangled.org/permadeath.com/atgc Not on crates.io yet. Needs Rust 1.89 or newer and git.
atgc about
----------A        A---T        G=============C        C===G        T-------------A
------------T        G===C        C=============G        T---A        A-------------T
  C=========G       C=========G       A---------T       A---------T       C=========G
        G==C         A------------T         T--A         C============G         G==C
=C        A---T        T-------------A        C===G        G=============C        A---T
-A       T---------A       G=========C       G=========C       T---------A       T------
T        G=============C        C===G        T-------------A        A---T        G======
==C         C============G         T--A         A------------T         G==C         C===
========  ╭─ atgc ───────────────────────────────────────────────────────────╮  G
--------  │                                                                  │  ----T
T-------  │  ATproto Git Client. A CLI for Tangled repos and pull requests.  │  ------A
    G===  │                                                                  │  ======C
C         │  version   1.1.0                                                 │    C==G
==G       │  repo      https://tangled.org/permadeath.com/atgc               │      T--A
---T      │  site      https://atgc.codes                                    │     A----
--A       │                                                                  │     C====
C===G     ╰──────────────────────────────────────────────────────────────────╯       G==
=========C       T---------A       T---------A       G=========C       G=========C
T------------A         A--T         G============C         C==G         T------------A
  A-------------T        G===C        C=============G        T---A        A-------------
      C=========G       C=========G       A---------T       A---------T       C=========
==G        G===C        A-------------T        T---A        C=============G        G===C
====C         A--T         T------------A         C==G         G============C         A-
-----A       T---------A       G=========C       G=========C       T---------A       T--
A---T        G=============C        C===G        T-------------A        A---T        G==

Real repo, real agents

Pulls from real repos, opened by agents with atgc. Some of the handles are people.

What is this?

atgc is a command-line client for Tangled, the git forge built on atproto. Think gh, for Tangled: clone, push, open pulls, review and merge them, file issues, watch CI.

It's built for running a lot of agents at once. Each one logs in as its own atproto account from its own worktree, so every commit and every pull says who actually made it. Cut any one of them off without touching your own login.

There's no atgc server in the middle. It talks to your PDS and the knot that holds the repo, and keeps a log of every call on your own disk.

The model

One laptop, three worktrees, three accounts. Here's who writes what, and where it ends up.

One laptop with three worktrees: you, a Claude Code agent and a Copilot CLI agent, each logged in as its own account. Arrows go up to the PDS each account lives on and down to the knot holding the repo. The numbered steps are listed below. bsky.social your PDS your key your signatures you.dev a second PDS, one account per agent their keys their signatures your laptop HUMAN ~/code/atgc you, in a terminal @you.bsky.social AGENT .claude/worktrees/fix-login Claude Code @hedgehog.you.dev AGENT ~/code/atgc-www Copilot CLI @marmot.you.dev the knot the repo, with an account of its own branches · pulls · every version · comments 1 2 5 1 2 3 4 1 2 3 4
  1. atgc auth login [--agent] Everyone logs in as themselves. Agents get ‑‑agent, so you can cut one off without touching your own login.
  2. atgc repo configure Each worktree gets its own git identity and SSH key. Commits say who actually wrote them.
  3. atgc pr create Pushes the branch and opens the pull. The pull lives in the repo's account, and the author's PDS signs for it.
  4. atgc pr resubmit Review said no? Amend, rebase, resubmit. Every version sticks around.
  5. atgc pr merge You hit merge. The knot lands it.

Features

aEvery account you are

Stay logged in as all of them and pick one per command. Each agent gets its own login, revocable without touching yours.

--account · atgc auth login --agent

tScoped OAuth

Log in through your browser, and atgc gets only the scopes it uses. No app passwords, ever. On a headless box, --paste the redirect.

atgc auth login

gA briefing, from the binary

Everything Tangled does differently, compiled in. Hand it to a fresh agent and it gets it.

atgc agent

cAll of Tangled, gifs included

Pulls, issues, comments, labels, releases, strings and CI. Drop a screenshot, an animated gif or an mp4 into any body and it uploads on the way out.

atgc pr · issue · label · release · string · run

aAn oplog

Every OAuth call, PDS write, knot call and git subprocess atgc made, on your own disk.

atgc logs

Latest release

atgc 1.1: labels, collaborators and your profile

1.1 is about the parts of Tangled atgc could only look at before. Label a pull, let a friend push, attach a binary to a release, fix your bio. No browser tab required.

  • atgc profile view, profile create and profile edit read and write an account’s Tangled profile.
  • atgc label manages a repo’s labels, and pulls and issues take --label and --assignee when you create, edit or list them.
  • atgc release upload attaches files to a tag, and atgc release delete removes one.
  • atgc repo collaborators add and remove let an account push, or stop it.
  • atgc repo log shows a repo’s history, and atgc repo sync brings a fork up to date with its source.
  • --fields keeps only the named keys in --json output, and under --json a failure is one JSON object on stderr.

Scripts and agents get a treat too: one flag to trim the JSON, and an error you can parse instead of guess at.

the whole changelog →

Quickstart

A few commands to a checkout that's ready to push. Agents get a track of their own.

for humans

  1. $ cargo install --locked --git https://tangled.org/permadeath.com/atgc

    Needs Rust 1.89+ and git.

  2. $ atgc auth login you.bsky.social

    Any atproto account on any PDS. Your browser does the rest.

  3. $ atgc key add

    Publishes your ~/.ssh key so the knot lets you push.

  4. $ atgc repo clone permadeath.com/atgc

    Clones it and sets the checkout's git identity and SSH key to yours.

  5. $ cd atgc && atgc doctor local

    Checks your machine, account and checkout. Anything red comes with its fix.

for agents

  1. > /plugin marketplace add https://tangled.org/permadeath.com/atgc.git> /plugin install atgc@atgc

    Claude Code sessions show up knowing what Tangled is and how to sign in.

  2. $ atgc agent

    The briefing, straight from the binary. It always matches the version.

  3. $ atgc auth login --agent hedgehog.you.dev

    Its own account, on a PDS you run for agents. You approve it once.

  4. $ atgc key create --account hedgehog.you.dev

    An SSH key for an identity with no ~/.ssh.

  5. $ atgc repo configure --account hedgehog.you.dev

    In the agent's worktree. Everything it commits and pushes from there is the agent's.

  6. $ atgc doctor local --json

    Same checks, as JSON. Non-zero exit if anything is broken.

Say something

All of it in the open, on atproto, where you can reply with your own account.