Kit · Claude Code and Codex

Your tests run before your agent says it's done.

The Senior Engineer's Agent Pack is six pieces for Claude Code and Codex: a reviewer subagent, a test gate that runs your tests before the agent finishes, a format-on-edit hook, and skills for PR descriptions, root-cause debugging and change planning. Your agent sets them up for your test command, your formatter and your default branch.

Sale price $9.50+ Regular price $19 50% off

Pay what you want. Sale ends December 15.

$29 suggested. One license covers one person. 7-day refund.

Example run of the verify script on a Claude Code install: fifteen checks print PASS (config, todos, hook-files, switches, test-gate-blocks, test-gate-bounded, test-gate-allows, test-gate-timeout, test-gate-off, format-claude, format-codex, reviewer-guard, claude-hooks, claude-reviewer, claude-skills).

Watch one planted bug go from flagged to fixed

The 2026-11-29 rehearsal: Claude Code 2.1.332 on Linux ran the shipped 1.0.0 zip headless, installed into a throwaway config. The repo was a small Python price function with one planted bug: > where >= belongs, so discount(100) fails its test. The terminal shows lines condensed from the rehearsal logs.

The reviewer points at the line.

"Use the reviewer subagent to review HEAD~1..HEAD." It flagged pricing.py:3: > should be >=.
reviewer · HEAD~1..HEAD pricing.py:3 > should be >=

The test gate blocks the stop.

Asked only to fix a README typo, the agent fixed it and tried to stop. The test gate ran the tests and blocked it. The agent named the failing test and its cause, and reported the one-line fix without making it.
Stop hook · test gate FAIL test_boundary_100 AssertionError: 100 != 90.0 exited with status 1 (try 1 of 2)

"Fix it." Tests pass. It stops.

The agent changed > back to >=, the tests passed, and the gate let it stop.
pricing.py - total > 100 + total >= 100 tests passed, the gate let it stop

Not covered by the rehearsal: the setup interview, format-on-edit, the reviewer guard and the three skills.

exited with status 1 (try 1 of 2)

The test gate refusing a stop while a test failed, in the 2026-11-29 rehearsal.

The gaps it is aimed at

A coding agent that finishes with the tests red, leaves files unformatted, writes a PR description that claims checks nobody ran, or reviews a diff without pointing at a line, costs you the time it takes to notice.

This pack does not make your agent write better code. It runs your own checks at two points: when the agent finishes, and after each file it writes.

The six pieces, and what each one produces

Each one installs on its own. Hover over a tile, or tab to it, to see its output.

reviewer

Reviews a diff for correctness bugs only, and ends with what it did not check.

Each finding: file:line, a severity, the input that triggers it, and a suggested fix. In the rehearsal: pricing.py:3, > should be >=

test-gate

A Stop hook that runs your tests when the agent tries to finish.

A blocked stop, with the last lines of the failing output. In the rehearsal: exited with status 1 (try 1 of 2)

format-on-edit

Runs your formatter on each file the agent writes.

Formatted files. A failed format is reported, never undone.

pr-description

Written from the actual diff and commit log.

A description with Summary, Changes, Testing and a Not verified section.

root-cause

Reproduce first, one hypothesis at a time.

The named root cause, before any fix.

plan-check

Every caller, test, config and doc a change reaches.

A file map, each file marked read or UNVERIFIED.

Off switches

The test gate and the formatter each turn off with one command.

touch ~/.config/agent-pack/test-gate.off

Your agent sets it up. You say yes.

Unzip and ask.

Open Claude Code or Codex in the unzipped folder and ask it to set the pack up.

you

read README.md and set this up

It interviews you.

Which agents and OS you use, which pieces you want, and for each project your test command, formatter and default branch. An answer you don't have becomes a TODO, and that piece stays off for that project. Nothing is guessed.

agent

What command runs this project's tests from <folder>, and exits 0 when they pass?

Plan, dry run, your yes.

It shows every file it would change and waits for your yes. Then it installs, backs up anything it replaces, merges hook entries into your settings, and runs verify.sh.

$ sh install.sh --dry-run# prints every change with "would" in front,# and changes nothing

How the test gate stays out of a loop

A Stop hook that always blocks would keep an agent working forever. The limits are in the script:

  • At most two blocks in a row per session and project by default. Then the agent may stop, and you are told the tests still fail.
  • No re-run on a tree that already failed in this session, or that already passed.
  • A hung test command's process group is killed at the timeout, 300 seconds by default.
  • The log keeps the first 5 MB of output, so a flood cannot fill the disk.
  • One command turns it off for everything: touch ~/.config/agent-pack/test-gate.off.

For you if

  • You use Claude Code or Codex every day and want the agent to run your tests and formatter without wiring hooks by hand.
  • You want review findings that point at a line, and PR descriptions that claim only the checks that ran.
  • You want an off switch for the test gate and the formatter, and nothing guessed when setup lacks an answer.

Not for you if

  • You already have a test gate, a formatter hook and a review agent the way you like them. This pack would mostly duplicate them.
  • You want CI or a sandbox. The test gate runs your command as you.
  • You need Codex, macOS or Windows proven today. They are in beta.

6

pieces, each installs on its own

15

checks in a Claude Code verify run, each PASS, FAIL or SKIP

106

scripted tests pass on Linux

What it does not do

It is not CI and not a sandbox. The test gate runs your command as you. The reviewer guard reads the command text before the shell runs it, and an allowed git command still runs whatever the repo's own git config names.

It does not edit your repos or commit. Codex runs new hooks only after you trust them in /hooks.

What was tested, and what was not

On Linux with Claude Code 2.1.321, 106 scripted tests pass in throwaway home folders whose paths contain a space. They cover the install and re-run, the settings merges, every test-gate limit, the formatter, the reviewer guard's allowed and blocked commands, and every verify.sh check.

In headless Claude Code sessions the hooks ran for real: the formatter on written files, and the test gate blocking a stop and then passing after the fix. A pre-sale reviewer ran the whole setup headless from the README on the build before the last fixes, and verify.sh printed 15 PASS.

Not tested

  • Codex end to end. The Codex wiring follows OpenAI's docs, and no Codex session ran these hooks or the reviewer.
  • A full setup of the current build, and the interview's wait for a yes.
  • The reviewer on a diff from real work (the rehearsal's diff was one planted line), and the three skills in a live session.
  • macOS and Windows.

Codex, macOS and Windows are in beta. The pack's SOURCES.md lists every vendor page it relies on, the date it was read, and the behaviors those pages do not confirm.

Built by Jared Smith

15 years shipping production systems. I was CISO at Lavender, where I built the security program from zero through SOC 2 Type II and shipped production AI features for 100,000+ users. Before that: backend and identity at BlockFi, telemetry ingestion at AAMP Global, and co-founder of PopSocial.

Today I'm a founding engineer at an early-stage startup, where most of the code is typed by coding agents and every line is mine to answer for.

Get the pack

A zip of Markdown steps, hook scripts, agent templates and skills, delivered via Gumroad. No app, no account, no API keys.

Sale price $9.50+ Regular price $19 50% off

Pay what you want. Sale ends December 15.

Get the pack

$29 suggested. 7-day refund, no questions.