feat: /meditate — proactive repo consciousness #405
Open
sevastyanovio wants to merge 4 commits intogarrytan:mainfrom
Open
feat: /meditate — proactive repo consciousness #405sevastyanovio wants to merge 4 commits intogarrytan:mainfrom
sevastyanovio wants to merge 4 commits intogarrytan:mainfrom
Conversation
Vipassana-inspired repo consciousness scanner. Scans repo structure,
git history, TODOs, test coverage, and past AI conversations from
Claude Code, Codex CLI, and Gemini CLI. Produces raw JSON snapshots
at ~/.gstack/meditations/{slug}/ and optional template-based
.gstack/context.md (--background mode).
5-step workflow: check freshness → run scanner → LLM synthesis (6 sections: Architecture Map, Hotspots, Conventions, User Taste, Recurring Problems, Watch These Next) → write context.md → report.
All skills now check .gstack/context.md freshness and print MEDITATION_FRESH/STALE/MISSING. When fresh, skills silently read the context file. Regenerated all SKILL.md files from templates. Also adds gstack-meditate to build script and touchfiles.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This was referenced Mar 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Author: Roman Sevast, co-founder of Awesomic (YC S21). Inspired by Vipassana meditation practice — built this after using gstack on our codebase.
Summary
Inspired by Vipassana body-scanning meditation — systematic observation that builds awareness without judgment.
/meditateskill — scans repo structure, git history, and past AI conversations (Claude Code, Codex CLI, Gemini CLI) to produce.gstack/context.md. Every other skill reads this file and becomes smarter:/qaknows which flows to hammer,/reviewfocuses on high-risk files,/csoalready knows the attack surface.bin/gstack-meditate.ts) — deterministic data collection with zero LLM cost. Compiled viabun build --compile. Runs in <1s on this repo..gstack/context.mdfreshness.--backgroundmode — produces basic context.md without LLM tokens.Why This Matters
The Missing Layer in AI Coding
Today's AI coding has three context mechanisms: static docs (CLAUDE.md), reactive memory (auto-memories), and search/indexing (Greptile, Sourcegraph). What's missing is proactive awareness — a system that systematically observes the repo and your behavior, builds understanding over time, and feeds it to every tool. Not search. Consciousness.
Why gstack Needs This to Reach L8
The L0-L8 AI development maturity levels put gstack at L7 — 10+ agents managed through a skill orchestration layer. To reach L8 ("Build your own orchestrator"), agents need to be self-aware. An orchestrator without repo consciousness is just a dispatcher. An orchestrator with consciousness can make autonomous decisions — what to scan harder, what to skip, what to flag — because it has priors.
/meditate is the infrastructure that makes L8 possible. Without it, each skill starts blind. With it, each skill inherits accumulated awareness.
The Vipassana Insight: Awareness vs. Search
The industry's instinct is better search when context is lacking. But awareness is not search:
Every tool builds search. /meditate builds awareness. Fundamentally different paradigm.
Idea Scorecard — 9.5/10
Overall: 9.5/10 — The missing infrastructure layer that transforms gstack from a skill suite into a conscious development partner.
Design Doc
Full approved design doc:
/office-hourssession with Codex second opinion, 2 rounds of adversarial spec review (18 issues caught and fixed). Codex independently called it a "repo nervous system — building priors, not retrieval."See
~/.gstack/projects/garrytan-gstack/davex69-sevastyanovio-meditate-skill-design-20260323-140534.mdTest Coverage
10/10 unit tests passing. 567 tests across full suite, 0 failures from this branch.
Pre-Landing Review
4 issues found, all fixed:
readFileSync().slice()OOM risk → buffer-based readingrequire("fs")in ESM → proper importTest plan
--backgroundproduces.gstack/context.md(85 lines, under 1024 limit)🤖 Generated with Claude Code