Sandbox
@shinpr/agentic-code

AGENTS.md workflow harness for coding agents

Agentic Code adds a repository entry point and a set of task, workflow, and skill files that guide an agent through scoped change work. It routes small changes directly, and medium or large changes through design and planning before implementation, then checks the result against repository evidence.

49 stars5 forksJavaScriptUpdated 19d ago
Who it's for

Builders who want their agent to follow repo-specific rules, choose the right workflow, and verify changes before finishing.

What it delivers

You can keep agent-led changes on a repeatable path without re-explaining the repo or skipping verification.

What it does

Repository entry point

`AGENTS.md` defines the operating boundaries and gives the agent a place to start.

Task definitions

`.agents/tasks/` contains tasks for analysis, design, implementation, QA, and review.

Coordinated workflow

`.agents/workflows/agentic-coding.md` handles medium and large work across requirements, design, planning, implementation, QA, and review.

Reusable skills

`.agents/skills/` holds reusable guidance for coding, testing, documentation, implementation strategy, and metacognition.

Context selection map

`.agents/context-maps/` maps tasks to the skills they need.

Skills-only install

The `skills` command installs just `.agents/skills/` for Codex, Cursor, or a custom path.

How to get it

  1. 1Create a new repository containing the workflow
    npx agentic-code my-project
    cd my-project
  2. 2For example
    Add an API endpoint for user search without changing the existing response contract.
  3. 3Run
    # User scope
    npx agentic-code skills --codex
    
    # Current project
    npx agentic-code skills --codex --project
  4. 4Run
    # User scope
    npx agentic-code skills --cursor
    
    # Current project
    npx agentic-code skills --cursor --project
  5. 5Run
    npx agentic-code skills --path ./custom/skills

README

Agentic Code

A repository-resident development workflow for coding agents that read AGENTS.md.

Agentic Code adds an AGENTS.md entry point and a set of task, workflow, and skill files to a repository. The agent uses them to keep a well-scoped change on a direct path, route coordinated work through design and planning, load guidance only when it becomes relevant, and verify observable behavior before completion.

It does not generate an application by itself. It gives a coding agent a repeatable way to analyze, design, implement, test, and review changes in the repository where the files are installed.

MIT License AGENTS.md Version

What It Provides

AGENTS.md                      Repository entry point and operating boundaries
.agents/tasks/                 Definitions for analysis, design, implementation, QA, and review
.agents/workflows/             Coordinated workflow for structurally Medium/Large work
.agents/skills/                Reusable implementation, testing, and documentation rules
.agents/context-maps/          Task-to-skill selection map

The route is based on decision burden rather than file count:

ScaleStructural conditionRoute
SmallOne coherent outcome follows existing patterns within one responsibility boundaryDirect task execution
MediumOne coherent outcome coordinates across a boundary or requires a durable design decisionDesign and Work Plan before implementation
LargeMultiple independently valuable outcomes require separate design decisionsPRD, separate design decisions, and Work Plan

File paths and affected layers are still inspected, but they are evidence about the change surface rather than the scale formula.

Quick Start

Requires Node.js 22 or later.

Create a new repository containing the workflow:

npx agentic-code my-project
cd my-project

The command creates the directory, copies AGENTS.md and .agents/, initializes Git, and creates an initial commit. Open the repository with an AGENTS.md-compatible coding agent and describe the change you want.

For example:

Add an API endpoint for user search without changing the existing response contract.

The agent inspects the repository, confirms the outcome and boundaries, selects a direct task or the coordinated workflow, and runs the applicable repository checks before completion.

Add It to an Existing Repository

Copy the framework entry point and .agents directory into the repository root:

cp /path/to/agentic-code/AGENTS.md .
cp -R /path/to/agentic-code/.agents .

Review the generic defaults against the repository's existing commands and conventions. Repository-specific contracts and established checks take precedence over generic examples in the framework.

How the Workflow Behaves

flowchart LR
    A[Request] --> B[Confirm outcome and non-goals]
    B --> C{Structural scale}
    C -->|Small| D[Direct task]
    C -->|Medium| E[Design and Work Plan]
    C -->|Large| F[PRD and separate design decisions]
    D --> G[Implement and verify]
    E --> G
    F --> G
    G --> H[QA and review]
    H --> I[Observable completion]

