Repository navigation
People using Foreman reported the same problem: on long runs it stopped updating the tracker and lost track of which run it was on. The cause was compaction. When Claude Code compacts a long chat, the session forgets its run. v2.4 fixes that.
What's new since v2.3
- Staying on track after compaction
- A SessionStart hook (
hooks/session_context.py) tells every started, resumed or compacted session which run it is on, where its tracker is, and its next step. Verified on Claude Code; Codex not verified yet. - Every event goes through
live.py log, which stamps the real time and refreshes the tracker. - Check-ins are scheduled at the start of every long run, not only in track mode.
- A SessionStart hook (
foreman setup: one question at a time, each with a recommended answer: which agent CLIs and subscriptions you have (checked live), companion skills, which model does which job, the reminder hook, how often to check in. Saved per machine in~/.foreman/setup.yaml.- Companion skills are optional. Short built-in versions live in
references/. - Model scores.
scores/models.yamlgives a score per model and job. Grades stay on your machine; at the end of a run Foreman asks once whether to share new ratings as a prefilled GitHub issue that you submit yourself (model, job, harness, month and seven grades; no project data). - Updates. A daily release check asks before installing anything and verifies the archive against this release's
SHA256SUMS. - Merges need your words. "Accepted" or "go with your recommendation" no longer counts as permission to merge into the base branch.
Measured on a scripted benchmark (headless Claude Code, Sonnet, same tasks, one run per version, so read it as a direction, not an average):
- 5-milestone run: tracker up to date after 17/40 events on v2.3, 35/35 on v2.4.
- 3-milestone run: 6/8 → 22/22. The trade-off: the extra check-ins made it slower (7 → 17 min) and dearer ($1.65 → $2.46).
Install
git clone https://github.com/MarioMagdy/foreman
cd foreman
python install.py # Claude Code
python install.py --harness agents # codex, opencode
Already on v2.3: git pull and run python install.py again. See the README for other harnesses and the self-tests.