Skip to content
davidcastillocPublic

About

πŸͺΊ Framework de ingenierΓ­a de contexto y memoria estΓ‘tica para Antigravity CLI. El nido que sostiene a Antigravity en el aire.

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

1 watching

Forks

Latest commit

Β 

History

48 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

YapuCli β€” Context Engineering Framework

πŸ‡»πŸ‡ͺ Leer en EspaΓ±ol

YapuCli πŸͺΊ

Context engineering and static memory framework for AI coding agents (Antigravity, Claude Code, Codex). Directly connected to the Antigravity brain.

Inspired by the yapΓΊ (Psarocolius decumanus), a Venezuelan bird that weaves hanging nests over a meter long that defy gravity. Antigravity is the tree β€” Yapu weaves the memory nest. πŸͺΊ


πŸš€ Quick Start (60-Second Onboarding)

1. Installation & Foundation

Go into your project directory and run the Yapu initializer:

npx @davidsd/yapu-cli init

This scaffolds the core static memory files (PROJECT.md, ROADMAP.md, STATE.md) along with the .planning/ directory.

2. Align Your AI

Open your AI chat interface (Cursor, Cline, Windsurf, etc.) and kick off the session with this exact prompt:

Initial Prompt: "Read the PROJECT.md, ROADMAP.md, and STATE.md files to understand our application's rules, the general roadmap, and today's active tasks. Please grab the first pending task from STATE.md and let's start writing some code!"

3. Real-Time Dashboard

As your AI assistant codes and checks off tasks ([x]), you can open a secondary terminal to run the interactive dashboard:

npx @davidsd/yapu-cli dash

Enjoy a beautiful, zero-dependency TUI dashboard showing week's worth of progress in real time!


πŸ“¦ Traditional Installation (Optional)

If you prefer to have YapuCli globally available on your system, you can install it using:

npm install -g @davidsd/yapu-cli
# or with pnpm
pnpm add -g @davidsd/yapu-cli
# or with yarn
yarn global add @davidsd/yapu-cli

Once globally installed, you can run any command directly using yapu (e.g., yapu init, yapu dash, etc.).

Zero dependencies β€” built natively using node:fs and node:path.

πŸ€– Are you an AI (or do you use one)? Load the LLM Installer Prompt into your agent so it automatically installs, configures, and assimilates the Yapu rules.

πŸ’‘ Do you code with AI? Read the Vibe Coder Workflow Guide to learn how to integrate Yapu into your daily routine with Cursor/Cline/Windsurf.


🧠 Dual Memory β€” The Core Architecture

The Antigravity brain is ephemeral (per conversation). The .planning/ directory is persistent (per project, lives in git). Yapu is the bridge that synchronizes both worlds.

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”       yapu sync        β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚   🧠 Antigravity Brain  β”‚ ◄────────────────────► β”‚   πŸͺΊ .planning/         β”‚
β”‚   (ephemeral, per session)β”‚       yapu handoff      β”‚   (persistent, in git)  β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜                         β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
             β”‚                                                   β”‚
             β”‚            β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”                  β”‚
             └───────────►│    Memory Triad   β”‚β—„β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                          β”‚  PROJECT Β· ROADMAP β”‚
                          β”‚      Β· STATE       β”‚
                          β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Automatic Sync: Every workflow features embedded Pre-Sync (reads inherited state) and Post-Sync (persists progress) blocks. The LLM never loses track between sessions.


πŸ“œ The Memory Triad

File Role Description
PROJECT.md πŸ›οΈ The Vision Stack, architectural rules, and untouchable commandments.
ROADMAP.md πŸ—ΊοΈ The Macro Plan Sequential project phases. Skipping phases is strictly forbidden.
STATE.md ⚑ Operating State Active mode, current phase, and short-term technical tasks.

πŸ› οΈ CLI Commands (22)

yapu init              # πŸͺΊ Founds the colony (.planning/ + complete skills)
yapu status            # πŸ“Š Project radiograph
yapu dash              # πŸ“Ÿ Real-time TUI dashboard (Zero-dependency)
yapu board [--port N]  # 🌐 Web Command Center (C2) β€” interactive browser dashboard
yapu gc                # πŸ—‘οΈ Contextual Garbage Collector (condenses history)
yapu rescue <log>      # πŸš‘ Auto-Heal: reads a CI/CD error log and prepares a fix
yapu archive           # πŸ“¦ Season finale (freezes tasks into HISTORY.md)
yapu install-hooks     # 🐝 Deploys the hornet's nest (Yapu Guard)
yapu sync              # πŸ”„ Syncs Antigravity brain β†’ .planning/
yapu handoff           # 🀝 Generates handoff for the next session
yapu brain <list|log>  # πŸ” Inspects the Antigravity brain
yapu provider          # πŸ” Diagnostics of detected AI providers

