Labsco
HendryAvila logo

Hoofy

β˜… 15

from HendryAvila

Your AI development companion. An MCP server that gives your AI persistent memory, structured specifications, and adaptive change management β€” so it builds what you actually want.

πŸ”₯πŸ”₯πŸ”₯βœ“ VerifiedFreeAdvanced setup
<p align="center"> <img src="assets/logo.png" alt="Hoofy β€” AI development companion MCP server with persistent memory and spec-driven development" width="280" /> </p> <h1 align="center">Hoofy</h1> <p align="center"> <strong>The AI coding assistant that remembers context and reduces spec hallucinations.</strong><br> An MCP server that gives your AI persistent memory, structured specifications,<br> and adaptive change management β€” so it builds what you actually want. </p> <p align="center"> <a href="https://github.com/HendryAvila/Hoofy/actions/workflows/ci.yml"><img src="https://github.com/HendryAvila/Hoofy/actions/workflows/ci.yml/badge.svg" alt="CI"></a> <a href="https://go.dev"><img src="https://img.shields.io/badge/Go-1.25+-00ADD8?logo=go&logoColor=white" alt="Go"></a> <a href="https://modelcontextprotocol.io"><img src="https://img.shields.io/badge/MCP-Compatible-purple" alt="MCP"></a> <a href="LICENSE"><img src="https://img.shields.io/badge/License-MIT-yellow.svg" alt="License: MIT"></a> <a href="https://github.com/HendryAvila/Hoofy/releases"><img src="https://img.shields.io/github/v/release/HendryAvila/Hoofy?include_prereleases" alt="Release"></a> </p> <p align="center"> <a href="https://hendrycode.xyz/blog/2026/2/25/hoofy-tu-companion-de-desarrollo-con-ia-que-no-te-deja-cortar-camino/">Blog Post</a> Β· <a href="docs/workflow-guide.md">Workflow Guide</a> Β· <a href="docs/tool-reference.md">Tool Reference</a> Β· <a href="docs/research-foundations.md">Research Foundations</a> Β· </p>

Start Here (TL;DR)

If the README felt overwhelming, use this section first.

  • Hoofy is an MCP server that gives your AI persistent memory + spec-driven workflow.
  • It prevents the classic AI failure modes: forgetting context, hallucinating requirements, and skipping planning.
  • It works with Claude Code, Cursor, VS Code Copilot, OpenCode, Gemini CLI (and any MCP-compatible tool).
  • You can use it for new projects, ongoing changes, or existing projects without specs.
  • Install, connect MCP, and start with a small change.

