kimaki sleep in its shell, the session goes idle, and Kimaki wakes it when the time comes.agent runs kimaki sleep Kimaki checks every 5s same session resumes │ │ │ ▼ ▼ ▼ ┌────────────────────┐ writes ┌────────────────────┐ due ┌────────────────────┐ │ session goes idle │ ───────► │ wake row in SQLite │ ───────► │ wake message in │ │ no tokens used │ │ survives restarts │ │ the same thread │ └────────────────────┘ └────────────────────┘ └────────────────────┘
deploy is running, check back in 2 hours and confirm it went green
wait until tomorrow 9am UTC, then summarize what changed overnight
--duration or --until, never both:12kimaki sleep --duration 2h --reason 'waiting for the deploy' kimaki sleep --until 2030-01-01T09:00:00Z --reason 'nightly build'
| Option | Meaning | Examples |
--duration | Relative wait | 30m, 2h, 1d |
--until | Absolute UTC time | 2030-01-01T09:00:00Z |
--reason | Why it waits, shown on wake | waiting for the deploy |
--until must be UTC and end with Z. Convert from your local time before you ask for a specific time.1-# Woke after sleeping until 2030-01-01 09:00 UTC. Reason: waiting for the deploy
Woke after sleeping until and tells it to continue the work it waited for. The wake is a new turn on the same session, so the agent remembers everything from before the sleep.kimaki sleep again with the original --until time./queue, /abort, ! shell commands, OpenCode slash commands, button clicks, and prompts sent with kimaki send./btw command does not cancel a sleep. It forks your question into a side thread, and the sleeping thread keeps waiting.kimaki sleep | --send-at | |
| Who starts it | The agent, during a conversation | You or the agent, from the CLI |
| What resumes | This session, with full context | A new prompt |
| Repeats | No, one time | Cron supported |
| Best for | "check back after the deploy" | digests, reminders, recurring jobs |
kimaki sleep last, after its text, and then stop. The command output is not a wake. Work continues only after the wake message.