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

agent-threader

v2.0.14

Published

AgentThreader -- skill + companion CLI for manifest-driven agentic CLI orchestration with structured contracts, resumable state, and bounded self-healing

Readme

AgentThreader

Portable skill and companion CLI for manifest-driven agentic CLI orchestration with structured contracts, resumable state, orchestrator-owned verification, and bounded self-healing.

Project Structure

agent-threader/
  src/
    lib/                    # Reusable library (no CLI concerns)
      contracts/            # Contract types, schema validators, manifest validation
      parser/               # Sentinel extraction, JSON repair, contract parsing
      state/                # State load/write/init, status queries, log queries
      orchestrator/         # Scheduling, batch strategy, healing policy, write safety
      adapters/             # Adapter interfaces and shared utilities
      errors/               # Typed error hierarchy
      index.ts              # Library barrel export
    cli/                    # Thin CLI wrappers (presentation only)
      commands/             # One file per CLI command
      index.ts              # Commander.js entry point
      output-formatter.ts   # JSON, table, key-value formatters
    index.ts                # Package entry re-exporting lib + OutputFormatter
  skill/
    SKILL.md                # Skill entrypoint
    SPEC.md                 # Normative v2 architecture specification
    schemas/                # JSON schemas for all contracts
    templates/              # TypeScript scaffolding (types, parser, orchestrator)
    build/
      manifest.json         # Skill registry and fragment declarations
      compile.mjs           # Fragment-resolving compiler for platform targets and variants
    fragments/
      common/               # Shared rules (workflow, model selection, portability)
      domain/               # Deep domain knowledge (architecture, healing, contracts)
      meta/                 # Skill system metadata (schemas ref, templates ref)
    skills/
      agent-threader/
        agent-threader.md   # Composed skill source with {{include:...}}
  compiled/                 # Machine-generated platform outputs and standalone variants
  platforms/                # Thin translation layers for Codex, Cursor, Claude, Windsurf
  site/                     # GitHub Pages site and hosted bootstrap installer
  install.sh                # Hosted bootstrap installer for curl-based setup
  install.ps1               # Hosted bootstrap installer for PowerShell setup
  install.js                # Unified cross-platform local installer for clone-based development

Core Design

The architecture separates concerns cleanly:

  • the manifest declares work
  • the orchestrator owns scheduling, verification, checkpointing, and healing
  • adapters invoke specific CLIs through a uniform interface
  • workers and healers emit fenced JSON contracts
  • parsers and schemas validate output before state changes

Key Contracts

  • manifest.v2
  • verify_profile.v2
  • task_result.v2
  • heal_decision.v2
  • state.v2

See SPEC.md for the full contract and runtime rules.

Setup

Remote bootstrap installer

bash <(curl -fsSL https://agentthreader.com/install.sh) --all
npx --yes agent-threader@latest --help
powershell -ExecutionPolicy Bypass -Command "& ([ScriptBlock]::Create((Invoke-RestMethod 'https://agentthreader.com/install.ps1'))) -All"

The hosted bootstrap scripts install the published agent-threader package globally and then delegate to the packaged install.js Node.js installer to copy the compiled skills into your selected tools.

Use npx when you want one-off CLI usage without global install:

npx --yes agent-threader@latest validate-manifest ./manifest.json --json

Local clone-based setup

node install.js             # Auto-detect tools and install
node install.js --all       # Install for all five tools
node .\install.js           # Auto-detect tools and install
node .\install.js --all     # Install for all five tools

Development

npm install              # Install dependencies
npm run build            # Compile TypeScript CLI
npm run compile          # Compile skills to all IDE targets
npm run compile:validate # Validate manifest vs source includes
npm run compile:watch    # Recompile on change
node install.js           # Build, compile, link CLI, and install skills locally

npm run compile also writes compiled/output/agent-threader/SKILL.md, a standalone manual-agent skill variant for runs coordinated through prompts, files, logs, contracts, state, and verification evidence rather than the companion command-line workflow.

CLI Commands

agent-threader scaffold <target-dir>      # Alias: new    -- scaffold a new orchestrator project
agent-threader validate-manifest <path>   # Alias: validate
agent-threader init-state <manifest-path> # Alias: init
agent-threader parse-result <log-path>    # Alias: parse
agent-threader parse-heal <log-path>      # Alias: heal
agent-threader status [state-path]        # Alias: st
agent-threader logs [state-path]          # Alias: history
agent-threader doctor                     # Alias: diag
agent-threader explain [code]             # Alias: why

All commands support --json for machine-readable output.

Release Automation

The release workflow in .github/workflows/release.yml expects:

  • AGENT_TOKEN - GitHub token with permission to push release commits and tags
  • AGENT_NPM_TOKEN - npm automation token used as NODE_AUTH_TOKEN for publish

Ecosystem

AgentThreader is built on the skill-system-template architecture from Agentic Skill Mill. Related projects:

| Project | Role | Links | |---------|------|-------| | Agentic Skill Mill | Parent — defines the fragment-composition, 7-target compiler, and companion-CLI pattern | agenticskillmill.com | | TechDemoDirector | Sibling — code walk-through presentation scripting | Site | | AgentHistoric | Sibling — MoE persona prompt system with philosophical grounding | agenthistoric.com |

License

MIT. See LICENSE.