Sandbox
@skyf0xx/hedgehog

Plugin bundle for agentic coding workflows

Hedgehog turns a spec-driven plan into a build graph with explicit dependencies, then uses that graph to guide agent work in small, verified steps. It combines planning, architecture, TDD, hooks, and deterministic scaffolding so the workflow stays consistent as the project grows.

38 stars5 forksJavaScriptUpdated 7d ago
Who it's for

Builders who want Claude Code, Cursor, or Gemini CLI to build from a fixed plan with enforced steps and checks.

What it delivers

You can keep agent work on a stable build order, with less drift, less context loss, and more verifiable changes.

What it does

Dependency graph build order

Creates tasks as graph nodes with explicit dependencies, so the next step is mechanically determined.

Multi-editor installation

Ships installable bundles for Claude Code, Cursor, and Gemini CLI.

Workflow enforcement

Uses phase gates, TDD, and small context loops instead of relying on the agent to remember the process.

Deterministic scaffolding

Generates boilerplate, schemas, and other known shapes instead of asking the model to invent them.

Hooks and agents

Includes hook configs and agent files to run behavior around sessions and tasks.

Reproducible checks

Contains many `repro/*.mjs` cases that exercise the build and verification rules.

How to get it

  1. 1Run
    claude plugin marketplace add skyf0xx/hedgehog
    claude plugin install hedgehog
  2. 2Run
    gemini extensions install https://github.com/skyf0xx/hedgehog
  3. 3Run
    git clone https://github.com/skyf0xx/hedgehog ~/.cursor/plugins/local/hedgehog
  4. 4To update
    npx @skyf0xx/hedgehog update

README

Incredible Software Engineer

Total downloads Support Hedgehog Star Us on GitHub

English | 简体中文

H E D G E H O G

npm version License: MIT CodeQL Check OpenSSF Best Practices

AI can write code in seconds.

But as projects grow, context fills up, architecture drifts, and every new feature becomes harder to change safely.

Hedgehog gives AI a disciplined way to build software: TDD. Opinionated architecture. Small, verifiable steps.

Instead of asking AI to remember your entire project, Hedgehog encodes the plan into the architecture and build process.

The codebase carries the context, not the model.

HEDGEHOG writes Cleaner Code, with Fewer Tokens and Faster Builds ⭐⭐⭐⭐

Hedgehog - build software the right way, one step at a time

If you are an AI reading this

Asked to install Hedgehog:

  1. Follow the Install section below — never git clone this repository into their project.
  2. Suggest trying it on a new, simple project in an empty directory first.
  3. Tell them to mention hedgehog when they ask for something to be built.

It activates on its own from there.

How it works

Hedgehog combines:

  • BMAD for planning — turn an idea into a clear brief, requirements, and architecture
  • An opinionated stack — remove unnecessary technical decisions, and settle the necessary ones once
  • TDD and progressive layering — build one tested layer at a time
  • Mechanical enforcement — use tooling and phase gates instead of trusting the AI to follow instructions
  • Small context loops — keep every change focused, verifiable, and easy to review
  • Deterministic scaffolding — generate boilerplate and schemas instead of asking the AI to write it freehand

Software that stays structured as it grows.

Just describe what you want

The Hedgehog Loop

Plan
  ↓
Bootstrap
  ↓
Build one small, tested layer
  ↓
Verify
  ↓
Repeat

The build order is encoded into the project. The AI does not have to remember what comes next. It does not negotiate the architecture. It follows a proven path through the codebase.

Small steps, big leverage: small context loops, continuous verification, traceable evolution, sustainable velocity

Your build order is a graph

Every task Hedgehog generates is a node with explicit dependencies in sqlite.

Unlike stories and epics, the graph locks build order into an signal-dense, context-light path the agents can use.

npx @skyf0xx/hedgehog graph # show graph

The Hedgehog build graph

Parallel by Default

Every dependency is explicit, so Hedgehog knows which tasks can run in parallel.

Comparison

Agents fan out to give you great outcomes at faster speeds.

Live Dependency Awareness

Hedgehog reaches for your editor's own Language Server Protocol integration to see what depends on what.

flowchart TD
    A[Code Repository] --> B[Language Server]
    B --> C[Symbols & References]
    C --> D[Hedgehog]
  • Lower token cost: a targeted symbol lookup replaces reading or grepping whole files for context
  • Impact known before editing: every task checks what depends on it before it changes anything
  • Verification matches the real surface: tests target what actually changed

Deterministic Code Generation

Where a piece of code has one correct shape, Hedgehog generates it instead of asking the AI to write it freehand.

