whatsnext
One plan, one next step, for every coding agent.

whatsnext works in Claude Code, Codex, Gemini CLI, Cursor and any agent that reads AGENTS.md. It keeps a plan checklist, check-offs, a short resume note and a list of settled choices as plain files in your repository, and lets agents leave each other messages, so a new session, or a second agent, starts from where the last one stopped.
Why whatsnext
A coding agent forgets between sessions. So you pay in one of four ways, and whatsnext removes each one:
- You re-explain. What was done, what is left and which branch it lives on. whatsnext keeps a plan and a short resume note that load at session start, after
/clear and after a compact.
- Two agents take the same item. Nothing says who has it.
plan start refuses an item another agent has checked out.
- "Done" is a claim. The agent says the tests pass; no one ran them. An item is ticked only when its test command exits 0.
- A compact keeps what the model thinks matters, which may not be your goal or your rules. The
/compact text is built from your handoff, so the summary keeps your goal.
- Nothing is hidden. Everything is a Markdown or JSON file you can read and edit. There is no database and no background process. Recording a session event uses no model call.
Install
Claude Code:
claude plugin marketplace add archid21/whatsnext
claude plugin install whatsnext@whatsnext
Claude Code loads hooks/hooks.json with the plugin.
Codex: from a checkout, run python3 skills/whatsnext/scripts/whatsnext.py install-hooks (it also links the skill into ~/.agents/skills/whatsnext), then review the new hooks in Settings > Hooks (desktop) or /hooks (CLI). Gemini CLI and Cursor: add --agent gemini or --agent cursor (writes ~/.gemini/settings.json or ~/.cursor/hooks.json; --project for the repo; --dry-run and --undo work the same).
Quickstart
- Say "set up whatsnext in this repo" and make a plan.
- Work. Say "wrap up" before you step away or clear the chat.
- Come back and say "what's next?". You pick up where you left off.
When an item is finished, say "mark P-13 done". It is ticked only if its test command passes.
New here? Read the user guide: what to say to save a session, resume it, pick work and mark it done.
The first time a session starts after install, whatsnext shows a table of what it does (the feature, what it does in plain words, how it works) and a short diagram of how plan, handoff, compact and resume fit together. It shows once. See it again with /whatsnext-welcome in Claude Code, or whatsnext welcome.
To try the commands from a checkout, in a git repository:
python3 skills/whatsnext/scripts/whatsnext.py init --dry-run
python3 skills/whatsnext/scripts/whatsnext.py status --json
python3 skills/whatsnext/scripts/whatsnext.py plan next
python3 skills/whatsnext/scripts/whatsnext.py plan done P-13 --verify "python3 -m unittest discover -s tests"
Key features