Skip to content

Phase 5: Markdown TODO manager#12

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/add-markdown-todo-manager
Draft

Phase 5: Markdown TODO manager#12
Copilot wants to merge 2 commits intomainfrom
copilot/add-markdown-todo-manager

Conversation

Copy link
Copy Markdown

Copilot AI commented Apr 11, 2026

Implements the full super-ollama todo command tree — ~/TODO.md as source of truth, SQLite as a derived index rebuilt on every write, HTML comment metadata for machine-readable IDs/dates, and AI-assisted prioritisation via the existing engine.

internal/todo

  • todo.goItem/List structs; Parse/Marshal for the canonical format (- [ ] #tag text <!-- id:N created:YYYY-MM-DD -->); AddItem (auto-increment ID), MarkDone (by ID or partial text), FilterByTag, SearchItems, ActiveSummary/FullSummary (prompt injection)
  • store.goOpenStore (schema init), RebuildIndex (full replace in one tx), QueryStore (LIKE search)
  • todo_test.go — 16 unit tests covering parse/marshal round-trip, add, done, filter, search, tag extraction

internal/config

Added TodoPath (default ~/TODO.md) and DBPath (default ~/.super-ollama/data.db) to Config; applyDefaults handles ~ expansion.

cmd/super-ollama/todo.go

Subcommand Behaviour
add <text> Append active item, auto-assign ID
done <id|text> Match by integer ID then substring; stamp done: date
list [--all] [--tag name] Filter active (or all) by optional tag
search <query> Case-insensitive substring across active + done
suggest LLM ranks active items by urgency
triage LLM proposes full reordering with rationale

suggest and triage build focused prompts from ActiveSummary/FullSummary and stream through the existing engine.Generate path, respecting --model and config default_model.

Example file output:

# TODO

## Active

- [ ] #work finish slide deck for Monday  <!-- id:1 created:2026-04-11 -->
- [ ] #personal call dentist  <!-- id:2 created:2026-04-11 -->

## Done

- [x] #work send Q3 report  <!-- id:0 created:2026-04-10 done:2026-04-11 -->

…age)

Agent-Logs-Url: https://github.com/Kritarth-Dandapat/super-ollama/sessions/e3fa7258-aa6f-46a8-ba3b-e3123d92c9f5

Co-authored-by: Kritarth-Dandapat <141005022+Kritarth-Dandapat@users.noreply.github.com>
Copilot AI changed the title [WIP] Add phase 5: Markdown TODO manager implementation Phase 5: Markdown TODO manager Apr 11, 2026
Copilot AI requested a review from Kritarth-Dandapat April 11, 2026 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Phase 5: Markdown TODO manager

2 participants