kapi context reset
kapi reset --before <session | date | id>Go back to how this project's context stood at an earlier point: before an assistant's session started, before a date or a moment, or before one entry in "kapi context log".
Everything recorded from that point on is set aside: it stops answering, and the project's terms, approved wording and voice are rebuilt as they stood. Nothing is erased. What was set aside stays in the log, and the reset is recorded too, so a later reset to before it brings everything back.
To change your mind about one rule, decide again in "kapi context review" instead. --dry-run says what a reset would set aside without doing it.
Runs in your browser against a small sample file. Edit the command before running, or press Run to execute it as shown.
kapi context reset --before s0ab4e399| Flag | Type | Default | Description |
|---|---|---|---|
| --before | string | the point to go back to: an agent session, a date (2006-01-02) or instant, or an id from kapi context log | |
| --dry-run | bool | false | say what the reset would set aside without recording it |
| --note | string | why | |
| --project , -p | string | path to a kapi.yaml project recipe or its directory (auto-discovered from cwd if omitted) |
kapi context reset --before 2026-10-01 --dry-run kapi context reset --before 0n794e2gk7 --note "back to before the import"← Back to the Command Reference