agent-lineup
Health Warn
- License — License: MIT
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Low visibility — Only 7 GitHub stars
Code Pass
- Code scan — Scanned 12 files during light audit, no dangerous patterns found
Permissions Pass
- Permissions — No dangerous permissions requested
No AI report is available for this listing yet.
Review your coding agent’s changes and catch risky edits before you commit.🌊
See what your coding agent just changed. Catch the risky edits. Undo a file.
Coding agents edit many files in one go. Some of those edits matter: a deleted test, a changed .env, an auth file you never asked about. lineup watches every reply, flags the risky ones, and lets you put a file back in one command.
- No API key. Scores come from fixed rules. The only AI summary uses the agent you already have.
- Nothing leaves your machine. Everything stays in
.git/lineup/in your repo. - Works where you already are: Claude Code and Codex, through their hooks.
Demo
After each agent reply that changes files, lineup 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 why it got 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 puts the file back, and saves your current version first:
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+, git and pipx.
pipx install agent-lineup
cd your-repo
lineup init # both agents
lineup init --agent claude # or --agent codex, just one
lineup init shows the hooks it will add and asks first. Then start a new agent session.
Codex users: run /hooks in Codex and trust the lineup hooks.
- No pipx:
python -m pip install --user pipx, thenpython -m pipx ensurepath, then open a new terminal. - Upgrade:
pipx upgrade agent-lineup, then runlineup initagain in each repo. - Uninstall:
lineup init --removein each repo, thenpipx uninstall agent-lineup.
Commands
| Command | What it does |
|---|---|
lineup risky |
Scores every changed file HIGH, MED or LOW, with the rule behind it |
lineup rollback 2 auth.py |
Undoes files by ID or name. Your current version is backed up first |
lineup diff |
What changed since the session started, with a short AI summary |
| Scope (automatic) | Flags a sensitive file your request never mentioned. Shown in risky |
| Claims (automatic) | Flags a sensitive file the agent's reply never named, or a file it says it changed but didn't. Shown in risky |
lineup dismiss 2 |
Says a Scope or Claims flag was wrong |
lineup init |
Adds the hooks (--remove takes them out) |
lineup note "..." |
Saves a short note for feedback. Secrets become [REDACTED]. --list shows them |
lineup report |
Usage counts for feedback. --export writes a file to send |
lineup --version |
Shows your lineup version |
What it catches
| Risk | Examples |
|---|---|
| HIGH | Tests deleted, assertions removed, skips added · .env or key files · auth and payment files · CI and agent settings · install scripts · database migrations |
| MED | Other test edits · config files · new packages · deleted files · 100+ lines removed |
| LOW | Normal code edits · new files · docs · lockfiles |
Two extra checks look at the conversation, not just the files:
- Scope: a sensitive file changed, but your request never mentioned it. You asked for a blue button, and
auth/session.pychanged. - Claims: a sensitive file changed, but the agent's reply never named it. Or the agent says it changed a file that didn't change.
Both send the file to HIGH with a note. Wrong? lineup dismiss <ID>.
How it works
- Session starts: lineup takes a snapshot of your repo. It only copies uncommitted files, and only keeps fingerprints of private ones.
- Agent replies: lineup compares the repo with the snapshot and scores what changed.
- You check:
lineup riskyshows the reasons.lineup diffgives a summary. - You undo:
lineup rollbackrestores a file from the snapshot.
Privacy
- The hooks,
risky,rollbackandreportuse no AI. lineup diffsends the changed lines to your own agent (Claude Code with Haiku, or Codex)..env, key and lockfile contents are never sent, and secret-looking text is hidden.- Your messages are kept as words only for Scope, and forgotten at the next session. The agent's reply is checked in memory and never saved.
- lineup sends nothing anywhere. Feedback files are written to disk for you to read and send yourself.
You can run lineup with ! inside the agent (! lineup risky), but the output then goes into the agent's context, and it may comment on it. To keep it quiet, open a second terminal in the same folder.
Known limits
- Claude Code is tested. Codex hooks aren't fully tested yet.
- Tested on Windows. Mac and Linux aren't tested yet.
- Rollback can't undo private files, files over 10 MB, links, or committed changes.
- Scores come from simple rules, so expect some false flags. The secret scan can miss things.
Learn more
- Full guide: every option and detail
- Testers: how to try it and send feedback
- Changelog
Develop
pip install -e ".[dev]"
pytest
MIT licensed.

Reviews (0)
Sign in to leave a review.
Leave a reviewNo results found