Skip to main content
Glama

Your coding agent says "done". Istok keeps the proof: the task, every attempt, and the checks behind the result, with Istok running the commands itself. It all stays with your project instead of inside one conversation, so a new session — or a different agent, or another of your machines — picks up where the last one stopped.

Why

If you work with Claude Code, Codex or Cursor, three things keep getting in the way:

  • Sessions end. Close the chat or hit the context limit, and the plan, the decisions and the half-finished work go with it.

  • Work is invisible. With several agents in several repositories, it is hard to tell who did what and what quietly stalled.

  • "Done" is a claim. The agent says the tests pass; nothing shows that it ran them.

Istok is a local CLI and MCP server. Your agent records its work through MCP while it goes; you keep talking to it as before. Everything stays on your machine in one SQLite file: no account, no cloud, and nothing written into your repository. To work on several machines, run your own sync hub.

Related MCP server: Lific

Quick start

With Claude Code, install the plugin. It brings the MCP server and the hooks, and downloads Istok on first use when it is not installed yet:

/plugin install istok --marketplace vtimame/istok.sh

Then go to step 3. To use istok in your own terminal too, install it as in step 1.

1. Install (Linux and macOS, no root needed):

curl -fsSL https://get.istok.sh | sh

Or with Homebrew: brew install vtimame/tap/istok.

2. Connect your agent once, for your user. For Claude Code without the plugin:

claude mcp add --transport stdio --scope user istok -- \
  istok mcp --actor-id claude --actor-name "Claude Code"

For Codex:

codex mcp add istok -- \
  istok mcp --actor-id codex --actor-name "Codex"

To keep work across restarts and compactions, add the hooks once:

istok hooks install claude   # or: istok hooks install codex

The server lists the core workflow tools; start it with istok mcp --tools full for every tool.

Cursor and other MCP clients are covered in the quick start, together with a short block of instructions that tells the agent when to use Istok.

3. Ask the agent to register your project. Start it in the repository and say:

Register this project in Istok.

Then give it real work as usual. It creates a task, claims it, runs the checks through Istok and completes the task with that evidence.

4. See what happened:

istok task list
istok task show 1

Each task shows its history, with every run and the linked commits.

Learn more

The documentation is also available in Russian, and as llms.txt for agents.

Sync between your devices

To continue the same project on another machine, run a sync hub on any server your devices reach — a VPS or a home server, no domain or certificate needed. The hub stores only rows encrypted on your devices. With Docker, take docker/hub/compose.yml:

ISTOK_HUB_ADVERTISE=203.0.113.10:7443 docker compose up -d
docker compose exec hub istok hub device add laptop   # prints a one-time invitation

To reach the hub from several networks, list its addresses separated by commas, for example a LAN and a Tailscale address; devices use whichever answers.

On the device, istok sync join CODE registers it and istok sync enable in a project folder starts syncing; the second device joins with --key from istok sync key, and istok sync enable in its clone of the repository fetches the same project. The image ghcr.io/vtimame/istok-hub is published with every release for x86-64 and ARM64.

Platforms

Releases are built for Linux (x86-64, ARM64) and macOS (Intel, Apple Silicon). Windows is not supported yet.

Releases are signed. istok update checks for a newer stable release, verifies it, backs up the database and migrates it; istok update --check only reports. A Homebrew install is updated with brew upgrade istok.

Build from source

Istok is written in Go. Building needs Go with cgo (for SQLite):

make build      # writes bin/istok
make install    # installs into ~/.local/bin
go test ./...

A source build cannot update itself; install an official release for istok update.

License

Apache 2.0. Changes are listed in the changelog.

Available Tools

20 tools
context_addA
Idempotent

Save a rule, decision, constraint or note for the current project, so later sessions and other agents see it. Use it when the user asks you to remember something for this project. Instructions (kind=instruction) are delivered with every task_start by default; other kinds are delivered when they match the task. To change or retire an existing record, find it with context_list and use context_update instead of adding a duplicate. Longer reusable documentation belongs in knowledge: knowledge_search and knowledge_read find and read it, and knowledge_create writes it when Istok runs with --tools full; otherwise ask the user to add it with istok knowledge add.

Inputs: title (required), body, kind, tags, +9 more. Returns: error, context, schema_version

context_listA
Read-onlyIdempotent

List the saved context of the current project: rules, decisions, constraints and notes, with their ids and revisions. Archived records and disabled instructions are left out unless include_deleted or include_disabled is set; the filters combine with AND. Use it to check what the project already remembers before context_add, or to find the record and revision for context_update.

Inputs: kinds, limit, sources, visibilities, +3 more. Returns: error, contexts, schema_version

context_updateA
DestructiveIdempotent

Change a saved context record of the current project: its text, kind, tags, delivery or expiry. Only the fields you pass change; an empty string clears review_after, expires_at or superseded_by. Get context_id and the current revision from context_list; the update fails with revision_conflict if the record changed since, so read it again and retry. To retire a record in favour of a newer one, set superseded_by to the replacement's id.

Inputs: context_id (required), expected_revision (required), body, kind, +11 more. Returns: error, context, schema_version

knowledge_readB
Read-onlyIdempotent

Read one complete knowledge item on demand.

Inputs: knowledge_id (required). Returns: error, knowledge, schema_version

project_currentA
Read-onlyIdempotent

Get the project associated with the server root.

Returns: error, project, schema_version

project_initA
Idempotent

Register the directory this MCP server was started in (the server root) as an Istok project, so tasks, runs and context can be recorded for it. Nothing is written into the directory itself; the project lives in Istok's local database. If the directory is already registered, the existing project is returned with created=false and nothing changes. Call project_current first and use this only when the directory is not registered and the user asked to register it.

