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 git+https://github.com/HARSHAVARDHAN-RAJU5/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, thenpython -m pipx ensurepath, then open a new terminal. - No git: the install fails with "Cannot find command 'git'". Install git first.
- Upgrade:
pipx upgrade agent-lineup. If it says it's already up to date, runpipx install --force git+https://github.com/HARSHAVARDHAN-RAJU5/agent-lineup. - Uninstall: run
lineup init --removein each repo first, thenpipx uninstall agent-lineup. To delete lineup's saved data too, delete the.git/lineupfolder 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 report |
Usage counts to send as tester feedback. No code or file names. |
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,rollbackandreportuse no AI. They run only on your machine. - 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 the agent may comment on the output. Its commentary isn't part of lineup's check: the scores come from fixed rules, not from the agent.
To avoid this, 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
/hooksbefore 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.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| agent_lineup-0.1.0.tar.gz | 75.9 kB | Without provenance | Details for agent_lineup-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| agent_lineup-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for agent_lineup-0.1.0-py3-none-any.whl |
Total release size: 125.0 kB
Release files / agent_lineup-0.1.0.tar.gz
| Download URL | agent_lineup-0.1.0.tar.gz |
|---|---|
| Size | 75.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dea86ec6586ab23f71731763f49af753d8048db07ce3732d3e7d038eda87a116
|
|
BLAKE2b-256 checksum How to use checksums |
8e587cd6c20e9acd39b2183329d8a7dea218123a38bc5a737d415bbfc9beb36a
|
| 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.0-py3-none-any.whl
| Download URL | agent_lineup-0.1.0-py3-none-any.whl |
|---|---|
| Size | 49.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
133f06704ea0d6c2393076ab16b5d5b21ee03339ee70eeb37a455f749ece21d1
|
|
BLAKE2b-256 checksum How to use checksums |
16dd7a7fefe2971c31467013c6e26fd619079a8aaffc4753cfa0cf2c8cf3e84e
|
| 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.0
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.