npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@yamagh/todo-cli

v1.0.2

Published

Task management CLI for AI agents

Downloads

328

Readme

todo-cli

A minimal CLI tool that enables autonomous task and context management for AI agents.

Overview

Designed to help AI agents maintain awareness of their "work units" (workspaces) and prevent "context pollution" during long development or research sessions. It features JSON-based data management that is easily parseable by AI, alongside an intuitive command structure for human operation.

Installation

npm install -g @yamagh/todo-cli

(Alternatively, run npm link within this repository to register it as a global command)

Commands

Initialization

  • todo init : Initialize a local .todo-cli directory in the current folder.

Workspace Management (Workspace)

Separates unrelated tasks by switching work units.

  • todo ws list : Display a list of workspaces.
  • todo ws create <name> : Create a new workspace.
  • todo ws switch <name> : Switch the active workspace.
  • todo ws remove <name> : Remove a workspace and its associated tasks.

Task Management (Task)

  • todo add "<description>" [-p <level>] [-n <message>] : Add a new task.
  • todo list [-s <status>] [-p <priority>] [-d <description>] [-n <note>] : Display a list of tasks.
  • todo update <id> --status <status> : Update a task's status.
  • todo remove <id> : Remove a task.

Logic & Planning Support (Logic)

  • todo priority <id> <level> : Set priority (managed as a numeric value, e.g., 100 or 0).
  • todo note <id> "<message>" : Update a task's note.
  • todo next : Get the next task to process (highest priority and pending).

Data Storage Location

Data is stored under the local .todo-cli directory if initialized via todo init, otherwise it falls back to the user's home directory.

  • ./.todo-cli/active_workspace or ~/.todo-cli/active_workspace : The currently selected workspace name
  • ./.todo-cli/workspaces/<name>.json or ~/.todo-cli/workspaces/<name>.json : Task data for each workspace

How to Integrate with AI Agents

The following instructions are recommended for your AI agent's system prompt:

  1. Execute todo ws switch <feature-name> at the start of a task.
  2. Ensure completed steps are reflected by running todo update <id> --status done.
  3. For complex work, utilize todo note to externalize context.