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

@markjaquith/agency

v1.0.0

Published

Manages personal agents files

Downloads

976

Readme

@markjaquith/agency

Smuggle project-level LLM instruction into any Git repo. Plan your tasks. Commit your plans. Execute your plans using Opencode. Filter those plans out out your PRs.

Installation

bun install -g @markjaquith/agency

Primary Commands

agency task <branch-name>

Create a new feature branch from the latest origin/main and initialize AGENTS.md and TASK.md files using the template you've set for this repo. Commits smuggled files and lands you on that branch.

Options:

  • --from <branch> - Branch from a specific branch instead of origin/main
  • --from-current - Initialize on current branch instead of creating a new one
  • --continue - Continue a task by copying agency files to a new branch (after PR merge)

Examples:

agency task my-feature              # Create 'my-feature' from latest origin/main
agency task my-feature --from dev   # Create 'my-feature' from 'dev' branch
agency task --from-current          # Initialize on current branch (no new branch)
agency task --continue my-feature-v2 # Continue task on new branch after PR merge

agency edit

Open TASK.md in the system editor for editing. Nice if you have to paste in large amounts of context.

agency work

Launch Opencode to work on the current task defined in TASK.md. All your context will be loaded.

agency emit [base-branch]

Create an emit branch with smuggled files reverted to their merge-base state (removes additions/modifications to those files made on feature branch). Default branch name is current branch with --PR suffix.

agency push [base-branch]

Runs agency emit, pushes the branch, and then switches back to the source branch.

Options:

  • --pr - Open GitHub PR in browser after pushing (requires gh CLI)
  • --force - Force push to remote if branch has diverged
  • --branch <name> - Custom name for emit branch

agency merge

Runs agency emit, and then merges the PR back into the base branch locally.

Options:

  • --squash - Use squash merge instead of regular merge (stages changes, requires manual commit)
  • --push - Push the base branch to origin after merging

Other Commands

agency template use [template]

Set which template to use for this repository. Shows interactive selection if no template name provided. Saves to .git/config.

agency template save <files...>

Save the specified files back to the configured template directory (so they will be used for future agency task commands).

agency base get

Get the base branch for the current feature branch.

agency base set <branch>

Set the base branch for the current feature branch.

agency switch

Toggle between source branch and emit branch. If on an emit branch (e.g., foo--PR), switches to source branch (e.g., foo). If on source branch and emit branch exists, switches to emit branch.

agency source

Switch to the source branch for the current emit branch.

Requirements

  • Bun >= 1.0.0 (recommended)
  • TypeScript ^5

Development

To install dependencies:

bun install

To run:

bun run index.ts

Git Hooks

This project uses hk for git hook management. The configuration is in hk.pkl.

To install the git hooks:

hk install

Pre-commit hook runs:

  • Prettier formatting
  • Knip (unused code detection)
  • TypeScript type checking

Commit-msg hook validates:

  • Conventional commits format
  • Commit message history

Pre-push hook runs the same checks as pre-commit.

Note: Tests are intentionally excluded from git hooks as they are slow. Run them manually with bun test.

License

MIT