crush icon indicating copy to clipboard operation
crush copied to clipboard

feat(tasks): Task-tracking tool

Open orospakr opened this issue 4 months ago • 11 comments

This is an implementation of a task tracking tool in Crush similar to that found in other coding agents on the market.


Pasted image 20250812084930

Task tracking tools allow the model to plan its next steps, remain focused, and avoid forgetting tasks, just like a human software engineer would do with their notes. It also has the benefit of giving the user the opportunity to better track the agent's progress through each step of a job.

  • Addition of three new LLM tools: todo_write, todo_list, and todo_delete
  • TODO items tracked in the project-level (pwd) sqlite DB found in .crush
  • Adds presentation of the TODOs to the sidebar
  • Modifies the system prompts (further meta-prompting messaging may be needed for some of them?) for the various model vendors to encourage them to use the tools to plan ahead and track progress.
  • An additional change: added DB testing helper routine for creating an in-memory sqlite DB with the Goose migrations applied, to enable tests for code that interact with the DB

Usage is just to use Crush as normal, and now the agent will plan out its work and use task tracking automatically, but for testing you can ask the model to directly add and remove TODOs.

orospakr avatar Aug 13 '25 00:08 orospakr

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

charmcli avatar Aug 13 '25 00:08 charmcli

I have read the Contributor License Agreement (CLA) and hereby sign the CLA.

orospakr avatar Aug 13 '25 01:08 orospakr

I've fixed the issue and also there are couple of other parsing issue which i also fixed let me know if i can create new pull request

naresh-tech-backend avatar Aug 16 '25 11:08 naresh-tech-backend

I've fixed the issue and also there are couple of other parsing issue which i also fixed let me know if i can create new pull request

Hey @naresh-tech-backend issue did you identify? (btw the CI failures should be resolved now)

orospakr avatar Aug 16 '25 15:08 orospakr

I've fixed the issue and also there are couple of other parsing issue which i also fixed let me know if i can create new pull request

Hey @naresh-tech-backend issue did you identify? (btw the CI failures should be resolved now)

Json parsing issue when the model is sending request to update the todo and also in the right panel added extra things of color coding for the active todos and added new command to see all todo when there are more then 8 todos and also updates the todo sidebar to show 8 todos which contain good distribution allowing todos to auto scroll based on the progress

Naresh084 avatar Aug 17 '25 01:08 Naresh084

@orospakr we have an idea of how the design for this should be but it looks like this could be a good base for the feature, will review this and maybe work ontop of this to match the design we want.

kujtimiihoxha avatar Aug 21 '25 08:08 kujtimiihoxha

Will there be a task tracker/expander like the Task Master suite of tools? (and maybe even PM tooling like Claude Flow or BMAD)

BradKML avatar Sep 16 '25 02:09 BradKML

that sounds like a good idea to me!

i tested it, and got some errors though:

CleanShot 2025-09-19 at 14 48 19@2x

caarlos0 avatar Sep 19 '25 17:09 caarlos0

See also: https://github.com/charmbracelet/crush/discussions/494 & #743

caarlos0 avatar Sep 26 '25 18:09 caarlos0

Any update on this topic?

Peng-YM avatar Nov 01 '25 04:11 Peng-YM

Any update on this topic?

syrm avatar Nov 09 '25 17:11 syrm

Hi! Thanks for this one. I'm going to close this as to-dos were added in v0.24.0. Regardless, thank you very much for your contribution.

meowgorithm avatar Dec 17 '25 20:12 meowgorithm