Skip to main content

lineup logo

lineup

lineup shows what your coding agent (Claude Code or Codex) just changed, flags the risky edits, and lets you undo a file.

Demo

After the agent's reply, the hook prints a short line:

⚠ ≈ lineup: 2 HIGH
  2 auth.py        auth or payment file changed
  3 test_utils.py  assertion removed
Undo: lineup rollback 2

lineup risky shows every changed file and the rule behind its score:

| ID | File          | Risk | Why (rule)                                  | Other           |
| 1  | .env          | HIGH | .env or key file changed, contents not read | Can't roll back |
| 2  | auth.py       | HIGH | auth or payment file changed                |                 |
| 3  | test_utils.py | HIGH | assertion removed                           |                 |
| 4  | utils.py      | LOW  | code edited, + function added: mul          |                 |

lineup rollback 2 (or lineup rollback auth.py) puts the file back:

2   auth.py  restored
Your versions from before this rollback are saved in .git/lineup/backups/2026-11-06_004042/.
Also changed: .env (ID 1), test_utils.py (ID 3), utils.py (ID 4). Check whether they depend on this file.

Install

Needs Python 3.10 or newer, git, and pipx.

pipx install agent-lineup
cd your-repo
lineup init --agent claude

Use --agent codex if you use Codex, or leave --agent out for both.

lineup init shows the hooks it will add and asks before writing. Then start a new Claude Code session. In Codex, run /hooks and trust the lineup hooks.

  • No pipx: python -m pip install --user pipx, then python -m pipx ensurepath, then open a new terminal.
  • No git: lineup says "git isn't installed or isn't on your PATH". Install git first.
  • Upgrade: pipx upgrade agent-lineup.
  • Uninstall: run lineup init --remove in each repo first, then pipx uninstall agent-lineup. To delete lineup's saved data too, delete the .git/lineup folder in each repo.

Commands

Command What it does
lineup init Adds the hooks for Claude Code (.claude/settings.local.json) and Codex (.codex/hooks.json). --agent claude or --agent codex picks one. --remove takes them out again.
lineup diff What changed since the session started, with a short AI summary.
lineup risky Scores each changed file HIGH, MED or LOW using fixed rules, and shows the rule.
lineup rollback 3 4 Undoes files by ID or name. Your current version is backed up first.
lineup dismiss 3 Says a Scope or Claims flag was wrong. The file goes back to its rule score until it changes again.
lineup note "..." Saves a short tester note for this repo. Secrets become [REDACTED]. --list shows them.
lineup report Usage counts for tester feedback. --export writes lineup-notes.md to send.

Scope and Claims

Two extra checks run at the end of each reply, using words and file names only (no AI). A hit sends the file straight to HIGH, with a note shown once. lineup risky keeps showing it in a Scope or Claims box until you dismiss it.

  • Scope: a sensitive file (auth, config, CI or agent settings, env, database, packages, install scripts) changed, but your request never mentioned it. If your last message is only a go-ahead ("yes", "ok continue"), lineup uses the request before it.
  • Claims: a sensitive file changed, but the agent's last message never names it. Also, as a note only: the agent says it changed a file that didn't change.

Notes and feedback (testers)

  • lineup note "the flag on the config file was wrong" saves a note in this repo. Anything that looks like a secret becomes [REDACTED].
  • lineup report --export writes lineup-notes.md in the repo root: a summary, the usage tables and your notes. It holds file types (python, test, config), counts and times, never file names, code or secrets. It's kept out of git and lineup skips it. Read it before sending.
  • Everything stays in .git/lineup/ until you send the file yourself. lineup sends nothing.

What gets sent to the AI

Only lineup diff uses AI. It sends the changed lines to the agent you already have (Claude Code with Haiku, or Codex), with no tools. Nothing goes anywhere else, and lineup needs no API key.

  • .env, key and credential files are never sent. They're listed by name only.
  • Lockfile contents are left out. Secret-looking text is hidden before sending.
  • The hooks, risky, rollback and report use no AI. They run only on your machine.
  • For Scope and Claims, your messages are kept as words only (secrets hidden) in .git/lineup/ and forgotten at the next session. The agent's last message is checked in memory and never saved. Neither is logged.
  • lineup keeps its photo, file copies and backups in .git/lineup/ in your repo. Private files are kept as fingerprints only, never copied.

Run it in a second terminal

You can run lineup with ! in the same session (for example ! lineup risky). But anything you run with ! goes into the agent's context, so the agent may comment on it. Its commentary isn't part of lineup's check: the scores come from fixed rules, not from the agent.

To keep the agent out of it, open a second terminal in the same folder and run lineup there.

Known limits

  • Claude Code is tested. Codex hooks aren't fully tested yet, and you must trust them with /hooks before they run.
  • The secret scan can miss things. Don't rely on it alone.
  • Tested on Windows. Mac and Linux aren't tested yet.
  • Rollback can't undo private files, files over 10 MB, links, or changes that are already committed.
  • Scores come from simple rules, so expect some false flags.

Develop

pip install -e ".[dev]"
pytest

Testers: docs/testers.md.

Metadata

Release files for agent-lineup 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for agent-lineup 0.1.1
File Size Uploaded Provenance Actions
agent_lineup-0.1.1.tar.gz 103.0 kB Without provenance Details for agent_lineup-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for agent-lineup 0.1.1
File Interpreter ABI Platform Actions
agent_lineup-0.1.1-py3-none-any.whl Python 3 none any Details for agent_lineup-0.1.1-py3-none-any.whl

Total release size: 168.8 kB

Release files / agent_lineup-0.1.1.tar.gz

Download URL agent_lineup-0.1.1.tar.gz
Size 103.0 kB
Tags Source
SHA-256 checksum
How to use checksums
4b2a1da90fd0167f30bc0e6d882874ab4324f08aee96e314555b8922a96ca78d
BLAKE2b-256 checksum
How to use checksums
d3b8c3269f98eff5364f15403508a60b42c0894e41161648eb2dbab0411e8bb9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.11

Release files / agent_lineup-0.1.1-py3-none-any.whl

Download URL agent_lineup-0.1.1-py3-none-any.whl
Size 65.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
675767730c97a3a2067d07bed0c7b4675d5e5c772d7da7acaa77748d40ef1fe1
BLAKE2b-256 checksum
How to use checksums
62af82ba37b3a4a10573f18dc95c053bb7177e6e910e27d9187536ee8c5d4f7d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.11

Security for agent-lineup 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page