Documentation

Concepts

A task is one piece of work. Its state is a goal, a plan of steps, decisions, files, commands and optional code snippets that agents keep up to date. Every change is a new version.

Task

A task has a title, an optional project name, a status and its current state. Agents refer to a task by its id (returned by sky_start) or by its title; titles are matched case-insensitively among tasks that are not archived.

Keep one task per piece of work you would describe to a colleague in a sentence: “Billing webhook retries”, “Migrate search to the new index”.

Task state

FieldTypeMeaning
goaltextWhat the task should achieve, in one sentence.
summarytextWhere the work stands right now.
stepslistThe ordered plan. Each step has an id (s1, s2…) and a status: todo, doing or done. Replaces the old done and next lists.
decisionslistDecisions with a short why. Added with decisions_add.
blockerslistWhat blocks progress. Replaced as a whole; send [] when clear.
fileslistPaths touched, stored exactly (never contents). Added with files_add.
commandslistExact commands worth remembering. Added with commands_add.
snippetslistExact code the agent chose to save, with an optional language. Opt-in: added with snippets_add.
branchtextGit branch, if any.
notestextAnything else the next agent must know.

Step, decision and snippet ids are assigned by the server and never reused, so an agent can refer to “s2” safely.

Versions

Every sky_start that creates a task, every sky_update, sky_checkpoint, manual edit in the dashboard and rollback writes a new version. Nothing is overwritten.

A version is stored as a delta: a short list of operations such as set a field, add a step or mark a step done, not a copy of the whole state. Every 20th version also stores a full snapshot, so any version can be rebuilt by replaying at most 19 deltas. sky_detail with a version number rebuilds an old state, and a rollback rebuilds one and saves it as a new version.

  • Free keeps 7 days of history. The latest version of a task is never deleted.
  • Pro keeps a year of full history and every checkpoint forever, and can roll back to any kept version; a rollback is itself a new version.
  • If two agents write at the same moment, both writes are kept as consecutive versions.

Statuses

StatusMeaning
activeWork in progress. Counts towards the Free limit of 5.
doneFinished: sky_checkpoint with finished=true, or marked in the dashboard.
archivedHidden from title matching. Set in the dashboard.

sky_start on a done or archived task reopens it as active, so a task can always be resumed.

What is stored, and how

  • Stored: task title, project, the state fields above, version history, which agent wrote each version, and the code snippets an agent chose to save.
  • Encrypted: everything above is encrypted with AES-256-GCM using a key derived for each user. Only technical fields needed to look things up (ids, status, version, timestamps) are not.
  • Code: Sky stores code only when the agent saves it with snippets_add. It does not read your repository, and fenced code blocks in text fields become [code omitted — put exact code in snippets].
  • Secrets: strings that look like API keys, tokens, JWTs, private keys or password=… become [redacted] in every field, snippets and commands included, and the agent is told.
  • Integrity: every version is signed in a hash chain, so tampering with stored history is detectable.
  • Tokens are stored as SHA-256 hashes only.

Exact and condensed

Sky separates what must come back exactly from what can be summarized.

KindFieldsHow it is kept
ExactTitle, project, branch, files, commands, snippets, step and decision textLossless compression: the exact code, paths and commands come back byte for byte.
CondensedOnly the description: goal, summary and notesWhen they are long, Sky also writes a short brief for the compact view. The full text is always kept and is available in sky_detail.

Limits: goal 600 characters, summary and notes 2000, step and decision text 300, a snippet 2000; up to 60 steps, 40 decisions, blockers, files and commands each, and 10 snippets. Keep it short: it is a briefing, not a log.

Something unclear? Write to altumptic@gmail.com