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

@sabaiway/agent-workflow-kit

v1.3.0

Published

Portable, cross-agent memory & workflow for AI coding agents — Claude Code, Codex, Cursor, Devin Desktop. One command deploys an AGENTS.md entry point + docs/ai context with cap/archive/index enforcement into any repo.

Readme

🧠 agent-workflow-kit

A portable, cross-agent memory & workflow system for AI coding agents.

Bootstrap it once — then every future session reconstructs project context in seconds instead of re-reading your whole repo.

npm version npm downloads license node

v1.3.0 · Node ≥ 18 · kernel-only · English

Works with any tool that reads AGENTS.md — Claude Code · Codex · Cursor · Devin Desktop (formerly Windsurf) · GitHub Copilot · Gemini CLI · Cline · Aider · and 20+ more.


❓ The problem

AI coding agents are stateless between sessions. Every new chat starts from zero:

── new session, no kit ───────────────────
    ▶ "continue the feature"
        ↓
    reads 18 files… greps ×6…
    re-infers the architecture…
    re-asks a decision you settled…
        ↓  (15k–40k tokens later)
    …finally starts working
──────────────────────────────────────────
→ re-derives what it knew yesterday, and
  re-introduces a bug you already fixed

No durable handover ⇒ drift between sessions, repeated mistakes, ballooning token cost.


⚡ Without vs. With

The kit gives the agent a small, structured memory it reads at the start of every session — instead of rebuilding context from source each time.

WITHOUT the kit · cold start, cost grows
  s1  ~30k tok  ██████████
  s2  ~28k tok  █████████    ← repeats a fixed bug
  s3  ~34k tok  ███████████  ← drift

WITH the kit · boots from memory, cost flat
  s1   ~4k tok  █
  s2   ~4k tok  █            ← no drift
  s3   ~5k tok  █            ← decisions kept

Illustrative — exact numbers scale with repo size. The point is the shape: cold re-reads that grow vs. a flat, cache-warm boot.

| | 🚫 Without | ✅ With agent-workflow-kit | |---|---|---| | Session boot | re-read source + grep to rebuild context | read 4 small docs, ~constant | | Boot cost | grows with repo, paid every session | flat; stable layer stays prompt-cache-warm | | Cross-session memory | none | handover (where we left off) | | Past decisions | re-litigated | decisions.md (ADRs) — settled once | | Known bugs | re-discovered | known_issues.md — impact + workaround | | Doc growth | unbounded sprawl | frontmatter caps + 3-tier rolling archive | | Drift | docs ≠ code over time | pre-commit gate keeps them honest |


📦 What it deploys into your project

your-repo/
├── AGENTS.md              ← single entry point
├── CLAUDE.md → AGENTS.md  ← symlink, for Claude Code
└── docs/ai/
    ├── index.md           ← auto-generated navigator
    ├── handover.md        ← where we left off (read first)
    ├── active_plan.md     ← current task
    ├── agent_rules.md     ← session protocols + self-review
    ├── current_state.md   ← snapshot of the codebase now
    ├── architecture.md    ← layers & boundaries
    ├── technical_specification.md
    ├── decisions.md       ← ADRs — settled once
    ├── known_issues.md    ← bugs + workarounds
    ├── changelog.md       ← rolling, then archived
    ├── env_commands.md    ← daily commands
    ├── tech_reference.md  ← configs & patterns
    ├── pages/             ← one spec per page/route
    └── history/           ← archive (HOT→WARM→COLD)
  + scripts/               ← caps · index · archive (Node)
  + pre-commit hook        ← keeps it all honest

Two visibility modes, chosen at bootstrap: visible (committed) or hidden (in-tree but git-ignored, so the repo "looks normal").


🚀 Install

One command installs the kit into ~/.claude/skills/ and wires any Codex / Devin Desktop you have:

npx @sabaiway/agent-workflow-kit init

Then invoke it inside a project — first time vs. already-deployed use different sub-commands:

| Agent | First time in the project | Project already has the kit | |-------|---------------------------|-----------------------------| | Claude Code | /agent-workflow-kit | /agent-workflow-kit upgrade | | Codex | /skills menu → agent-workflow-kit | …→ agent-workflow-kit upgrade | | Devin Desktop (Windsurf · Devin Local) | /agent-workflow-kit | /agent-workflow-kit upgrade |

