The short version is in the README. This is the full reference.
One standard place for what a project tracks (todos, root-cause analyses, releases, docs, links, test accounts, and any category you define), that people and AI agents both work in. Agents such as Claude Code, Codex or Gemini CLI reach it through an MCP server; you reach it from the command line. Everything is small JSON files in your repository, so it is diffable, reviewable and yours.
Why bother: without it, an agent starts every session knowing nothing about your backlog, your release state or where your docs are. With it, the agent asks the workspace, and the rules you set (a todo cannot be tested until it has a changelog entry) apply to the agent as much as to you.
Status: alpha (0.1.0a2), on PyPI. Works: the data layer, workflows, the MCP server, the command line, importers, a doctor (with probes, a core-edit check and safe repairs), agent instructions, a web UI, connectors (Telegram, Cliq, email) and PDF reports. Not yet: plugins, inbound messages, session hooks for agents other than Claude Code, sprints. It is MIT licensed and published on PyPI as keelhq, but it is a first alpha: data formats may change between alphas, so it is for trying out, not for depending on. See what is not there yet.
The web UI
keel ui opens Keel in your browser (it listens on this machine only, behind a one-time session link). With no workspace it starts a setup wizard; with one it shows Home (the briefing), each collection and item, Setup (register projects, install the agent skills, AGENTS.md block and session hook with a preview of each change, copy the MCP command, run the doctor) and Help. Collections are fully editable in the page: add and edit items (secret fields take an env:NAME reference, never a value), move them along their workflow (a refused move shows the rule that blocked it), add sub-items, filter and search, view the lists as a table, cards, links or a tree, read and edit the Markdown docs that live in .keel/docs, and import a checklist or a folder of Markdown files (a preview first). Delete asks for confirmation, offers to take sub-items with it, and is audited; agents still cannot delete. The Connectors page adds or removes a connector, switches sending off, confirm or on, and sends a message (with a preview in confirm mode); the Reports page makes a PDF from Markdown, opens it and sends it. An RSS reader is not built.
Quick start (about ten minutes)
You need Python 3.11 or newer and uv.
1. Install
uv tool install --prerelease allow "keelhq[mcp]"
keel --version
--prerelease allow is needed while Keel is an alpha (with pip: pip install --pre "keelhq[mcp]"). To update later, run the same command with --force. To try it without installing, put uvx --prerelease allow --from "keelhq[mcp]" in front of any keel command below.
2. Create a workspace in your project
cd your-project
keel init --preset tracker
This makes a hidden .keel/ folder (so your project's own folders stay what people see) with todos, RCAs, releases, a changelog, projects and docs, and the workflows that go with them. Commit .keel/ to git; its local/ folder (the audit log) is git-ignored already.
3. Try it by hand
keel add todos first-todo --title "Try Keel" --description "Add one todo and move it along."
keel move todos first-todo in-progress
keel list todos
keel search keel
keel history # who changed what and when (add a collection and id to narrow)
keel briefing # what is in flight, per project
keel doctor # checks every file; "0 errors, 0 warnings" is what you want
Wherever a collection is asked for you can give its id or its title, in any case (keel list Todos). A name that matches nothing lists the valid ids.
4. Connect an AI agent
For Claude Code (use the absolute path of your project's .keel folder):
claude mcp add keel -- keel mcp --workspace /absolute/path/to/your-project/.keel
Add --read-only after keel mcp if the agent should only read and search. Codex, Gemini CLI and others read MCP servers from their own settings: the command to register is keel mcp --workspace /absolute/path/to/your-project/.keel; check each tool's current documentation for where it goes.
5. Tell the agent how to use it
keel init-agent --write skill # Claude Code skills: how to use Keel, and how to onboard a folder
keel init-agent --write agents-md # a marked block in AGENTS.md (Codex and others)
keel init-agent --write all # both of those
keel init-agent --write hooks # session start: Claude Code runs the briefing for you
keel init-agent --write mcp # register Keel's tools for Claude Code in .mcp.json (needs `keel` on PATH)
The hooks option adds one SessionStart hook to .claude/settings.json (keeping everything else in the file, and refusing a file it cannot read) that runs keel briefing --hook, so every session starts with what is in flight, each project's git branch and uncommitted files, and the workspace's health, without the agent having to remember to ask. It needs keel on your PATH (uv tool install puts it there) and is the only option that touches settings, which is why all does not include it. Without --write the command only prints the text. The instructions are generated from the tool specs, so they always match the tools, and rerunning replaces only the marked block in AGENTS.md.
6. Ask the agent
Start your agent in the project and try: "what is open in this project?", "add a todo to fix the login retry, high priority", "move fix-login to testing". The agent calls briefing first, then searches, then changes things; a move that breaks a rule is refused with the reason, and every change is recorded in .keel/local/audit.jsonl.
One command center for many projects
Keel is built for a single folder that holds several projects, the way a team or one person keeps one place above many repositories. Put the workspace at that folder and start your agent there:
my-command-center/ <- run Claude Code here; this folder holds .keel/
.keel/ <- todos, RCAs, releases, docs, accounts for every project
android/ <- a project (its own git repo, if you like)
blog/
project2/
Register each project once, with its folder, then tag its work with project:
keel add projects android --title "Android app" --description "The Android client." --path android
keel add todos fix-login --title "Fix login" --description "Fails on retry." --field project=android
keel briefing --project android # that project's work, what is unassigned, and every project's counts
keel briefing --all # the whole command center
keel search login --project android
An item belongs to a project through its project field, or because its path lies inside the project's folder (so a doc under android/ belongs to android without any field). In the agent, the same is briefing, list_items and search with project. Started inside a project folder (say android/app), briefing focuses on that project by itself; started at the hub it shows everything, and the agent narrows down when you say "work on android". Keep work for different companies in separate workspaces: Keel never reads across them.
Onboarding: the first time, and every time after
The first session in a folder is for teaching Keel what is there, so later sessions start informed.
keel discover # a dry run: lists the project folders (git repositories or folders with a build file)
keel discover --apply # registers them in the projects collection
keel projects --root projects --ignore docs # folders under projects/ are suggested
keel projects --track android ios # you choose which ones Keel tracks (--untrack to stop)
keel projects --auto # or: every folder there is a project at once, nothing to choose
discover is a plain scan, with no AI: it reads the git branch and remote (credentials are stripped), guesses the stack from files such as build.gradle, package.json or pyproject.toml, and takes the description from the README. It looks two folders down and skips hidden and dependency folders.
The reading is the agent's job. With the session hook installed, the briefing says when onboarding is pending: folders not yet registered, projects with no docs, or docs gone stale. The agent then offers to follow the keel-onboard skill (the same steps are in the AGENTS.md block for other agents), and after you agree it:
- registers the projects you confirm,
- reads each project and writes
structure.md,architecture.md,conventions.mdandcommands.mdunder.keel/docs/<project>/, plus.keel/docs/hub/structure.mdfor the folder above the projects, - registers each file as a docs item with the paths it
watches, and callsmark_verified, which records the commit it is true as of.
From then on the briefing flags a doc as stale when a commit touched one of its watched paths after that commit, and the agent refreshes it from the git history and verifies it again. Nothing in a project's own source is ever changed. Workspaces made before this feature get the new docs fields with keel preset tracker.
Send messages: Telegram, Cliq and email
Keel can send a message out (a briefing, a report, a note) without you writing a script. Sending is off until you set up a connector, and the connector settings are personal: they live in .keel/local/connectors.json, which is git-ignored, and hold only the names of environment variables, never a token.
export KEEL_TELEGRAM_TOKEN=... # your bot's token, from @BotFather; set it in your shell or .env
keel connect telegram --name me --token-env KEEL_TELEGRAM_TOKEN --chat me=123456789
export KEEL_CLIQ_QA_WEBHOOK=... # a Cliq channel webhook URL (it contains a key)
keel connect cliq --name qa --webhook-env KEEL_CLIQ_QA_WEBHOOK
keel connectors # what is set up, and whether each variable is set
keel send me --text "Build is green" # you are the confirmation: it sends now
keel send me --briefing # send today's briefing
keel send qa --stdin < summary.txt
keel connect email --name mail --host smtp.example.com --from me@example.com \
--to me=me@example.com --username me@example.com --password-env KEEL_SMTP_PASSWORD
keel send mail --to me --subject "Weekly report" --text "See attached." --attach weekly.pdf
Prove each one works before you rely on it: keel connectors check connects with every connector without sending anything (Telegram: the token is accepted and the bot is named; email: it logs in; Cliq: the address is shaped right), keel connectors check NAME does one, and keel connectors chats NAME lists the chats that have written to a Telegram bot, so you pick a chat id instead of looking it up. The web page's Connectors page does the same with a guided setup per kind, a live "is the secret set?" check, a chat picker and a test message.
To see every secret the workspace refers to in one place (secret fields on items and connectors), run keel secrets or open the Secrets page: each is listed once with where it is used and whether it is set, missing ones first, with the command to save it on this machine. It never shows a value.
Email takes a host, a From address, named recipients, --security starttls|ssl|none (none only to this machine) and, if the server wants a login, a username and the place holding the password.
The secret lives in one of two places: an environment variable (--token-env, --webhook-env, --password-env) or the system keychain (--token-keychain NAME, --webhook-keychain NAME, --password-keychain NAME). Settings only ever hold the name. For the keychain, add the entry yourself under service name keel; on macOS that is security add-generic-password -s keel -a NAME -w (the final -w makes it ask for the value, so it never appears in your shell history). Linux uses secret-tool (libsecret); Windows has no supported keychain yet, so use an environment variable there. Keel only checks that a keychain entry exists; it reads the value at the moment of sending.
For an agent, list_connectors shows the names it may use (never a token, address or chat id) and send_message sends. The default is confirm mode: the agent's first call returns a preview of exactly what would go out, and only an identical second call sends, so you see the text twice, once before it leaves. Only the chats you named can be addressed, secret values are removed from the text, long text is split to fit, at most 20 messages an hour go out, and each send is audited by connector and target, never by content. --read-only removes the send tool.
PDF reports
keel report notes.md --title "Weekly status" --name weekly # Markdown file to .keel/local/reports/weekly.pdf
keel report --briefing --name briefing # the briefing as a PDF
keel send me --attach weekly.pdf --text "Weekly status" # send it
The PDF is made by a Chromium-based browser already on your machine (Chrome, Chromium, Edge or Brave, found automatically; set KEEL_BROWSER to a path to choose one), so there is nothing to install for Keel itself. It runs headless in a throw-away profile, never touching yours, and the page is allowed to load nothing from the network. Markdown supports headings, lists, tables, quotes, code, bold and italic, and links; raw HTML and images are not rendered. For an agent the tool is render_report, and a message can attach only the PDFs made that way (attachment), so an agent cannot send any other file off your machine. Reports are kept in the git-ignored local/ folder.
HTTPS and email use your operating system's certificate store (the small truststore package), so a company network that re-signs traffic with its own certificate works once your machine trusts it. Plain Python does not, which is why a naive script fails there with "self-signed certificate in certificate chain".
Bring in what you already have
Importers never write unless you pass --apply, never overwrite unless you pass --overwrite, and give each item an id derived from its content, so running one twice changes nothing.
keel import checklist backlog.md --collection todos --project blog # "- [ ]" / "- [x]" bullets
keel import docs notes/ --collection docs --root . --tag notes # one item per Markdown file
keel import json projects.json --collection projects --id-key id --title-key name --field stack
Options every importer takes: --state S gives every imported item that state, as it is, with no walk through the workflow (for history that is already live); --set NAME=VALUE (repeatable) gives every item a field, for example --set type=release. import docs also takes --project NAME and --kind KIND (the project and kind fields, so the briefing and onboarding recognise the docs).
Two things to know about import docs:
- It links, it does not copy. An item keeps the file's path, its title and a one-line description. The text stays in the source folder, so deleting or moving that folder leaves items that point at nothing.
- **
--rootshould be the folder that holds.keel** (usually.). Paths are stored relative to it, and the doctor looks for each file there. An item's id comes from its path, so importing again with a different--rootmakes new items instead of repairing the old ones; delete the stale ones (keel delete), or import again with the right root. The dry run warns when the linked files cannot be found.
A dry run also warns about a checklist imported without --project into a workspace that has registered projects (the items would have no project, so the briefing cannot group them).
Run without --apply first: it prints what would be created, and any warnings. Then run keel doctor. Anything specific to your folder layout belongs in a small script that calls these commands, not in Keel.
Make it yours: your own categories
A collection is a folder with a collection.json. Create .keel/collections/test-accounts/collection.json:
{
"schema_version": 0,
"id": "test-accounts",
"title": "Test accounts",
"description": "Accounts used by tests and demos. Passwords are references, never values.",
"view": "table",
"sensitive": true,
"fields": [
{ "name": "email", "label": "Email", "type": "text", "required": true },
{ "name": "password", "label": "Password", "type": "secret" }
]
}
Field types: text, url, number, date, tags, path, secret. Then add items (an agent can add collections too, with the add_collection tool):
keel add test-accounts staging-admin --title "Staging admin" --description "Admin of staging." \
--field email=qa@example.com --secret password=env:STAGING_PW
Secrets are never stored. A secret field holds only a reference (env:STAGING_PW); the value stays in your environment or .env. Agents see ••••, and every tool result and error is scrubbed of any referenced value. "sensitive": true masks every field of the collection. Items can have sub-items (--parent), links (--url) and a file they describe (--path). To give a collection a lifecycle, add a workflow (see .keel/workflows/ after init --preset tracker for examples, and [spec/](specs.html) for the format).
What an agent can and cannot do
- It can read, search, add, update and move items, run the doctor, and send a message through a connector you set up, after a preview.
- It cannot delete: there is no delete tool. It retires an item by moving it to a final state;
keel deleteis yours. - It cannot see a secret value, and cannot change state without passing the workflow's rules.
- Every write is audited (tool, target, outcome, never a value).
--read-onlyremoves the write tools entirely.
The thirty-six tools are defined in [spec/mcp/](specs.html#tools): briefing, discover, list_connectors, send_message, overflow_due, overflow, set_retention, render_report, get_context, list_collections, list_workflows, get_schema, list_items, get_item, get_history, setup_status, init_workspace, apply_setup, draft_feedback, search, doctor, add_collection, add_item, update_item, move_item, batch, claim_item, release_item, start_item, add_note, finish_item, record_verification, mark_verified, list_modes, get_mode, draft_mode.
Modes (ways of working)
A mode is a named way of working an agent follows: plan, design, dev, review, audit, release, debug. It is a Markdown file with a short frontmatter and the instructions as the body:
---
title: Review
description: Review a change for correctness, tests, security, readability and scope
tier: read # optional: the most an agent may do (read or write)
tools: briefing, search # optional: or name the Keel tools it may use
context: docs # optional: a collection, or collection/id, to load with the mode
rules: # optional
- Do not edit files; report findings with where and why.
---
1. Correctness: ...
Your file wins, and Keel only rewrites what it generated.
- The built-in modes live in Keel itself, so a new release improves them with nothing to overwrite. They are common-practice starting points (for example review checks correctness, tests, security, readability and scope; audit is read-only; plan analyses, asks only what is really yours to decide, writes a brief plan and waits for approval), not a certified standard. Nothing is copied into your project until you ask.
- Your modes are files in
.keel/modes/<id>.md. Keel never rewrites or deletes them, and a file with a built-in's id replaces that built-in.keel modes new standupstarts one;keel modes fork reviewcopies a built-in and records what it was based on, sokeel modes diff reviewcan show what the built-in changed since. Keep yours or adopt the new one (on the Modes page); adopting keeps your old file in.keel/modes/.history/. - A mode can only narrow what an agent does.
tier: readallows only the read tools (and, in the Claude Code command, removes the editing tools);tools:names exactly which Keel tools. It never grants anything. - One definition, three outputs.
keel modes syncpreviews and--writegenerates: Claude Code commands in.claude/commands/<id>.md(type/review), a short list of the modes inAGENTS.md(between its own markers), and, with no files at all, one MCP prompt per mode (mode-review) fromkeel mcp. Generated files are stamped like the other agent files:keel upgradeandkeel update-agentrefresh the ones Keel wrote, keep one you edited by hand (edit the mode instead), and skip a file you wrote yourself under the same name. Nothing is ever deleted. - Agents can propose, not decide. The
list_modesandget_modetools read modes (get_moderesolves the mode's context to a token budget).draft_modestores a proposal in.keel/modes/.drafts/, inactive; you approve, edit or reject it on the Modes page ofkeel ui(orkeel modes approve ID). Approving over a file of yours keeps the old one in.history/. A declined or approved draft is moved aside, not deleted.
Honest limits: in Claude Code the restriction lasts only for the turn the command runs (it clears when you send your next message). Its command frontmatter only has disallowed-tools to restrict (its allowed-tools pre-approves, which would widen, so Keel never writes it); the other outputs state the limits in words, which an agent follows but nothing enforces. Keel does not yet enforce a mode on the server.
Work by stage, and the changelog (the command-center preset)
You work through your agent, not the command line. Install the preset once (keel init --preset command-center, or "set up Keel with the command-center preset" to your agent), and from then on you talk to the agent: it moves work with move_item, and the session briefing tells it what is in flight and what needs your attention.
The preset adds Now, where work moves through the stages planning, ready for implementation, implementation, testing, on hold, ready, completed (and archived for dropped work), and a changelog whose rows have a date, type, project, version and a status that runs dev, testing, mr, qa, ready, live. The Backlog is the Todos collection: an item is pulled into Now when work starts. With --dod, work cannot move to testing before a changelog row names it in its entry field.
Now never bloats. An entry in Completed or Archived whose stage began more than the retention period ago (90 days unless you change it) is due to overflow. When some are due, the briefing says so at the start of the session; the agent shows you the list (overflow_due) and, if you agree, calls overflow. Each becomes a changelog row with its title, full description, date, type, project, release, plan, priority and sub-item hierarchy, and leaves Now. Entries in any other stage never overflow, however old, so an entry on hold or in planning stays. If a changelog row already names the entry, that row is the record. A parent entry waits until all its sub-items are also finished and old. Each call is written to the audit log. To change the period, tell the agent ("keep finished work for 60 days"; it calls set_retention). Read-only agents can look but not move anything.
For scripts and hooks the same exist as commands: keel overflow [--days N] [--apply] (a dry run without --apply) and keel retention [DAYS].
Checking and repairing a workspace
keel doctor # read every file; reports errors and warnings, writes nothing
keel doctor --deep # also call every read tool once (probes) and check the installed core for edits
keel doctor --fix # make the safe repairs, with a backup
keel doctor --undo # put back what the last --fix changed
--deep tells you if a tool fails or is slow against your real data, and warns "modified core" if files of the installed Keel were edited (put changes in the workspace instead, or reinstall). A source checkout reports nothing for the edit check.
--fix does two things only: it moves leftover .tmp- files from an interrupted write into .keel/local/repair-backup/ (never deletes them), and adds local/ to .keel/.gitignore if it is missing. It never touches an item, collection or workflow, and --undo reverses it. Anything else the doctor finds, it reports and leaves to you.
Commands
| Command | What it does | ||||||
|---|---|---|---|---|---|---|---|
keel init [--preset tracker] | create a workspace (default folder .keel) | ||||||
keel context / collections | what the workspace holds | ||||||
| `keel briefing [--project P \ | --all]` | what is in flight, for a project or the whole workspace, and what onboarding is pending | |||||
keel discover [--apply] | find the project folders and register them | ||||||
| `keel feedback search\ | add\ | repo` | report a problem or idea on the Keel repository: a duplicate check, a dry run by default, --submit to send | ||||
keel whats-new [--since VERSION] | what changed in Keel since a version (the briefing shows it once after an upgrade) | ||||||
| `keel setup [--mode ask\ | auto]` | what is left to set up and how agents treat each decision (the setup_status tool shows the same list) | |||||
keel projects [--root DIR] [--track IDS] [--untrack IDS] [--ignore A,B] [--auto] | list the projects and found folders; choose which folders are tracked (--auto: all of them, with no step) | ||||||
keel preset tracker | install or update the tracker preset in an existing workspace | ||||||
keel list <collection> [--state S] [--project P] / show <collection> <id> / search <words> [--project P] | read | ||||||
| `keel list ... [--fields a,b] [--format tsv\ | compact] [--count] [--group-by F] / search / show --fields` | read, in less space: only the fields you name, one line per row, counts, groups | |||||
| `keel batch FILE\ | - [--dry-run]` | write: many add/update/move operations from JSON Lines, all or nothing; a dry run proves it would work | |||||
keel list ... --where FIELD=VALUE | only items whose field has the value (repeatable; * set, ! not set), e.g. --where assignee=human | ||||||
keel briefing [--budget TOKENS] [--since-last] | what is in flight; --budget leaves out the least important lines to fit, --since-last shows first what changed since the last time. The session-start hook uses a default budget of about 1,200 tokens; to also get the changes there, change its command in .claude/settings.json to keel briefing --hook --since-last | ||||||
keel verify <collection> <id> [--yes] [--timeout S] | people only: run the item's verify command in its project folder, then record pass or fail and the commit on the item. Needed before a move that carries the require_verified rule (turn it on with keel init --preset tracker --verify or keel preset NAME --verify) | ||||||
keel start <collection> <id> [--branch B] [--to STATE] / keel note <collection> <id> TEXT / keel done <collection> <id> [--note T] [--no-changelog] | the work lifecycle: start claims, moves into work and records a branch; note appends a dated line the next session reads first; done writes the changelog row (with the commit), walks to the final state with every rule checked and releases the claim. All or nothing | ||||||
keel claim <collection> <id> [--minutes N] [--force] / keel release <collection> <id> | claim an item so no one else works on it (default four hours); someone else's update or move is refused, naming the holder, unless --force. Set KEEL_ACTOR to name a session | ||||||
keel upgrade [--dry-run] [--undo] [--force] | after installing a newer Keel: back up the workspace, apply data migrations (all or nothing), refresh the agent files, run the doctor. --undo restores the backup | ||||||
keel update-agent [--dry-run] [--force] | refresh the skills and AGENTS.md block Keel wrote when they are out of date; a file you edited is kept unless --force | ||||||
| `keel modes [new ID \ | fork ID \ | diff ID \ | sync [--write] \ | approve ID \ | reject ID \ | none]` | ways of working (plan, review, audit ...): list them, make or fork one, see what a built-in changed since you forked it, preview and generate the Claude Code commands and AGENTS.md section. See Modes |
keel agent-guide | read: a one-page guide for an AI agent (collections, states, commands, JSON shapes, common tasks), generated from the workspace | ||||||
keel schema [collection] | read: fields, states, allowed moves and an add example for a collection | ||||||
keel add / `keel update <collection> <id> [--title T] [--description D] [--field N=V] [--tag T] [--parent P \ | --clear-parent] / keel move <collection> <id> <state> [--through] / keel mark-verified <collection> <id>` | write; the same checks as the agent's tools. update changes only what you give (--tag replaces all tags); the state changes only through move | |||||
keel delete <collection> <id> | people only; asks, or needs --yes outside a terminal | ||||||
| `keel import checklist\ | docs\ | json` | bring existing files in | ||||
keel overflow [--days N] [--apply] / keel retention [DAYS] | move finished work from Now into the changelog; show or set the retention (default 90 days) | ||||||
keel doctor [--strict] [--deep] [--fix] [--undo] | check every file; exit 1 on errors. --deep adds probes and the core-edit check; --fix and --undo are described under Checking and repairing | ||||||
| `keel connect telegram\ | cliq\ | email / connectors / send <connector>` | set up where messages may go, list them, send now | ||||
| `keel report [FILE \ | --briefing]` | make a PDF report | |||||
| `keel init-agent [--write skill\ | agents-md\ | hooks\ | mcp\ | all]` | agent instructions | ||
keel mcp [--read-only] | the MCP server on stdio | ||||||
keel ui [--port N] [--no-open] | the web UI, opened in your browser |
Every command finds the workspace from any folder inside the project; -w PATH or KEEL_WORKSPACE overrides. --json prints JSON.
What is not there yet
Be clear about the gap between this and a full project command centre:
- Only Claude Code gets a hook.
--write hooksis for Claude Code'sSessionStart; for other agents theAGENTS.mdblock tells the agent to callbriefingfirst, which is less reliable than a hook. - No hooks or slash commands. Keel does not install session-start or after-edit hooks, or commands like
/daily. The plan is to offer them as opt-in generated files, likeinit-agent. - Outbound only. Telegram, Cliq and email can be sent to, with a PDF attached; nothing comes back in (replying in a chat to drive a session is not built).
- A partial UI, no plugins: the UI has no RSS reader; no sprints with carry-over.
- The doctor repairs two things only: leftover temp files (moved aside, never deleted) and a missing
local/line in.gitignore. Everything else it reports and leaves to you.
Design and principles
- Spec first. The JSON Schemas in [
spec/](specs.html) are the product; the Python code implements them, and contract tests keep the two together. Another implementation could follow. - Two layers. An installed core and your workspace (data, config). Customising never means editing the core.
- Flexible at the edges. A few building blocks (collections, workflows, rules, tools); everything else is data.
- Safe by default. Secrets are references; agents cannot delete; writes are audited.
The full design, including parts not built yet, is in [docs/design.md](https://github.com/Eganathan/keel/blob/main/docs/design.md).
| Milestone | |
|---|---|
| M0 | Repository scaffold, CI, secret scan, schemas, contract tests (done) |
| M1 | Data layer, collections, items, sub-items, secrets, search, workflows and rules (done; sprints later) |
| M2 | MCP server: generic tools, safety tiers, audit log (done) |
| M3 | Doctor (file checks, probes, core-edit check and safe repairs with undo done) |
| M4 | CLI, importers, presets, agent instructions (first version done) |
| M5 | Web UI on the same core (setup wizard, Home, collections with add/edit/move/delete, docs, search, import and Help done; connectors page and reports done; feeds not built) |
Develop
Requires Python 3.11 or newer and uv.
uv sync
uv run ruff check . && uv run ruff format --check .
uv run mypy
uv run pytest
bash scripts/check_secrets.sh
Read [AGENTS.md](https://github.com/Eganathan/keel/blob/main/AGENTS.md) and [CONTRIBUTING.md](https://github.com/Eganathan/keel/blob/main/CONTRIBUTING.md) first: the specification changes together with its example and its contract test. Licence: MIT (see LICENSE).
Verifying work
An item can carry acceptance (what done means) and verify (the command that proves it). A workflow move may carry the require_verified rule: it is refused until a passing verification is recorded at the commit the code is at now. A person runs keel verify todos fix-login, which shows the command, asks, runs it in the item's project folder and records pass or fail with the commit. An agent runs its own tests and records the outcome with record_verification. Keel never runs a command taken from item data through a tool, since an agent could have written it; only keel verify, typed by a person, does. When the code changes after a verification, the next move asks for a new one. Without a git repository a passing result is enough.
Quick links: where your work lives
Pin the places you go to all the time (store listings, internal docs, build and log tools) in the sidebar. Add the collection once, from the sidebar's "+ Add quick links" or with keel preset quick-links. A group is an entry with no address (Stores); the links inside it point at it as their parent (App Store, Play Store, Windows site). Pin a group or a lone link to put it in the sidebar, where a group expands in place and every link opens in a new tab; the Quick links page lets you pin, unpin and reorder (drag, or the arrows) and add links and groups. Each entry has a short title and a one-line description of what it is and when to use it.
To fill it in one step, export your browser's bookmarks as an HTML file and run keel import bookmarks bookmarks.html --collection links (add --apply to write; it previews first), or use the Import page. Folders become groups, bookmarks become links inside them, scripts and local files are left out, and importing again changes nothing; nothing is pinned for you.
The same entries help your agent: the briefing names the pinned ones (titles and descriptions, never addresses) so a task that mentions "the store" or "the build tool" starts informed, and keel search and keel list links give the addresses on request. Keel never opens or fetches a link. Do not put a key or token in a link's address or text: the doctor warns when something looks like one, and a secret belongs in a reference such as env:NAME.
Where .keel lives (and keeping it private)
.keel/ is plain files, so git can hold it in three ways. Pick by who should see your todos, notes and claims:
- In the project's own repository (the default). It is reviewed and merged with your code, and it is as public as that repository.
git diff .keelshows what changed andgit checkout -- .keel/<path>restores it. - In a repository of its own, ignored by the project (the usual choice when the notes should stay private, for example for an open-source project). Create the private repository, clone it at
.keel, and add.keel/to the project's.gitignore. Keel finds the workspace from the folder you work in, so nothing else changes. Inside.keel,git -C .keel log -pandgit -C .keel checkout -- <path>do what the lines above do, andkeel historyprints those. A fresh clone of the project has no workspace until you clone the private one into.keel, so say so in the project'sAGENTS.md; otherwise an agent will offer to create a new, empty one. - As a submodule at
.keel, like a project folder. The parent then records a pinned commit of the workspace, and shows it as modified every time the workspace changes, so you must commit inside.keeland then update the pointer. Choose this only if you want a parent commit to capture the exact state of the workspace.
Whichever you choose, local/ (audit log, connector settings, reports) stays out of git, and keel upgrade, the doctor and the hook behave the same.
Work and git
An item that records a branch (keel start does) is compared with its repository: the briefing shows how far the branch is ahead of main (or master) and how many commits name the item id, and the doctor warns when the branch was merged but the item is still open, or when the item has been in work for two weeks with no commit. The repository is the item's project folder, or the workspace's folder when it has none. Nothing is written to git, and with no repository nothing is shown.
Working in parallel (several agents, or people and agents)
- Claim what you start.
keel claim todos fix-login(or theclaim_itemtool) records who holds an item and until when. Anyone else's edit or move is refused with the holder's name and the time, so two sessions do not quietly do the same work. A claim runs out after four hours (--minuteschanges it) and is released withkeel release.--forcetakes over a claim that is stale. - Name each session. The holder is
KEEL_ACTORwhen it is set, otherwise the client (cli, ormcpplus the process for an MCP server). Give every agent session its ownKEEL_ACTOR, or two sessions on the command line look like the same actor and will not block each other. - **Merge conflicts in
.keel/.** Each item is its own small JSON file, so two branches rarely touch the same file. If both changed one item, keep the newer fields from each side by hand, check withkeel doctor, and note thatkeel listandkeel showread what you merged. Claims live in the item files, so a claim made on one branch only shows on another after a merge; treat claims as a short-lived courtesy between sessions on one checkout, not a lock across branches.