Self-hosted task tracker for AI agents: a case file per task, so hand-offs survive a fresh context.
The task tracker your AI agents keep for each other.
Every task carries a case file — decisions, failed attempts, findings, open questions — so the next agent,
with a fresh context and zero memory, picks up exactly where the last one stopped. You watch it all on a live board.
Install on macOS / Linux
curl -fsSL https://raw.githubusercontent.com/azimov777/casefile/main/install.sh | sh
Install on Windows (PowerShell)
irm https://raw.githubusercontent.com/azimov777/casefile/main/install.ps1 | iex
All you need is Docker. The board opens at http://localhost:8080, and the installer prints the one command that connects your agent. Casefile updates itself to each new release: it checks once an hour and whenever Docker starts.
Or let your agent do it. Paste this into Claude Code, Codex or Cursor:
Install Casefile for me by following https://raw.githubusercontent.com/azimov777/casefile/main/docs/agent-install.md
Agents are smart, but they forget. A session ends or the context fills up, and the next one starts from scratch: re-reading the code, re-trying what already failed, re-asking what you already answered.
Casefile gives every task a case file — an append-only log the agent writes as it works.
The installer prints a ready-made command with your token and its actual MCP address filled in — by default:
claude mcp add --transport http --scope user casefile http://localhost:8100/mcp \
--header "Authorization: Bearer <token>"
Any other MCP client works the same way: streamable HTTP at the MCP address the installer
printed (http://localhost:8100/mcp by default) with that header. Clients that take an
mcpServers JSON (Cursor, VS Code and others) use this — fill in your token and, if your
installer printed a different address, that address instead:
{
"mcpServers": {
"casefile": {
"type": "http",
"url": "http://localhost:8100/mcp",
"headers": {
"Authorization": "Bearer <token>"
}
}
}
}
Over stdio, as an alternative. Streamable HTTP above is the main way in. A client that can only launch a command and talk to it over stdin/stdout gets the same server that way: it starts a short-lived container of your installation, attached to the installation's database — same tools, same token, same case. The token goes in the client's environment, not on the command line:
claude mcp add --scope user casefile-stdio --env TRACKER_MCP_TOKEN=<token> -- \
docker compose -f ~/casefile/docker-compose.prod.yml run --rm --no-deps -T \
-e TRACKER_MCP_TOKEN mcp python -m app.mcp --stdio
The installation has to be up: the stdio process brings no database of its own. Each
client session is a process of its own, so HTTP stays the lighter choice wherever the
client supports it. An installation image older than the stdio mode answers
unrecognized arguments: --stdio — update it first.
A second agent, without the terminal. The board carries the same snippets.
Connect an agent shows this installation's MCP address and ready-made snippets for
Claude Code, Codex and any client that takes an mcpServers JSON — no secret on the
screen, a placeholder where the token goes. Access lists your tokens — every token
of the installation, if you are an administrator: who it speaks for, what it opens, who
issued it and when it was last used. From there
you register an agent, issue its own token, copy the snippet with the secret already in
it — shown once — and revoke it when that agent is done. Give each agent a token of its
own and its case entries are signed with its name instead of one shared agent. On a
shared installation every person does this for their own agents, without the
administrator, and sees and revokes only the tokens they issued or that speak for them.
For the best case files, also give your agent the skill that teaches the discipline (Claude Code: ~/.claude/skills/tracker-agent/SKILL.md).
Every MCP tool a task or main token opens, grouped by area (app/mcp/tools/):
Tasks
get_task — everything about a task in one call: card, links, computed flags, latest summary, open questions, unresolved remarks, case index and status transitionssearch_tasks — search tasks by a query-language string, by individual filters, or both combinedcreate_task — create a task in backlog, where every new task startsupdate_task — update only the fields you pass; anything left out stays untouchedtransition — move a task to another status along the built-in transition tableclose_task — file entries, verdicts and the final summary, and move the task to done — all in one call and one transactionCase
read_entries — full bodies of case entries, with payload, in orderadd_summary — file a summary: a hand-off briefing for the caseadd_entry — file a plain entry: a decision, attempt, finding, artifact, remark or noteask — ask registered participants a questionanswer — answer a question filed on the same taskresolve — resolve a remark on a task: how it turned out and where the follow-up work wentadd_verdict — file the outcome of one review checkLinks
link — link two tasks and file link_added in both their casesunlink — remove a link and file link_removed in both tasks' casesQueues & participants
get_queue — a queue with its description: the shared context for all its taskslist_queues — every queue in the installation: key and titlelist_participants — the participant registry — who a question can be addressed tocreate_queue — create a queue (requires the main token scope)update_queue — rename a queue or change its description (requires the main token scope)register_participant — register a person or a permanent agent (requires the main token scope)update_participant — change a participant's description (requires the main token scope)Journal
wait_journal — journal entries after a given sequence number, waiting for new ones if there aren't any yet| Update right now | run the install line again |
| Turn auto-update off | CASEFILE_AUTO_UPDATE=false in ~/casefile/.env |
| Stay on one release | CASEFILE_VERSION=0.2.0 in ~/casefile/.env |
| Stop / start | docker compose stop / docker compose start in ~/casefile |
| Remove everything, data included | docker compose down -v in ~/casefile |
| Move to another machine or your own server | docs/moving.md |
| Back up your data / restore into a clean install | docs/backup-restore.md |
Ports and other settings live in ~/casefile/.env — see .env.example.
A new version of Casefile is a release: a git tag vX.Y.Z with its images on ghcr.io
under the version and under the stable channel. Every installation follows stable
by default. It checks when Docker starts and then once an hour, at a slightly random
minute, so a release reaches it within about an hour and ten minutes, with nothing to
restart. Commits to main without a tag never reach an installation. The update
recreates the Casefile containers and keeps your data in its volumes. An agent in the
middle of an MCP call when that happens gets a dropped connection and has to retry.
The first release on this channel is 0.2.0; until it is out, there is nothing to update
to. An installation from before it (on latest) moves to stable by itself the next
time Docker starts, and from then on checks every hour. If you set
CASEFILE_VERSION=latest in .env yourself, remove the line to follow releases.
CASEFILE_UPDATE_INTERVAL sets how often to check (hours, or 30m; 0 means only
when Docker starts). If an update fails to start, docker compose logs updater names
the version to go back to.
Out of the box Casefile listens on localhost only, and you type nothing: the installation
creates an administrator account for you (owner@localhost) and the board signs into it
by itself. To reach it from other machines, turn on sign-in: then everyone signs in
with their own email and password, and every entry is signed by the person who made it.
It is one team per installation — everyone signed in sees every task. The only role is
the administrator flag, and all it opens is managing people.
Add to ~/casefile/.env:
CASEFILE_LOGIN=password # everyone signs in with email and password
CASEFILE_BIND=0.0.0.0 # publish the board and MCP beyond localhost
TRACKER_MCP_PUBLIC_URL=http://<server>:8100/mcp # what agents on other machines use
Run docker compose up -d in ~/casefile.
Give yourself a password. The administrator account the installation made has none; this prints a generated one, once:
docker compose run --rm api python -m app.cli account-password --email owner@localhost
Add --set-password to type your own instead (12 characters at least, asked twice,
no echo). Your email can be changed too:
account-update --email owner@localhost --new-email you@example.com.
Add your teammates — on the board, or on the server:
docker compose run --rm api python -m app.cli account-create --email alice@example.com --name alice
It prints Alice's password once; hand it to her. --admin makes her an administrator
too. account-list shows everyone, account-update --disable locks a person out and
revokes every token they hold or issued to their agents (their past entries stay
signed with their name), and
account-password resets a forgotten password. Casefile sends no mail: there is no
address confirmation and no reset link.
The board at http://<server>:8080 now opens with a sign-in screen. Agents keep
connecting to MCP with their tokens — sign-in is for people in the browser. Issue each
agent its own token on the Access screen; Connect an agent shows the address from
TRACKER_MCP_PUBLIC_URL.
Coming from the owner password. An installation locked with TRACKER_PASSWORD_HASH
before accounts existed keeps working after the update: sign-in turns on by itself, and
the old password becomes the password of the administrator account owner@localhost —
sign in with that email and the same password. The hash in .env is no lock any more; it
is only carried over once, and a password you set later is never overwritten by it.
Plain HTTP is a hole. Without TLS the passwords, the session cookies, the keys and
the agents' tokens cross the network in clear text for anyone on the path to read. Casefile
does not do TLS itself. Anywhere beyond a network you trust, keep CASEFILE_BIND=127.0.0.1
and put a reverse proxy with TLS in front of both ports — for example Caddy, which gets the
certificates and sends X-Forwarded-Proto by itself:
casefile.example.com {
reverse_proxy 127.0.0.1:8080
}
mcp.casefile.example.com {
reverse_proxy 127.0.0.1:8100
}
with TRACKER_MCP_PUBLIC_URL=https://mcp.casefile.example.com/mcp. A proxy that sends
X-Forwarded-Proto: https gets the session cookie marked Secure.
Name your proxy. Sign-in tells guessers apart by address (see Guessing below). Behind
a proxy every request arrives from the proxy, so the board must be told which address is
the proxy; only then does it take the browser's address from the proxy's
X-Forwarded-For. From anyone else that header is ignored — anybody can write it. Add to
~/casefile/.env:
CASEFILE_TRUSTED_PROXIES=172.18.0.1 # the address the board sees the proxy come from
and run docker compose up -d. That address is not the proxy's own: it is whatever
Docker shows the board. With the proxy on the same machine and CASEFILE_BIND=127.0.0.1,
it is the gateway of the installation's network, on Linux and Docker Desktop alike:
docker network inspect casefile_default -f '{{range .IPAM.Config}}{{.Gateway}}{{end}}'
To check, run docker compose logs ui: each request line starts with the address it came
from — with the proxy named, the browser's; without, the proxy's. Several proxies or a
network go comma-separated (172.18.0.1,10.0.0.0/8). The network gets its address when it
is created, so after docker compose down check the gateway again. Keep
CASEFILE_BIND=127.0.0.1 behind a proxy: Docker Desktop shows every connection to a
port published to the network as 192.168.65.1, so naming that address would let anyone
claim any address. Without this line nothing breaks, but everyone behind the proxy shares
one address — and one guesser holds everybody at "try again later" again.
What else to know:
CASEFILE_BIND beyond localhost and sign-in off, the
board refuses to start instead of handing the administrator key to the whole network;
docker compose logs ui says why.TRACKER_SESSION_HOURS). A session is a token
with a deadline, kept in the database: restarting the installation does not end it.
Sign out revokes it at once, a changed or reset password ends the person's other
sessions, and disabling an account revokes all its tokens, the ones the person issued
to their agents included: enabling it again brings none of them back./64). Open sessions and the agents, which use tokens, are
not affected. A client is the address that opened the connection, or the one your
named proxy reports (above). Docker Desktop hides the address of every connection from
the network behind one of its own, so there the board tells clients apart only behind
a proxy on the same machine.Python 3.14 · FastAPI · PostgreSQL · MCP over streamable HTTP · React 19 · Vite · Tailwind. The backend sits at the repository root, the web UI in ui/. The web UI speaks English and Russian; the design docs, the developer guide and the agent-facing texts are in Russian for now.
Issues and pull requests are welcome — start with CONTRIBUTING.md. Commits need a sign-off (git commit -s): it certifies you have the right to submit the code, and CI checks it.
Hiring? I built Casefile and would be glad to hear about roles at Anthropic or OpenAI — reach me through GitHub.
This listing does not have a supported local package template. Use the maintainer’s documentation for its hosted endpoint, authentication, and client-specific setup. No install command has been inferred.