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

@pedrocivita/tocket

v2.5.0

Published

The Context Engineering Framework for Multi-Agent Workspaces

Readme

CI npm License: MIT Website

Tocket

The Context Engineering Framework for Multi-Agent Workspaces

AI agents forget everything between sessions. When multiple agents work on the same codebase, they re-read files, duplicate work, and make conflicting decisions. Tocket fixes this with shared context files that any agent can read — no vendor lock-in, no special integrations.

The idea in 30 seconds

Tocket is a file convention. It adds a .context/ directory to your repo with markdown files that describe your project's current state, architecture, and progress. Any AI agent that can read files — Claude, Gemini, GPT, Cursor, Copilot — can pick up where the last session left off.

your-project/
  .context/
    activeContext.md      # What's happening right now
    systemPatterns.md     # How the codebase is organized
    techContext.md        # Stack and build tools
    productContext.md     # What the product is and why
    progress.md           # What's done, what's next
  TOCKET.md               # Protocol rules (agent-agnostic)
  CLAUDE.md               # Executor instructions (auto-detected per agent)
  GEMINI.md               # Architect instructions (auto-detected per agent)

All files are plain markdown, committed to git, and readable by any tool.

You don't need the CLI

The protocol is just files. You can adopt it manually:

  1. Create a .context/ directory with activeContext.md and systemPatterns.md
  2. Add a TOCKET.md to your repo root
  3. Tell your agents to read .context/ before acting

The CLI automates the scaffolding, provides smart defaults, and adds quality-of-life tooling around the protocol.

Quick Start

# Scaffold a new workspace
npx @pedrocivita/tocket init

# Or just the essentials (3 files)
npx @pedrocivita/tocket init --minimal

# Configure your agents (optional — defaults to Claude Code + Gemini)
npx @pedrocivita/tocket config --architect "Gemini" --executor "Claude Code"

# Or open the interactive dashboard
npx @pedrocivita/tocket

That's it. Your repo now has a Memory Bank. Every AI session starts by reading .context/activeContext.md.

Safe testing — use a branch

Tocket writes files to your repo, but you can try it risk-free on a branch:

git checkout -b test/tocket-setup
npx @pedrocivita/tocket init
git add .context/ TOCKET.md CLAUDE.md GEMINI.md
git commit -m "chore: scaffold Tocket workspace"

# Try it out — run some AI sessions, see if you like it
# Don't like it? Clean up:
npx @pedrocivita/tocket eject     # removes all Tocket files
# Or just delete the branch:
git checkout main && git branch -D test/tocket-setup

See the Developer Guide for detailed safe-testing workflows.

Commands

| Command | What it does | | --- | --- | | tocket | Interactive dashboard with guided menu | | tocket init | Scaffold .context/, TOCKET.md, and agent configs (auto-detects stack + agents) | | tocket generate | Build structured payload XML (auto-fills scope from git) | | tocket sync | Append session summary + git log to .context/progress.md | | tocket validate | Check if the workspace has a valid Memory Bank | | tocket focus | Update the Current Focus in activeContext.md | | tocket status | Quick overview: workspace health, branch, focus, agents | | tocket doctor | Deep workspace diagnostics (content health, git tracking, staleness) | | tocket lint | Audit .context/ content quality and suggest improvements | | tocket config | Manage global settings: agent roles, author, priority (~/.tocketrc.json) | | tocket eject | Remove all Tocket files (with confirmation) |

CI-friendly flags

Every interactive command has flags for non-interactive use:

# Minimal init (3 files instead of 9)
tocket init --minimal --name myproject --description "My app" --force

# Sync without prompt
tocket sync --summary "Fixed auth bug and added tests"

# Generate to stdout or file instead of clipboard
tocket generate --to stdout
tocket generate --to payload.xml

How it works

Memory Bank

The .context/ directory is the project's shared memory. Agents read it before acting and update it after completing work. Context lives in files, not in chat history.

| File | Purpose | Updated | | --- | --- | --- | | activeContext.md | Current focus, recent changes, open decisions | Every session | | systemPatterns.md | Architecture patterns and conventions | When patterns change | | techContext.md | Stack, build tools, critical rules | When stack changes | | productContext.md | What the product is and why | Rarely | | progress.md | Milestones and completed work | Per milestone |

Triangulation

For complex tasks, Tocket separates planning from implementation:

Architect (any planning AI)         Executor (any coding AI)
     |                                   |
     |  1. Reads .context/               |
     |  2. Analyzes task                 |
     |  3. Generates <payload> XML       |
     |-------- structured handoff ------>|
     |                                   |  4. Reads .context/ + payload
     |                                   |  5. Implements tasks
     |                                   |  6. Updates .context/
     |<-------- status report -----------|

The Architect doesn't write code. The Executor doesn't make architecture decisions. The payload XML is the contract between them. For simple tasks, a single agent can fill both roles.

Who is this for?

  • Developers using multi-agent setups (Gemini + Claude, Cursor + Copilot, etc.)
  • Teams that want reproducible AI-assisted development across sessions
  • Anyone tired of re-explaining project context to AI every time they open a chat
  • Open-source maintainers who want contributors' AI agents to follow project conventions

How is Tocket different?

| Tool | What it does | How Tocket differs | | --- | --- | --- | | .cursorrules | Single-agent instructions for Cursor | Tocket defines inter-agent protocol, not just single-agent rules | | CLAUDE.md | Instructions for Claude Code | Tocket generates agent configs as part of a broader multi-agent system | | AGENTS.md | Codex agent instructions | Same idea for one agent; Tocket coordinates multiple agents | | Prompt templates | Static prompts for LLMs | Tocket's Memory Bank evolves with the project; payloads are structured, not freeform | | Vendor-locked tools | Tied to one provider | Tocket works with any LLM/tool — configure via tocket config |

Configuration

Configure your preferred agents and defaults:

# Configure your agent roles
tocket config --architect "Gemini" --executor "Claude Code"

# Set payload defaults
tocket config --author "Your Name" --priority medium --skills "core,lsp"

# Or use the interactive setup (sections: Identity, Agent Roles, Payload Defaults)
tocket config

# View current config
tocket config --show

Config is stored at ~/.tocketrc.json.

Supported Agents

Tocket auto-generates the correct instruction file for each agent:

| Agent | Role | Generated File | | --- | --- | --- | | Claude Code | Executor | CLAUDE.md | | Cursor | Executor | .cursorrules | | Windsurf | Executor | .windsurfrules | | Copilot | Executor | .github/copilot-instructions.md | | Gemini | Architect | GEMINI.md | | (any other) | Executor | EXECUTOR.md | | (any other) | Architect | ARCHITECT.md |

Don't see your agent? It still works — unknown agents get generic files, and you can override any template via ~/.tocket/templates/.

Documentation

| Guide | Description | | --- | --- | | Getting Started | Set up your first Tocket workspace in 5 minutes | | Developer Guide | How to run the Tocket protocol safely in any project | | Tocket Rules | Complete reference for all protocol rules | | Protocol Spec | The agent-agnostic protocol specification | | Walkthrough | End-to-end payload exchange example |

Contributing

We welcome contributions! Visit tocket.ai for an overview of the framework, then read our Contributing Guide to get started.

This project follows a Code of Conduct.

License

MIT