Onward

Onward keeps Claude Code working through multi-step tasks instead of stopping to ask.
Claude Code stops when it thinks a turn is finished. On a long task that often lands mid-way: the schema is written but the migration is not, the endpoint exists but nothing validates its input. Onward hooks the Stop event, looks at what just happened, and either lets the session end or sends it back to work.
What it looks like
A Stop event after "I added the POST /users route. Next I'll add request validation and the integration test.":
$ echo '{"role":"assistant","content":"I added the POST /users route. Next I'\''ll add request validation and the integration test."}' \
> transcript.ndjson
$ echo '{"session_id":"demo","transcript_path":"./transcript.ndjson","stop_hook_active":false}' \
| ./hooks/claude-judge-continuation.sh
{
"decision": "block",
"reason": "Heuristic detected 'explicit_next_steps': work continues without judge"
}
A Stop event after "I sketched two designs for the validation layer. Which approach do you prefer?":
{
"decision": "approve",
"reason": "Heuristic detected 'asking_for_decision': user input needed, stopping without judge"
}
decision: block is what sends Claude back to work. decision: approve lets the session end.
Install
Onward ships as a Claude Code plugin, and the repository is its own single-plugin marketplace, so it installs straight from the clone.
git clone https://github.com/dallascrilley/onward.git
claude plugin marketplace add ./onward
claude plugin install onward@onward
Restart Claude Code, then confirm the four hooks registered:
claude plugin details onward
onward 2.0.0
Keeps Claude Code working through multi-step tasks instead of stopping to ask
Source: onward@onward
Component inventory
Skills (0)
Agents (0)
Hooks (4) Stop, PreToolUse, SessionStart, PostToolUse (harness-only — no model context cost)
Requirements: Claude Code with the claude CLI on PATH, Bash, and jq. Nothing else is installed, and no packages are downloaded.
To remove it: claude plugin uninstall onward then claude plugin marketplace remove onward.
How a decision gets made
Every Stop event walks the same ladder, and the first rung that matches wins:
- Ignore patterns. Literal substrings you list in
.onward/ignore.txt end the session immediately.
- Permission language. "Should I continue?" means keep going. "Which approach do you prefer?" means stop and ask.
- Heuristic signals. Stated next steps, open TODOs, and explicit completion phrases resolve without any model call. Roughly 63% of decisions in the eval suite land here.
- The judge. Everything left goes to a separate Claude Haiku instance with a JSON schema, which returns a continue-or-stop verdict with a confidence score.
Two guards sit around that ladder. Throttling caps continuations at 3 per 5 minutes per session, so a disagreement cannot loop forever. Stall detection compares the current context against recent decisions and forces a stop when the same state keeps producing low-confidence continuations.
The judge runs with CLAUDE_HOOK_JUDGE_MODE=true, and the hook approves the stop immediately when it sees that variable. That is what keeps the judge from triggering its own hooks.
Configuration
Everything has a working default. Per-project settings live in .claude/onward.local.md as YAML frontmatter:
---
enabled: true
aggressiveness: high
dod_enforcement: advisory
definition_of_done:
- Tests pass
- No debug logging left behind
---
aggressiveness (low, medium, high) controls how much transcript context the judge sees. definition_of_done rules are added to the judge prompt; dod_enforcement: strict tells the judge to treat them as blocking.
Environment variables override the defaults for a single run:
| Variable | Default | Purpose |
|---|
ONWARD_ENABLED | true | Set false to approve every stop |
ONWARD_DRY_RUN | false | Decide as usual, then always approve the stop and report what it would have done |
ONWARD_JUDGE_MODEL | haiku | haiku, sonnet, or opus |
ONWARD_THROTTLE_LIMIT | 3 | Continuations allowed per window |
ONWARD_THROTTLE_WINDOW_SECONDS | 300 | Length of the throttle window |
ONWARD_TRANSCRIPT_CONTEXT_LINES | 10 | Transcript entries sent to the judge |
ONWARD_STATE_DIR | ~/.claude/onward | Where decisions and logs are written |
ONWARD_LOG_DECISIONS | true | Append every decision to decision_log.jsonl |
ONWARD_DEBUG | false | Structured JSON trace on stderr |