Metadata-Version: 2.5
Name: keelhq
Version: 0.1.0a1
Summary: Keel: a solid base for agent-ready project workspaces (skeleton, MCP server, doctor).
Project-URL: Homepage, https://github.com/Eganathan/keel
Project-URL: Source, https://github.com/Eganathan/keel
Project-URL: Issues, https://github.com/Eganathan/keel/issues
Project-URL: Changelog, https://github.com/Eganathan/keel/blob/main/CHANGELOG.md
Author: Eganathan R
License: MIT License
        
        Copyright (c) 2026 Eganathan R
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
License-File: LICENSE
Keywords: agents,changelog,claude-code,mcp,project-management,todo,workspace
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Software Development
Requires-Python: >=3.11
Requires-Dist: jsonschema>=4.23
Requires-Dist: truststore>=0.9
Provides-Extra: mcp
Requires-Dist: mcp>=1.2; extra == 'mcp'
Description-Content-Type: text/markdown

# Keel

**One shared place for what your projects track, that you and your AI agents both use.**

Todos, bugs, releases, docs, links, test accounts: kept as small files in a hidden `.keel` folder next to your projects. You work mainly through your AI agent (Claude Code first; Codex and Gemini CLI too), and in a web page when you want to look around. The agent works through the same data, so it starts every session knowing what is in flight, instead of knowing nothing.