Inputs: name. Returns: error, created, project, schema_version

run_recoverA
Destructive

Take back your own active run of a task after its lease expired, for example after the session was interrupted for longer than the lease. It issues a new lease to you, cancels the run's executions still marked as running, and records the reason in the task history. Only the actor who owns the lease can recover it. While the lease is still valid this fails; pass force=true only when you know the previous holder of your lease is gone. To simply continue your own run, call task_start with the task_id instead.

Inputs: reason (required), run_id (required), force. Returns: run, error, snapshot, schema_version

run_validate
Destructive

Run a check (tests, a build, a linter) through Istok for your run of the task: Istok executes the command in the project and records its exit code and output as evidence, tied to the state of the code it checked, which a check run in your own shell cannot give. Run it after your last change to the code: task_done refuses a validation when the code has changed since. Prefer it to running the check yourself and reporting it with task_evidence. Pass task_id, and argv without a shell.

Inputs: argv (required), cwd, run_id, task_id, +6 more. Returns: error, artifacts, execution, validation, +1 more

task_blockA
DestructiveIdempotent

Block a task with the reason. Omit expected_revision to block the current revision. Keeps your run lease alive.

Inputs: reason (required), task_id (required), expected_revision. Returns: task, error, schema_version

task_commitA
Idempotent

Link a git commit to the task: sha, subject and time are read from the repository. Use repository for a nested repository of the project. Linking the same commit twice changes nothing. Keeps your run lease alive.

Inputs: task_id (required), commit, repository. Returns: task, error, commit, linked, +1 more

task_done

Finish your run of the task and complete the task in one call. Uses a passed validation of the run, preferably one run with run_validate, or closes it unverified with not_verified_reason. A validation from run_validate counts only while the code is as it was when the check ran: if you changed the code since, the call fails with evidence_stale and the run stays open, so run the check again first.

Inputs: summary (required), task_id (required), validation_id, not_verified_reason. Returns: run, task, error, completion, +1 more

task_evidence

Record a check Istok cannot run itself (a CI pipeline, a manual test, a command that needs your own environment) as an attested validation of your run of the task: Istok stores your word for it. For a command Istok can run, use run_validate instead.

Inputs: status (required), summary (required), task_id (required), command, +3 more. Returns: error, execution, validation, schema_version

task_handoffA

Record where the work stands for the next session: done, where it stopped, decisions, next step. The latest handoff is current; task_start returns it. Keeps your run lease alive; with release, ends your run instead and leaves the task open for another agent.

Inputs: note (required), task_id (required), release. Returns: task, error, released_run, schema_version

task_listB
Read-onlyIdempotent

List tasks in the current project.

Inputs: statuses, include_deleted. Returns: error, tasks, schema_version

task_progressA
Idempotent

Add a task progress update. Omit expected_revision to append without compare-and-swap. Keeps your run lease alive.

Inputs: body (required), task_id (required), expected_revision. Returns: task, error, schema_version

task_readyA
Read-onlyIdempotent

List ready tasks in the current project.

Returns: error, tasks, schema_version

task_showA
Read-onlyIdempotent

Read one task of the current project with its full history: the task fields and revision, every event (progress, comments, runs, checks, commits), its dependencies, blockers and dependents, and whether it has an active or expired run. Use it to review a task, or to read its current revision for compare-and-swap, such as task_block's optional expected_revision or task_update, which is listed when Istok runs with --tools full; to start working on the task, call task_start instead, which also returns the context and handoff you need.

Inputs: task_id (required), include_deleted. Returns: show, error, schema_version

task_startA

Start work on a task in one call: create it from title when task_id is omitted, claim it or continue your own active run of it, and return the run, its context snapshot and the handoff (latest handoff note, recent notes, earlier runs). Safe to call again after a restart or a context compaction.

Inputs: title, task_id, description, context_limit, +1 more. Returns: run, task, error, notice, +4 more

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 20 tools

    Disambiguation4/5

    Most tools have distinct resource-and-action roles, and descriptions explicitly separate close pairs such as run_validate vs. task_evidence and task_start vs. run_recover. Minor ambiguity remains between generic search and knowledge_search, and among several task lifecycle tools (progress, handoff, commit, done), though the descriptions usually resolve it.

    Naming Consistency5/5

    All names use lower snake_case and mostly follow a predictable resource_action pattern: task_*, context_*, run_*, knowledge_*, and project_*. The bare search tool is a small outlier but does not disrupt the overall convention.

    Tool Count4/5

    Twenty tools is on the heavy side, but the server spans task lifecycle, context, knowledge, project setup, search, and validation, and each tool maps to a distinct operation rather than filler. It is slightly above the ideal 3-15 range but still reasonable for the breadth of the domain.

    Completeness3/5

    The core task execution loop is well covered: start, progress, validate/evidence, handoff, block, commit, and done, plus project and context management. However, there is no task_update or dependency-management tool in this surface, and knowledge_create is unavailable here, so editing tasks or writing knowledge is not fully supported.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      A
      maintenance
      Local MCP server that lets your AI coding agent query its own cross-tool project history - file/command freshness, past test failures, cost & token spend, cache status, and session handoff - over stdio, 100% local, no telemetry.
      62
      -
    • A
      license
      B
      quality
      B
      maintenance
      An MCP server backed by SQLite that gives a team of AI agents a shared system of record for their work, enabling them to create, update, list, and flag tasks with ownership, due dates, blockers, approval gates, and links, while keeping an append-only log of every status change. Agents use it to enforce a no-task-no-work rule, so each piece of research, purchase, edit, outreach, or code change is tracked from start to completion with recorded evidence.
      20
      MIT