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

agentbubble

v0.1.4

Published

Stop coding agents from wandering outside the ticket. A local task contract for Claude Code, Codex, and Cursor.

Readme

AgentBubble

Install

Run AgentBubble from the project you want to prepare:

npx agentbubble@latest init --adapter claude

Using Codex instead:

npx agentbubble@latest init --adapter codex

Supported adapters are claude, cursor, codex, generic, and none.

Quick Start

  1. Initialize local project guidance for your coding agent:
npx agentbubble@latest init --adapter claude
  1. Fill .agentbubble/current-ticket.md with the current task, declared scope, expected domains, forbidden domains, risky systems, and acceptance criteria.

  2. Tell your coding agent: "Ticket is ready. Begin intake."

  3. Audit changed files for scope drift risks before review:

npx agentbubble@latest audit

What AgentBubble Does

AgentBubble creates a local .agentbubble/ folder that gives coding agents project-specific guidance before they start editing.

It helps you:

  • capture project context and architecture notes
  • write the active ticket in a consistent format
  • point Claude Code, Codex, Cursor, or another agent at the same local guidance
  • audit changed files against the ticket before review

AgentBubble is local-only. It does not install an agent runtime, hosted service, telemetry, model integration, or background automation.

Why AgentBubble Exists

Coding agents work better when they have clear context, explicit constraints, and a small task contract.

AgentBubble gives the agent a bounded place to start, then gives the human a quick audit of whether changed files match the declared scope.

Claude Code / Codex / Cursor Usage

Use the adapter that matches your coding agent:

npx agentbubble@latest init --adapter claude
npx agentbubble@latest init --adapter codex
npx agentbubble@latest init --adapter cursor

Adapters write lightweight pointers for the selected tool. The .agentbubble/ folder remains the source of truth.

Commands

agentbubble init [--force] [--yes] [--adapter <claude|cursor|codex|generic|none>]
agentbubble audit

agentbubble init creates .agentbubble/ in the current project, detects deterministic local project signals, and writes lightweight adapter pointers when requested.

agentbubble audit inspects changed files against .agentbubble/current-ticket.md and reports scope drift, risky changes, and clean changes.

How Audit Works

agentbubble audit requires a git repository, a baseline commit, and .agentbubble/current-ticket.md.

It checks changed files from:

  • unstaged changes
  • staged changes
  • untracked files

It compares those files with the ticket sections:

  • Declared Scope
  • Expected Domains
  • Forbidden Domains
  • Risky Systems
  • Acceptance Criteria

Example audit output:

Ticket Scope Audit

Declared scope:
- frontend/app/(app)/calendar/

Changed files:
1

Clean Changes: 1

No scope drift detected.

Project Files Created

AgentBubble copies the base template into .agentbubble/:

  • context.md: product, architecture, rules, and known risks
  • architecture.md: stack, directories, services, and commands
  • current-ticket.md: the active task contract
  • session-start.md: the bootstrap file agents read first
  • workflow.md: the expected work loop
  • coding-rules.md: local coding constraints
  • human-gates.md: places where the agent should stop for approval
  • definition-of-done.md: review and QA expectations
  • session-end.md: end-of-session handoff guidance

See install.md for the full install flow.

Philosophy

AgentBubble is a practical operating layer for human-directed agentic engineering.

Agents are powerful but stochastic. They can write useful code quickly, but they need clear boundaries, current context, and explicit acceptance criteria.

AgentBubble treats agent work as engineering work:

  • preserve the existing architecture
  • follow established patterns
  • mutate the smallest necessary surface area
  • avoid opportunistic refactors
  • verify behavior before claiming completion
  • audit the diff against the original ticket

The agent may implement, but it may not silently redefine the problem.

Context -> Ticket Understanding -> Plan -> Minimal Implementation -> Test -> Audit -> Fix -> QA-Ready

Repository Contents

  • philosophy.md: core operating model
  • context-factory.md: project context compression
  • ticket-intake-loop.md: pre-implementation scope control
  • implementation-loop.md: safe coding rules
  • audit-loop.md: review and risk inspection
  • definition-of-done.md: QA and production readiness
  • install.md: installation guide
  • prompts/: copy-paste prompts
  • templates/: reusable specs, checklists, and base .agentbubble/ files
  • skills/: tool-specific adapter guidance
  • assets/: launch and package media

Contributing

Contributions should keep AgentBubble focused on real init and audit workflows, deterministic local behavior, and scoped launch polish. See CONTRIBUTING.md.