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

@archi-physics/cooper

v0.1.2

Published

Cooper installer for cooperative AI-assisted HEP analysis workflows

Downloads

321

Readme

cooper

A scaffold installer that gives coding agents (Copilot, Claude Code, Codex, etc.) the structure they need to be useful inside real working environments — persistent memory, studies, knowledge, and skills.

Install

cd /path/to/your-repo
npx @archi-physics/cooper init

This creates a cooper/ directory in your repo with:

  • cooper/AGENTS.md — operating instructions every agent reads first
  • cooper/knowledge/ — canonical, reusable project knowledge
  • cooper/memory/ — working memory, decisions, handoff notes
  • cooper/studies/ — per-topic investigations with run logs
  • cooper/refs/ — local references (papers, notes, links)
  • cooper/skills/ — reusable agent skills/modules

It also adds a managed AGENTS.md block at your repo root that points assistants to the scaffold.

Your project's own code, configs, and scripts stay where they are. Cooper doesn't touch them — it just gives agents the context and structure to help you with them.

Options

  • --path <dir>: target repo path (default: current directory)
  • --subdir <name>: install subdirectory (default: cooper)
  • --force: overwrite existing scaffold files

Update

When a new version of Cooper is released, update your scaffold's infrastructure files (policies, templates) without touching your content (knowledge, studies, decisions):

cd /path/to/your-repo
npx @archi-physics/cooper update

This overwrites infrastructure files (AGENTS.md, study templates, example configs) and preserves user files (knowledge base, memory, studies, refs).

To preview what would change:

npx @archi-physics/cooper update --dry-run

Update Options

  • --path <dir>: target repo path (default: current directory)
  • --subdir <name>: install subdirectory (default: cooper)
  • --force: also overwrite user content files
  • --dry-run: show what would change without writing

Why Cooper?

Frontier agents are already highly capable. The bottleneck isn't intelligence — it's context. Agents need local structure to be effective: project docs, workflows, reusable skills, domain knowledge, and a persistent memory of what was done and why.

Cooper provides that scaffold so agents can plug into your environment, follow your way of working, and improve over time through documented history.

What the Scaffold Enforces

  • Study discipline: Every investigation gets a study directory with a clear question, tracked pipeline runs, and documented conclusions. Agents must log every run immediately — no batching.
  • Session continuity: Agents read memory on startup and update it on handoff, so context persists across sessions.
  • Knowledge promotion: Reusable findings get promoted from ephemeral notes into the permanent knowledge base.
  • Decision tracking: Every significant decision is logged with rationale, alternatives considered, and reversibility.

See templates/cooper/AGENTS.md for the full policy.

Repository Structure (This Repo)

This is the npm package source, not a working scaffold instance.

cooper/                        # This repo (npm package source)
├── AGENTS.md                  # Instructions for developing Cooper
├── package.json               # npm package definition
├── bin/cooper.js              # CLI entrypoint (cooper init)
├── templates/cooper/          # Scaffold payload installed into user repos
│   ├── AGENTS.md              # Agent operating instructions
│   ├── knowledge/             # domain knowledge base
│   ├── memory/                # session memory & decisions
│   ├── studies/               # tracked investigations
│   ├── refs/                  # references & papers
│   └── skills/                # reusable agent skills
├── openspec/                  # Design specs for Cooper development
│   ├── cooper.md              # Vision, scope, boundaries
│   └── project.md             # Tech stack, conventions
└── README.md

When installed into a user's repo:

their-analysis-repo/
├── AGENTS.md                  # Managed block → points to cooper/
├── their_code/                # User's existing code (untouched)
├── their_configs/             # User's existing configs (untouched)
└── cooper/                    # Installed by `cooper init`
    ├── AGENTS.md              # Agent operating instructions
    ├── knowledge/             # Domain knowledge base
    ├── memory/                # Session memory & decisions
    ├── studies/               # Tracked investigations
    ├── refs/                  # References & papers
    └── skills/                # Reusable agent workflows

Contributing

Development Setup

git clone [email protected]:archi-physics/cooper.git
cd cooper

No build step — the package is plain JS and markdown templates.

Testing Locally

Run a smoke test that installs the scaffold into a temp directory:

npm run test:smoke

To test the CLI against a real repo without publishing:

cd /path/to/test-repo
npx /path/to/cooper init

npm Authentication

You must be logged in to npm with access to the @archi-physics org:

npm login
npm access grant read-write @archi-physics:developers  # if needed

Publishing to npm

  1. Ensure you're on main with a clean working tree:

    git checkout main && git pull
    git status  # should be clean
  2. Bump the version:

    npm version patch   # or minor / major

    This updates package.json and creates a git tag (v0.1.1, etc.).

  3. Push the version commit and tag:

    git push origin main --tags
  4. Publish:

    npm publish --access public

Version Policy

  • patch (0.1.x): template content changes, bug fixes, doc updates
  • minor (0.x.0): new scaffold features (e.g., new directories, CLI flags)
  • major (x.0.0): breaking changes to scaffold structure or CLI interface