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

agent-systems

v1.4.2

Published

Standardized AI agent environment profiles, quality gates, security policies, and memory contracts for Cursor, Claude Code, Codex, Gemini / Antigravity, OpenCode, and GitHub Copilot.

Readme

Agent Systems

Standardized environment profiles, operating protocols, security policies, and memory contracts for autonomous AI development agents—including Cursor, Claude Code, Codex, Gemini / Antigravity, OpenCode, and GitHub Copilot.

Package License Zero Dependencies

Agent Systems provides a zero-dependency, plug-and-play CLI to instantly bootstrap production-grade, multi-agent coordination frameworks and strict security safeguards directly into any codebase. It standardizes how AI agents analyze, plan, execute, review, and self-improve while ensuring prompt injection resistance and robust code quality gates.


⚡ Quick Start

Initialize standard configuration profiles, markdown rules, and environment constraints explicitly:

npx agent-systems init

Installing the package does not write files into your repository. Running init creates missing agent-system files, merges supported JSON and root instruction files additively when a managed block already exists, writes non-destructive update proposals under .agent-system/updates/, and updates your .gitignore with safe defaults.

Options & Flags

# Accepted for compatibility; existing files are still preserved
npx agent-systems init --force

# Initialize in a specific subdirectory
npx agent-systems init ./my-project-dir

# View full usage instructions
npx agent-systems --help

# Run a custom agent in the current workspace (requires GEMINI_API_KEY or ANTHROPIC_API_KEY)
export GEMINI_API_KEY="your-api-key"
npx agent-systems run doitforme "Optimize the database schema"

# Learn from a completed benchmark or agent run
npx agent-systems learn --run .agent-system/runs/<run-dir> --write-memory

# Inspect lessons that would be relevant to a future task
npx agent-systems memory --query "fix serializer timezone regression"

# Write a reviewed proposal for improving an agent persona
npx agent-systems optimize --run .agent-system/runs/<run-dir> --agent doitforme

If you link the package locally during development, use the binary aliases: agent-system or agent-systems.

Live Agent Benchmarks

Run curated live-LLM benchmark cases against throwaway fixture repositories:

# List available cases without API keys
npm run benchmark -- --list

# Run one live case with the default provider selection
export GEMINI_API_KEY="your-api-key"
npm run benchmark -- --case serializer-field-bug --agent doitforme --runs 1

Benchmark runs require GEMINI_API_KEY or ANTHROPIC_API_KEY. Results, transcripts, logs, and copied workspaces are written under ignored .agent-system/runs/benchmark-* directories. Scores are reported separately for task completion, safety/evidence, and efficiency.


🎯 Key Features

  • 🌐 Cross-Platform Standards: Uniform profiles and configurations for Cursor, Claude Code, Codex, Gemini / Antigravity, OpenCode, and GitHub Copilot.
  • 🔒 Strict Security Guardrails: Built-in rules that prevent AI agents from reading, printing, copying, or committing .env files, PEM keys, and access tokens.
  • 🧬 Multi-Agent Orchestration: Standardizes distinct agent persona roles (investigator, planner, implementer, reviewer, verifier, skill-librarian) to handle complex workflows safely.
  • 🧭 Doitforme Workflow: Provides a master doitforme agent and a slash-invokable Claude skill (/doitforme) for routing tasks through the right investigation, planning, implementation, review, and verification path.
  • 🛡️ Prompt Injection Resistance: Instructs agents to treat external text, issues, and logs strictly as data rather than executable instructions.
  • 📈 Quality Gates: Establishes unambiguous definitions of done, requirement mapping, and verification check hierarchies.
  • 🔄 Local Learning Loops: Captures run evidence, durable memory heuristics, candidate skills, and reviewed optimization proposals without bloating global agent files.

📂 Anatomy of Installed Components

When initialized, agent-systems installs the following layout:

