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

agentic-engine

v1.0.1

Published

Scaffold agent-first project structure for agentic coding based on OpenAI's harness engineering principles

Readme

agentic-engine

Scaffold agent-first project structures for agentic coding

npm version License: MIT

A CLI tool that creates an optimal project structure for agent-first development, based on OpenAI's harness engineering principles.

✨ Features

  • 🤖 Agent-optimized structure - Repository layout designed for AI agent legibility
  • 📚 Documentation-first - AGENTS.md/CLAUDE.md as table of contents, detailed docs in docs/
  • Built-in validation - TypeScript/JavaScript scripts to validate structure and freshness
  • 🔄 CI/CD ready - GitHub Actions workflows for automated validation
  • 🎨 Framework-agnostic - Works with any language/framework (React, Next.js, Express, etc.)
  • 📦 Zero dependencies - Clean project scaffold without bloat

🚀 Quick Start

Using npx (npm)

npx agentic-engine

Using bunx (Bun)

bunx agentic-engine

📖 What Gets Created

my-agent-project/
├── AGENTS.md              # Agent development guide (~100 lines)
├── CLAUDE.md              # Identical to AGENTS.md
├── ARCHITECTURE.md        # System architecture overview
├── DESIGN.md              # Design principles
├── FRONTEND.md            # Frontend guidelines (optional)
├── PLANS.md               # Planning guidelines
├── PRODUCT_SENSE.md       # Product principles
├── QUALITY_SCORE.md       # Quality metrics tracker
├── RELIABILITY.md         # Reliability standards
├── SECURITY.md            # Security guidelines
├── docs/
│   ├── design-docs/
│   │   ├── index.md
│   │   ├── core-beliefs.md
│   │   └── template.md
│   ├── exec-plans/
│   │   ├── active/
│   │   ├── completed/
│   │   ├── tech-debt-tracker.md
│   │   └── template.md
│   ├── product-specs/
│   │   ├── index.md
│   │   └── template.md
│   ├── references/        # For LLM-optimized library docs
│   └── generated/         # Auto-generated documentation
├── scripts/
│   └── validate-structure.{ts,js}  # Structure validation
├── .github/
│   └── workflows/
│       └── validate-docs.yml       # CI validation
├── biome.json             # Linter/formatter config
└── README.md              # Project README

🎯 Core Principles

The generated structure follows these harness engineering principles:

  1. Repository as Source of Truth - Everything must be in-repo and discoverable by agents
  2. Progressive Disclosure - AGENTS.md is a map (~100 lines), detailed docs live in docs/
  3. Mechanical Enforcement - Linters and CI validate structure, not just humans
  4. Agent Legibility First - Optimized for agent reasoning and pattern recognition
  5. Continuous Cleanup - Automated validation catches drift early

🛠️ Interactive Setup

When you run the CLI, you'll be prompted for:

  1. Project path - Where to create the structure
  2. Project type - Full-stack, Backend, or Frontend
  3. Validation language - TypeScript or JavaScript
  4. Observability templates - Include observability stack templates (optional)
  5. CI/CD - Include GitHub Actions workflows

📚 After Creation

1. Initialize Your Application Framework

The structure is framework-agnostic. Choose your framework:

Frontend:

cd my-agent-project
npm create vite@latest        # React + Vite
# or
npx create-next-app@latest    # Next.js
# or
npm create svelte@latest      # SvelteKit

Backend:

npm create express-app         # Express
# or
npm i -g @nestjs/cli && nest new .  # NestJS

2. Customize Documentation

  • Review and customize AGENTS.md and CLAUDE.md
  • Update ARCHITECTURE.md with your system domains
  • Document your tech stack choices
  • Add your first design doc in docs/design-docs/

3. Run Validation

# TypeScript
cd scripts && npm install && npm run validate

# JavaScript
node scripts/validate-structure.js

🤖 Agent Development Workflow

  1. Context gathering - Read relevant docs (start with AGENTS.md)
  2. Plan - Create execution plans for complex work
  3. Design - Document architectural decisions
  4. Implement - Follow constraints and quality standards
  5. Validate - Run tests and validation scripts
  6. Review - Get agent and human feedback
  7. Document - Update docs based on learnings

📋 What's Included

Root Documentation

  • AGENTS.md / CLAUDE.md - Agent development guide (table of contents)
  • ARCHITECTURE.md - System architecture and layering
  • DESIGN.md - Design principles and code organization
  • FRONTEND.md - Frontend guidelines (if applicable)
  • PLANS.md - Planning and execution plan guidelines
  • PRODUCT_SENSE.md - Product principles and UX guidelines
  • QUALITY_SCORE.md - Quality metrics tracker
  • RELIABILITY.md - Reliability and observability standards
  • SECURITY.md - Security best practices

Documentation Structure

  • docs/design-docs/ - Design documentation with index and template
  • docs/exec-plans/ - Execution plans (active/completed) with template
  • docs/product-specs/ - Product specifications with template
  • docs/references/ - External library docs optimized for LLMs
  • docs/generated/ - Auto-generated documentation

Tooling

  • Validation script - Validates structure, cross-links, freshness
  • GitHub Actions - CI workflow for automated validation
  • Biome config - Code formatting and linting setup

🔍 Validation Features

The validation script checks:

  • ✅ Required root docs exist
  • ✅ AGENTS.md and CLAUDE.md are identical
  • ✅ AGENTS.md is ~100 lines (warns if > 150)
  • ✅ Required docs/ subdirectories exist
  • ✅ Cross-links in AGENTS.md are valid
  • ✅ Design docs are fresh (warns if > 6 months old)

🌟 Why Agent-First?

Traditional project structures are optimized for human developers. Agent-first structures are optimized for AI agent legibility and autonomous operation:

  • Progressive disclosure - Agents start with a map, navigate to details
  • Everything in-repo - Agents can only see what's versioned
  • Mechanical enforcement - Constraints are enforced automatically
  • Structured knowledge - Organized docs enable agent reasoning

Read more: OpenAI's Harness Engineering

🤝 Contributing

Contributions are welcome! Please read the contributing guidelines before submitting PRs.

📄 License

MIT License - see LICENSE file for details

🔗 Links

💡 Tips

  1. Keep AGENTS.md short - Use it as a table of contents, not an encyclopedia
  2. Document decisions - Use design docs to capture architectural choices
  3. Enforce mechanically - Add custom linters for project-specific constraints
  4. Update continuously - Keep docs fresh, don't let them rot
  5. Agent-legible libraries - Extract key docs to docs/references/ for agent consumption

Built for the age of agentic coding 🤖