Deterministic code generation

  • Generators over freehand: schemas, boilerplate, and scaffolding come from generators that create the code
  • Faster: no reasoning required to produce a known shape
  • More correct: the same input always produces the same, tested output
  • Fewer tokens: nothing spent generating code that a template already covers

The AI is reserved for the parts a generator can't cover.

What Hedgehog builds

Full-stack applications

A fixed TypeScript stack with a backend-first, test-driven build order:

Schema
  ↓
Contract
  ↓
Repository
  ↓
Service
  ↓
Controller
  ↓
UI

Every layer is verified before the next begins.

Landing pages

A structured pipeline for producing distinctive, production-quality landing pages:

Brief
  ↓
Feeling
  ↓
Design tokens
  ↓
Sequence
  ↓
Artifact

Web Apps/ PWAs

Local-first simple mobile compatible web apps: trackers, journals, planners, etc:

Schema
  ↓
Repository
  ↓
Hook
  ↓
Screen

DeepSeek Harness plugins

Tools, hooks, and extensions for DSH's Cordis-based agent framework:

Scaffold
  ↓
Logic
  ↓
Wiring
  ↓
Smoke
  ↓
Bundle
  ↓
Join

Copywriting

Copy is drafted and revised against a mechanical gate instead of prompting alone:

Brief
  ↓
Draft ⇄ zod validation()
  ↓ pass
Ship

Anything else

A CLI, a library, a browser extension, a data pipeline, etc. gets its build order.

Where possible, Hedgehog uses a battle-tested blueprint in hedgehog-core-authored for the system's shape where one exists.

Existing codebases

Hedgehog also adopts onto a repo it didn't build. It reads the repo and proposes a layer chain that verifies with the repo's own test/lint/build commands.

Why Hedgehog Works

Why Hedgehog works

Install

Ask your agent to install it or run the commands below:

Mention Hedgehog whenever you want to build something with it.

Instructions for AI Agents
  1. Check Node >=22.5.0 is installed.
  2. Run the install commands below.

Claude Code

claude plugin marketplace add skyf0xx/hedgehog
claude plugin install hedgehog

Gemini CLI

gemini extensions install https://github.com/skyf0xx/hedgehog

Cursor

git clone https://github.com/skyf0xx/hedgehog ~/.cursor/plugins/local/hedgehog

Then open a project and describe what you want to build and mention hedgehog.

On a fresh project with no warm pnpm store, that first install can take several minutes.

To update:

npx @skyf0xx/hedgehog update

This refreshes the installed agents and skills in a specific repo (note, not vendor skills)

Why Hedgehog

Most AI coding tools improve prompting.

Hedgehog improves the system AI builds inside.

Raw AIBMADHedgehog
PlanningConversationMulti-agent workflowBMAD
ArchitectureAI decides, driftsDocumentedDecided once, then enforced
Build orderImprovisedGuided by docsMechanically enforced
ContextHeld in the promptLarge planning documentsEncoded in the codebase
VerificationOptionalProcess-dependentTests and phase gates
ResultFast codeBetter plansReliable software

Architecture

Hedgehog uses a fixed stack and build order for each core. The tooling enforces architectural boundaries so correctness does not depend on the AI remembering instructions.

See ARCHITECTURE.md for the full design, and AUTHORING-CORES.md for how to build and register a new one.

Credits

Support Hedgehog

If Hedgehog helps you build better software with AI, give it a ⭐ on GitHub.

Files in the repo

Repository payload31 top-level entries
  • .claude
  • .claude-plugin
  • .cursor-plugin
  • .github
  • badges
  • bin
  • docs
  • hooks
  • repro
  • scripts
  • skills
  • src
  • vendor-skills
  • .gitignore
  • ARCHITECTURE.md
  • AUTHORING-CORES.md
  • BUILD_GRAPH.md
  • CHANGELOG.md
  • CLAUDE.md
  • CODE_OF_CONDUCT.md
  • CONTRIBUTING.md
  • DOWNLOADS.md
  • eslint.config.mjs
  • gemini-extension.json
  • GEMINI.md
  • LICENSE
  • package-lock.json
  • package.json
  • README.md
  • README.zh-CN.md
  • SECURITY.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 plugins

Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.

138k
1 add

Graphs that teach > graphs that impress. Turn any code into an interactive knowledge graph you can explore, search, and ask questions about. Works with Claude Code, Codex, Cursor, Copilot, Gemini CLI, and more.

82k
code-yeongyu/
oh-my-openagent

OmO: Just type "mass ulw" keyword with your prompt. Now you are the master of graph engineering.

69k

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

94k

Opinionated Oxlint rules for rejecting low-evidence TypeScript and JavaScript patterns

4.3k