@hasna/todos 0.11.46 → 0.11.47

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.
Files changed (258) hide show
  1. package/README.md +11 -1219
  2. package/dashboard/dist/assets/{index-CVF1vn7Z.js → index-B-w1tUlm.js} +23 -23
  3. package/dashboard/dist/assets/index-BXQ39iMX.css +1 -0
  4. package/dashboard/dist/index.html +2 -2
  5. package/dist/cli/commands/agent-commands.d.ts.map +1 -1
  6. package/dist/cli/commands/cloud-commands.d.ts +3 -0
  7. package/dist/cli/commands/cloud-commands.d.ts.map +1 -0
  8. package/dist/cli/commands/config-serve-commands.d.ts.map +1 -1
  9. package/dist/cli/commands/machines.d.ts.map +1 -1
  10. package/dist/cli/commands/mcp-hooks-commands.d.ts.map +1 -1
  11. package/dist/cli/commands/plan-template-commands.d.ts.map +1 -1
  12. package/dist/cli/commands/project-commands.d.ts.map +1 -1
  13. package/dist/cli/commands/query-commands.d.ts.map +1 -1
  14. package/dist/cli/commands/task-commands.d.ts.map +1 -1
  15. package/dist/cli/components/Dashboard.d.ts.map +1 -1
  16. package/dist/cli/index.js +28793 -46092
  17. package/dist/db/agent-metrics.d.ts +0 -101
  18. package/dist/db/agent-metrics.d.ts.map +1 -1
  19. package/dist/db/agent-names.d.ts +3 -0
  20. package/dist/db/agent-names.d.ts.map +1 -1
  21. package/dist/db/builtin-templates.d.ts +0 -17
  22. package/dist/db/builtin-templates.d.ts.map +1 -1
  23. package/dist/db/comments.d.ts.map +1 -1
  24. package/dist/db/database.d.ts +1 -2
  25. package/dist/db/database.d.ts.map +1 -1
  26. package/dist/db/handoffs.d.ts +1 -52
  27. package/dist/db/handoffs.d.ts.map +1 -1
  28. package/dist/db/machines.d.ts +6 -19
  29. package/dist/db/machines.d.ts.map +1 -1
  30. package/dist/db/migrations.d.ts.map +1 -1
  31. package/dist/db/pg-migrate.d.ts +14 -0
  32. package/dist/db/pg-migrate.d.ts.map +1 -0
  33. package/dist/db/pg-migrations.d.ts +8 -0
  34. package/dist/db/pg-migrations.d.ts.map +1 -0
  35. package/dist/db/plans.d.ts.map +1 -1
  36. package/dist/db/schema.d.ts.map +1 -1
  37. package/dist/db/task-commits.d.ts +0 -51
  38. package/dist/db/task-commits.d.ts.map +1 -1
  39. package/dist/db/task-crud.d.ts.map +1 -1
  40. package/dist/db/task-lifecycle.d.ts +1 -16
  41. package/dist/db/task-lifecycle.d.ts.map +1 -1
  42. package/dist/db/task-relations.d.ts +9 -69
  43. package/dist/db/task-relations.d.ts.map +1 -1
  44. package/dist/db/tasks.d.ts +4 -8
  45. package/dist/db/tasks.d.ts.map +1 -1
  46. package/dist/index.d.ts +14 -133
  47. package/dist/index.d.ts.map +1 -1
  48. package/dist/index.js +14567 -25774
  49. package/dist/lib/auto-assign.d.ts +5 -3
  50. package/dist/lib/auto-assign.d.ts.map +1 -1
  51. package/dist/lib/config.d.ts +0 -355
  52. package/dist/lib/config.d.ts.map +1 -1
  53. package/dist/lib/extract.d.ts +0 -57
  54. package/dist/lib/extract.d.ts.map +1 -1
  55. package/dist/lib/logger.d.ts +12 -6
  56. package/dist/lib/logger.d.ts.map +1 -1
  57. package/dist/mcp/index.d.ts.map +1 -1
  58. package/dist/mcp/index.js +22566 -30764
  59. package/dist/mcp/token-utils.d.ts +2 -2
  60. package/dist/mcp/token-utils.d.ts.map +1 -1
  61. package/dist/mcp/tools/cloud.d.ts +12 -0
  62. package/dist/mcp/tools/cloud.d.ts.map +1 -0
  63. package/dist/mcp/tools/code-tools.d.ts.map +1 -1
  64. package/dist/mcp/tools/machines.d.ts.map +1 -1
  65. package/dist/mcp/tools/task-adv-tools.d.ts.map +1 -1
  66. package/dist/mcp/tools/task-auto-tools.d.ts.map +1 -1
  67. package/dist/mcp/tools/task-crud.d.ts.map +1 -1
  68. package/dist/mcp/tools/task-meta-tools.d.ts.map +1 -1
  69. package/dist/mcp/tools/task-project-tools.d.ts.map +1 -1
  70. package/dist/mcp/tools/task-rel-tools.d.ts.map +1 -1
  71. package/dist/mcp/tools/task-resources.d.ts.map +1 -1
  72. package/dist/mcp/tools/task-workflow-tools.d.ts.map +1 -1
  73. package/dist/mcp/tools/templates.d.ts.map +1 -1
  74. package/dist/sdk/client.d.ts +1 -1
  75. package/dist/sdk/client.d.ts.map +1 -1
  76. package/dist/sdk/types.d.ts +1 -26
  77. package/dist/sdk/types.d.ts.map +1 -1
  78. package/dist/server/index.js +334 -1874
  79. package/dist/server/routes.d.ts.map +1 -1
  80. package/dist/types/index.d.ts +1 -216
  81. package/dist/types/index.d.ts.map +1 -1
  82. package/package.json +6 -30
  83. package/dashboard/dist/assets/index-DJm6m6Yy.css +0 -1
  84. package/dist/capabilities.d.ts +0 -32
  85. package/dist/capabilities.d.ts.map +0 -1
  86. package/dist/cli/commands/agent-reliability-commands.d.ts +0 -3
  87. package/dist/cli/commands/agent-reliability-commands.d.ts.map +0 -1
  88. package/dist/cli/commands/audit-ledger-commands.d.ts +0 -3
  89. package/dist/cli/commands/audit-ledger-commands.d.ts.map +0 -1
  90. package/dist/cli/commands/capacity-commands.d.ts +0 -3
  91. package/dist/cli/commands/capacity-commands.d.ts.map +0 -1
  92. package/dist/cli/commands/environment-snapshots.d.ts +0 -3
  93. package/dist/cli/commands/environment-snapshots.d.ts.map +0 -1
  94. package/dist/cli/commands/help-commands.d.ts +0 -3
  95. package/dist/cli/commands/help-commands.d.ts.map +0 -1
  96. package/dist/cli/commands/knowledge-commands.d.ts +0 -3
  97. package/dist/cli/commands/knowledge-commands.d.ts.map +0 -1
  98. package/dist/cli/commands/local-backup-commands.d.ts +0 -3
  99. package/dist/cli/commands/local-backup-commands.d.ts.map +0 -1
  100. package/dist/cli/commands/local-snapshot-commands.d.ts +0 -3
  101. package/dist/cli/commands/local-snapshot-commands.d.ts.map +0 -1
  102. package/dist/cli/commands/onboarding-commands.d.ts +0 -3
  103. package/dist/cli/commands/onboarding-commands.d.ts.map +0 -1
  104. package/dist/cli/commands/release-compatibility-commands.d.ts +0 -3
  105. package/dist/cli/commands/release-compatibility-commands.d.ts.map +0 -1
  106. package/dist/cli/commands/retrospective-commands.d.ts +0 -3
  107. package/dist/cli/commands/retrospective-commands.d.ts.map +0 -1
  108. package/dist/cli/commands/review-queue-commands.d.ts +0 -3
  109. package/dist/cli/commands/review-queue-commands.d.ts.map +0 -1
  110. package/dist/cli/commands/risk-commands.d.ts +0 -3
  111. package/dist/cli/commands/risk-commands.d.ts.map +0 -1
  112. package/dist/cli/commands/roadmap-commands.d.ts +0 -3
  113. package/dist/cli/commands/roadmap-commands.d.ts.map +0 -1
  114. package/dist/cli/commands/scale-hardening-commands.d.ts +0 -3
  115. package/dist/cli/commands/scale-hardening-commands.d.ts.map +0 -1
  116. package/dist/cli/commands/sdk-fixture-commands.d.ts +0 -3
  117. package/dist/cli/commands/sdk-fixture-commands.d.ts.map +0 -1
  118. package/dist/cli/commands/usage-ledger-commands.d.ts +0 -3
  119. package/dist/cli/commands/usage-ledger-commands.d.ts.map +0 -1
  120. package/dist/cli-mcp-parity.d.ts +0 -41
  121. package/dist/cli-mcp-parity.d.ts.map +0 -1
  122. package/dist/contracts.d.ts +0 -87
  123. package/dist/contracts.d.ts.map +0 -1
  124. package/dist/contracts.js +0 -18172
  125. package/dist/db/boards.d.ts +0 -56
  126. package/dist/db/boards.d.ts.map +0 -1
  127. package/dist/db/calendar.d.ts +0 -52
  128. package/dist/db/calendar.d.ts.map +0 -1
  129. package/dist/db/inbox.d.ts +0 -47
  130. package/dist/db/inbox.d.ts.map +0 -1
  131. package/dist/db/project-knowledge.d.ts +0 -88
  132. package/dist/db/project-knowledge.d.ts.map +0 -1
  133. package/dist/db/project-risks.d.ts +0 -139
  134. package/dist/db/project-risks.d.ts.map +0 -1
  135. package/dist/db/retrospectives.d.ts +0 -98
  136. package/dist/db/retrospectives.d.ts.map +0 -1
  137. package/dist/db/task-runs.d.ts +0 -133
  138. package/dist/db/task-runs.d.ts.map +0 -1
  139. package/dist/json-contracts.d.ts +0 -56
  140. package/dist/json-contracts.d.ts.map +0 -1
  141. package/dist/lib/activity-timeline.d.ts +0 -43
  142. package/dist/lib/activity-timeline.d.ts.map +0 -1
  143. package/dist/lib/agent-replay-simulator.d.ts +0 -66
  144. package/dist/lib/agent-replay-simulator.d.ts.map +0 -1
  145. package/dist/lib/agent-run-dispatcher.d.ts +0 -62
  146. package/dist/lib/agent-run-dispatcher.d.ts.map +0 -1
  147. package/dist/lib/approval-gates.d.ts +0 -52
  148. package/dist/lib/approval-gates.d.ts.map +0 -1
  149. package/dist/lib/artifact-store.d.ts +0 -68
  150. package/dist/lib/artifact-store.d.ts.map +0 -1
  151. package/dist/lib/audit-ledger.d.ts +0 -59
  152. package/dist/lib/audit-ledger.d.ts.map +0 -1
  153. package/dist/lib/branch-work-plans.d.ts +0 -46
  154. package/dist/lib/branch-work-plans.d.ts.map +0 -1
  155. package/dist/lib/capacity-forecasts.d.ts +0 -70
  156. package/dist/lib/capacity-forecasts.d.ts.map +0 -1
  157. package/dist/lib/cli-help.d.ts +0 -38
  158. package/dist/lib/cli-help.d.ts.map +0 -1
  159. package/dist/lib/context-packs.d.ts +0 -163
  160. package/dist/lib/context-packs.d.ts.map +0 -1
  161. package/dist/lib/doctor.d.ts +0 -46
  162. package/dist/lib/doctor.d.ts.map +0 -1
  163. package/dist/lib/environment-snapshots.d.ts +0 -111
  164. package/dist/lib/environment-snapshots.d.ts.map +0 -1
  165. package/dist/lib/event-hooks.d.ts +0 -58
  166. package/dist/lib/event-hooks.d.ts.map +0 -1
  167. package/dist/lib/external-issue-importers.d.ts +0 -60
  168. package/dist/lib/external-issue-importers.d.ts.map +0 -1
  169. package/dist/lib/local-backups.d.ts +0 -129
  170. package/dist/lib/local-backups.d.ts.map +0 -1
  171. package/dist/lib/local-bridge.d.ts +0 -81
  172. package/dist/lib/local-bridge.d.ts.map +0 -1
  173. package/dist/lib/local-encryption.d.ts +0 -94
  174. package/dist/lib/local-encryption.d.ts.map +0 -1
  175. package/dist/lib/local-extensions.d.ts +0 -92
  176. package/dist/lib/local-extensions.d.ts.map +0 -1
  177. package/dist/lib/local-fields.d.ts +0 -33
  178. package/dist/lib/local-fields.d.ts.map +0 -1
  179. package/dist/lib/local-notifications.d.ts +0 -55
  180. package/dist/lib/local-notifications.d.ts.map +0 -1
  181. package/dist/lib/local-reports.d.ts +0 -149
  182. package/dist/lib/local-reports.d.ts.map +0 -1
  183. package/dist/lib/local-snapshots.d.ts +0 -66
  184. package/dist/lib/local-snapshots.d.ts.map +0 -1
  185. package/dist/lib/mention-resolver.d.ts +0 -43
  186. package/dist/lib/mention-resolver.d.ts.map +0 -1
  187. package/dist/lib/natural-language-intake.d.ts +0 -56
  188. package/dist/lib/natural-language-intake.d.ts.map +0 -1
  189. package/dist/lib/onboarding-fixtures.d.ts +0 -31
  190. package/dist/lib/onboarding-fixtures.d.ts.map +0 -1
  191. package/dist/lib/policy-packs.d.ts +0 -87
  192. package/dist/lib/policy-packs.d.ts.map +0 -1
  193. package/dist/lib/project-bootstrap.d.ts +0 -35
  194. package/dist/lib/project-bootstrap.d.ts.map +0 -1
  195. package/dist/lib/public-release-gate.d.ts +0 -57
  196. package/dist/lib/public-release-gate.d.ts.map +0 -1
  197. package/dist/lib/redaction.d.ts +0 -12
  198. package/dist/lib/redaction.d.ts.map +0 -1
  199. package/dist/lib/release-compatibility.d.ts +0 -59
  200. package/dist/lib/release-compatibility.d.ts.map +0 -1
  201. package/dist/lib/release-notes.d.ts +0 -81
  202. package/dist/lib/release-notes.d.ts.map +0 -1
  203. package/dist/lib/retention-cleanup.d.ts +0 -63
  204. package/dist/lib/retention-cleanup.d.ts.map +0 -1
  205. package/dist/lib/review-queues.d.ts +0 -98
  206. package/dist/lib/review-queues.d.ts.map +0 -1
  207. package/dist/lib/roadmaps.d.ts +0 -133
  208. package/dist/lib/roadmaps.d.ts.map +0 -1
  209. package/dist/lib/runner-sandbox.d.ts +0 -50
  210. package/dist/lib/runner-sandbox.d.ts.map +0 -1
  211. package/dist/lib/saved-search-views.d.ts +0 -60
  212. package/dist/lib/saved-search-views.d.ts.map +0 -1
  213. package/dist/lib/scale-hardening.d.ts +0 -74
  214. package/dist/lib/scale-hardening.d.ts.map +0 -1
  215. package/dist/lib/sdk-integration-fixtures.d.ts +0 -65
  216. package/dist/lib/sdk-integration-fixtures.d.ts.map +0 -1
  217. package/dist/lib/task-contracts.d.ts +0 -75
  218. package/dist/lib/task-contracts.d.ts.map +0 -1
  219. package/dist/lib/task-dedupe.d.ts +0 -45
  220. package/dist/lib/task-dedupe.d.ts.map +0 -1
  221. package/dist/lib/terminal-notifications.d.ts +0 -53
  222. package/dist/lib/terminal-notifications.d.ts.map +0 -1
  223. package/dist/lib/todos-md.d.ts +0 -21
  224. package/dist/lib/todos-md.d.ts.map +0 -1
  225. package/dist/lib/tui-dashboard.d.ts +0 -49
  226. package/dist/lib/tui-dashboard.d.ts.map +0 -1
  227. package/dist/lib/usage-ledger.d.ts +0 -82
  228. package/dist/lib/usage-ledger.d.ts.map +0 -1
  229. package/dist/lib/verification-providers.d.ts +0 -54
  230. package/dist/lib/verification-providers.d.ts.map +0 -1
  231. package/dist/lib/workflow-prompts.d.ts +0 -38
  232. package/dist/lib/workflow-prompts.d.ts.map +0 -1
  233. package/dist/lib/workflow-states.d.ts +0 -70
  234. package/dist/lib/workflow-states.d.ts.map +0 -1
  235. package/dist/lib/workspace-trust.d.ts +0 -38
  236. package/dist/lib/workspace-trust.d.ts.map +0 -1
  237. package/dist/mcp/tools/environment-snapshots.d.ts +0 -8
  238. package/dist/mcp/tools/environment-snapshots.d.ts.map +0 -1
  239. package/dist/mcp/tools/workflow-prompts.d.ts +0 -3
  240. package/dist/mcp/tools/workflow-prompts.d.ts.map +0 -1
  241. package/dist/mcp.d.ts +0 -42
  242. package/dist/mcp.d.ts.map +0 -1
  243. package/dist/mcp.js +0 -554
  244. package/dist/registry.d.ts +0 -35
  245. package/dist/registry.d.ts.map +0 -1
  246. package/dist/registry.js +0 -18345
  247. package/dist/sdk/index.js +0 -635
  248. package/dist/storage/index.d.ts +0 -4
  249. package/dist/storage/index.d.ts.map +0 -1
  250. package/dist/storage/interfaces.d.ts +0 -185
  251. package/dist/storage/interfaces.d.ts.map +0 -1
  252. package/dist/storage/local-sqlite.d.ts +0 -7
  253. package/dist/storage/local-sqlite.d.ts.map +0 -1
  254. package/dist/storage.d.ts +0 -4
  255. package/dist/storage.d.ts.map +0 -1
  256. package/dist/storage.js +0 -8380
  257. package/dist/test/no-network.d.ts +0 -7
  258. package/dist/test/no-network.d.ts.map +0 -1
