Documentation

Tools reference

Seven tools. Agents call them on their own when the agent rule is in place.

sky_start

Call at the start of every session. With a title or id it returns a compact state of the task; if no task matches the title, a new task is created. Without arguments it returns the most recently updated active task and lists the others. The compact state is meant to stay short: for exact files, commands, snippets or history, call sky_detail.

ParameterTypeDescription
taskstring, optionalTask title or id.
projectstring, optionalProject or repository name, used when a task is created.
goalstring, optionalGoal, used when a task is created.
agentstring, optionalWhich agent is calling: claude-code, cursor, opencode, gemini-cli…

The compact state has the goal (or a short brief of it), the current step, the next three steps, the last three decisions, blockers, how many files, commands and snippets are stored, the version and the task id.

Example of a compact state
# Task: Billing webhook retries  (shop-api)
Task id: 3f6c… · version 7 · active · branch feat/webhook-idempotency

Goal: Make Stripe webhook handling idempotent.
Progress: 1 of 3 steps done
Now: Unique index on event_id
Next: Integration test
Decisions: event_id is the idempotency key — Stripe guarantees uniqueness
Blockers: Staging DB is read-only until Monday
Stored: 2 files · 2 commands · 1 snippet
Need exact code, commands or history? Call sky_detail.

sky_update

Call after each meaningful step: a step finished, a decision made, a file touched, a blocker found. Creates a new version and answers with one line: the version and the step progress, for example 3/7.

ParameterTypeDescription
taskstring, requiredTask id from sky_start, or its title.
summarystringWhere the work stands now.
goalstringChange the goal.
steps_addstring[]New steps to append, as todo.
steps_donestring[]Steps to mark done, by id (s1, s2…) or by exact text.
step_doingstringThe step being worked on now (id or text). Any other step that was doing goes back to todo.
decisions_add(string | {text, why})[]Decisions to append, each with an optional short reason.
blockersstring[]Current blockers; replaces the list. Send [] when clear.
files_addstring[]File paths to append (paths only, stored exactly).
commands_addstring[]Exact commands worth remembering, e.g. a test or migration command.
snippets_add{lang?, text}[]Exact code you will need later. Stored byte for byte; secrets are still redacted.
branchstringGit branch.
notesstringAnything else the next agent must know.
agentstringWhich agent is calling.

Older clients keep working: done_add (finished steps) and next (remaining steps, added when not already present) are still accepted as aliases, and decisions_add also takes plain strings.

Example arguments
{ "task": "Billing webhook retries",
  "summary": "Dedupe works; tests next.",
  "steps_done": ["Unique index on event_id"],
  "step_doing": "Integration test for retries",
  "decisions_add": [{ "text": "event_id is the idempotency key",
                      "why": "Stripe guarantees uniqueness" }],
  "commands_add": ["npm test -- webhooks"],
  "snippets_add": [{ "lang": "sql",
                     "text": "CREATE UNIQUE INDEX ux_events_event_id ON events(event_id);" }] }

sky_checkpoint

Call before ending the session or handing over. Takes the same fields as sky_update; summary is required. The summary is also indexed for sky_search. Set finished to true when the whole task is complete — the task becomes done.

ParameterTypeDescription
taskstring, requiredTask id or title.
summarystring, requiredWhere the work stands, in a few sentences.
finishedbooleantrue marks the task done.
…All other sky_update fields.

sky_detail

Returns the exact, decompressed content that the compact state leaves out. Call it only when you need it: the exact steps, the files, the commands, a saved snippet, or the history. Read-only.

ParameterTypeDescription
taskstring, requiredTask id or title.
sectionstring, optionalsteps, decisions, files, commands, snippets, notes, history or all.
versionnumber, optionalRebuild the state as it was at that version.

The history section shows the last 20 events and verifies the signature chain; it reports tampered if the chain is broken.

sky_handoff

Returns a full paste-ready brief of the task for an agent that has no Sky connection, or for a colleague. Read-only.

ParameterTypeDescription
taskstring, optionalTask id or title; defaults to the latest active task.
tostring, optionalWho continues, if known.

sky_list

Lists tasks, one line each, with status, version and last update. Read-only.

ParameterTypeDescription
statusactive | done | archived | allDefault: active.

The agent rule

Agents decide when to call tools from their instructions. Without a rule most of them will not call Sky on their own. Put this text in the rules file your client reads:

CLAUDE.md / AGENTS.md / GEMINI.md / .cursor/rules
## Skytropic (Sky) — task state across agents
- At the START of every session call `sky_start` (pass the task title if you know it). It returns a compact state; call `sky_detail` only when you need exact files, commands, code snippets or history. Continue from the current step — do not redo done steps.
- After each meaningful step call `sky_update`: mark steps done (`steps_done`), add new steps, decisions with a short why, files and exact commands. Put exact code you will need later in `snippets`. Never include secrets.
- Before you END or hand over, call `sky_checkpoint` with a summary and the next steps.
- To find earlier work, call `sky_search`. If you cannot call tools, ask the user to run `sky_handoff` and paste the result.

Something unclear? Write to altumptic@gmail.com