Skip to main content
Glama
README.md
# OKF Todo

Turn emails, notes and spreadsheets into tasks with your own AI assistant. Your data stays on your computer.

OKF Todo is a free, open-source desktop task manager for developers and support staff. Its included [MCP server](docs/help/mcp-server.md) lets Claude Code, Codex, and other compatible assistants propose tasks and checklists that you approve before anything is saved. It also works on its own, offline, and keeps tasks, evidence, and history in a local SQLite database.

[**Get it from Microsoft Store**](https://apps.microsoft.com/detail/9PP5FM2933BR) · [**Download the Windows installer**](https://github.com/dalby-md/OKF-Todo/releases/latest)

[![OKF Todo task workspace showing checklist progress, attached files, and Timeline history for a failed deployment](docs/images/screenshots/04-keep-the-details-together.png)](docs/images/screenshots/04-keep-the-details-together.png)

[Explore the screenshot gallery](docs/screenshots.md) · [Read the user guide](docs/help/using-okf-todo.md)

<a id="ai-integration"></a>

## From source material to saved tasks

If you use an AI assistant, you can ask it to draft an investigation checklist from incident notes, then review and approve what it saves in OKF Todo. You can also start with an email, a screenshot, a spreadsheet, or meeting notes.

Open **Help → OKF layer → Copy prompt** in the running app. The prompt includes the actual instruction-file and active database paths for your installation, including a custom database. Give your assistant access to those locations, then provide the source material. [See the setup guide](docs/ai-assistants.md).

The [Open Knowledge Format (OKF)](docs/what-is-okf.md) instructions describe how to work with the task data. The optional MCP server and CLI commands let the assistant act through application services.

OKF Todo is designed to help an [AI assistant with access to local tools](docs/ai-assistants.md) turn unstructured work into practical artifacts. Give Codex, Claude Code, or another compatible assistant a customer email thread, support transcript, meeting notes, diagnostic output, or similar source material and ask it to prepare an internal task, investigation plan, customer reply, handover, status update, or another useful artifact.

The application is not dependent on AI. It also works as a traditional desktop To-Do application where you can create, organize, update, and complete tasks entirely through the user interface. No hosted account is required, and your data remains local. See [Using OKF Todo day to day](docs/help/using-okf-todo.md) for the complete end-user workflow.

For AI-assisted work, the recommended workflow is **draft, review, save, verify**: ask the assistant to analyze the source without changing anything, review its proposal, explicitly approve any task creation or update, and then read the saved result back. The [OKF user guide](docs/help/okf-layer.md) and [MCP user guide](docs/help/mcp-server.md) provide complete examples and reusable prompts.

An AI assistant can work with OKF Todo in several ways:

- **[OKF knowledge layer](docs/help/okf-layer.md):** give the assistant structured context about OKF Todo's concepts, schema, relationships, integrity rules, and lifecycle conventions. OKF provides knowledge and navigation; it does not itself grant access to task data or perform updates.
- **[MCP server](docs/help/mcp-server.md):** let an MCP-compatible client list, read, create, and update tasks and inspect their timelines through structured tools.
- **[CLI commands](docs/okf/todo-database/references/application-command-interface.md):** let people, scripts, and agents execute application commands from a terminal.
- **Direct SQLite access:** let a user, script, or assistant read or write the local database directly when it has permission to access the file and a SQLite-capable tool.
- **Desktop interface:** use every task-management feature manually without an AI assistant.

The desktop interface, CLI, and MCP server use the same application services, so their changes consistently apply validation, lifecycle rules, and automatic task history. Direct SQLite writes are also possible, but they bypass those services; the caller is therefore responsible for preserving data integrity and recording any required history.

The [desktop application](docs/help/using-okf-todo.md), [OKF](docs/help/okf-layer.md), and [MCP](docs/help/mcp-server.md) Markdown guides are also the source for the offline in-app Help. The desktop build copies and renders them locally so repository and application guidance stay synchronized.

### Optional AI walkthrough

Follow the written example to see how six spreadsheet notes become reviewed tasks and checklists. The sample includes the workbook, setup instructions, and prompts. [Written walkthrough](docs/source-to-plan.md) · [Sample spreadsheet](demonstratio-kit/README.md)

[Share feedback on GitHub](https://github.com/dalby-md/Okf-Todo/issues) about where the workflow helped or got in the way.

## Day-to-day work

When a bug report comes in, create an investigation task in OKF Todo. Attach the error screenshot, write down what you found, and add a checklist for the next steps. When you return to the task, the checklist shows what is left and the Timeline shows what changed.

Use OKF Todo to track bug reports, support cases, deployment checks, and follow-ups. Record what you are waiting for and use **Act now** to find urgent or overdue tasks you can move forward.

## Local-first by design

OKF Todo is intentionally different from many modern todo applications.

It does not require:

- a cloud account
- a central database
- a web server
- a subscription
- a multi-user backend

The application and its data can remain on your own computer.

This also makes the project useful as an experiment in giving AI controlled access to a small, understandable local application and its data.

## Project direction

The current architecture is deliberately simple and local-first.

An open question is whether OKF Todo should remain that way or evolve toward optional multi-user/server functionality, for example with a .NET backend or another server-side database.

Feedback on that direction is very welcome.

## Product Highlights

- Fast task capture with a title, task type, and preselected task list.
- Active, ready, urgent, waiting, overdue, completed, and all-task views.
- HTML and Markdown-capable rich-text editors.
- Paste, drop, or select images for task bodies.
- Priorities, deadlines, waiting targets, tags, and optional source references.
- Checklists with progress shown in the task list.
- User-managed task lists with a persistent list switcher, global **All lists** scope, safe deletion, and bulk moves with Undo.
- File attachments stored inside the SQLite database.
- Typed relationships between tasks.
- A combined timeline of comments and automatic change history.
- Editable task types, priorities, and statuses.
- Light and dark color schemes with flexible desktop layouts.
- Complete database backup from inside the application.
- Offline in-app Help for the desktop application, OKF layer, and optional MCP server.

## Available for Windows, macOS, and Linux

Windows users can [get OKF Todo from Microsoft Store](https://apps.microsoft.com/detail/9PP5FM2933BR) or download the signed Inno Setup installer from the [latest GitHub release](https://github.com/dalby-md/OKF-Todo/releases/latest).

The GitHub-hosted installer is Authenticode signed by Open Source Developer
Søren Dalby. The Microsoft Store package is signed by Microsoft after
certification. Packaged installers are not yet available for macOS or Linux;
macOS and Linux users can run the app from a source checkout with `dotnet run`:

```bash
dotnet run --project ./Okf-Todo/Okf-Todo.csproj
```

See [Requirements](#requirements) and [Run the application](#run-the-application)
for prerequisites and clone instructions. Windows remains the packaged and
release-tested platform.

[Read the user guide](docs/help/using-okf-todo.md) · [Set up your AI assistant](docs/ai-assistants.md)

## Database file
The database is stored under the operating system's local application-data directory:

| Platform | Typical database path |
| --- | --- |
| Windows | `%LOCALAPPDATA%\Okf-Todo\okf-todo.db` |
| macOS | `~/Library/Application Support/Okf-Todo/okf-todo.db` |
| Linux | `$XDG_DATA_HOME/Okf-Todo/okf-todo.db`, or `~/.local/share/Okf-Todo/okf-todo.db` when `XDG_DATA_HOME` is unset or relative |

Do not delete this file unless you intentionally want to remove all application data.

Installing, updating, or removing OKF Todo never overwrites or removes the database. Database replacement is available only through the application's explicit restore and reset workflows.

 
## Requirements

Packaged installation is available for Windows. Source builds require:

- Windows 10 or later, macOS 10.15 or later, or a current Linux desktop distribution.
- A [.NET SDK](https://dotnet.microsoft.com/download) that supports `.slnx` solutions (9.0.200 or later), plus the [.NET 8 runtime](https://dotnet.microsoft.com/download/dotnet/8.0) for running this `net8.0` application from source.
- The platform webview used by Photino: WebView2 on Windows, the system WebKit view on macOS, or GTK/WebKit on Linux.

The application targets .NET 8; the solution format requires the newer SDK. See [Microsoft’s SLNX tooling requirements](https://devblogs.microsoft.com/dotnet/introducing-slnx-support-dotnet-cli/). Packaged Windows installations include their runtime.

## Run the application

Clone the repository, change to its root directory, and run the application using your shell.

For Bash:

```bash
git clone https://github.com/dalby-md/OKF-Todo.git
cd OKF-Todo
dotnet restore
dotnet run --project ./Okf-Todo/Okf-Todo.csproj
```

For Windows Command Prompt:

```cmd
git clone https://github.com/dalby-md/OKF-Todo.git
cd OKF-Todo
dotnet restore
dotnet run --project .\Okf-Todo\Okf-Todo.csproj
```

All following `dotnet` commands in this README assume the current directory is the repository root.

On first launch, OKF Todo creates its database and initial lookup values automatically. No setup wizard or account is required.

On later releases, pending EF Core migrations are applied automatically before the application reads or writes task data.

## Connect an MCP client

Start OKF Todo, open **Help → MCP server**, and select **Copy configuration**.
The running application supplies the configuration for your installation or
source checkout. Follow the [MCP setup and usage guide](docs/help/mcp-server.md#connect-it-once).

MCP supports task discovery, partial edits, lifecycle actions, comments,
checklists, relationships, attachments, reversible Trash, and task-list management.
See the [complete tool reference](docs/help/mcp-server.md#complete-tool-reference)
for available operations and their safety boundaries. Prefer `task_patch` for
partial changes; `task_update` deliberately replaces editable fields.

## Back up and restore data

Use [Protect and maintain your data](docs/help/using-okf-todo.md#protect-and-maintain-your-data)
for backup, restore, sample-data, and reset instructions. The guide describes
what a backup includes and the validation, safety-copy, and restart steps for
restoring it. Never replace the active database manually while the app is running.

## Data and Privacy

OKF Todo is a single-user, local-first application. It has no authentication, cloud synchronization, application telemetry, or external task-system integration. Task data is stored in the local SQLite database. You can copy it out through backups, exports, the clipboard, saved attachments, or tools you authorize to access it. An AI assistant may send supplied material or tool results to its model provider; review its privacy settings before sharing sensitive information.


## Development

Build the solution:

```powershell
dotnet build -c Release
```

Run the service and MCP tests:

```powershell
dotnet test .\Okf-Todo.Tests\Okf-Todo.Tests.csproj -c Release
```

For browser coverage, follow the [UI test guide](docs/testing/ui-tests.md).
Installed-product tests have [separate prerequisites](Okf-Todo.InstalledContractTests/README.md).

Restore the repository-local EF Core tool and add a migration after changing the physical model:

```powershell
dotnet tool restore
dotnet tool run dotnet-ef migrations add <MigrationName> --project .\Okf-Todo\Okf-Todo.csproj --startup-project .\Okf-Todo\Okf-Todo.csproj --output-dir Migrations
```

Commit the generated migration and model snapshot with the model change. The application applies pending migrations automatically at startup.

Product and architecture documentation is listed in the [documentation index](docs/README.md).

### Build the Windows installer

See [Windows installer: build, sign, and publish](docs/installer-build-and-signing.md)
for Inno Setup builds, signing, GitHub releases, and Microsoft Store/MSIX packaging.

## AI harness
OKF Todo is built with Codex and Claude Code and is not tied to either. It uses AGENTS.md, skills, and other cross-platform designs.

## Testing the installed Windows application

See [Installed contract tests](Okf-Todo.InstalledContractTests/README.md) for the command and requirements for testing the installed MCP server, command adapter, OKF bundle, and isolated SQLite databases. Use the [interactive check plan](docs/testing/interactive-repository-check.md) for native desktop behavior.

## License

OKF Todo is licensed under the [MIT License](LICENSE). Bundled third-party components retain their own licenses; see the notices included with those components.

TDQS

B3.2/5.0

Scored across 40 tools

Disambiguation4/5

Most tools target clearly distinct resources or actions, and descriptions usually make the intended choice obvious. However, task_update vs task_patch, task_get vs task_get_context, and task_get_timeline vs the timeline inside task_get_context create meaningful overlap risk. The set is still mostly distinguishable, but an agent could occasionally choose the heavier or destructive variant unnecessarily.

Naming Consistency3/5

All tool names use the task_ prefix and snake_case, which is consistently applied. But the ordering of verb and resource varies across tools, e.g. task_relationship_add vs task_add_comment and task_list vs task_list_lists, so there is no single predictable verb_noun convention. The names remain readable, but the pattern is mixed.

Tool Count2/5

40 tools is very high for a single Todo server, even one with many subresources such as checklists, attachments, relationships, and comments. Several operations could be consolidated or exposed through fewer flexible tools, and the sheer count increases discovery and selection cost for an agent.

Completeness4/5

The surface covers core task lifecycle, list management, checklists, relationships, attachments, comments/timeline, waiting states, lookups, and full task context. Minor gaps remain, such as no comment edit operation, no permanent task deletion beyond Trash, and limited bulk lifecycle operations. These are workable omissions rather than dead ends.

Maintenance

ActivityActive
ResponsivenessNo recent community issues