package/README.md CHANGED
@@ -8,7 +8,7 @@ Universal task management for AI coding agents - CLI + MCP server + interactive
8
8
  ## Install
9
9
 
10
10
  ```bash
11
- bun install -g @hasna/todos
11
+ npm install -g @hasna/todos
12
12
  ```
13
13
 
14
14
  ## CLI Usage
@@ -17,1204 +17,6 @@ bun install -g @hasna/todos
17
17
  todos --help
18
18
  ```
19
19
 
20
- Generate shell completions directly from the registered CLI command tree:
21
-
22
- ```bash
23
- todos completions bash > ~/.local/share/bash-completion/completions/todos
24
- todos completions zsh > ~/.zsh/completions/_todos
25
- todos completions fish > ~/.config/fish/completions/todos.fish
26
- ```
27
-
28
- Print the local CLI manual when you need install/update commands, examples,
29
- JSON output contracts, error behavior, and the command catalog:
30
-
31
- ```bash
32
- todos manual
33
- todos manual --json
34
- ```
35
-
36
- ## Terminal Dashboard
37
-
38
- `todos dashboard` launches a local Ink TUI with keyboard tabs for overview,
39
- projects, tasks, plans, runs, dependencies, inbox, and search. It reads only the
40
- local SQLite database and can also print deterministic snapshots for scripts or
41
- tests:
42
-
43
- ```bash
44
- todos dashboard
45
- todos dashboard --snapshot --view tasks --search "release" --json
46
- ```
47
-
48
- Keyboard hints are shown in the interface: `h`/left and `l`/right move between
49
- tabs, `1`-`8` jumps to a tab, `/` opens local search, `r` refreshes, and `q`
50
- quits.
51
-
52
- ## Local Project Bootstrap
53
-
54
- Bootstrap discovers the current local workspace, registers a project identity,
55
- creates the default task list, records local source metadata, and works for
56
- monorepo package roots without contacting hosted services:
57
-
58
- ```bash
59
- todos project-bootstrap .
60
- todos project-bootstrap packages/cli --name todos-cli --task-list todos-cli
61
- todos project-bootstrap . --dry-run --json
62
- ```
63
-
64
- MCP clients can use `bootstrap_project` for the same local-only workflow. The
65
- command is idempotent, so running it again refreshes machine-local paths without
66
- duplicating projects, task lists, or source records.
67
-
68
- ## Local Machine Topology
69
-
70
- Machine registry state stays in local SQLite. Machines can record identity,
71
- last-seen heartbeats, workspace paths, git roots, and user-provided Tailscale
72
- or LAN addresses without probing the network:
73
-
74
- ```bash
75
- todos machines register spark01 --ssh hasna@spark01 --tailscale-name spark01.tailnet --tailscale-ip 100.64.0.10 --lan-address 192.168.8.10 --workspace ~/workspace
76
- todos machines heartbeat spark01 --workspace ~/workspace
77
- todos machines topology --json
78
- todos projects-path set <project-id> ~/workspace/my-project
79
- ```
80
-
81
- `todos machines topology` reports stale machines, missing local path overrides,
82
- missing local paths, and projects whose machine-local paths differ across
83
- registered machines. MCP clients can use `machines_register`,
84
- `machines_heartbeat`, `machines_topology`, and `machines_list` for the same
85
- offline diagnostics.
86
-
87
- ## Local Workspace Trust
88
-
89
- Workspace trust profiles live in `~/.hasna/todos/config.json` and keep agent
90
- permissions local. Profiles declare trusted roots, command allowlists and
91
- denylists, tool permissions, write scopes, environment-key redaction patterns,
92
- and whether unsafe checks should require an explicit prompt:
93
-
94
- ```bash
95
- todos trust add . --preset standard --allow-command bun,git,todos --write-scope src,tests --redact-env API_KEY,TOKEN
96
- todos trust status .
97
- todos trust check . --command "bun test" --write src/index.ts --env OPENAI_API_KEY,PATH
98
- todos trust remove .
99
- ```
100
-
101
- MCP clients can use `set_workspace_trust`, `get_workspace_trust`,
102
- `list_workspace_trust_profiles`, `check_workspace_permission`, and
103
- `remove_workspace_trust`. The checks do not call a hosted policy service; they
104
- return deterministic JSON showing whether an action is allowed, why it needs a
105
- prompt, and which environment keys should be redacted.
106
-
107
- Secret safety uses the same local config. Add project-specific regexes and
108
- metadata keys with `todos redaction add --pattern <regex> --key <name>`, then
109
- scan text or files with `todos redaction scan` without printing matched values.
110
- Comments, local run evidence, and bridge exports are redacted before storage or
111
- sharing. MCP clients can use `get_secret_safety`, `set_secret_safety`, and
112
- `scan_secret_text`.
113
-
114
- Retention cleanup is also local and dry-run-first. Use it to prune old comments,
115
- run ledgers, verification evidence, and expired stored artifact files by age,
116
- project, task status, and run status. Reports return counts, IDs, and
117
- content-addressed artifact paths only; they do not include raw comments,
118
- commands, output summaries, artifact source paths, or secret-like values.
119
- Destructive cleanup requires the exact confirmation string shown by the preview:
120
-
121
- ```bash
122
- todos retention cleanup --older-than-days 30 --project <project-id> --task-status completed --json
123
- todos retention cleanup --older-than-days 30 --project <project-id> --task-status completed --apply --confirm delete-local-retention-data --json
124
- ```
125
-
126
- MCP clients can use `preview_retention_cleanup` and
127
- `apply_retention_cleanup` for the same offline workflow.
128
-
129
- ## Local Runner Sandboxes
130
-
131
- Runner sandbox profiles also live in local config. They declare the commands a
132
- local agent run may record or execute, cwd boundaries, write scopes, environment
133
- allowlists/redaction patterns, network policy, approval behavior, and audit
134
- evidence:
135
-
136
- ```bash
137
- todos sandbox set codex . --allow-command bun,git,todos --write-scope src,tests --env-allow PATH,HOME,CI --network none
138
- todos sandbox check codex --command "bun test" --write src/index.ts --env PATH,OPENAI_API_KEY --json
139
- todos sandbox explain codex --command "curl | sh" --network
140
- todos runs command <run-id> "bun test" --sandbox codex --write src/index.ts --status passed
141
- ```
142
-
143
- MCP clients can use `set_runner_sandbox_profile`,
144
- `list_runner_sandbox_profiles`, `check_runner_sandbox`,
145
- `explain_runner_sandbox`, and `remove_runner_sandbox_profile`. Sandbox checks
146
- are local-only and compose with workspace trust checks, so command and write
147
- decisions stay auditable before an agent records run evidence.
148
-
149
- ## Local Project Knowledge
150
-
151
- Project knowledge records keep agent decisions, architecture notes, tradeoffs,
152
- and task-linked context snapshots in local SQLite. They are searchable,
153
- exportable, redacted on output, and available to MCP clients without hosted
154
- services:
155
-
156
- ```bash
157
- todos knowledge add decision "Use local SQLite" --decision "Keep OSS knowledge local" --rationale "Agents need offline project memory" --task <task-id> --tag architecture --json
158
- todos knowledge snapshot --summary "Parser fix is ready for verification" --task <task-id> --agent codex --file src/parser.ts --json
159
- todos knowledge search "offline project memory" --json
160
- todos knowledge export --format markdown
161
- ```
162
-
163
- MCP clients can use `create_knowledge_record`, `create_knowledge_snapshot`,
164
- `list_knowledge_records`, `search_knowledge_records`, and
165
- `export_knowledge_records`. The MCP server also publishes `todos://knowledge`
166
- and `todos://knowledge/decisions` resources for agent context refreshes.
167
-
168
- ## Local Extension Registry
169
-
170
- Extensions are installed from local manifests, directories with
171
- `todos.extension.json`, or offline JSON bundles. The registry validates the
172
- manifest shape, checks `@hasna/todos` compatibility ranges, records requested
173
- permissions, supports custom commands, MCP tool declarations, templates, hooks,
174
- and renderers, runs CLI/MCP compatibility checks, dry-runs declared commands and
175
- renderer commands through the local runner sandbox, verifies optional source
176
- checksums or detached signatures, and stores trust state in local config only:
177
-
178
- ```bash
179
- todos extensions discover . --json
180
- todos extensions inspect ./todos.extension.json --json
181
- todos extensions compat ./todos.extension.json --json
182
- todos extensions install ./todos.extension.json --checksum sha256:... --trust --json
183
- todos extensions verify ./bundle.todos-extension.json --signature <signature> --public-key "$PUBLIC_KEY"
184
- todos extensions list
185
- todos extensions remove my-extension
186
- ```
187
-
188
- Unsigned extensions are allowed but installed as local records with warnings.
189
- Without `--trust`, installs remain in `needs_review` so agents can discover
190
- custom commands, MCP tools, hooks, and permissions without treating them as
191
- approved. MCP clients can use `inspect_local_extension`,
192
- `test_local_extension_compatibility`, `install_local_extension`,
193
- `list_local_extensions`, and `remove_local_extension` for the same offline
194
- workflow.
195
-
196
- ## Local Workflow Prompts
197
-
198
- The package includes bundled MCP prompts for common agent workflows:
199
- `goal_planning`, `task_claiming`, `review`, `verification`, `handoff`,
200
- `release_prep`, `import_triage`, and `incident_response`. They are static,
201
- local-only prompt resources that can be listed or rendered without a model call:
202
-
203
- ```bash
204
- todos workflows list
205
- todos workflows show goal_planning --objective "Ship release" --task 1234abcd --json
206
- todos workflows export --format markdown
207
- ```
208
-
209
- MCP clients can discover the same catalog at `todos://workflow-prompts` and call
210
- the matching prompt by ID. Prompt output is deterministic and is intended for
211
- Codex, Claude Code, Takumi, and other agent-native clients that need reusable
212
- local guidance for planning, claiming, review, verification, handoff, release,
213
- triage, and incident workflows.
214
-
215
- Agent setup recipes for MCP registration, `/goal` planning, task
216
- claim/update/complete loops, evidence comments, and no-cloud verification live
217
- in [docs/agent-adapters.md](docs/agent-adapters.md).
218
-
219
- ## Local Policy Packs
220
-
221
- Policy packs are project-local done gates for agents. They validate task status,
222
- passed verification commands, prohibited commands, linked commits and pull
223
- requests, approvals, branch names, run ledgers, artifacts, changed paths, and
224
- minimum evidence counts from the local SQLite database and config only:
225
-
226
- ```bash
227
- todos policies set release . \
228
- --required-status completed \
229
- --required-command "bun test,bun run typecheck" \
230
- --prohibited-command "npm install -g,git reset --hard" \
231
- --require-passed-verification \
232
- --require-commit \
233
- --require-pr \
234
- --require-run \
235
- --require-artifact
236
- todos policies validate release <task-id> --json
237
- todos policies explain release <task-id>
238
- ```
239
-
240
- MCP clients can use `set_policy_pack`, `list_policy_packs`,
241
- `validate_policy_pack`, `explain_policy_pack`, and `remove_policy_pack`.
242
- Validation is a dry local read of recorded task evidence; it never calls a
243
- hosted enforcement service.
244
-
245
- ## Local Source TODO Index
246
-
247
- Source extraction scans local code for `TODO`, `FIXME`, `HACK`, `BUG`, `XXX`,
248
- and `NOTE` comments, respects `.gitignore` plus explicit excludes, records
249
- source files, line anchors, nearby symbols, and stable dedupe fingerprints, and
250
- can run as a finite local watcher:
251
-
252
- ```bash
253
- todos extract . --dry-run --index --json
254
- todos extract . --exclude fixtures/** --tags tech-debt
255
- todos extract-watch . --dry-run --max-runs 1 --json
256
- ```
257
-
258
- Created tasks are tagged with `extracted` and linked back to the source file.
259
- MCP clients can call `extract_todos` and `watch_source_todos` for the same
260
- offline workflow; no hosted code search, cloud sync, or telemetry is used.
261
-
262
- ## Local Editor Integrations
263
-
264
- Editor recipes live in `docs/editor-integrations.md` and
265
- `examples/editor-integrations/`. They include VS Code task definitions,
266
- JetBrains external tool recipes, Neovim Lua helpers, a shell statusline snippet,
267
- and a Bun task picker. Every example uses only `todos` CLI JSON output or MCP
268
- tool names, so editors can claim tasks, inspect local queues, build context
269
- packs, and link source files without importing private modules or hosted code.
270
-
271
- ## Task Contracts and Reviews
272
-
273
- Task contracts make acceptance criteria, required verification, expected
274
- artifacts, relevant files, risk, and review state machine-readable for agents:
275
-
276
- ```bash
277
- todos contracts set <task-id> \
278
- --criteria "Parser handles quotes;Parser rejects malformed checkboxes" \
279
- --verify "bun test src/parser.test.ts" \
280
- --artifact logs/parser.txt \
281
- --file src/parser.ts \
282
- --risk medium \
283
- --done "review approved" \
284
- --json
285
- todos contracts request-review <task-id> --requester codex --reviewer reviewer
286
- todos record-verification <task-id> "bun test src/parser.test.ts" --status passed --artifact logs/parser.txt
287
- todos contracts review <task-id> --state approved --reviewer reviewer
288
- todos contracts check <task-id> --json
289
- ```
290
-
291
- Contracts are stored in local task metadata, mirror acceptance criteria for
292
- context packs, and are checked only against local status, review state, and
293
- recorded verification evidence. MCP clients can use `set_task_contract`,
294
- `get_task_contract`, `request_task_review`, `record_task_review`, and
295
- `check_task_done_contract`.
296
-
297
- ## Local Approval Gates
298
-
299
- Approval gates are manual checkpoints stored in the local task database. Agents
300
- can require, approve, reject, expire, list, and check gates before risky plan or
301
- run work. Blocked checks exit nonzero, including JSON mode, so local automation
302
- cannot silently bypass a missing or denied checkpoint:
303
-
304
- ```bash
305
- todos approvals require <task-id> deploy --requester codex --reviewer reviewer --run <run-id> --reason "production-affecting action"
306
- todos approvals check <task-id> deploy --json
307
- todos approvals approve <task-id> deploy --reviewer reviewer --note "safe to proceed"
308
- todos approvals list <task-id> --json
309
- ```
310
-
311
- MCP clients can use `require_approval_gate`, `approve_approval_gate`,
312
- `reject_approval_gate`, `expire_approval_gate`, `check_approval_gate`, and
313
- `list_approval_gates`. Gate events are written to task audit history and, when
314
- a run is linked, to the local run ledger.
315
-
316
- ## Local Review Queues
317
-
318
- Review queues turn local task review into an explicit agent workflow: request a
319
- review, route it to a queue, claim it, return it with changes, reopen it, or
320
- approve it. Routing rules live in local config and can match tags, priorities,
321
- and projects without hosted users, orgs, or cloud services:
322
-
323
- ```bash
324
- todos reviews rules set security --queue security-review --reviewers reviewer --tags security --priorities high
325
- todos reviews request <task-id> --requester codex --reason "security-sensitive change"
326
- todos reviews claim <task-id> --reviewer reviewer
327
- todos reviews return <task-id> --reviewer reviewer --changes "Add tests;Record verification"
328
- todos reviews approve <task-id> --reviewer reviewer
329
- todos reviews list --queue security-review --json
330
- ```
331
-
332
- MCP clients can use `list_review_queue`, `request_review_queue`,
333
- `claim_review_item`, `return_review_item`, `approve_review_item`,
334
- `reopen_review_item`, `set_review_routing_rule`, `list_review_routing_rules`,
335
- and `remove_review_routing_rule`. Queue transitions are written to audit
336
- history and emitted to local event hooks as `review.requested`,
337
- `review.claimed`, `review.returned`, `review.approved`, and `review.reopened`.
338
-
339
- ## Local Roadmaps
340
-
341
- Roadmaps group local tasks, plans, runs, milestones, and release labels into a
342
- portable planning view. They live in local config, summarize dependency
343
- readiness from the task graph, and export deterministic JSON or Markdown
344
- bundles:
345
-
346
- ```bash
347
- todos roadmaps create "Public package launch" --release v1 --json
348
- todos roadmaps milestones add <roadmap-id> "Docs and examples" --tasks <task-id> --due 2026-06-01 --release v1 --json
349
- todos roadmaps releases set <roadmap-id> v1 --milestones <milestone-id> --release-version 1.0.0 --json
350
- todos roadmaps show <roadmap-id> --format markdown
351
- todos roadmaps export <roadmap-id> --out roadmap.json
352
- todos roadmaps import roadmap.json --apply --json
353
- ```
354
-
355
- MCP clients can use `create_roadmap`, `list_roadmaps`,
356
- `get_roadmap_summary`, `update_roadmap`, `delete_roadmap`,
357
- `create_milestone`, `update_milestone`, `delete_milestone`,
358
- `set_release_group`, `export_roadmap`, and `import_roadmap`.
359
-
360
- ## Local Event Hooks
361
-
362
- Event hooks are local subscriptions for task, plan, run, approval, import, and
363
- export events. They can append redacted JSONL to a file, deliver to a Unix
364
- socket, expose a stdout test payload, or run a sandbox-checked local script with
365
- retry/backoff and SHA-256 integrity metadata:
366
-
367
- ```bash
368
- todos event-hooks set audit --event task.completed,run.failed --target file --file .todos/events.jsonl
369
- todos event-hooks set notify --event task.blocked --target script --command "notify-send \"$TODOS_EVENT_TYPE\"" --sandbox codex --attempts 2
370
- todos event-hooks test audit --event task.completed --payload '{"id":"demo"}' --json
371
- todos event-hooks list --json
372
- ```
373
-
374
- MCP clients can use `set_local_event_hook`, `list_local_event_hooks`,
375
- `test_local_event_hook`, and `remove_local_event_hook`. Hook delivery is
376
- local-only; it does not call hosted webhooks or cloud automation services.
377
-
378
- ## Local Terminal Notifications
379
-
380
- Terminal notification rules are local watch rules for agents that want concise
381
- event signals in a shell, tmux pane, or editor terminal. Rules match task, run,
382
- plan, approval, import, and export events by severity, agent, project, priority,
383
- status, and payload text, then render deterministic line or JSON notifications:
384
-
385
- ```bash
386
- todos terminal-notifications set blocked --event task.blocked,task.failed --min-severity warning --agent codex --priority high --contains deploy --bell
387
- todos terminal-notifications set due --event task.due,task.sla_breached --min-severity warning --quiet-hours 22:00-07:00
388
- todos notifications check --emit-hooks --terminal --quiet-hours 22:00-07:00 --json
389
- todos terminal-notifications test blocked --event task.failed --payload '{"id":"demo","title":"Deploy failed","agent_id":"codex","priority":"high"}' --json
390
- todos terminal-notifications list --json
391
- ```
392
-
393
- MCP clients can use `set_terminal_notification_rule`,
394
- `list_terminal_notification_rules`, `test_terminal_notification_rule`,
395
- `evaluate_terminal_watch_rules`, `check_local_notifications`, and
396
- `remove_terminal_notification_rule`. Notifications are evaluated from local
397
- event payloads, can respect quiet hours, and do not require a desktop
398
- notification daemon, hosted queue, or cloud webhook service.
399
-
400
- ## Local Encryption Profiles
401
-
402
- Encryption profiles are optional local config entries for sensitive fields and
403
- secure bridge exports. Profiles store algorithm metadata, a nonsecret salt, and
404
- the name of the environment variable that contains key material. The key itself
405
- is never written to config, bundles, artifacts, or logs:
406
-
407
- ```bash
408
- export TODOS_ENCRYPTION_KEY="use a strong local passphrase from your secret manager"
409
- todos encryption set default --key-env TODOS_ENCRYPTION_KEY
410
- todos encryption status default --json
411
- todos encryption test default --json
412
- todos export --format bridge --encrypt --output todos-bridge.enc.json
413
- todos bridge-import todos-bridge.enc.json --decrypt --json
414
- todos bridge-import todos-bridge.enc.json --decrypt --apply
415
- ```
416
-
417
- Plain bridge exports are still supported for compatibility, but the CLI prints
418
- a warning because bridge bundles may contain task metadata, evidence summaries,
419
- comments, and stored artifact content. MCP clients can use
420
- `set_encryption_profile`, `list_encryption_profiles`,
421
- `get_encryption_status`, `encrypt_local_value`, `decrypt_local_value`, and
422
- `remove_encryption_profile` for local-only encrypted field workflows.
423
-
424
- ## Local Agent Run Queue
425
-
426
- Agent run adapters and queue entries are local. Queueing a task creates a run
427
- ledger immediately, then `run-next` launches the configured command template
428
- with `{task_id}`, `{run_id}`, and `{agent_id}` placeholders. Dry-runs show the
429
- command without execution, and cancellation/retry are recorded in the same local
430
- run ledger:
431
-
432
- ```bash
433
- todos agent-runs adapter-set codex --command "codex exec --task {task_id}" --sandbox codex
434
- todos agent-runs queue <task-id> --adapter codex --agent codex --claim --json
435
- todos agent-runs run-next --dry-run --json
436
- todos agent-runs run-next --json
437
- todos agent-runs retry <run-id>
438
- ```
439
-
440
- MCP clients can use `set_agent_run_adapter`, `queue_agent_run`,
441
- `list_agent_run_queue`, `run_next_agent_dispatch`,
442
- `cancel_agent_run_dispatch`, and `retry_agent_run_dispatch`. These commands
443
- launch only local processes and do not call hosted runners.
444
-
445
- ## Local Agent Replay Simulation
446
-
447
- Replay simulation turns a recorded context pack or run fixture into a
448
- deterministic dry-run snapshot without opening the project database or mutating
449
- tasks. Use it to debug agent plans, verification commands, task transitions,
450
- failures, touched files, artifacts, and approval decisions offline:
451
-
452
- ```bash
453
- todos context-pack <task-id> --format json > replay.json
454
- todos runs simulate replay.json --agent codex --scenario parser-failure --json
455
- todos runs simulate replay.json --format markdown
456
- ```
457
-
458
- MCP clients can use `simulate_agent_replay` with a fixture object and optional
459
- `agent_id` or `scenario`. The simulator redacts fixture values before hashing
460
- or rendering, reports `mutates_database: false`, and emits stable command,
461
- approval, failure, file, artifact, and warning summaries for local debugging.
462
-
463
- ## Local Dependency Workflows
464
-
465
- Dependencies are stored in the local SQLite database and never require hosted
466
- services. Use them to keep agents from starting blocked work:
467
-
468
- ```bash
469
- todos deps <task-id> --needs <blocking-task-id>
470
- todos deps <task-id> --graph
471
- todos blocked
472
- todos ready
473
- ```
474
-
475
- The same workflow is available to MCP clients through
476
- `add_task_dependency`, `remove_task_dependency`, `get_task_dependencies`, and
477
- `get_blocked_tasks`. Dependency writes reject cycles, `ready` omits locked or
478
- blocked pending tasks, and startup schema repair recreates the local dependency
479
- table for older databases.
480
-
481
- ## Local Risk Register And Health
482
-
483
- Risks are stored in local SQLite and can be linked to projects, plans, or tasks
484
- with an owner, mitigation, due date, severity, probability, tags, and metadata:
485
-
486
- ```bash
487
- todos risks add "Release blocker" --plan 1234abcd --severity high --owner codex --mitigation "Ship fallback" --json
488
- todos risks list --plan 1234abcd --json
489
- todos risks score --plan 1234abcd --json
490
- todos risks export --project my-project --json
491
- ```
492
-
493
- Health reports score a plan or project from local evidence only: blocked tasks,
494
- overdue open work, failed verification records, failed run ledgers, dependency
495
- depth, and open risks. MCP clients get the same surface through `create_risk`,
496
- `list_risks`, `update_risk`, `close_risk`, `score_plan_health`,
497
- `score_project_health`, and `export_risk_register`.
498
-
499
- ## Local Retrospectives
500
-
501
- Retrospectives summarize a project or plan using local evidence: completed
502
- plans, missed estimates, repeated blockers, failed verification records,
503
- lessons learned, and suggested follow-up tasks.
504
-
505
- ```bash
506
- todos retrospectives create --plan 1234abcd --json
507
- todos retrospectives list --project my-project --json
508
- todos retrospectives export --plan 1234abcd --format markdown
509
- ```
510
-
511
- Use `--create-followups` to create the suggested follow-up tasks locally. MCP
512
- clients get the same reports through `create_retrospective`,
513
- `list_retrospectives`, and `export_retrospectives`.
514
-
515
- ## Local Agent Reliability Scorecards
516
-
517
- Reliability scorecards summarize each agent from local evidence only: completed
518
- and failed tasks, passed and failed verification records, failed run ledgers,
519
- stale task/resource locks, retry history, and handoff quality.
520
-
521
- ```bash
522
- todos reliability show codex --json
523
- todos reliability list --project my-project --json
524
- todos reliability export --format markdown
525
- ```
526
-
527
- MCP clients get the same summaries through `get_agent_reliability_scorecard`,
528
- `export_agent_reliability_scorecards`, and the `todos://agents/reliability`
529
- resource.
530
-
531
- ## Local Agent Reports
532
-
533
- Agent reports compose the local planning surfaces into one report for standups,
534
- handoffs, and agent run planning: ready tasks, blocked tasks, overdue work,
535
- plan progress, run outcomes, verification evidence, and per-agent summaries.
536
-
537
- ```bash
538
- todos reports local --agent codex --format markdown
539
- todos reports local --project <project-id> --json
540
- ```
541
-
542
- MCP clients can list sections with `list_local_report_types` and build the
543
- same local-only `local_report` contract with `build_local_report`. The report
544
- uses the local SQLite store only and does not call hosted analytics or external
545
- services.
546
-
547
- ## Local Agent Locking
548
-
549
- Task claims and locks are local SQLite leases. Agents can claim the next ready
550
- task, renew their lock by re-locking it during long work, inspect stale work,
551
- and safely steal or redistribute stale tasks without hosted coordination:
552
-
553
- ```bash
554
- todos claim codex
555
- todos --agent codex lock <task-id>
556
- todos stale --minutes 30
557
- todos claim codex --steal-stale --stale-minutes 30
558
- todos redistribute codex --max-age 60
559
- ```
560
-
561
- MCP clients get the same local coordination through `claim_next_task`,
562
- `lock_task`, `unlock_task`, `check_task_lock`, and `get_stale_tasks`.
563
- `claim_next_task` can opt into stale recovery with `steal_stale` and
564
- `stale_minutes`.
565
-
566
- ## Local Plan Templates
567
-
568
- Reusable plan templates live in the local SQLite database. The package also
569
- ships a marketplace-free local library for bug fixes, feature implementation,
570
- security review, releases, migrations, incidents, docs refreshes, QA, and open
571
- source package bootstraps. Templates can create one task or a full ordered plan
572
- with dependencies, variables, priorities, tags, and descriptions:
573
-
574
- ```bash
575
- todos template-library --json
576
- todos template-library --write .todos/templates
577
- todos template-init
578
- todos template-preview <template-id> --var name=api
579
- todos templates --use <template-id> --var name=api
580
- todos template-export <template-id> > plan-template.json
581
- todos template-import plan-template.json
582
- ```
583
-
584
- `todos template-library --write` writes editable JSON files that use the same
585
- shape as `todos template-import`, so teams can fork a built-in workflow without
586
- contacting any hosted marketplace. `todos templates --use` creates every task in
587
- a multi-task template and wires its local dependency graph, so agents can
588
- immediately run `todos ready`, `todos blocked`, or
589
- `todos deps <task-id> --graph` against the generated plan. The same local-only
590
- workflow is available to MCP clients through `list_template_library`,
591
- `write_template_library`, `init_templates`, `create_template`, `list_templates`,
592
- `create_task_from_template`, `preview_template`, `export_template`, and
593
- `import_template`.
594
-
595
- ## Local Git Traceability
596
-
597
- Tasks can be linked to local git evidence without contacting hosted services:
598
-
599
- ```bash
600
- todos link-commit <task-id> <sha> --message "fix parser" --files src/parser.ts
601
- todos link-ref <task-id> task/parser-fix --type branch
602
- todos link-ref <task-id> 42 --type pr --url https://github.com/hasna/todos/pull/42
603
- todos record-verification <task-id> "bun test" --status passed --summary "1522 pass"
604
- todos trace <task-id>
605
- todos find-commit <sha-prefix>
606
- todos find-ref <branch-or-pr>
607
- todos blame src/parser.ts
608
- ```
609
-
610
- MCP clients get the same local data through `link_task_to_commit`,
611
- `find_task_by_commit`, `link_task_git_ref`, `find_tasks_by_git_ref`,
612
- `add_task_verification`, and `get_task_traceability`, so agents can explain
613
- which task changed a commit, branch, PR, file, or verification command.
614
-
615
- ## Local Mention Resolution
616
-
617
- Agents can resolve task references before adding them to descriptions, plans, or
618
- handoffs. The resolver validates local files and line anchors, scans local source
619
- declarations for symbols, checks local git commits, branches, and fetched pull
620
- request refs, and resolves plans, runs, tasks, and agents from the local SQLite
621
- state:
622
-
623
- ```bash
624
- todos references resolve file:src/index.ts:12 symbol:createTask branch:main --json
625
- todos refs resolve plan:release run:abc123 agent:marcus --workspace .
626
- ```
627
-
628
- The JSON output includes canonical reference keys and validated backlinks such
629
- as `file:src/index.ts:12`, `symbol:createTask@src/index.ts:40`, `commit:<sha>`,
630
- `plan:<id>`, and `run:<id>`. MCP clients can call `resolve_mentions` for the
631
- same local-only report; pull request refs are validated only when present in
632
- local git refs, and the resolver never calls hosted code search.
633
-
634
- ## Local Branch-Safe Work Plans
635
-
636
- Before an agent starts a branch, it can ask for a local branch work plan that
637
- checks the task or plan scope, planned files, active file conflicts, local git
638
- status, and suggested branch/traceability commands:
639
-
640
- ```bash
641
- todos branch-plan 1234abcd --branch task/parser-fix --path src/parser.ts --json
642
- todos branch-plan --plan <plan-id> --branch task/release-plan --no-git-status --json
643
- ```
644
-
645
- MCP clients can call `create_branch_work_plan` with `task_id` or `plan_id`.
646
- The result is local-only: it does not create a branch, fetch from a remote, or
647
- contact hosted code review services. Agents can inspect `safe_to_start`,
648
- `conflicts`, `reasons`, and `commands` before running any git operation.
649
-
650
- ## Local Release Notes
651
-
652
- Generate changelogs from completed local tasks and their linked plans, commits,
653
- verification records, breaking-change notes, and migration notes:
654
-
655
- ```bash
656
- todos release-notes --project . --format markdown
657
- todos release-notes --tag release --since 2026-01-01T00:00:00.000Z --json
658
- ```
659
-
660
- Tasks can add release metadata through `metadata.breaking_change`,
661
- `metadata.breaking_changes`, `metadata.migration_note`, or
662
- `metadata.migration_notes`. MCP clients use `generate_release_notes` for the
663
- same deterministic JSON or Markdown output without hosted release tooling.
664
-
665
- ## Local Verification Providers
666
-
667
- Optional provider adapters let agents standardize local verification without a
668
- hosted dependency. Providers can classify CI logs, verify browser/screenshot
669
- artifacts, or run explicitly configured command, script, and testbox-style
670
- commands with retry and redacted evidence capture:
671
-
672
- ```bash
673
- todos verify-providers set local --kind command --command "bun test" --attempts 2 --json
674
- todos verify-providers set ci --kind ci_log --json
675
- todos verify-providers capabilities local --json
676
- todos verify-providers run local --task <task-id> --agent codex --json
677
- todos verify-providers run ci --task <task-id> --log-file /tmp/ci.log --json
678
- ```
679
-
680
- Blacksmith/testbox-style providers are inert until a local command is explicitly
681
- configured, so the package never calls a cloud runner by default. MCP clients
682
- use `set_verification_provider`, `list_verification_providers`,
683
- `get_verification_provider_capabilities`, `run_verification_provider`, and
684
- `remove_verification_provider` for the same local-only workflow.
685
-
686
- ## Local Agent Handoffs
687
-
688
- Handoffs let one local agent leave continuation context for another without a
689
- hosted inbox. A handoff records the session, referenced tasks, relevant files,
690
- run ids, completed work, current blockers, and next steps. Readers can filter
691
- for unread handoffs and acknowledge them per agent:
692
-
693
- ```bash
694
- todos handoff --create --agent codex --session codex-42 --summary "Parser work ready for review" --tasks <task-id> --files src/parser.ts --runs <run-id> --next "Review failing fixture" --json
695
- todos handoff --unread-for claude --json
696
- todos handoff --read <handoff-id> --json
697
- todos handoff --ack <handoff-id> --agent claude --json
698
- todos handoff --recover --agent codex --session codex-42 --json
699
- todos handoff --export <handoff-id> --output handoff.json --json
700
- todos handoff --import handoff.json --json
701
- todos handoff --import handoff.json --apply --json
702
- ```
703
-
704
- MCP clients can use `create_handoff`, `list_handoffs`, `read_handoff`,
705
- `export_handoff`, `import_handoff`, `acknowledge_handoff`,
706
- `recover_stale_session_handoff`, and `get_latest_handoff`. Recovery handoffs
707
- inspect local in-progress tasks, file links, and run evidence for the
708
- agent/session and create a deterministic continuation packet; no hosted queue
709
- or cloud service is involved. Handoff imports default to a dry-run preview;
710
- `--apply` writes the local handoff and preserves per-agent acknowledgement
711
- state.
712
-
713
- ## Local Run Ledger
714
-
715
- Agent runs can record local evidence without uploading artifacts or calling a
716
- hosted API:
717
-
718
- ```bash
719
- RUN_ID=$(todos runs start <task-id> --agent codex --title "Parser fix" --claim --json | jq -r .id)
720
- todos runs event "$RUN_ID" progress "writing regression tests"
721
- todos runs command "$RUN_ID" "bun test src/parser.test.ts" --status passed --summary "14 pass"
722
- todos runs file "$RUN_ID" src/parser.ts --status modified
723
- todos runs artifact "$RUN_ID" logs/parser-test.txt --type log --description "focused test output" --require-file
724
- todos runs artifact-verify "$RUN_ID"
725
- todos runs finish "$RUN_ID" --status completed --summary "parser fixed and verified"
726
- todos runs show "$RUN_ID"
727
- ```
728
-
729
- Run command evidence is also mirrored into task verification evidence, file
730
- events are linked to task file tracking, and comments can be recorded into the
731
- task timeline. Sensitive-looking tokens, keys, passwords, and bearer values are
732
- redacted before evidence is stored. Artifact files are copied into a local
733
- content-addressed store beside the SQLite database, with SHA-256 integrity
734
- metadata, redaction status, retention metadata, and metadata-only fallback when
735
- the original path is unavailable. Use `--no-store` to record only artifact
736
- metadata.
737
-
738
- ## Local Time Tracking
739
-
740
- Manual time logs and focus sessions stay in the local SQLite database and roll
741
- up into `task.actual_minutes` for planning and retrospectives:
742
-
743
- ```bash
744
- todos time log <task-id> 25 --agent codex --notes "reviewed parser"
745
- SESSION=$(todos time start <task-id> --agent codex --idle-after 30 --json | jq -r .id)
746
- todos time pause "$SESSION"
747
- todos time resume "$SESSION"
748
- todos time stop "$SESSION" --notes "implemented and tested"
749
- todos time report --include-open --json
750
- ```
751
-
752
- Focus sessions can be linked to tasks, plans, or run ledgers. Stopping a
753
- completed task-linked session writes a time log with the session id and run id,
754
- then recalculates actual minutes from all local logs. `todos time idle` and the
755
- `get_idle_focus_prompts` MCP tool report active sessions that exceeded their
756
- local idle threshold; no desktop notification service or hosted telemetry is
757
- required.
758
-
759
- ## Local Capacity Forecasts
760
-
761
- Capacity profiles give agents a local way to forecast whether a project or plan
762
- is realistic from task estimates, actual minutes, due dates, and available
763
- minutes per day:
764
-
765
- ```bash
766
- todos capacity set codex --minutes-per-day 240 --days 1,2,3,4,5 --json
767
- todos capacity forecast --plan <plan-id> --agent codex --start-date 2026-06-01 --json
768
- todos capacity forecast --project <project-id> --format markdown
769
- todos capacity list --json
770
- ```
771
-
772
- Forecasts report remaining estimated minutes, logged actual minutes, forecast
773
- work days, projected completion date, missing estimates, overdue open tasks,
774
- and risk flags. MCP clients use `set_capacity_profile`,
775
- `list_capacity_profiles`, `remove_capacity_profile`, and
776
- `get_planning_forecast`.
777
-
778
- ## Local Audit Ledger
779
-
780
- Audit ledger checkpoints hash local evidence into a deterministic chain so an
781
- agent can seal task, run, verification, approval, and handoff records and verify
782
- later that the local evidence still matches:
783
-
784
- ```bash
785
- todos audit-ledger show --task <task-id> --entries --json
786
- todos audit-ledger seal release-checkpoint --task <task-id> --json
787
- todos audit-ledger verify release-checkpoint --json
788
- todos audit-ledger list --json
789
- ```
790
-
791
- The ledger stores only local checkpoint metadata in config. It does not call a
792
- hosted service and it does not claim to prevent local deletion; it detects
793
- changes against a previously sealed root hash. MCP clients use
794
- `get_audit_ledger`, `seal_audit_ledger`, `list_audit_ledger_checkpoints`, and
795
- `verify_audit_ledger`.
796
-
797
- ## Release Compatibility
798
-
799
- Release compatibility checks give agents a local dry-run report before publish
800
- or update work. They verify the package stays `@hasna/todos`, public, pointed at
801
- `hasna/todos`, export-stable, migration-compatible from recent local schema
802
- levels, and ready for Bun global install smoke tests:
803
-
804
- ```bash
805
- todos release-compat check --json
806
- todos release-compat check --format markdown
807
- ```
808
-
809
- The report also includes changelog surfaces and rollback commands. MCP clients
810
- use `check_release_compatibility` for the same `release_compatibility_report`
811
- JSON contract.
812
-
813
- ## Local Usage Ledger
814
-
815
- Usage reports summarize local tasks, projects, runs, commands, durations,
816
- agent-provided token and cost metadata, and run artifact storage. Quota flags
817
- are simulated locally so agents can check free/pro limits or project budgets
818
- without sending data anywhere:
819
-
820
- ```bash
821
- todos usage report --agent codex --max-tasks 1000 --max-projects 10 --json
822
- todos usage report --project <project-id> --format markdown
823
- ```
824
-
825
- The report is aggregate-only: raw command strings and artifact paths are not
826
- included. MCP clients use `get_usage_ledger` for the same
827
- `local_usage_ledger` JSON contract.
828
-
829
- ## Local Scale Hardening
830
-
831
- Scale reports benchmark common local queries, count archive-ready terminal
832
- tasks, check expected SQLite indexes, run integrity diagnostics, and preview
833
- database compaction without network access:
834
-
835
- ```bash
836
- todos scale report --older-than-days 30 --json
837
- todos scale report --format markdown
838
- todos scale compact --json
839
- ```
840
-
841
- `todos scale compact --apply` runs `PRAGMA optimize` and `VACUUM` against the
842
- local SQLite database. The default is a dry run.
843
-
844
- ## Local Activity Timeline
845
-
846
- The timeline command gives agents one ordered, redacted view of local comments,
847
- task history, run events, command evidence, and artifacts:
848
-
849
- ```bash
850
- todos timeline --task <task-id> --json
851
- todos timeline --project <project-id> --limit 50
852
- todos timeline --run <run-id> --order asc
853
- ```
854
-
855
- MCP clients can call `get_activity_timeline` with `entity_type`, `entity_id`,
856
- `limit`, `offset`, `since`, and `until`. Timeline entries are derived from the
857
- local SQLite store and local bridge exports already include the underlying
858
- comments, runs, run evidence, files, commits, and verification records needed to
859
- rebuild the same timeline after import.
860
-
861
- ## Local Scheduling and SLA Escalation
862
-
863
- Tasks can carry local due dates, recurrence rules, and SLA thresholds without a
864
- hosted scheduler. Recurring tasks spawn their next local task from the previous
865
- scheduled due date, preserving cadence even when completion happens late:
866
-
867
- ```bash
868
- todos add "Weekly review" --due 2026-06-01 --recurrence "every week" --sla-minutes 120 --json
869
- todos update <task-id> --due 2026-06-08 --recurrence "every monday" --sla 90 --json
870
- todos overdue --json
871
- todos sla --json
872
- todos notifications check --due-within-minutes 60 --stale-minutes 30 --terminal --json
873
- ```
874
-
875
- `todos overdue` returns unfinished tasks past `due_at`. `todos sla` returns
876
- unfinished tasks that are past `due_at` or whose `sla_minutes` threshold has
877
- elapsed from `started_at` when present, otherwise `created_at`. MCP clients use
878
- `create_task` and `update_task` with `deadline`, `recurrence_rule`, and
879
- `sla_minutes`, and can call `get_sla_breaches` for the same local escalation
880
- view. `todos notifications check` turns due, due-soon, SLA, stale task,
881
- completed run, and local reminder records into redacted local alerts; it can
882
- emit configured file/socket/script/stdout event hooks, evaluate terminal watch
883
- rules, and suppress delivery during quiet hours without contacting an external
884
- notification service.
885
-
886
- ## Local Task Fields
887
-
888
- Tasks can carry local labels, severity, owner, area, and custom metadata while
889
- keeping canonical priority on the task itself:
890
-
891
- ```bash
892
- todos fields set <task-id> --labels bug,cli --priority high --severity s1 --owner codex --area parser --field component=parser --json
893
- todos fields show <task-id> --json
894
- todos fields query --labels bug,cli --severity s1 --field component=parser --json
895
- ```
896
-
897
- Custom values are redacted before storage, labels are mirrored into task tags
898
- for existing filters, and the metadata is included in local bridge exports.
899
- MCP clients use `get_task_fields`, `set_task_fields`, and
900
- `query_tasks_by_fields` for the same local-only workflow.
901
-
902
- ## Local Workflow States
903
-
904
- Projects can define local workflow states such as review, blocked, verifying,
905
- failed, or released while keeping storage compatible with the canonical task
906
- statuses:
907
-
908
- ```bash
909
- todos workflow states --json
910
- todos workflow set <task-id> review --json
911
- todos workflow tasks review --json
912
- todos workflow migrate --apply --json
913
- ```
914
-
915
- Workflow states live in local config under `workflow_states.states`. Each state
916
- maps to a canonical `canonical_status`, can declare aliases, and can restrict
917
- allowed transitions. The selected local state is stored in task metadata and is
918
- included in local bridge exports. MCP clients use `list_workflow_states`,
919
- `set_task_workflow_state`, `query_tasks_by_workflow_state`, and
920
- `migrate_workflow_states`.
921
-
922
- ## Local Calendar And ICS
923
-
924
- Calendar events are derived from local tasks, SLA thresholds, run ledgers, and
925
- authored local reminders, milestones, or work blocks. Exported ICS files are
926
- deterministic and can be redacted before sharing:
927
-
928
- ```bash
929
- todos calendar list --from 2026-06-01T00:00:00.000Z --json
930
- todos calendar add "Release milestone" --kind milestone --start 2026-06-01T09:00:00.000Z --json
931
- todos calendar export --redact --out todos.ics
932
- todos calendar import team.ics --json
933
- ```
934
-
935
- Recurring task rules are mapped into ICS `RRULE` values when possible, and task
936
- SLA thresholds appear as local calendar events without any Google Calendar,
937
- hosted API, or cloud sync dependency. MCP clients use `create_calendar_item`,
938
- `list_calendar_events`, `export_calendar_ics`, and `import_calendar_ics`.
939
-
940
- ## Local Saved Search Views
941
-
942
- Saved views are local SQLite records for repeatable task, project, plan, run,
943
- comment, and cross-entity searches. They can filter by query text, project,
944
- task list, plan, task, status, priority, assignee, agent, tags, local fields,
945
- dependency direction, and time windows:
946
-
947
- ```bash
948
- todos views save active-cli --query parser --status pending,in_progress --tag cli --field-area parser --json
949
- todos views list --json
950
- todos views run active-cli --json
951
- todos search parser --scope all --limit 50 --json
952
- ```
953
-
954
- View output is stable JSON with `{ view, scope, filters, count, results }`.
955
- Local bridge exports include saved views, so explicit backups and machine moves
956
- preserve the filters without any hosted service. MCP clients use
957
- `save_search_view`, `list_search_views`, `run_search_view`, and
958
- `delete_search_view`.
959
-
960
- ## Local Kanban Boards
961
-
962
- Boards are local SQLite records for task and plan workflow views. Lanes map to
963
- workflow statuses, can carry WIP limits, and render blocked/ready badges for
964
- agent planning:
965
-
966
- ```bash
967
- todos board create local-flow --lane "Ready=pending" "Doing=in_progress:3" --json
968
- todos board show local-flow
969
- todos board tui local-flow --json
970
- todos board move local-flow <task-id> --lane Doing --json
971
- todos board export local-flow --json
972
- ```
973
-
974
- Task boards render tasks; plan boards use `--scope plans` and render plans by
975
- plan status. Board snapshots include terminal key bindings for keyboard/TUI
976
- clients, but the state is still just local data and can be exported or imported
977
- without a hosted web UI. MCP clients use `create_board`, `list_boards`,
978
- `get_board_snapshot`, and `move_board_card`.
979
-
980
- ## Local Duplicate Detection
981
-
982
- Agents can scan local tasks for likely duplicates from imported issue URLs,
983
- stack traces, exact titles, and similar task text, then merge duplicate evidence
984
- without deleting either task record:
985
-
986
- ```bash
987
- todos dedupe scan --threshold 0.8 --json
988
- todos dedupe merge <primary-task-id> <duplicate-task-id> --reason "same imported issue" --json
989
- ```
990
-
991
- Merges archive the duplicate as `cancelled`, add a `duplicates` relationship,
992
- and preserve comments, dependencies, dependents, run ledgers, files, inbox
993
- items, verification evidence, history, git refs, commits, and checklist rows on
994
- the primary task. MCP clients use `find_duplicate_tasks` and
995
- `merge_duplicate_task` for the same local-only workflow.
996
-
997
- ## Local Agent Context Packs
998
-
999
- Context packs create deterministic run-start bundles for Codex, Claude Code,
1000
- Takumi, or any local agent. A pack selects task, project, plan, dependencies,
1001
- acceptance criteria, recent comments, relevant files, verification history,
1002
- traceability, and run-ledger evidence from the local SQLite database only:
1003
-
1004
- ```bash
1005
- todos context-pack <task-id> --profile codex --format markdown
1006
- todos context-pack <task-id> --profile claude --format json
1007
- todos context-pack <task-id> --profile takumi --run <run-id> --comments 12 --files 40
1008
- todos context-pack <task-id> --profile codex --token-budget 1800 --exclude runs --compact
1009
- ```
1010
-
1011
- MCP clients can call `build_agent_context_pack` with the same limits and choose
1012
- JSON, Markdown, compact JSON, or compact Markdown output. Long text and evidence
1013
- are redacted and size-limited, and stale or omitted local data is surfaced as
1014
- warnings in the pack.
1015
-
1016
- Budget-aware context packing is local and deterministic. Use `--token-budget`
1017
- for an approximate character-based token budget, `--include` or `--exclude` to
1018
- shape sections, and `--summary-chars` to cap the redacted summaries generated
1019
- for omitted evidence. When the pack is too large, lower-priority evidence such
1020
- as runs, traceability, comments, files, dependencies, and plan context is
1021
- summarized in a stable `context_budget` block so agents still know what was left
1022
- out.
1023
-
1024
- ## Local External Issue Imports
1025
-
1026
- Import issue records from pasted JSON, files, stdin, or explicit URLs without
1027
- depending on any hosted Hasna service. Imports default to a dry-run preview;
1028
- `--apply` creates local tasks, stores redacted source metadata, creates linked
1029
- inbox evidence, and skips existing tasks that already have the same source URL,
1030
- GitHub owner/repo/number, or external issue key:
1031
-
1032
- ```bash
1033
- todos issues import --file issues.json --provider github --json
1034
- todos issues import --file issues.json --provider github --apply --json
1035
- todos issues import --provider linear --apply < linear-export.json
1036
- todos issues import "Title: Fix parser\nURL: https://tracker.example/BUG-42" --apply --json
1037
- ```
1038
-
1039
- GitHub, Linear, Jira, and plain URL records are normalized into local task
1040
- metadata and tags. Network access is off unless `--allow-network` is passed; for
1041
- GitHub that explicitly shells out through the authenticated `gh` CLI, while
1042
- offline files and pasted exports work without tokens. MCP clients use
1043
- `import_external_issues` with the same dry-run, apply, inbox, and dedupe
1044
- controls.
1045
-
1046
- ## Local Inbox Intake
1047
-
1048
- Paste failures, CI logs, GitHub issue URLs, files, or local git context into a
1049
- deduped inbox and create a linked task:
1050
-
1051
- ```bash
1052
- todos inbox add "bun test failed: parser regression" --source-type ci_log
1053
- todos inbox add --file /tmp/ci.log --source-name "local CI"
1054
- todos inbox add https://github.com/hasna/todos/issues/42 --source-url https://github.com/hasna/todos/issues/42
1055
- todos inbox parse "Add task fix parser priority high @codex #cli due tomorrow" --json
1056
- todos inbox parse --file plan-notes.txt --apply --json
1057
- todos inbox git --diff
1058
- todos inbox list
1059
- ```
1060
-
1061
- Inbox bodies and metadata are redacted before storage. Repeated input resolves
1062
- to the existing inbox item instead of creating duplicate tasks. Natural-language
1063
- intake parsing is deterministic and local-only; it defaults to a dry-run preview
1064
- and creates projects, plans, tasks, dependencies, and acceptance criteria only
1065
- with `--apply`.
1066
-
1067
- ## Bundled Onboarding Fixtures
1068
-
1069
- The package ships deterministic local demo fixtures for first-run onboarding and
1070
- agent integration tests. The default `agent-project-demo` fixture shows the
1071
- simple flow used by the public demo: create a project, add todos, generate a
1072
- plan, run an agent, record command/artifact/verification evidence, review the
1073
- remaining task, and prove export/import with the local bridge bundle.
1074
-
1075
- ```bash
1076
- todos onboarding --json
1077
- todos onboarding --show agent-project-demo > agent-project-demo.bridge.json
1078
- todos onboarding --import agent-project-demo --json
1079
- todos onboarding --import agent-project-demo --apply
1080
- ```
1081
-
1082
- Fixtures are bundled with `@hasna/todos`, redacted, offline, and local-only.
1083
- Imports default to dry-run mode and use the same bridge importer as normal
1084
- exports, so CLI, MCP, and SDK consumers can test against the exact project,
1085
- tasks, plan, run ledger, evidence, saved view, and board records.
1086
-
1087
- MCP clients can read `todos://onboarding/fixtures` or
1088
- `todos://onboarding/demo`, then use `list_onboarding_fixtures`,
1089
- `get_onboarding_fixture`, and `import_onboarding_fixture`.
1090
-
1091
- ## Local Agent Snapshots
1092
-
1093
- Agents can refresh context through stable local snapshots for projects, tasks,
1094
- plans, runs, dependencies, activity events, and evidence. Snapshots are
1095
- redacted, deterministic, and include cursors plus fingerprints so MCP clients
1096
- can poll for changes without a hosted event stream.
1097
-
1098
- ```bash
1099
- todos snapshots --json
1100
- todos snapshots --show tasks --json
1101
- todos snapshots --show evidence --markdown
1102
- todos snapshots --poll --types tasks,evidence --since 2026-05-22T00:00:00.000Z --json
1103
- ```
1104
-
1105
- MCP clients can read `todos://snapshots/catalog` and
1106
- `todos://snapshots/tasks` through `todos://snapshots/evidence`, or use
1107
- `list_local_snapshots`, `get_local_snapshot`, and `poll_local_snapshots` for
1108
- JSON or Markdown payloads.
1109
-
1110
- ## SDK Integration Fixtures
1111
-
1112
- Downstream SDK, CLI JSON, MCP, and agent-adapter tests can generate a complete
1113
- local fixture pack from the bundled demo project:
1114
-
1115
- ```bash
1116
- todos sdk-fixtures --json
1117
- todos sdk-fixtures --show > sdk-fixture-pack.json
1118
- todos sdk-fixtures --write .todos/sdk-integrations --json
1119
- ```
1120
-
1121
- The pack includes a local bridge fixture, stable JSON contract snapshots,
1122
- project/task/plan/run/evidence snapshots, and a context pack. Copy-pasteable
1123
- examples live in `examples/sdk-integrations/`, and the full guide is in
1124
- `docs/sdk-integrations.md`.
1125
-
1126
- ## Local Bridge Import/Export
1127
-
1128
- Export a versioned local bridge bundle for migration, backup, or explicit
1129
- hand-off to another local store:
1130
-
1131
- ```bash
1132
- todos export --format bridge --output todos-bridge.json
1133
- todos export --format bridge --encrypt --output todos-bridge.enc.json
1134
- todos bridge-import todos-bridge.json --json
1135
- todos bridge-import todos-bridge.json --apply
1136
- todos bridge-import todos-bridge.json --apply --resolve-conflicts
1137
- ```
1138
-
1139
- Bridge bundles include local projects, task lists, plans, tasks, dependencies,
1140
- comments, run ledgers, command evidence, file evidence, artifacts, stored
1141
- artifact contents, commits, refs, verification records, saved views, local board
1142
- definitions, and local calendar items. Imports default to dry-run mode and
1143
- report conflicts before writing. The package does not upload bundles or call
1144
- hosted services; any hosted sync must consume the exported JSON explicitly.
1145
-
1146
- For multi-machine local work, `--resolve-conflicts` performs a safe task merge
1147
- instead of overwriting local edits. It fills blank local fields from the
1148
- incoming bundle, unions tags, merges non-conflicting metadata keys, and records
1149
- unresolved divergent fields in `metadata.sync_conflicts` for manual review.
1150
- Local non-empty title, status, priority, and metadata values win when both sides
1151
- changed.
1152
-
1153
- ## Local Backups and Integrity
1154
-
1155
- Create a checksum-protected local backup wrapper around the bridge bundle when
1156
- you need a restorable snapshot with manifest counts and SQLite integrity
1157
- metadata:
1158
-
1159
- ```bash
1160
- todos backup create --output todos-backup.json
1161
- todos backup verify todos-backup.json --json
1162
- todos backup restore todos-backup.json --json
1163
- todos backup restore todos-backup.json --apply --resolve-conflicts
1164
- todos backup integrity --json
1165
- ```
1166
-
1167
- Backups include the same local projects, task lists, plans, tasks, comments,
1168
- runs, commands, files, commits, refs, verification records, saved views, boards,
1169
- calendar items, and stored artifact contents as bridge exports. The backup
1170
- manifest adds SHA-256 checksums for the full payload, embedded bridge bundle,
1171
- and each bridge section. Restore defaults to dry-run mode and refuses corrupted
1172
- or schema-incompatible bundles before importing.
1173
-
1174
- ## todos.md Markdown Import/Export
1175
-
1176
- `todos.md` files are readable Markdown checklists with an embedded local bridge
1177
- bundle for lossless round trips. Export keeps the visible tasks, projects, and
1178
- plans easy to inspect while preserving local ids, comments, run ledgers,
1179
- dependencies, files, commits, and verification evidence in a hidden metadata
1180
- block:
1181
-
1182
- ```bash
1183
- todos export --format todos.md --output todos.md
1184
- todos todos-md-import todos.md --json
1185
- todos todos-md-import todos.md --apply
1186
- todos todos-md-import todos.md --apply --resolve-conflicts
1187
- ```
1188
-
1189
- Existing plain checklists also import locally. Use `# Project: Name`, `## Plan:
1190
- Name`, checkbox items, optional `priority: high`, `comment: ...`, `depends_on:
1191
- Other task title`, `run: completed smoke`, `#tags`, and `@agent` markers to
1192
- migrate older files without a hosted service.
1193
-
1194
- ## Local Doctor and Repair
1195
-
1196
- `todos doctor` audits the local SQLite database without calling hosted services.
1197
- By default it is a dry-run and reports schema/migration drift, orphaned rows,
1198
- duplicate indexes, invalid JSON metadata, missing project roots, and unsafe
1199
- database file permissions:
1200
-
1201
- ```bash
1202
- todos doctor
1203
- todos doctor --json
1204
- ```
1205
-
1206
- Safe repairs require explicit apply mode. Before any mutation, the command
1207
- creates a local backup next to the database when the database is file-backed:
1208
-
1209
- ```bash
1210
- todos doctor --apply
1211
- ```
1212
-
1213
- Repairs are limited to local integrity fixes such as running the migration
1214
- safety net, clearing missing parent references, pruning orphaned dependency/run
1215
- rows, resetting invalid metadata JSON to `{}`, dropping duplicate non-primary
1216
- indexes, and tightening database file permissions.
1217
-
1218
20
  ## MCP Server
1219
21
 
1220
22
  ```bash
@@ -1224,7 +26,7 @@ todos-mcp
1224
26
  The MCP server defaults to the token-saving `TODOS_PROFILE=minimal` profile.
1225
27
  Use `TODOS_PROFILE=standard` for broader task/project/resource tools, or
1226
28
  `TODOS_PROFILE=full` when you explicitly need every tool. You can add groups
1227
- with `TODOS_TOOL_GROUPS=templates`.
29
+ with `TODOS_TOOL_GROUPS=cloud,templates`.
1228
30
 
1229
31
  High-volume tools return compact payloads by default. Pass `detail: "full"` to
1230
32
  MCP calls such as `get_task`, `get_status`, `get_context`, `bootstrap`, and
@@ -1256,29 +58,19 @@ curl "http://localhost:19427/api/tasks/<id>?fields=id,title,status"
1256
58
  curl "http://localhost:19427/api/tasks/<id>/history?limit=20"
1257
59
  ```
1258
60
 
1259
- ## Data Directory
61
+ ## Cloud Sync
1260
62
 
1261
- Data is stored in `~/.hasna/todos/`.
63
+ This package supports cloud sync via `@hasna/cloud`:
1262
64
 
1263
- ## Local-Only Security Boundary
1264
-
1265
- `@hasna/todos` is an open source, local-first package. The CLI, MCP server, SDK,
1266
- and local dashboard read and write local state by default and do not require a
1267
- hosted API, cloud account, billing provider, or remote model provider.
65
+ ```bash
66
+ cloud setup
67
+ cloud sync push --service todos
68
+ cloud sync pull --service todos
69
+ ```
1268
70
 
1269
- Release checks enforce that boundary before publishing:
71
+ ## Data Directory
1270
72
 
1271
- - package metadata must stay public and point at `hasna/todos`
1272
- - install snippets must use `bun install -g @hasna/todos`
1273
- - package dependencies and generated tarballs are scanned for private or hosted
1274
- service coupling
1275
- - public text surfaces and packed files are scanned for secret-like values
1276
- - local runtime tests use a no-network fixture for local-only workflows
1277
- - `bun run verify:release` builds, packs, validates provenance, and runs a clean
1278
- Bun global install smoke test from the candidate tarball
1279
- - the install smoke plan itself is covered by tests: it installs only with Bun,
1280
- verifies `todos`, `todos-mcp`, and `todos-serve`, and rejects private or
1281
- hosted endpoint references
73
+ Data is stored in `~/.hasna/todos/`.
1282
74
 
1283
75
  ## License
1284
76