Command Details

  • yapu init β€” Scaffolds .planning/ with 11 subdirectories + 5 base files. Copies 41 workflows, 25 references, 3 contexts, and 5 codebase templates to .agents/skills/. It also copies PROJECT.md, ROADMAP.md and STATE.md to the project root. Never overwrites existing files.
  • yapu status β€” Reads STATE.md and reports operational mode, active phase, task list, and spec integrity.
  • yapu dash β€” Renders an interactive TUI monitor at 60FPS reading ROADMAP.md and AI logs (Zero dependencies).
  • yapu board [--port N] β€” Launches a local web Command Center (C2) with real-time SSE streaming, interactive task toggles, neural feed, and whitelisted command execution. Zero dependencies.
  • yapu gc β€” Archives old phases from .planning/phases/ and prepares token compression (Contextual Garbage Collector).
  • yapu rescue <log> β€” Instantly creates an Auto-Heal debugging session and instructions for your AI based on an error log.
  • yapu archive β€” Freezes completed tasks from STATE.md into HISTORY.md with a timestamp.
  • yapu install-hooks β€” Deploys Yapu Guard, an ultra-fast native pre-commit hook (<1.5s).
  • yapu sync --brain-path <path> β€” Manual fallback: syncs artifacts from the Antigravity brain to .planning/.
  • yapu handoff β€” Generates HANDOFF.json + .continue-here.md for session continuity.
  • yapu brain list --path <path> β€” Lists brain artifacts by type, summary, and date.
  • yapu brain log --path <path> -n N β€” Displays the last N entries of the conversation log.
  • yapu provider β€” Diagnostic command that detects installed AI CLI providers (Antigravity, Claude Code, Codex), shows their data paths, session counts, and which provider is currently active.

⚑ Included Autonomous Agent Workflows

Beyond organization, YapuCli installs advanced templates (.agents/skills/) so your AI can act as a complete engineering team:

  • LORE_MASTER: Condenses thousands of context tokens into a single ultra-dense LORE.md.
  • PRODUCTION GUARDIAN: Auto-Heal workflow triggered via yapu rescue in CI/CD pipelines.
  • CHAOS MONKEY (yapu-chaos.md): Autonomous Resilience Engineering. Command your AI to execute this mode to inject latency and break dependencies intentionally, then repair the architecture to achieve Graceful Degradation.

πŸ“‚ Structure of .planning/

.planning/
β”œβ”€β”€ STATE.md
β”œβ”€β”€ ROADMAP.md
β”œβ”€β”€ REQUIREMENTS.md
β”œβ”€β”€ METHODOLOGY.md
β”œβ”€β”€ config.json
β”œβ”€β”€ codebase/       # 7 analysis docs (generated by yapu-map)
β”œβ”€β”€ phases/         # CONTEXT.md, PLAN.md, SUMMARY.md per phase
β”œβ”€β”€ debug/          # Debugging session tracking
β”œβ”€β”€ seeds/          # Forward-looking ideas
β”œβ”€β”€ notes/
β”œβ”€β”€ todos/
β”œβ”€β”€ research/
β”œβ”€β”€ quick/
└── spikes/

⚑ Skill Arsenal (85 files)

41 workflows Β· 11 schemas Β· 25 references Β· 3 contexts Β· 5 codebase templates

1. Base Flow πŸͺΊ

map Β· plan Β· execute Β· verify

2. Grill & Spec πŸ”₯

grill-me Β· grill-docs Β· spec

3. Elite Squads 🎯

secops Β· dba Β· ui Β· forensics

4. Discovery πŸ”¬

discovery Β· discuss Β· research

5. Session Management πŸ“‹

resume Β· progress Β· session-report Β· handoff

6. Utilities πŸ”§

debug Β· seed Β· quick Β· thread Β· health Β· audit Β· code-review Β· docs Β· tests Β· undo Β· ship Β· sketch Β· autonomous Β· learnings


πŸ§ͺ Tests & Infrastructure

29 integration tests passing Β· ESLint clean

npm run test    # Full integration test suite
npm run lint    # Static validation

πŸͺΊ Philosophy

The yapΓΊ does not improvise: every fiber of the nest has a structural purpose.

Yapu applies this exact principle to the LLM context β€” explicit static memory, deterministic synchronization, and zero external dependencies. The agent always knows where it is, what it did, and what comes next.


YapuCli πŸͺΊ β€” The nest that defies gravity.

About

πŸͺΊ Framework de ingenierΓ­a de contexto y memoria estΓ‘tica para Antigravity CLI. El nido que sostiene a Antigravity en el aire.

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages