Skip to content

Fr-e-d/GAAI-framework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

799 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Version License: ELv2 No SDK

GAAI — Governed Agentic AI Infrastructure

A .gaai/ folder you drop into any project. Markdown + YAML + bash. No SDK. No package. No external services.

GAAI turns AI coding tools into reliable agentic software delivery systems.


See It in Action

You:        /gaai-discover
Discovery:  "What do you want to build?"
You:        "Add rate limiting — 100 req/min per user, 429 on exceeded."
Discovery:  "Got it. Checking memory for existing middleware patterns..."
            → Generates Epic E03 + Story E03S01 with acceptance criteria
            → Runs validation: artefact complete, criteria testable, no scope drift
            → Adds to backlog: status: refined
Discovery:  "Done. E03S01 is ready. Run /gaai-deliver when you're ready."

You:        /gaai-deliver
            → Spawns an isolated Delivery Agent (clean context — no Discovery bleed)
Delivery:   → Reads E03S01 from backlog
            → Loads middleware conventions from memory
            → Planning Sub-Agent: produces execution plan
            → Implementation Sub-Agent: adds rate-limiting middleware
            → QA Sub-Agent: all acceptance criteria PASS
            → Story marked done, PR merged to staging
Delivery:   "E03S01 complete. No further Stories in backlog."

Two slash commands. Two isolated contexts. Discovery reasons — it never executes. Delivery executes — it never decides scope. They never share a context window, so system prompts can't contaminate each other. The backlog is the contract between them.

Want it fully autonomous? The Delivery Daemon polls your backlog and auto-delivers stories in parallel — no human in the loop. See Automation →

Full walkthrough in Quick Start


Why GAAI

AI coding tools are fast — but without governance, speed creates drift: agents touch code they shouldn't, forget decisions from prior sessions, and ship features no one can verify against criteria. GAAI adds the missing layer.

Built for developers who already have product clarity — solo founders, senior engineers, small teams who know what to build and need an agent that ships it reliably without going off-script. If you've ever said "the agent broke something it wasn't supposed to touch," this is for you.

vs. Difference
AGENTS.md / cursor rules Solves one session. GAAI adds cross-session memory, scope authorization, and structured delivery.
BMAD-METHOD Simulates a multi-agent Agile team. GAAI is lighter on Discovery, more rigid on Delivery governance.
LangGraph / AutoGen / CrewAI Code-first orchestration for building AI systems. GAAI governs the use of AI coding tools. Different abstraction level.

How It Works

Discovery — you talk to the Discovery Agent in your current session. Clarify what to build. Output: a Story with acceptance criteria in the backlog. Discovery reasons. It does not execute.

Delivery — always runs in an isolated context. /gaai-deliver spawns a separate agent with a clean context window — no Discovery residue, no conversation history bleed. The Delivery Agent orchestrates specialized sub-agents (Planning, Implementation, QA) per Story. No improvisation. No scope drift. No context contamination.

The backlog is the contract. Nothing gets built that isn't in it.

your-project/
└── .gaai/
    ├── core/                  ← framework engine (updated via git subtree)
    │   ├── README.md          ← start here (human + AI onboarding)
    │   ├── GAAI.md            ← full reference
    │   ├── QUICK-REFERENCE.md ← daily cheat sheet
    │   ├── VERSION
    │   ├── agents/            ← Discovery + Delivery + Bootstrap agent specs
    │   ├── skills/            ← 40 execution units
    │   ├── contexts/rules/    ← framework rules
    │   ├── workflows/         ← delivery loop, bootstrap, handoffs
    │   ├── scripts/           ← bash utilities
    │   ├── hooks/             ← git hook dispatcher + core hooks
    │   └── compat/            ← thin adapters per AI tool
    └── project/               ← your project data (never overwritten by updates)
        ├── agents/            ← custom project agents
        ├── skills/            ← custom project skills
        ├── scripts/           ← project-specific scripts
        ├── hooks/             ← project-specific git hooks
        ├── workflows/         ← custom workflow overrides
        ├── content/           ← content production assets
        └── contexts/
            ├── rules/         ← project rule overrides
            ├── memory/        ← persistent memory (decisions, patterns, context)
            ├── backlog/       ← execution queue (active, blocked, done)
            └── artefacts/     ← stories, epics, plans, reports

No SDK. No npm package. No pip install. Markdown + YAML + bash. Readable by humans and any AI tool.


Install (30 seconds)

Copy the .gaai/ folder into your project. That's it.

Download from GitHub, drop .gaai/ into your project root, and tell your AI tool: "Read .gaai/core/README.md and bootstrap this project."

Option A — Ask your AI tool to do it

Paste this into your AI tool's chat:

Install the GAAI framework into my current project.

Determine {user-tool} by identifying which AI coding tool is running this
prompt. Valid values: claude-code | cursor | windsurf | other.
If you cannot determine it, ask the user before proceeding.

Then run:
  rm -rf /tmp/gaai
  git clone https://github.com/Fr-e-d/GAAI-framework.git /tmp/gaai
  bash /tmp/gaai/.gaai/core/scripts/install.sh --target . --tool {user-tool} --yes
  rm -rf /tmp/gaai

After install, show the user the next steps exactly as printed by the
installer.

The installer copies .gaai/ and deploys the right adapter for your tool (CLAUDE.md, AGENTS.md, or .cursor/rules/).

Option B — CLI
git clone https://github.com/Fr-e-d/GAAI-framework.git /tmp/gaai && \
  bash /tmp/gaai/.gaai/core/scripts/install.sh --wizard && \
  rm -rf /tmp/gaai

Automation (Optional)

GAAI works manually with /gaai-deliver. But if your project uses git with a staging branch, the Delivery Daemon runs deliveries autonomously:

  • Polls the backlog for refined stories
  • Launches parallel Claude Code sessions (configurable concurrency)
  • Coordinates across devices via git push
  • Monitors health, retries failures, archives completed work

Three scripts, three roles:

Script Role
daemon-setup.sh One-time setup — checks prerequisites, configures git hooks and permissions
delivery-daemon.sh The daemon itself — runs in the foreground, polls the backlog, launches deliveries
daemon-start.sh Lifecycle wrapper — start/stop/status/restart, runs the daemon in background (tmux or nohup)

Setup (2 minutes):

bash .gaai/core/scripts/daemon-setup.sh        # one-time: checks prereqs, configures

Run interactively (macOS — recommended for visibility):

bash .gaai/core/scripts/delivery-daemon.sh --max-concurrent 2

Run as background service (VPS/headless):

bash .gaai/core/scripts/daemon-start.sh --max-concurrent 3   # starts in tmux/nohup
bash .gaai/core/scripts/daemon-start.sh --status              # check state
bash .gaai/core/scripts/daemon-start.sh --stop                # graceful shutdown

Requires: git repo, staging branch, Claude Code CLI, python3, tmux (recommended) or Terminal.app (macOS fallback).

Tested on: macOS (Apple Silicon). Linux and WSL (Windows) are expected to work but not yet validated — issues and feedback welcome.


Works With

Deep integration — slash commands, auto-loaded context, SKILL.md auto-discovery:

Tool Adapter
Claude Code CLAUDE.md + .claude/commands/

AGENTS.md compatible — full GAAI capability via manual activation prompts:

Tool Adapter
OpenCode AGENTS.md
Codex CLI AGENTS.md
Gemini CLI AGENTS.md
Antigravity AGENTS.md
Cursor .cursor/rules/*.mdc
Windsurf AGENTS.md
Any other Read .gaai/core/README.md directly

One canonical source (.gaai/). Thin adapters per tool. No duplication. The framework functions identically across all tools — the difference is activation convenience, not capability.

Full compatibility details


Honest Trade-offs

  • Discovery is conversational and intentionally lightweight. It helps you structure what you know — it does not replace deep product research or collaborative brainstorming across a team.
  • Trivial tasks still need a backlog item. You can make it a one-liner, but the gate is always there.
  • The framework relies on the agent following the files. There is no programmatic enforcement.
  • The repo is freshly open-sourced. Community is just getting started.

Documentation


ELv2 — see LICENSE


Support This Project

If you find this framework valuable, please consider showing your support:


Created by Frédéric Geens

About

Turns AI coding tools into reliable software delivery systems. Drop a .gaai/ folder into any project — Discovery defines what to build, Delivery executes autonomously until criteria pass. Works with Claude Code, Codex CLI, Gemini CLI, Cursor, and more. No SDK. No package. Markdown + YAML + bash.

Topics

Resources

License

Contributing

Stars

Watchers

Forks