The workflow is strict about requirements, user authority, irreversible actions, accepted durable decisions, and completion evidence. Inside those boundaries, the agent resolves reversible repository-local choices from the available evidence.

Reuse, no-change, no-new-document, and no-new-test are valid conclusions when they satisfy the requested outcome and its proof.

Tasks, Workflows, and Skills

Tasks

Task definitions own one kind of result. Available tasks include:

TaskResult
task-analysisOutcome, structural scale, selected path, and required skills
prd-creationApproved product outcomes and exclusions for Large work
technical-designRepository-grounded implementation design and verification strategy
acceptance-test-generationNecessary integration/E2E proof selection and skeletons when required
work-planningFewest executable tasks with real dependencies and verification
implementationSmallest sufficient implementation with focused proof
quality-assuranceApplicable repository checks and completion evidence
code-reviewEvidence-backed implementation findings without scope expansion
technical-document-reviewConsumer-focused PRD, ADR, and Design Doc review
integration-test-reviewIntegration/E2E boundary and proof quality review

Workflow

.agents/workflows/agentic-coding.md coordinates Medium/Large work. It preserves the approved outcome across requirements, design, planning, implementation, QA, and review without requiring fixed file counts, test quotas, or template sections that have no current consumer.

Skills

Skills contain reusable judgment for coding, testing, documentation, implementation strategy, and metacognition. They are loaded when the selected task needs them rather than all at startup.

Install Skills Separately

The skills subcommand installs only .agents/skills/; it does not install the full AGENTS.md workflow.

Codex

# User scope
npx agentic-code skills --codex

# Current project
npx agentic-code skills --codex --project

Cursor

# User scope
npx agentic-code skills --cursor

# Current project
npx agentic-code skills --cursor --project

Custom Path

npx agentic-code skills --path ./custom/skills

Run npx agentic-code skills --help for the target paths and available options.

Compatible Tools

The core workflow works with tools that read repository-level AGENTS.md instructions. Cursor, Codex CLI, and Gemini CLI are common examples; exact discovery and skill-installation behavior depends on the tool version.

If you primarily use Codex and want a Codex-native setup with custom agents and isolated review contexts, see codex-workflows.

Reviews

Review tasks evaluate findings against confirmed requirements, accepted design, repository rules, and observable correctness. A receiving agent can:

  • apply a finding required by correctness or an approved boundary;
  • decline optional scope, duplicated proof, or unsupported hardening;
  • return a finding to the user when it changes the product outcome or a major approved decision.

For a fresh perspective, run important reviews in a new session or an isolated agent context. The reviewer still needs the governing requirements, relevant document paths, changed files, and verification evidence.

Example requests:

Review src/auth/ against docs/design/auth-design.md.
Review docs/design/payment-design.md as a Design Doc.
Review the integration tests in tests/integration/auth.test.ts.

Scope and Trade-offs

Agentic Code adds process and context. Direct agent execution is usually cheaper for a well-scoped fix, a disposable experiment, or a one-shot script whose safe boundary is already clear.

Use the coordinated workflow when technical choices can change the product outcome, cross a responsibility boundary, or create a durable decision that later work must understand.

The framework is language-agnostic at its core. TypeScript-specific references are included; other languages use their repository-native commands and conventions until language-specific guidance is added.

Contributing

Issues and pull requests are welcome:

License

MIT. See LICENSE.

Built on the AGENTS.md specification.

Files in the repo

Repository payload8 top-level entries
  • .agents
  • .github
  • bin
  • .gitignore
  • AGENTS.md
  • LICENSE
  • package.json
  • README.md

Discussion (0)

Ask about usage, or say what you built with it

Sign in to join the discussion.

No comments yet. Be the first to say what this is good for.

More harnesses

affaan-m/
ECC
affaan-m/ECCHarnesses

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

258k
ruvnet/rufloHarnesses

🌊 The original agent meta-harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, RAG integration, and native Claude Code / Codex / Hermes and many more Integrated

72k

Practical patterns, starters & CLI tools for loop engineering with AI coding agents. Design systems that prompt and orchestrate agents (inspired by Addy Osmani and Boris Cherny). Includes loop-audit, loop-init, loop-cost.

11k