60-Second Quick Start

  1. Install Hoofy: brew install HendryAvila/hoofy/hoofy (or use the install script below).
  2. Connect MCP: claude mcp add --scope user hoofy hoofy serve (or use your editor's MCP config).
  3. Ask your AI to implement a change β€” Hoofy guides planning + memory automatically.

What Is Hoofy? β€” AI Development Companion for MCP

Hoofy solves three recurring AI-dev problems: memory loss between sessions, hallucinated implementations, and unstructured workflows. It's a single MCP (Model Context Protocol) server written in Go β€” one binary, zero external runtime dependencies.

Choose your path

  • New project β†’ run the full project pipeline (sdd_init_project β†’ ... β†’ sdd_validate)
  • Existing project, adding/fixing something β†’ start with sdd_change
  • Existing project with no specs yet β†’ sdd_reverse_engineer + sdd_bootstrap
  • Just need context/review quickly β†’ sdd_suggest_context, sdd_review, sdd_audit

Core systems (at a glance)

SystemWhat it doesTools
MemoryPersistent context across sessions using SQLite + FTS5 full-text search.mem_* tools
Change PipelineAdaptive flow for ongoing work based on change type Γ— size (12 variants).sdd_change*, sdd_adr
Project PipelineFull greenfield specification flow with Clarity Gate (9 stages).sdd_* project tools
BootstrapReverse-engineer existing codebases into requirements, rules, and design artifacts.sdd_reverse_engineer, sdd_bootstrap

Key features (most important)

  • Principles-first pipeline β€” define non-negotiables before requirements.
  • Clarity Gate β€” blocks vague specs before implementation starts.
  • Context-check on every change β€” catches conflicts early.
  • Spec-aware review/audit β€” compare code against requirements and rules.
  • Persistent memory + knowledge graph β€” decisions and fixes remain searchable.
  • Hot/cold instructions β€” lightweight core instructions + on-demand guides.
<details> <summary><strong>See full feature details</strong></summary>
  • Project Charter β€” The old "proposal" stage is now a charter with domain context, stakeholders, vision, boundaries, success criteria, existing systems, and constraints.
  • Spec-vs-Code Audit β€” sdd_audit compares specifications against source code to detect missing implementations and drift.
  • Auto-Generated Agent Instructions β€” sdd_init_project injects SDD instructions into CLAUDE.md/AGENTS.md (idempotent).
  • Unified ADR Storage β€” ADRs are always written to docs/adrs/NNN-slug.md.
  • Spec-Aware Code Review β€” sdd_review generates a checklist tied to FR/NFR/business rules/ADRs.
  • Ad-Hoc Context Suggestion β€” sdd_suggest_context recommends what to read before implementation.
  • Existing Project Bootstrap β€” sdd_reverse_engineer + sdd_bootstrap create missing artifacts for legacy codebases.
  • Knowledge Graph β€” relate observations with typed edges (depends_on, caused_by, implements, etc.).
  • Facade-First Tooling β€” unified memory entry points: mem_save and mem_session.
  • Business Rules Stage β€” BRG + DDD extraction before Clarity Gate.
  • Pre-pipeline Exploration β€” sdd_explore captures goals/constraints/unknowns before formal pipeline work.
  • Wave Assignments β€” task dependency waves for parallel execution planning.
Decision: "Switched to JWT"  β†’(caused_by)β†’  Discovery: "Session storage doesn't scale"
    ↑(implements)                               ↑(relates_to)
Bugfix: "Fixed token expiry"              Pattern: "Retry with backoff"
</details>

Why Hoofy?

AI coding assistants are powerful but forgetful and overconfident. Studies show experienced developers are 19% slower with unstructured AI (METR 2025), and AI adoption without structure causes 7.2% delivery instability (DORA 2025). Hoofy fixes this by making your AI remember context, follow specifications, and validate understanding before coding.

How it flows

flowchart TB
    explore["sdd_explore\n(goals, constraints, unknowns)"]

    subgraph project ["New Project (greenfield)"]
        direction LR
        P1[Init] --> P1b[Principles] --> P2[Charter] --> P3[Requirements] --> P3b["Business\nRules"]
        P3b --> P4{Clarity Gate}
        P4 -->|Ambiguous| P3
        P4 -->|Clear| P5[Design] --> P6[Tasks] --> P7[Validate]
    end

    subgraph bootstrap ["Existing Project (no specs)"]
        direction LR
        B1["sdd_reverse_engineer\n(scan codebase)"] --> B2["AI analyzes\nreport"] --> B3["sdd_bootstrap\n(write artifacts)"]
    end

    subgraph change ["Existing Project (changes)"]
        direction LR
        C1["sdd_change\n(type Γ— size)"] --> C1b["Context\nCheck"]
        C1b --> C2["Opening Stage\n(describe/charter/scope)"]
        C2 --> C3["Spec + Design\n(if needed)"]
        C3 --> C4[Tasks] --> C5[Verify]
    end

    subgraph memory ["Memory (always active)"]
        direction LR
        M1["mem_session(action=start)"] --> M2["Work + mem_save"]
        M2 --> M3["Connect with Relations"]
        M3 --> M4["mem_session(action=end, summary)"]
    end

    explore -.->|"captures context before"| project
    explore -.->|"captures context before"| change
    bootstrap -.->|"enables"| change

    style explore fill:#8b5cf6,stroke:#7c3aed,color:#fff
    style P4 fill:#f59e0b,stroke:#d97706,color:#000
    style P1b fill:#e879f9,stroke:#c026d3,color:#000
    style P3b fill:#e879f9,stroke:#c026d3,color:#000
    style C1b fill:#e879f9,stroke:#c026d3,color:#000
    style B1 fill:#06b6d4,stroke:#0891b2,color:#fff
    style B3 fill:#06b6d4,stroke:#0891b2,color:#fff
    style P7 fill:#10b981,stroke:#059669,color:#fff
    style C5 fill:#10b981,stroke:#059669,color:#fff

Full workflow guide with step-by-step examples Β· Complete tool reference


Hoofy β€” Spec-Driven Development

Before coding any non-trivial change, use Hoofy specs first.

  • New projects: sdd_init_project -> full pipeline
  • Existing projects without specs: sdd_reverse_engineer -> sdd_bootstrap
  • Ongoing work: sdd_change (size/type adaptive)
  • Ad-hoc sessions: sdd_suggest_context
  • Reviews: sdd_review
  • Spec/code drift checks: sdd_audit
  • Memory: mem_save, mem_session

---

## Best Practices

### 1. Specs before code β€” always

The AI will try to jump straight to coding. Don't let it. For any non-trivial work:
- **New project?** β†’ `sdd_init_project` and walk through the full 9-stage pipeline
- **New feature?** β†’ `sdd_change(type: "feature", size: "medium")` at minimum
- **Bug fix?** β†’ Even `sdd_change(type: "fix", size: "small")` gives you context-check β†’ describe β†’ tasks β†’ verify

The cheapest stages (context-check + describe + tasks + verify) take under 2 minutes and save hours of debugging hallucinated code.

### 2. Explore before you plan

Before jumping into a pipeline, use `sdd_explore` to capture context from your discussion β€” goals, constraints, tech preferences, unknowns, decisions. It saves structured context to memory so the pipeline starts with clarity, not guesswork. Call it multiple times as your thinking evolves β€” it upserts, never duplicates.

### 3. Bootstrap existing projects

Working on a project that never went through SDD? Don't skip specs β€” bootstrap them. Run `sdd_reverse_engineer` to scan the codebase, then `sdd_bootstrap` to generate the missing artifacts. This takes under a minute and means the change pipeline works with full context instead of flying blind. Medium/large changes are blocked without specs β€” and that's intentional.

### 4. Right-size your changes

Don't use a large pipeline for a one-line fix. Don't use a small pipeline for a new authentication system.

| If the change... | It's probably... |
|---|---|
| Touches 1-2 files, clear fix | **small** (4 stages β€” context-check + describe + tasks + verify) |
| Needs requirements or design thought | **medium** (5 stages) |
| Affects architecture, multiple systems | **large** (6-7 stages) |

### 5. Let memory work for you

You don't need to tell the AI to use memory β€” Hoofy's built-in instructions handle it. But you'll get better results if you:
- **Start sessions by greeting the AI** β€” it triggers `mem_context` to load recent history
- **Mention past decisions** β€” "remember when we chose SQLite?" triggers `mem_search`
- **Confirm session summaries** β€” the AI writes them at session end, review them for accuracy

### 6. Connect knowledge with relations

Hoofy's knowledge graph lets you connect related observations with typed, directional edges β€” turning flat memories into a navigable web. The AI creates relations automatically when it recognizes connections. You can also ask it to relate observations manually. Use `mem_get(id=..., depth=...)` to explore the full graph around any observation.

### 7. Use topic keys for evolving knowledge

When a decision might change (database schema, API design, architecture), use `topic_key` in `mem_save`. This **updates** the existing observation instead of creating duplicates. One observation per topic, always current.

### 8. One change at a time

Hoofy enforces one active change at a time. This isn't a limitation β€” it's a feature. Scope creep happens when you try to do three things at once. Finish one change, verify it, then start the next.

### 9. Trust the Clarity Gate

When the Clarity Gate asks questions, don't rush past them. Every question it asks represents an ambiguity that would have become a bug, a hallucination, or a "that's not what I meant" moment. Two minutes answering questions saves two hours debugging wrong implementations.

### 10. Hoofy is the architect, Plan mode is the contractor

If your AI tool has a plan/implementation mode, use it **after** Hoofy specs are done. Hoofy answers WHO and WHAT. Plan mode answers HOW.

Hoofy (Requirements Layer) β†’ "WHAT are we building? For WHO?" Plan Mode (Implementation) β†’ "HOW do we build it? Which files?"


---

## The Research Behind SDD

Hoofy's specification pipeline isn't built on opinions. It's built on research. Every feature maps to a specific recommendation from Anthropic Engineering or industry research β€” see the **[full research foundations document](https://github.com/HendryAvila/Hoofy/blob/HEAD/docs/research-foundations.md)** for the complete mapping.

**Anthropic Engineering:**
- [Building Effective Agents](https://www.anthropic.com/engineering/building-effective-agents) β€” ACI design, tool patterns, orchestrator-worker architecture
- [Effective Context Engineering](https://www.anthropic.com/engineering/effective-context-engineering-for-ai-agents) β€” Persistent memory, progressive disclosure, context as finite resource
- [Writing Effective Tools](https://www.anthropic.com/engineering/writing-tools-for-agents) β€” Tool namespacing, response design, token efficiency
- [Multi-Agent Research System](https://www.anthropic.com/engineering/multi-agent-research-system) β€” Session summaries, filesystem output, token budget awareness
- [Long-Running Agent Harnesses](https://www.anthropic.com/engineering/effective-harnesses-for-long-running-agents) β€” Progress tracking, incremental delivery, JSON over Markdown for state
- [Claude Code Best Practices](https://www.anthropic.com/engineering/claude-code-best-practices) β€” CLAUDE.md scanning, structured workflows

**Industry Research:**
- **METR 2025**: Experienced developers were [19% slower with AI](https://metr.org/blog/2025-07-10-early-2025-ai-experienced-os-dev-study/) despite feeling 20% faster β€” unstructured AI usage introduces debugging overhead and false confidence.
- **DORA 2025**: [7.2% delivery instability increase](https://dora.dev/research/2025/dora-report/) for every 25% AI adoption β€” without foundational systems and practices.
- **McKinsey 2025**: Top performers see [16-30% productivity gains](https://www.mckinsey.com/capabilities/mckinsey-digital/our-insights/superagency-in-the-workplace-empowering-people-to-unlock-ais-full-potential-at-work) only with structured specification and communication.
- **IEEE 720574**: Fixing a requirement error in production costs [10-100x more](https://ieeexplore.ieee.org/document/720574) than fixing it during requirements β€” worse with AI-generated code.
- **Codified Context (Lulla 2026)**: [AGENTS.md infrastructure](https://arxiv.org/abs/2602.20478v1) associated with 29% less runtime and 17% less token consumption. Compact constitutions (~660 lines) with on-demand retrieval outperform monolithic instructions. Hoofy's hot/cold instruction architecture implements this pattern.
- **IREB & IEEE 29148**: Structured elicitation, traceability, ambiguity detection β€” Hoofy's Clarity Gate implements these frameworks.
- **Business Rules Group**: The [Business Rules Manifesto](https://www.businessrulesgroup.org/brmanifesto.htm) β€” rules as first-class citizens. Hoofy uses BRG taxonomy.
- **EARS**: [Research-backed sentence templates](https://alistairmavin.com/ears/) that eliminate requirements ambiguity.
- **DDD Ubiquitous Language**: [Shared language](https://martinfowler.com/bliki/UbiquitousLanguage.html) eliminates translation errors β€” Hoofy's business-rules glossary.
- **Harness Engineering (OpenAI 2026)**: [Structured wrapping of AI](https://cdn.openai.com/papers/harness-engineering-designing-effective-ai-development-tools.pdf) improves output quality by constraining context, enforcing workflows, and making state explicit. Hoofy v1.0's identity redesign was directly inspired by this paper's philosophy of "user brings content, AI complements/organizes/validates."

**Structure beats speed.**

---

## Contributing

```bash
git clone https://github.com/HendryAvila/Hoofy.git
cd Hoofy
make build        # Build binary
make test         # Tests with race detector
make lint         # golangci-lint
./bin/hoofy serve # Run the MCP server

Areas for contribution

  • More clarity dimensions (mobile, API, data pipeline)
  • More change types beyond fix/feature/refactor/enhancement
  • Template improvements and customization
  • Streamable HTTP transport for remote deployment
  • Export to Jira, Linear, GitHub Issues
  • i18n for non-English specs

Acknowledgments

Hoofy's memory system is inspired by Engram by Gentleman Programming β€” the original persistent memory MCP server that proved AI assistants need long-term context to be truly useful. Engram laid the foundation; Hoofy built on top of it.


License

MIT


<p align="center"> <strong>Stop prompting. Start specifying.</strong><br> Built with care by the Hoofy community. </p>