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

@tashks/ai

v1.0.3

Published

Portable AI agent tool definitions for tashks task management

Readme

@tashks/ai

AI tool definitions for task management via LLM agents. Wraps @tashks/core repository operations as structured tool calls compatible with any LLM tool-use protocol.

Installation

bun add @tashks/ai @tashks/core

Quick Start

import { allTools, WORKFLOW_PREAMBLE } from "@tashks/ai";
import { ProseqlRepositoryLive } from "@tashks/core/proseql-repository";

// Each plan/workstream owns its own task file
const repoLayer = ProseqlRepositoryLive({
  tasksFile: "./my-plan/tasks.yaml",
  workLogFile: "./my-plan/worklog.md",
  workLogFile: "./my-plan/worklog.yaml",
});

// Register tools with your LLM framework
for (const tool of allTools) {
  registerTool({
    name: tool.name,
    description: tool.description,
    parameters: tool.parameters,
    handler: (params) => tool.execute(params, repo),
  });
}

// Inject preamble once at session start (not per-call)
const systemPrompt = WORKFLOW_PREAMBLE + "\n" + yourOtherInstructions;

Tools

| Tool | Description | |------|-------------| | tashks_ready | Show unblocked active tasks sorted by priority | | tashks_create | Create a new task | | tashks_update | Update a task (includes claim: true for atomic claim) | | tashks_show | Show full task details | | tashks_close | Close a task (mark done) | | tashks_list | List/search tasks with filters | | tashks_dep | Manage task dependencies | | tashks_comments | List or add comments on a task | | tashks_status | Task board overview (counts by status/type) | | tashks_prime | Generate markdown task board summary | | tashks_delete | Delete a task permanently |

Per-Plan Scoped Repos

The primary use case is per-plan task file ownership. Each workstream gets its own task file and work log, avoiding a centralized store:

import { ProseqlRepositoryLive } from "@tashks/core/proseql-repository";

// Plan A has its own tasks
const planALayer = ProseqlRepositoryLive({
  tasksFile: "./plans/plan-a/tasks.yaml",
  workLogFile: "./plans/plan-a/worklog.yaml",
});

// Plan B is independent
const planBLayer = ProseqlRepositoryLive({
  tasksFile: "./plans/plan-b/tasks.yaml",
  workLogFile: "./plans/plan-b/worklog.yaml",
});

// Wire tools to the specific repo for this agent session
const tools = allTools.map((tool) => ({
  ...tool,
  handler: (params: any) => tool.execute(params, planARepo),
}));

Structured Errors

All tools return structured errors when operations fail:

interface ToolResult {
  text: string;                              // Human/LLM-readable message
  data?: unknown;                            // Structured data on success
  error?: { code: string; message: string }; // Structured error on failure
}

Error codes: NOT_FOUND, VALIDATION, IO, UNKNOWN.

const result = await show.execute({ id: "missing" }, repo);
if (result.error) {
  switch (result.error.code) {
    case "NOT_FOUND": // task doesn't exist
    case "VALIDATION": // bad input
    case "IO": // filesystem error
    case "UNKNOWN": // unexpected
  }
}

Claim Workflow

Use claim: true on tashks_update to atomically set assignee and status:

// Defaults assignee to "agent" and status to "in_progress"
await update.execute({ id: "task-1", claim: true }, repo);

// Or specify a different assignee
await update.execute({ id: "task-1", claim: true, assignee: "bot-2" }, repo);