# claude-code-motivator

Open source · 2026

> A plain-text directive API for autonomous coding agents: polled before the agent stops, it returns one precise instruction to find, verify and ship the next task.

Coding agents tend to stop at the first green checkmark. Wire this endpoint into a Stop hook and, before the agent ends its turn, it fetches one line of senior-engineer operating advice: find the next high-value task, verify the work, commit it and continue.

GET / returns one newline-terminated line of text/plain. Modes steer the advice toward continuing, verifying, shipping, focus or quality; the default deliberately never says stop, and an explicit stop mode is the honest counterweight. The corpus is static and hand-curated, with a no-repeat window so consecutive calls differ, and no external calls, keys or rate limits.

## Highlights

- Seven modes: continue, verify, ship, focus, quality, stop and any.
- JSON output, an OpenAPI page and a live stats dashboard at /stats.
- Works as a Claude Code Stop hook or as a one-line CLAUDE.md instruction.

## Built with

Python, FastAPI, uv, Docker

## Links

- Source: https://github.com/TheDivyanshShukla/claude-code-motivator
- Page: https://divyanshshukla.com/work/claude-code-motivator
