Repository navigation
Crunch UDA
#4184
Replies: 2 comments 1 reply
|
I think the problem you're describing is similar to what I've been noticing lately -- "urgency" is a combination of "cost" (time) and "importance" and it would often be helpful to have these as separate variables because they can change independently and potentially automatically. |
1 reply
UPDATEThe https://github.com/ylub/tw-roll-crunch
Includes a safe installer which will not overwrite existing hooks, example config, documentation, and tests. Built from my working Taskwarrior setup with assistance from OpenAI Codex. I look forward to hearing your feedback from testing! |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
First of all, I have found Taskwarrior and Timewarrior to be very helpful for keeping me on task and keeping track of my work. I have integrated it into my own time tracking script that takes care of invoices for me as well.
I have created my own fields in
taskto keep track of how long I estimate a task will take to complete as well as my current progress in that task. Currently, this field is updated manually based on any number of calculations (time spent or words/lines of a document reviewed...the options are many). With this information, I was wondering if there is a way to use these two fields to express how much of a "crunch" there is to get this task done. With the help (understatement) of ChatGPT/Codex, I have started using Crunch to bolster the urgency of tasks based on these factors.Crunch summary
The following summary is an excerpt from what ChatGPT said about it, with some of my own edits:
Crunch: workload-aware urgency for Taskwarrior
This addresses the fact that
task, while incredibly awesome, does not distinguish between a task that will take 20 minutes and one that will take 8 hours.Crunch uses two existing/custom fields:
duration— estimated total work requiredprogress— percentage already completedHow Crunch is calculated
First, remaining estimated work is calculated as:
Crunch then combines three signals:
The three bonuses are added:
The score is then mapped to a simple level:
CRITICALHIGHMEDLOWTasks without a
durationdo not receive a Crunch value, since there is no workload estimate from which to calculate Crunch.The goal is not to replace Taskwarrior's existing urgency system, but to add information it currently lacks: how much work remains, whether a task needs to get started, whether it is an easy win, and how much work per day is required to meet its deadline.
Remaining work is calculated as:
I created an
on-add/on-modifyhook,task-crunch, that recalculates acrunchUDA whenever a task is added or modified.Crunch combines three signals:
These are combined into a Crunch score:
The score is then mapped to
LOW,MED,HIGH, orCRITICAL, which contributes a deliberately modest amount to Taskwarrior urgency. The idea is to nudge task ordering rather than overpower Taskwarrior's existing due-date, priority, age, and other urgency signals. Tasks without an estimateddurationsimply don't receive a Crunch value.This addresses a practical problem: two tasks can otherwise have similar Taskwarrior urgency even though their workload situations are very different. One may require substantial work and need to be started early; another may be nearly finished and easy to knock out; a third may require enough remaining work that its approaching deadline makes the required daily workload significant.
The current implementation uses
duration, numericprogress, andcrunchUDAs together with anon-add/on-modifyhook. The concept could potentially be generalized into a workload-aware urgency feature or a documented hook pattern for Taskwarrior.Possible V2: Project Pressure
I also have some ideas for a V2 that would take the workload of an entire project into account without relying on dependencies or blocked tasks.
For example, suppose
project.buildrocketcontains 30 tasks and the project needs to be finished in two weeks. If those tasks have estimated durations and progress values, their remaining work can be summed:That could then be compared with the time remaining until the project's deadline:
This would provide a Project Pressure signal that could influence the Crunch of tasks within that project. A project with 40 hours of estimated work left and two weeks remaining should exert less pressure than the same project with 40 hours left and three days remaining.
The important distinction would be that
required project paceis the raw workload/time calculation, while Project Pressure is the level or score derived from it.All reactions