Clone

git clone git@git.secluded.site:yatd.git

README

yatd, yet another td

There are many tds. This one is mine. It's in Rust, very fast, very small, fairly simple, and includes a skill. I intend it to be the bare minimum for something like a repo-specific issue tracker and possibly complementary to tools like OpenSpec.

Installation

Pre-built binaries are available at releases.secluded.site/yatd/latest.

  • Using mise (recommended), copy the snippet from the releases page into your mise.toml or global ~/.config/mise/config.toml to automate updates.
  • Without mise, or a similar tool, download the binary for your platform from the releases page and place it somewhere in your $PATH.

Tell your agent how/when to use td by first installing the skill with td skill, then somehow referring to td when telling the agent to do something involving td. It shouldn't invoke the skill unless you mention td, allowing your agent to use other todo/issue tools in other repos even with this global skill.

Run td project init <name> to create a new project and link the current directory to it. If using sibling worktrees in a layout similar to the following and you want to share the project's tasks across worktrees, initialise from the project directory and not any of the worktrees. In the example, project-name should be the current working directory.

project-name
├── main
├── feature-a
└── user/hotfix/horrible-thing-went-wrong

Inspired by alosec/td.

Usage

There are many ways to use something like this and I won't say any one is better than another. However, I tend to use it in a particular way and that may lead its design to faciliate that way particularly well.

td on its own (click to expand)

I first think of a feature, then tell the agent about it and ask it to interview me about any gaps. We go back and forth, me nitpicking things about what it said, it nitpicking things about what I said, until it feels right. Then I say something like "let's think about how we can break this up into the smallest units of work and create tasks with appropriate dependency relationships to communicate the order in which we must tackle them." It creates a bunch of tasks, links them, and probably describes what it did. I run td next to see what's bubbled up to the top, read through it, and decide whether it needs more work or is good to go as-is. If it needs more work, I start a new session with "let's think about {id} and plan it out some more, then log those decisions to the task". If it's ready, the new session begins with "let's get started on {id} by having a look around at the relevant code then breaking it down into smaller child tasks". Then depending on the context window and task scale, I either have it get started in this same session or a new one.

I said it's complementary to things like OpenSpec at the beginning, but realise my workflow almost entirely obviates OpenSpec 🥴 I do intend to use them together soon and will describe whatever workflow I end up with then.

$ td --help
Todo tracker for AI agents

Usage: td [OPTIONS] <COMMAND>

Commands:
  init      Initialize a central project and bind the current directory to it
  use       Bind the current directory to an existing project
  projects  List all known projects in central storage
  create    Create a new task [aliases: add]
  list      List tasks [aliases: ls]
  show      Show task details
  log       Append a work log entry to a task
  update    Update a task
  done      Mark task(s) as closed [aliases: close]
  rm        Delete task(s)
  reopen    Reopen task(s)
  dep       Manage dependencies / blockers
  label     Manage labels
  search    Search tasks by title or description
  ready     Show tasks with no open blockers
  next      Recommend next task(s) to work on
  stats     Show task statistics (always JSON)
  tidy      Compact accumulated delta files into the base snapshot
  export    Export tasks to JSONL (one JSON object per line)
  import    Import tasks from a JSONL file
  sync      Sync project state with a peer via magic wormhole
  skill     Install the agent skill file (SKILL.md)
  help      Print this message or the help of the given subcommand(s)

Options:
  -j, --json               Output JSON
      --project <PROJECT>  Select a project explicitly (overrides cwd binding)
  -h, --help               Print help
  -V, --version            Print version

Syncing

Everything is CRDTs, so syncing is (or at least should™ be) easy! The built-in method uses a Rust port of magic-wormhole.

  • Initiate a sync on one device with td sync
    • Outputs a code like 9-lurid-gecko
  • Accept on another device with td sync 9-lurid-gecko

If you want to use something like Syncthing or Nextcloud or Google Drive or whatever, you should just be able to point the sync daemon at $XDG_DATA_HOME/td/projects/, but I've not tested this.

Bootstrapping

When syncing a project to another machine, do not run td init on the other machine. Initialize just once on the first machine, then bootstrap others with td sync (sync docs). The first machine will notice the other has nothing and provide everything.

Running td init on both machines generates different project_id values and prevents sync from merging them.

Contributions

I'm trying the Jujutsu VCS out for this project. I'm enjoying it and LLMs seem to do pretty well with it too. The collaboration story is a bit less convenient, especially since I'm also trying pr.pico.sh. It works very well with git projects, but jujutsu is missing some things git has which pr.pico.sh relies on. When cloning this repo, do so with jj git clone --colocate git@git.secluded.site:yatd.git and the relevant git commands should work fine.

Patch requests are in amolith/llm-projects on pr.pico.sh. You don't need a new account to contribute, you don't need to fork this repo, you don't need to fiddle with git send-email, you don't need to faff with your email client to get git request-pull working...

You just need:

  • Git
  • SSH
  • An SSH key

If you're using LLM agents, you might instead want to give them my pr.pico.sh skill.

# Clone this repo
jj git clone --colocate git@git.secluded.site:yatd.git

# Create a new change and describe what it does
jj new -m "Add fancy new thing" # Imperative, kernel-style commits, not Conventional Commits

# When ready, create a new patch request
git format-patch origin/main --stdout | ssh pr.pico.sh pr create amolith/llm-projects

# After potential feedback, revise and submit a new patchset
jj amend
git format-patch origin/main --stdout | ssh pr.pico.sh pr add {prID}

# List patch requests
ssh pr.pico.sh pr ls amolith/llm-projects --mine

See "How do Patch Requests work?" on pr.pico.sh's home page for a more complete example workflow.