your-project/
├── .agent-system/               # General agent core standard
│   ├── core/
│   │   ├── context-engineering.md  # Rules for managing token scope
│   │   ├── operating-protocol.md   # Standard step-by-step task loop
│   │   ├── orchestration.md        # Persona separation & subagent control
│   │   ├── quality-gates.md         # Requirements to verify before finish
│   │   ├── security-policy.md      # Commands, dependencies, and secret rules
│   │   └── self-improvement.md     # Guidelines for learning loops & skill library
│   ├── contracts/                  # Shared data schemas for multi-agent runs
│   │   ├── agent-result.md
│   │   ├── context-packet.md
│   │   ├── eval-case.md
│   │   ├── skill-proposal.md
│   │   └── task-contract.md
│   ├── project/
│   │   ├── profile.md              # Project purpose, frameworks, and commands (customizable)
│   │   └── improvement-settings.json
│   ├── candidates/                 # Folder for holding new skill candidates
│   ├── memory/                     # Directory for agent state & memory maps
│   └── evals/                      # Directory for verification/evaluation test cases
├── .claude/                     # Claude Code configurations
│   ├── settings.json               # Hard security path exclusions
│   └── agents/                     # Persona prompts (investigator, planner, etc.)
├── .agents/                     # Shared skills (used by Cursor, Antigravity, and others)
│   └── skills/                     # Custom instructions & operational skills, including doitforme
├── .codex/                      # Codex agent settings
│   └── agents/                     # TOML persona configurations
├── .cursor/                     # Cursor IDE configurations
│   └── rules/                      # .mdc persona rules (agent-system, doitforme, etc.)
├── .gemini/                     # Gemini CLI / Antigravity IDE configurations
│   └── settings.json               # Security file exclusions
├── .github/                     # GitHub Copilot configurations
│   └── copilot-instructions.md     # Repository-wide Copilot instructions
├── .opencode/                   # OpenCode configurations
│   └── agents/                     # Persona prompts (investigator, planner, etc.)
├── AGENTS.md                    # Root instructions for Cursor / Codex / generic agents
├── CLAUDE.md                    # Root instructions for Claude Code
├── GEMINI.md                    # Root instructions for Gemini CLI / Antigravity
├── OPENCODE.md                  # Root instructions for OpenCode
└── opencode.json                # Project-level configuration for OpenCode

🚀 The Multi-Agent Orchestration Architecture

For complex, high-risk, or context-heavy tasks, agent-systems divides labor across highly specialized personas:

| Persona | Primary Responsibility | Key Output | | :--- | :--- | :--- | | 🕵️ Investigator | Scopes the codebase, analyzes existing patterns, and gathers ground truths. | Context Packet | | 📋 Planner | Formulates step-by-step implementation sequences and validation strategies. | Task Contract | | 💻 Implementer | Authors minimal, backward-compatible, clean, and typed code changes. | Small Coherent Patch | | 🔎 Reviewer | Performs independent static checks against code quality rules. | Critique & Lint Feedback | | ✅ Verifier | Executes tests and provides concrete, fresh verification evidence. | Execution Logs | | 📚 Skill Librarian | Curates, optimizes, and registers durable, reusable procedures. | Skill Proposal |

Invocation notes:

  • Claude Code: use /doitforme or start from the project default doitforme agent.
  • Codex: use the native .codex/agents/doitforme.toml persona; the shared .agents/skills/doitforme skill provides the same workflow instructions when skills are available.
  • OpenCode and Cursor: use their platform-specific doitforme definitions.

📈 Six-Stage Quality Gates

All task execution flows are governed by rigorous quality gates to prevent regression:

  1. Gate 1: Requirement: Concrete acceptance criteria, known non-goals, and surfaced assumptions.
  2. Gate 2: Design: Target execution path identified and validation strategy established.
  3. Gate 3: Patch: Verification that changes are limited to scope, errors are handled, and no debug placeholders remain.
  4. Gate 4: Independent Review: Mandatory peer review check for medium/high-risk tasks to flag potential bugs or schema incompatibilities.
  5. Gate 5: Verification: Execution of tests with real evidence (no "should pass" or simulated results).
  6. Gate 6: Completion: Acceptance evidence generated, residual risks reported, and final diff verified.

🧠 Self-Improvement & Reusable Skills

The system enables agents to self-improve dynamically without silently rewriting their governing rules. The loop has three layers:

  1. Eval-gated skill candidates: agent-systems learn --run <dir> --candidate <name> analyzes completed run evidence and creates a focused candidate under .agent-system/candidates/.
  2. Reflective memory retrieval: agent-systems learn --run <dir> --write-memory appends a compact heuristic to .agent-system/memory/heuristics.jsonl; future agent-systems run executions retrieve only the most relevant lessons as advisory context.
  3. Prompt/persona optimization proposals: agent-systems optimize --run <dir> --agent <name> writes a proposal under .agent-system/updates/agent-optimization/ with evidence, instruction deltas, and an eval plan. It never edits active agent instructions automatically.

Promotion remains guarded. A candidate must include a focused definition, imperative instructions, evaluation test cases, and evidence that it improves reliability, context efficiency, repeatability, or verification quality. Manual promotion is the default; validated auto-promotion must be explicitly enabled in .agent-system/project/improvement-settings.json.


🛠️ Local Development & Contributing

To build, link, and run the CLI tool locally for testing or custom updates:

  1. Clone the repository:
    git clone https://github.com/sourrris/agent-systems.git
    cd agent-systems
  2. Link the package locally:
    npm link
  3. Run the CLI tool anywhere on your local machine:
    agent-system --help
    # Or using the plural form
    agent-systems --help

🚢 Release

Publishing is handled by the GitHub Release workflow. Configure a repository secret named NPM_TOKEN with permission to publish agent-systems on npm, then:

  1. Update package.json to the new version.
  2. Commit the release change.
  3. Create and publish a GitHub Release tagged vX.Y.Z matching package.json.

The workflow runs tests, publishes the package to npm, and attaches the generated .tgz package to the GitHub Release.


📄 License

This project is licensed under the MIT License.