donelog 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of donelog might be problematic. Click here for more details.

donelog-0.1.0/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 pham2006-ux
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
donelog-0.1.0/PKG-INFO ADDED
@@ -0,0 +1,255 @@
1
+ Metadata-Version: 2.4
2
+ Name: donelog
3
+ Version: 0.1.0
4
+ Summary: Automatically record what your AI coding agent did as tasks, and search them later.
5
+ Author: pham2006-ux
6
+ License-Expression: MIT
7
+ License-File: LICENSE
8
+ Classifier: Development Status :: 2 - Pre-Alpha
9
+ Classifier: Environment :: Console
10
+ Classifier: Intended Audience :: Developers
11
+ Classifier: Operating System :: OS Independent
12
+ Classifier: Programming Language :: Python :: 3
13
+ Classifier: Programming Language :: Python :: 3.11
14
+ Classifier: Programming Language :: Python :: 3.12
15
+ Classifier: Programming Language :: Python :: 3.13
16
+ Classifier: Programming Language :: Python :: 3.14
17
+ Classifier: Topic :: Software Development
18
+ Requires-Dist: mcp>=2.3.0
19
+ Requires-Dist: typer>=0.29.3
20
+ Requires-Dist: typing-extensions>=4.12
21
+ Requires-Dist: anthropic>=2.16.0 ; extra == 'api'
22
+ Requires-Python: >=3.11
23
+ Project-URL: Homepage, https://github.com/pham2006-ux/donelog
24
+ Project-URL: Documentation, https://github.com/pham2006-ux/donelog/blob/main/docs/cli.md
25
+ Project-URL: Issues, https://github.com/pham2006-ux/donelog/issues
26
+ Project-URL: Changelog, https://github.com/pham2006-ux/donelog/blob/main/CHANGELOG.md
27
+ Provides-Extra: api
28
+ Description-Content-Type: text/markdown
29
+
30
+ # donelog
31
+
32
+ [日本語版 README](https://github.com/pham2006-ux/donelog/blob/main/README.ja.md)
33
+
34
+ <!-- Demo GIF goes here: ![demo](docs/demo.gif) -->
35
+
36
+ > **Status:** under development. v0.1.0 is not released yet.
37
+
38
+ - donelog records each piece of work your AI coding agent (Claude Code) does as a **task**, automatically, through MCP.
39
+ - You can list and search those tasks later by keyword or status. Short Japanese words such as 「認証」 work too.
40
+ - You can ask in plain words, like "Is the login feature done?", and get an answer backed by real task IDs.
41
+
42
+ ## Guides
43
+
44
+ | Guide | For |
45
+ | --- | --- |
46
+ | [CLI guide](https://github.com/pham2006-ux/donelog/blob/main/docs/cli.md) ([日本語](https://github.com/pham2006-ux/donelog/blob/main/docs/cli.ja.md)) | Using donelog in a terminal, step by step |
47
+ | [VS Code extension guide](https://github.com/pham2006-ux/donelog/blob/main/docs/vscode.md) ([日本語](https://github.com/pham2006-ux/donelog/blob/main/docs/vscode.ja.md)) | Using donelog from the sidebar of VS Code or Cursor |
48
+
49
+ ## Installation
50
+
51
+ You need [uv](https://docs.astral.sh/uv/) and Python 3.11 or later. donelog is not on PyPI yet, so install it from the repository:
52
+
53
+ ```sh
54
+ git clone https://github.com/pham2006-ux/donelog.git
55
+ cd donelog
56
+ uv tool install .
57
+ ```
58
+
59
+ Check that it works (open a new terminal first):
60
+
61
+ ```sh
62
+ donelog --version
63
+ ```
64
+
65
+ If the command is not found, run `uv tool update-shell` and open a new terminal.
66
+
67
+ ## Quick start
68
+
69
+ Run these in the folder of the project you want to track:
70
+
71
+ ```sh
72
+ donelog init # create .donelog/ and add instructions to CLAUDE.md
73
+ donelog add "Write the README" # add a task by hand
74
+ donelog list # newest first
75
+ donelog search 認証 # keyword search
76
+ donelog done T-0001 # mark as done
77
+ donelog status T-0001 todo # change the status (todo, in_progress, done)
78
+ donelog edit T-0001 --title "Write the README (EN)" # change what a task says
79
+ donelog delete T-0001 # delete for good (asks first)
80
+ ```
81
+
82
+ ## Connect to Claude Code
83
+
84
+ The easiest way is to let donelog do it. Run this **in your project folder**:
85
+
86
+ ```sh
87
+ donelog init --connect-claude
88
+ ```
89
+
90
+ This runs `claude mcp add` for you. You can also run it yourself: `donelog init` prints the exact command for your machine, for example:
91
+
92
+ ```sh
93
+ claude mcp add --scope local donelog -- /home/you/.local/bin/donelog mcp
94
+ ```
95
+
96
+ The server is registered for that project only (the `local` scope).
97
+ Then restart Claude Code and check the connection:
98
+
99
+ ```sh
100
+ claude mcp list
101
+ ```
102
+
103
+ You should see `donelog: ... ✓ Connected`. From now on, Claude Code records its work with the `add_task` and `update_task` tools, following the instructions that `donelog init` added to `CLAUDE.md`.
104
+
105
+ If something is missing, `donelog doctor` checks the whole setup and tells you how to fix each problem.
106
+
107
+ ### Windows notes
108
+
109
+ - Use PowerShell or the VS Code terminal. Run the commands one by one.
110
+ - If you run donelog from a clone with `uv run` instead of `uv tool install`, `donelog init` prints a command with the full path to Python, for example:
111
+
112
+ ```powershell
113
+ claude mcp add --scope local donelog -- "C:\path\to\donelog\.venv\Scripts\python.exe" -m donelog mcp
114
+ ```
115
+
116
+ - Claude Code treats `C:\work` and `c:\work` as different folders. Terminals use `C:`, but VS Code uses `c:`. `donelog init --connect-claude` registers both, so Claude Code finds donelog wherever you start it.
117
+ - To remove the registration: `claude mcp remove donelog`
118
+
119
+ ## VS Code extension
120
+
121
+ The [vscode-extension/](https://github.com/pham2006-ux/donelog/tree/main/vscode-extension/) folder has a VS Code extension that shows the tasks in the sidebar, updates live while Claude Code works, and lets you search, ask, add, complete and export tasks. It uses the `donelog` command above, so install that first.
122
+ It is not on the Marketplace yet. To try it, build and install it from the repository (you need Node.js 20 or later):
123
+
124
+ ```sh
125
+ cd vscode-extension
126
+ npm ci
127
+ npx vsce package --no-dependencies
128
+ code --install-extension donelog-0.1.0.vsix
129
+ ```
130
+
131
+ See the [VS Code extension guide](https://github.com/pham2006-ux/donelog/blob/main/docs/vscode.md) for a step-by-step walkthrough, and [vscode-extension/README.md](https://github.com/pham2006-ux/donelog/blob/main/vscode-extension/README.md) for a summary.
132
+
133
+ ## Ask in plain words (AI search)
134
+
135
+ ```sh
136
+ donelog ask "Is the login feature done?"
137
+ ```
138
+
139
+ ```text
140
+ Answer: Done
141
+ The login form was added in T-0003 and its tests in T-0007.
142
+
143
+ Evidence:
144
+ T-0003 done Add the login form 2026-12-02 14:36
145
+ T-0007 done Add login tests 2026-12-02 15:10
146
+ ```
147
+
148
+ The answer is one of **Done**, **In progress**, **Not started** or **Not recorded**, with the IDs of the tasks it is based on.
149
+ donelog only shows IDs that really exist in your task log; anything else the AI returns is removed.
150
+ With many tasks, donelog first picks the 100 most related (by keywords and newness) and sends only those.
151
+
152
+ ### Inside Claude Code (no extra cost)
153
+
154
+ When you are already in Claude Code, just ask it, for example "Is the login feature done?".
155
+ Claude Code answers with the `search_tasks` tool, so no extra AI call is made.
156
+
157
+ ### Choosing the AI (backend)
158
+
159
+ `donelog ask` uses the backend set in `.donelog/config.json`:
160
+
161
+ ```json
162
+ {"ask_backend": "claude-code", "model": null}
163
+ ```
164
+
165
+ | `ask_backend` | How it works | Cost |
166
+ | --- | --- | --- |
167
+ | `claude-code` (default) | Runs your installed Claude Code in non-interactive mode (`claude -p`) | Included in your Claude Pro/Max plan |
168
+ | `anthropic-api` | Calls the Anthropic API | Pay per use |
169
+
170
+ You can also choose per question: `donelog ask --backend anthropic-api "..."`.
171
+ `model` is optional; `null` means Claude Code's default model, or `claude-opus-5-5` for the API.
172
+
173
+ **claude-code:** donelog removes `ANTHROPIC_API_KEY` from the environment of the Claude Code it starts, so the question is always answered within your plan, never billed to an API key.
174
+
175
+ **anthropic-api:** install the optional package and set the key in an environment variable named `DONELOG_ANTHROPIC_API_KEY` (not `ANTHROPIC_API_KEY`: if that one is set, Claude Code itself switches from your plan to API billing; see [this support article](https://support.claude.com/en/articles/11145838-use-claude-code-with-your-pro-or-max-plan)).
176
+
177
+ ```powershell
178
+ uv tool install --reinstall ".[api]"
179
+ $env:DONELOG_ANTHROPIC_API_KEY = "sk-ant-..." # this terminal only
180
+ ```
181
+
182
+ donelog never creates or reads `.env` files.
183
+
184
+ ## Commands
185
+
186
+ | Command | What it does |
187
+ | --- | --- |
188
+ | `donelog init [--connect-claude]` | Create `.donelog/`, add it to `.gitignore`, add instructions to `CLAUDE.md` (asks first), and register the MCP server with Claude Code (`--connect-claude`) or show how to |
189
+ | `donelog add "title"` | Add a task by hand (`-m` summary, `--status`, `-f` file, `-t` tag) |
190
+ | `donelog list [--status S]` | List tasks, newest first |
191
+ | `donelog search WORDS [--status S]` | Search the title, summary, files and tags. Every word must match |
192
+ | `donelog show ID` | Show one task |
193
+ | `donelog done ID` | Mark a task as done |
194
+ | `donelog status ID... STATUS` | Change the status of one or more tasks to `todo`, `in_progress` or `done` (also back from done). All or nothing |
195
+ | `donelog edit ID` | Change a task's title (`--title`), summary (`-m`), status, files (`-f`, `--no-files`) or tags (`-t`, `--no-tags`). Options you leave out keep their value |
196
+ | `donelog delete ID... [--yes]` | Delete tasks for good. Asks first unless `--yes`. All or nothing; deleted IDs are never reused |
197
+ | `donelog ask "question" [--backend B]` | AI search: answer from the task log |
198
+ | `donelog export [--format md\|json] [-o FILE]` | Export all tasks |
199
+ | `donelog doctor` | Check the setup (project, task log, AI settings, CLAUDE.md, Claude Code connection) and show how to fix problems |
200
+ | `donelog mcp` | Start the MCP server (Claude Code runs this) |
201
+
202
+ Status is one of `todo`, `in_progress`, `done` (or `all` for filters). IDs look like `T-0001`; `1` also works.
203
+
204
+ ### JSON output for scripts and editors
205
+
206
+ Add `--json` to `init`, `add`, `list`, `search`, `show`, `done`, `status`, `edit`, `delete`, `ask`, `doctor` or `export -o FILE` to get exactly one line of JSON. The VS Code extension uses this.
207
+
208
+ ```json
209
+ {"ok": true, "data": {"count": 1, "truncated": false, "tasks": [{"display_id": "T-0001", "title": "...", "status": "done"}]}}
210
+ {"ok": false, "error": {"code": "not_initialized", "message": "..."}}
211
+ ```
212
+
213
+ Error codes: `not_initialized`, `not_found`, `invalid`, `config`, `ask_failed`, `database`, `io`, `conflict`. The exit code is 1 when `ok` is false. With `--json`, `init` never asks questions: add `--yes` to update `CLAUDE.md`. Likewise `delete --json` needs `--yes`. `status` returns `results` with one `{task, changed, before}` per ID (and `task`/`changed` for the first one); `edit` returns `{task, changed, before}`, where `before` is the task as it was (the VS Code extension uses it for Undo); `delete` returns `deleted`, the list of deleted tasks.
214
+
215
+ ## MCP tools
216
+
217
+ | Tool | What it does |
218
+ | --- | --- |
219
+ | `add_task` | Add a task (title, summary, status, files, tags). If a todo or in-progress task has the same title, that task is moved on instead (never back), keeping its summary |
220
+ | `update_task` | Change the status and/or summary |
221
+ | `search_tasks` | Search by keywords and status |
222
+ | `list_tasks` | List tasks, newest first |
223
+ | `get_task` | Get one task |
224
+ | `add_todo_tasks` | Add several todo tasks at once, for example from a requirements document. Titles that already exist are skipped |
225
+ | `list_unverified_tasks` | List done tasks that no AI has checked yet |
226
+ | `verify_task` | Record whether a done task is really finished. If it is not, the task goes back to in progress with a note |
227
+
228
+ ### Planning and checking
229
+
230
+ - **From a requirements document to tasks.** Give Claude Code your requirements document and ask for tasks. It shows the list first, and after you agree, it registers every item as a todo task.
231
+ - **Checking done tasks.** Before its first change in a session, Claude Code checks the done tasks that nobody has checked yet. A task that is really finished is marked *verified*. A task that is not finished goes back to *in progress* with a note, and Claude Code asks you before it fixes anything.
232
+
233
+ ## Data and privacy
234
+
235
+ - Tasks are stored in `.donelog/donelog.db` (SQLite) inside your project. There is no telemetry.
236
+ - Everything except `donelog ask` works offline and sends nothing.
237
+ - **`donelog ask` sends your question and up to 100 tasks (titles, summaries, file names, tags) to Claude**, through Claude Code or the Anthropic API, depending on the backend.
238
+ - `donelog init` adds `.donelog/` to `.gitignore`. To share tasks with your team, commit an export instead: `donelog export --format md -o DONELOG.md`.
239
+
240
+ ## Development
241
+
242
+ ```sh
243
+ uv sync --all-extras # install dependencies (including the optional anthropic package)
244
+ uv run pytest # run the tests
245
+ uv run ruff check . # lint
246
+ uv run ruff format . # format
247
+ ```
248
+
249
+ ## Contributing
250
+
251
+ Bug reports and ideas are welcome. See [CONTRIBUTING.md](https://github.com/pham2006-ux/donelog/blob/main/CONTRIBUTING.md). Changes are listed in [CHANGELOG.md](https://github.com/pham2006-ux/donelog/blob/main/CHANGELOG.md).
252
+
253
+ ## License
254
+
255
+ [MIT](https://github.com/pham2006-ux/donelog/blob/main/LICENSE)
@@ -0,0 +1,226 @@
1
+ # donelog
2
+
3
+ [日本語版 README](https://github.com/pham2006-ux/donelog/blob/main/README.ja.md)
4
+
5
+ <!-- Demo GIF goes here: ![demo](docs/demo.gif) -->
6
+
7
+ > **Status:** under development. v0.1.0 is not released yet.
8
+
9
+ - donelog records each piece of work your AI coding agent (Claude Code) does as a **task**, automatically, through MCP.
10
+ - You can list and search those tasks later by keyword or status. Short Japanese words such as 「認証」 work too.
11
+ - You can ask in plain words, like "Is the login feature done?", and get an answer backed by real task IDs.
12
+
13
+ ## Guides
14
+
15
+ | Guide | For |
16
+ | --- | --- |
17
+ | [CLI guide](https://github.com/pham2006-ux/donelog/blob/main/docs/cli.md) ([日本語](https://github.com/pham2006-ux/donelog/blob/main/docs/cli.ja.md)) | Using donelog in a terminal, step by step |
18
+ | [VS Code extension guide](https://github.com/pham2006-ux/donelog/blob/main/docs/vscode.md) ([日本語](https://github.com/pham2006-ux/donelog/blob/main/docs/vscode.ja.md)) | Using donelog from the sidebar of VS Code or Cursor |
19
+
20
+ ## Installation
21
+
22
+ You need [uv](https://docs.astral.sh/uv/) and Python 3.11 or later. donelog is not on PyPI yet, so install it from the repository:
23
+
24
+ ```sh
25
+ git clone https://github.com/pham2006-ux/donelog.git
26
+ cd donelog
27
+ uv tool install .
28
+ ```
29
+
30
+ Check that it works (open a new terminal first):
31
+
32
+ ```sh
33
+ donelog --version
34
+ ```
35
+
36
+ If the command is not found, run `uv tool update-shell` and open a new terminal.
37
+
38
+ ## Quick start
39
+
40
+ Run these in the folder of the project you want to track:
41
+
42
+ ```sh
43
+ donelog init # create .donelog/ and add instructions to CLAUDE.md
44
+ donelog add "Write the README" # add a task by hand
45
+ donelog list # newest first
46
+ donelog search 認証 # keyword search
47
+ donelog done T-0001 # mark as done
48
+ donelog status T-0001 todo # change the status (todo, in_progress, done)
49
+ donelog edit T-0001 --title "Write the README (EN)" # change what a task says
50
+ donelog delete T-0001 # delete for good (asks first)
51
+ ```
52
+
53
+ ## Connect to Claude Code
54
+
55
+ The easiest way is to let donelog do it. Run this **in your project folder**:
56
+
57
+ ```sh
58
+ donelog init --connect-claude
59
+ ```
60
+
61
+ This runs `claude mcp add` for you. You can also run it yourself: `donelog init` prints the exact command for your machine, for example:
62
+
63
+ ```sh
64
+ claude mcp add --scope local donelog -- /home/you/.local/bin/donelog mcp
65
+ ```
66
+
67
+ The server is registered for that project only (the `local` scope).
68
+ Then restart Claude Code and check the connection:
69
+
70
+ ```sh
71
+ claude mcp list
72
+ ```
73
+
74
+ You should see `donelog: ... ✓ Connected`. From now on, Claude Code records its work with the `add_task` and `update_task` tools, following the instructions that `donelog init` added to `CLAUDE.md`.
75
+
76
+ If something is missing, `donelog doctor` checks the whole setup and tells you how to fix each problem.
77
+
78
+ ### Windows notes
79
+
80
+ - Use PowerShell or the VS Code terminal. Run the commands one by one.
81
+ - If you run donelog from a clone with `uv run` instead of `uv tool install`, `donelog init` prints a command with the full path to Python, for example:
82
+
83
+ ```powershell
84
+ claude mcp add --scope local donelog -- "C:\path\to\donelog\.venv\Scripts\python.exe" -m donelog mcp
85
+ ```
86
+
87
+ - Claude Code treats `C:\work` and `c:\work` as different folders. Terminals use `C:`, but VS Code uses `c:`. `donelog init --connect-claude` registers both, so Claude Code finds donelog wherever you start it.
88
+ - To remove the registration: `claude mcp remove donelog`
89
+
90
+ ## VS Code extension
91
+
92
+ The [vscode-extension/](https://github.com/pham2006-ux/donelog/tree/main/vscode-extension/) folder has a VS Code extension that shows the tasks in the sidebar, updates live while Claude Code works, and lets you search, ask, add, complete and export tasks. It uses the `donelog` command above, so install that first.
93
+ It is not on the Marketplace yet. To try it, build and install it from the repository (you need Node.js 20 or later):
94
+
95
+ ```sh
96
+ cd vscode-extension
97
+ npm ci
98
+ npx vsce package --no-dependencies
99
+ code --install-extension donelog-0.1.0.vsix
100
+ ```
101
+
102
+ See the [VS Code extension guide](https://github.com/pham2006-ux/donelog/blob/main/docs/vscode.md) for a step-by-step walkthrough, and [vscode-extension/README.md](https://github.com/pham2006-ux/donelog/blob/main/vscode-extension/README.md) for a summary.
103
+
104
+ ## Ask in plain words (AI search)
105
+
106
+ ```sh
107
+ donelog ask "Is the login feature done?"
108
+ ```
109
+
110
+ ```text
111
+ Answer: Done
112
+ The login form was added in T-0003 and its tests in T-0007.
113
+
114
+ Evidence:
115
+ T-0003 done Add the login form 2026-12-02 14:36
116
+ T-0007 done Add login tests 2026-12-02 15:10
117
+ ```
118
+
119
+ The answer is one of **Done**, **In progress**, **Not started** or **Not recorded**, with the IDs of the tasks it is based on.
120
+ donelog only shows IDs that really exist in your task log; anything else the AI returns is removed.
121
+ With many tasks, donelog first picks the 100 most related (by keywords and newness) and sends only those.
122
+
123
+ ### Inside Claude Code (no extra cost)
124
+
125
+ When you are already in Claude Code, just ask it, for example "Is the login feature done?".
126
+ Claude Code answers with the `search_tasks` tool, so no extra AI call is made.
127
+
128
+ ### Choosing the AI (backend)
129
+
130
+ `donelog ask` uses the backend set in `.donelog/config.json`:
131
+
132
+ ```json
133
+ {"ask_backend": "claude-code", "model": null}
134
+ ```
135
+
136
+ | `ask_backend` | How it works | Cost |
137
+ | --- | --- | --- |
138
+ | `claude-code` (default) | Runs your installed Claude Code in non-interactive mode (`claude -p`) | Included in your Claude Pro/Max plan |
139
+ | `anthropic-api` | Calls the Anthropic API | Pay per use |
140
+
141
+ You can also choose per question: `donelog ask --backend anthropic-api "..."`.
142
+ `model` is optional; `null` means Claude Code's default model, or `claude-opus-5-5` for the API.
143
+
144
+ **claude-code:** donelog removes `ANTHROPIC_API_KEY` from the environment of the Claude Code it starts, so the question is always answered within your plan, never billed to an API key.
145
+
146
+ **anthropic-api:** install the optional package and set the key in an environment variable named `DONELOG_ANTHROPIC_API_KEY` (not `ANTHROPIC_API_KEY`: if that one is set, Claude Code itself switches from your plan to API billing; see [this support article](https://support.claude.com/en/articles/11145838-use-claude-code-with-your-pro-or-max-plan)).
147
+
148
+ ```powershell
149
+ uv tool install --reinstall ".[api]"
150
+ $env:DONELOG_ANTHROPIC_API_KEY = "sk-ant-..." # this terminal only
151
+ ```
152
+
153
+ donelog never creates or reads `.env` files.
154
+
155
+ ## Commands
156
+
157
+ | Command | What it does |
158
+ | --- | --- |
159
+ | `donelog init [--connect-claude]` | Create `.donelog/`, add it to `.gitignore`, add instructions to `CLAUDE.md` (asks first), and register the MCP server with Claude Code (`--connect-claude`) or show how to |
160
+ | `donelog add "title"` | Add a task by hand (`-m` summary, `--status`, `-f` file, `-t` tag) |
161
+ | `donelog list [--status S]` | List tasks, newest first |
162
+ | `donelog search WORDS [--status S]` | Search the title, summary, files and tags. Every word must match |
163
+ | `donelog show ID` | Show one task |
164
+ | `donelog done ID` | Mark a task as done |
165
+ | `donelog status ID... STATUS` | Change the status of one or more tasks to `todo`, `in_progress` or `done` (also back from done). All or nothing |
166
+ | `donelog edit ID` | Change a task's title (`--title`), summary (`-m`), status, files (`-f`, `--no-files`) or tags (`-t`, `--no-tags`). Options you leave out keep their value |
167
+ | `donelog delete ID... [--yes]` | Delete tasks for good. Asks first unless `--yes`. All or nothing; deleted IDs are never reused |
168
+ | `donelog ask "question" [--backend B]` | AI search: answer from the task log |
169
+ | `donelog export [--format md\|json] [-o FILE]` | Export all tasks |
170
+ | `donelog doctor` | Check the setup (project, task log, AI settings, CLAUDE.md, Claude Code connection) and show how to fix problems |
171
+ | `donelog mcp` | Start the MCP server (Claude Code runs this) |
172
+
173
+ Status is one of `todo`, `in_progress`, `done` (or `all` for filters). IDs look like `T-0001`; `1` also works.
174
+
175
+ ### JSON output for scripts and editors
176
+
177
+ Add `--json` to `init`, `add`, `list`, `search`, `show`, `done`, `status`, `edit`, `delete`, `ask`, `doctor` or `export -o FILE` to get exactly one line of JSON. The VS Code extension uses this.
178
+
179
+ ```json
180
+ {"ok": true, "data": {"count": 1, "truncated": false, "tasks": [{"display_id": "T-0001", "title": "...", "status": "done"}]}}
181
+ {"ok": false, "error": {"code": "not_initialized", "message": "..."}}
182
+ ```
183
+
184
+ Error codes: `not_initialized`, `not_found`, `invalid`, `config`, `ask_failed`, `database`, `io`, `conflict`. The exit code is 1 when `ok` is false. With `--json`, `init` never asks questions: add `--yes` to update `CLAUDE.md`. Likewise `delete --json` needs `--yes`. `status` returns `results` with one `{task, changed, before}` per ID (and `task`/`changed` for the first one); `edit` returns `{task, changed, before}`, where `before` is the task as it was (the VS Code extension uses it for Undo); `delete` returns `deleted`, the list of deleted tasks.
185
+
186
+ ## MCP tools
187
+
188
+ | Tool | What it does |
189
+ | --- | --- |
190
+ | `add_task` | Add a task (title, summary, status, files, tags). If a todo or in-progress task has the same title, that task is moved on instead (never back), keeping its summary |
191
+ | `update_task` | Change the status and/or summary |
192
+ | `search_tasks` | Search by keywords and status |
193
+ | `list_tasks` | List tasks, newest first |
194
+ | `get_task` | Get one task |
195
+ | `add_todo_tasks` | Add several todo tasks at once, for example from a requirements document. Titles that already exist are skipped |
196
+ | `list_unverified_tasks` | List done tasks that no AI has checked yet |
197
+ | `verify_task` | Record whether a done task is really finished. If it is not, the task goes back to in progress with a note |
198
+
199
+ ### Planning and checking
200
+
201
+ - **From a requirements document to tasks.** Give Claude Code your requirements document and ask for tasks. It shows the list first, and after you agree, it registers every item as a todo task.
202
+ - **Checking done tasks.** Before its first change in a session, Claude Code checks the done tasks that nobody has checked yet. A task that is really finished is marked *verified*. A task that is not finished goes back to *in progress* with a note, and Claude Code asks you before it fixes anything.
203
+
204
+ ## Data and privacy
205
+
206
+ - Tasks are stored in `.donelog/donelog.db` (SQLite) inside your project. There is no telemetry.
207
+ - Everything except `donelog ask` works offline and sends nothing.
208
+ - **`donelog ask` sends your question and up to 100 tasks (titles, summaries, file names, tags) to Claude**, through Claude Code or the Anthropic API, depending on the backend.
209
+ - `donelog init` adds `.donelog/` to `.gitignore`. To share tasks with your team, commit an export instead: `donelog export --format md -o DONELOG.md`.
210
+
211
+ ## Development
212
+
213
+ ```sh
214
+ uv sync --all-extras # install dependencies (including the optional anthropic package)
215
+ uv run pytest # run the tests
216
+ uv run ruff check . # lint
217
+ uv run ruff format . # format
218
+ ```
219
+
220
+ ## Contributing
221
+
222
+ Bug reports and ideas are welcome. See [CONTRIBUTING.md](https://github.com/pham2006-ux/donelog/blob/main/CONTRIBUTING.md). Changes are listed in [CHANGELOG.md](https://github.com/pham2006-ux/donelog/blob/main/CHANGELOG.md).
223
+
224
+ ## License
225
+
226
+ [MIT](https://github.com/pham2006-ux/donelog/blob/main/LICENSE)
@@ -0,0 +1,68 @@
1
+ [project]
2
+ name = "donelog"
3
+ version = "0.1.0"
4
+ description = "Automatically record what your AI coding agent did as tasks, and search them later."
5
+ readme = "README.md"
6
+ license = "MIT"
7
+ license-files = ["LICENSE"]
8
+ requires-python = ">=3.11"
9
+ classifiers = [
10
+ "Development Status :: 2 - Pre-Alpha",
11
+ "Environment :: Console",
12
+ "Intended Audience :: Developers",
13
+ "Operating System :: OS Independent",
14
+ "Programming Language :: Python :: 3",
15
+ "Programming Language :: Python :: 3.11",
16
+ "Programming Language :: Python :: 3.12",
17
+ "Programming Language :: Python :: 3.13",
18
+ "Programming Language :: Python :: 3.14",
19
+ "Topic :: Software Development",
20
+ ]
21
+ dependencies = [
22
+ "mcp>=2.3.0",
23
+ "typer>=0.29.3",
24
+ "typing-extensions>=4.12",
25
+ ]
26
+
27
+ [[project.authors]]
28
+ name = "pham2006-ux"
29
+
30
+ [project.urls]
31
+ Homepage = "https://github.com/pham2006-ux/donelog"
32
+ Documentation = "https://github.com/pham2006-ux/donelog/blob/main/docs/cli.md"
33
+ Issues = "https://github.com/pham2006-ux/donelog/issues"
34
+ Changelog = "https://github.com/pham2006-ux/donelog/blob/main/CHANGELOG.md"
35
+
36
+ [project.scripts]
37
+ donelog = "donelog.cli:run"
38
+
39
+ [project.optional-dependencies]
40
+ api = ["anthropic>=2.16.0"]
41
+
42
+ [build-system]
43
+ requires = ["uv_build>=0.13.12,<0.14.0"]
44
+ build-backend = "uv_build"
45
+
46
+ [tool.pytest.ini_options]
47
+ testpaths = ["tests"]
48
+ addopts = ["--strict-markers"]
49
+
50
+ [tool.ruff]
51
+ line-length = 100
52
+ target-version = "py311"
53
+
54
+ [tool.ruff.lint]
55
+ select = [
56
+ "E",
57
+ "F",
58
+ "W",
59
+ "I",
60
+ "UP",
61
+ "B",
62
+ ]
63
+
64
+ [dependency-groups]
65
+ dev = [
66
+ "pytest>=9.2.0",
67
+ "ruff>=0.17.6",
68
+ ]
@@ -0,0 +1,68 @@
1
+ [project]
2
+ name = "donelog"
3
+ version = "0.1.0"
4
+ description = "Automatically record what your AI coding agent did as tasks, and search them later."
5
+ readme = "README.md"
6
+ license = "MIT"
7
+ license-files = ["LICENSE"]
8
+ authors = [{ name = "pham2006-ux" }]
9
+ requires-python = ">=3.11"
10
+ classifiers = [
11
+ "Development Status :: 2 - Pre-Alpha",
12
+ "Environment :: Console",
13
+ "Intended Audience :: Developers",
14
+ "Operating System :: OS Independent",
15
+ "Programming Language :: Python :: 3",
16
+ "Programming Language :: Python :: 3.11",
17
+ "Programming Language :: Python :: 3.12",
18
+ "Programming Language :: Python :: 3.13",
19
+ "Programming Language :: Python :: 3.14",
20
+ "Topic :: Software Development",
21
+ ]
22
+ dependencies = [
23
+ "mcp>=2.3.0",
24
+ "typer>=0.29.3",
25
+ "typing-extensions>=4.12",
26
+ ]
27
+
28
+ [project.urls]
29
+ Homepage = "https://github.com/pham2006-ux/donelog"
30
+ Documentation = "https://github.com/pham2006-ux/donelog/blob/main/docs/cli.md"
31
+ Issues = "https://github.com/pham2006-ux/donelog/issues"
32
+ Changelog = "https://github.com/pham2006-ux/donelog/blob/main/CHANGELOG.md"
33
+
34
+ [project.scripts]
35
+ donelog = "donelog.cli:run"
36
+
37
+ [project.optional-dependencies]
38
+ api = [
39
+ "anthropic>=2.16.0",
40
+ ]
41
+
42
+ [build-system]
43
+ requires = ["uv_build>=0.13.12,<0.14.0"]
44
+ build-backend = "uv_build"
45
+
46
+ [tool.pytest.ini_options]
47
+ testpaths = ["tests"]
48
+ addopts = ["--strict-markers"]
49
+
50
+ [tool.ruff]
51
+ line-length = 100
52
+ target-version = "py311"
53
+
54
+ [tool.ruff.lint]
55
+ select = [
56
+ "E", # pycodestyle errors
57
+ "F", # pyflakes
58
+ "W", # pycodestyle warnings
59
+ "I", # isort
60
+ "UP", # pyupgrade
61
+ "B", # flake8-bugbear
62
+ ]
63
+
64
+ [dependency-groups]
65
+ dev = [
66
+ "pytest>=9.2.0",
67
+ "ruff>=0.17.6",
68
+ ]
@@ -0,0 +1,5 @@
1
+ """donelog: record what your AI coding agent did as tasks, and search them later."""
2
+
3
+ # Written here instead of read with importlib.metadata: that lookup took about
4
+ # 0.2 s on every command. tests/test_version.py checks it matches pyproject.toml.
5
+ __version__ = "0.1.0"
@@ -0,0 +1,5 @@
1
+ """Allow running donelog with `python -m donelog`."""
2
+
3
+ from donelog.cli import run
4
+
5
+ run()