/agent-workflow-kit bootstraps a fresh deployment (and asks your visibility, conversational language, and whether the agent may attribute work to itself / AI — default off); /agent-workflow-kit upgrade migrates an existing one to the kit's current version. The npx … init above is a third, separate thing — it updates the kit itself, not any project.

Upgrade the kit itself later — same command with @latest:

npx @sabaiway/agent-workflow-kit@latest init

That refreshes the kit's own files — distinct from /agent-workflow-kit upgrade, which migrates a project's deployment (see Use below).

The kit is a single self-contained folder. Clone it into a skill scope yourself, then run the launcher:

git clone https://github.com/sabaiway/agent-workflow-kit \
  ~/.claude/skills/agent-workflow-kit
cd ~/.claude/skills/agent-workflow-kit
bash launchers/install-launchers.sh

install-launchers.sh auto-detects Codex and Devin Desktop — it only touches tools you actually have. See launchers/README.md for the full matrix (incl. Cursor / any other agent). The manual path works identically but isn't reflected in install stats — prefer npx if you don't mind.

init is additive — it never deletes your settings. It writes only its own namespaced slots:

| Path | What | |------|------| | ~/.claude/skills/agent-workflow-kit/ | the kit itself (refreshed on every init) | | ~/.codex/skills/agent-workflow-kit | a symlink — only if you have Codex | | …/global_workflows/agent-workflow-kit.md | a managed file — only if you have Devin Desktop |

Your other Codex skills and Devin Desktop workflows are never touched. If one of those exact slots already holds a file the kit didn't write, it is left alone and you're told — re-run with --force to replace it (the original is first copied to *.bak.<timestamp> and the restore command is printed).

Uninstall: delete the slots above (the kit folder, the symlink, the workflow file).


🛠️ Use

| Command | When | What happens | |---------|------|--------------| | /agent-workflow-kit | new / empty project | recon → asks visible-or-hidden + conversational language + agent attribution (default off) → deploys AGENTS.md + docs/ai/ filled with real recon data → installs enforcement → asks before committing | | /agent-workflow-kit upgrade | existing deployment | reads docs/ai/.workflow-version, shows the changelog diff, applies migrations, re-stamps |

It never auto-commits and never overwrites an existing AGENTS.md without asking.

Two kinds of "upgrade": npx @sabaiway/agent-workflow-kit@latest init updates the kit's own files in ~/.claude/skills/; /agent-workflow-kit upgrade then migrates a project's docs/ai/ deployment to that kit version.


🔍 How it works (60 seconds)

  • Layered, lazy loadingalways-loaded = AGENTS.md + index.md (~160 lines, cache-warm). On-demand = open a docs/ai/ file only when its "Read When" applies. Hierarchical = subdir AGENTS.md loads when you work in that folder. Archive = old history rolls out of the hot files.
  • Caps + freshness — every doc declares a maxLines cap; a pre-commit hook blocks commits that bust a cap or let the auto-generated index go stale.
  • 3-tier rolling archivechangelog.md (HOT, last days) → history/recent.md (WARM) → per-month COLD + a one-line condensed index. Hot files stay small forever.
  • Plan lifecycle — Plan → Phase → Step → Substep, ephemeral plan files, a mandatory Cleanup phase, and a session-continuity heuristic tuned for large-context models (e.g. Opus 4.8).
  • No silent failures — every guard that rejects an action logs structured context.

Enforcement ships as dependency-free Node scripts (node --test, no package manager assumed). Non-Node projects follow the same policy by hand.


🤝 Cross-agent by design

One kit, three front doors — the output (AGENTS.md + docs/ai/) is read natively by Codex, Cursor, Devin Desktop, Copilot, Gemini CLI & 20+ tools, and the bootstrapper runs from Claude Code, Codex, or Devin Desktop. No logic is duplicated per tool.


📁 What's in the kit

agent-workflow-kit/
├── README.md        ← you are here
├── SKILL.md         ← agent-facing algorithm
├── CHANGELOG.md     ← version history
├── references/
    ├── templates/   ← AGENTS.md + every docs/ai file
    ├── scripts/     ← caps / archive / index + tests
    ├── contracts.md ← visibility / language / attribution rules
    └── planning.md  ← plan lifecycle + continuity
├── launchers/       ← Codex / Devin Desktop / Cursor entries
└── migrations/      ← per-version upgrade steps