> **Status: early.** It works and is tested, but it is not on PyPI yet, and some features are still missing (see [what is not there yet](#what-is-not-there-yet)). Good for trying, not yet for depending on.

## What you get

- **A web page** (`keel ui`) with a setup wizard, a home page showing what is in flight, your lists (add, edit, move, delete, search, import) and your Markdown docs. It runs on your own machine only.
- **A shared memory for your agent:** it reads and updates the same todos and docs you see, under rules you set (for example, no testing without a changelog entry).
- **Work by stage, with a changelog that never bloats** (the `command-center` preset): a backlog, a **Now** list whose entries move through planning, ready for implementation, implementation, testing, on hold, ready and completed, and a changelog with a status from dev to live. Finished work older than a retention period you choose (90 days by default) overflows into the changelog, which your agent offers at the start of a session.
- **Safety built in:** agents cannot delete, never see secrets, and send messages only after you see a preview.
- **Reports and messages:** PDF reports, and sending to Telegram, Cliq or email, with nothing for you to script.

## Requirements

| You need | Why |
|---|---|
| Python 3.11 or newer, and [uv](https://docs.astral.sh/uv/getting-started/installation/) | to install and run Keel |
| A web browser | for the UI |
| `git` | project status and "docs gone stale" checks (optional) |
| Claude Code, or another agent that supports MCP | to let an agent use Keel (optional) |
| Chrome, Chromium, Edge or Brave | to make PDF reports (optional) |

## Install

```sh
uv tool install "keelhq[mcp] @ git+https://github.com/Eganathan/keel.git"
keel --version
```

To update later, run the same command with `--force`.

## Quick start

1. **Go to the folder that holds your projects** (or a single project) and run:
   ```sh
   cd ~/work
   keel ui
   ```
   Your browser opens. The folder is where Keel will keep its hidden `.keel` folder.
2. **Create the workspace.** The first screen asks for a name and offers the starter set: todos, RCAs, releases, changelog, projects and docs.
3. **Follow Setup**, top to bottom. Every step is safe to repeat, and nothing is written until you press its button:
   - **Projects:** tick the folders Keel found.
   - **Teach your agent:** install the skills, the `AGENTS.md` block and the session-start hook (each has a preview).
   - **Connect your agent:** copy the one command shown and run it in a terminal.
   - **Health check:** the doctor should say "all clear".
4. **Start your agent in the same folder** and ask: *"What is open in this project?"*

The first time, the agent offers to read your projects and write short docs about each (structure, architecture, conventions, commands). After that, every session starts with a briefing, and docs refresh themselves when the code they describe changes.

Prefer a terminal? Everything in the UI works there too: `keel init --preset tracker`, `keel discover --apply`, `keel init-agent --write all`, `keel briefing`.

## A typical use case

You keep three projects in one folder:

```
work/                  <- run your agent here
  .keel/               <- todos, bugs, docs and settings for all three (hidden)
  android/             <- its own git repository
  blog/
  api/
```

A normal day:

1. **Morning.** You start Claude Code in `work/`. The session-start hook has already loaded the briefing: two todos in progress on `android`, one stale doc on `api`, `blog` has uncommitted changes.
2. **You say:** *"Pick up the login retry bug."* The agent finds it, moves it to *in progress*, and does the work.
3. **A rule applies.** When it tries to move the todo to *testing*, Keel refuses: *"add a changelog entry for this todo first."* The agent adds the entry, then moves it.
4. **Docs stay true.** The code changed, so the briefing next time says the `android` architecture doc is stale. The agent reads the git history, updates the doc and marks it verified.
5. **Friday.** You say: *"Make a weekly status PDF and send it to the team channel."* It renders the PDF, shows you a preview of the message, and sends it only after you agree.

## How it fits together

```
 You ── web page / terminal ──┐
                              ▼
                      ┌──────────────┐        ┌──────────────────────┐
 Your agent ── MCP ──▶│  Keel core   │◀──────▶│  .keel/ (JSON files) │
 (Claude, Codex…)     │  rules, checks│        │  collections, items, │
        ▲             │  secrets,     │        │  workflows, docs     │
        │             │  audit log    │        └──────────────────────┘
 session-start hook   └──────┬───────┘
 runs `keel briefing`        │ preview, then send
                             ▼
              Telegram · Cliq · email · PDF reports
```

The web page, the terminal and the agent all go through the same core, so the same rules, secret masking and audit log apply to all three.

## Stack

| Part | What it is |
|---|---|
| Core | Python 3.11+, standard library plus `jsonschema` and `truststore` |
| Storage | One small JSON file per item, in `.keel/`, checked against JSON Schemas in `spec/` |
| Web UI | Python's built-in HTTP server and plain JavaScript, no framework and no build step |
| Agent access | An MCP server (the official `mcp` SDK, optional install) |
| PDF reports | Your own Chromium-based browser, run headless |
| Messages | Telegram Bot API, Cliq webhooks, SMTP, over HTTPS using your operating system's certificates |
| Checks | `ruff`, `mypy` (strict), `pytest`, a secret scan, GitHub Actions |

## Using it effectively

- **Run the agent in the folder that holds `.keel`.** That is what lets it see all your projects at once.
- **Install the session-start hook.** Without it, an agent has to remember to look; with it, every session begins informed.
- **Give items a short title and a description someone could read cold.** Agents and teammates both rely on it.
- **Let the rules do the nagging.** Turn on the "changelog before testing" rule during setup instead of reminding people.
- **Keep secrets as references.** Store `env:STAGING_PASSWORD`, never the password. Keel never writes a value to disk.
- **Run the doctor** (`keel doctor`, or the green pill at the top of the page) after bulk edits or imports.
- **Use `--read-only`** when you register the MCP server for an agent that should only look.
- **Bring in what you have:** `keel import checklist backlog.md --collection todos` turns an existing checklist into todos (a dry run until you add `--apply`).
- **Commit `.keel/`.** It is meant to be reviewed like code. Its `local/` folder (audit log, your personal connector settings, PDFs) is already git-ignored.

## Commands at a glance

| | |
|---|---|
| `keel ui` | open the web UI |
| `keel briefing` | what is in flight, per project |
| `keel list todos` / `show` / `search words` | read |
| `keel add` / `keel move todos fix-login testing` | write, with the same checks as the agent |
| `keel init --preset command-center` | Backlog, Now (work by stage) and a changelog with statuses (`--dod` adds the changelog-before-testing rule) |
| `keel overflow [--days N] [--apply]`, `keel retention [DAYS]` | for scripts: move finished work into the changelog (a dry run without `--apply`), show or set the retention. Your agent does this through its tools. |
| `keel doctor [--deep] [--fix] [--undo]` | check every file; `--deep` also runs probes and the core-edit check; `--fix` makes the safe repairs, `--undo` reverses them |
| `keel discover --apply` | register the project folders |
| `keel init-agent --write all\|hooks` | teach an agent how to use Keel |
| `keel connect telegram\|cliq\|email`, `keel send`, `keel report` | messages and PDF reports |
| `keel mcp [--read-only]` | the MCP server |

Everything, with options and examples, is in the [full guide](docs/guide.md).

## What is not there yet

- **The web UI covers setup, home, lists, items (add, edit, move, delete with confirmation, sub-items), Markdown docs, search, import, connectors (add, switch sending, send a message) and PDF reports.** An RSS reader and sprints are not built.
- **No inbound messages** (replying in Telegram to drive a session), no plugins, no sprints with carry-over.
- **The doctor repairs only two things** (leftover temp files, `local/` not git-ignored), always with a backup you can undo. Anything else it only reports.
- **Only Claude Code gets the session hook.** Other agents are told to call `briefing` first, which is less reliable.
- **No PyPI release yet.** Keel is MIT licensed (see [`LICENSE`](LICENSE)).

## Learn more

- [Full guide and reference](docs/guide.md)
- [Design, including parts not built yet](docs/design.md)
- [The specification (schemas and tool definitions)](spec/README.md)
- [Contributing](CONTRIBUTING.md) and [security](SECURITY.md)

## Develop

```sh
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`](AGENTS.md) first: the specification changes together with its example and its contract test.
