git-context-controller
Structured context management framework for LLM agents. Implements Git-like operations (COMMIT, BRANCH, MERGE) to manage long-horizon agent memory.
Install / Use
npx skills add faugustdev/git-context-controllerInstalls into whichever agent you are using.
SKILL.md
Installable skill definition
Quality Score
Category
AutomationSupported Platforms
Our assessment of git-context-controller
git-context-controller scores 82/100 on our quality scale, 2298th of 2,874 Automation skills we index.
Its SKILL.md is 6.9 KB long, well organised into 28 sections with 15 code examples: a thorough specification that gives an agent plenty to work with.
It has 66 GitHub stars, a meaningful sign that others use it.
Maintenance, license and trust
- The repository was last updated about 3 months ago. That is recent enough to be usable, but agent tooling moves fast, so check the instructions against your agent's current version.
- Our last check on 2026-10-18 found the source still online.
- It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 98/100, with no cautions. These come from repository metadata, not a code audit ā read the skill file before letting an agent act on it.
Safety scan
No issues foundOur scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful.
AI review by kimi-k2.7-code on 2026-09-24. Automated pattern scan on 2026-09-24. It catches known dangerous patterns, not every risk ā read a skill before letting an agent act on it.
git-context-controller compared with similar skills
All 4 of these similar skills score higher than git-context-controller; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| git-context-controller (this skill)by faugustdev | 82 | 66 | 3mo ago | SKILL.md |
| Agent-Reachby Panniantong | 100 | 109.3k | 1d ago | CLAUDE.md |
| Scraplingby D4Vinci | 100 | 98.3k | today | MCP Server |
| rufloby ruvnet | 100 | 81.0k | today | MCP Server |
| algorithmic-artby anthropics | 100 | 177.9k | 44d ago | SKILL.md |
Frequently asked questions
- How do I install git-context-controller?
- Run
npx skills add faugustdev/git-context-controller. The install tabs above show the steps for each supported agent. - Which AI agents does git-context-controller work with?
- It is written for Claude Code, as a SKILL.md file. Other agents that read the same format can often use it too.
- Is git-context-controller safe to use?
- Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful. It is MIT-licensed and scores 98/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is git-context-controller still maintained?
- The repository was last updated about 3 months ago. That is recent enough to be usable, but agent tooling moves fast, so check the instructions against your agent's current version.
Skill content
View source on GitHubGit Context Controller (GCC) v2
Lean, git-backed context management for LLM agents.
GCC v2 stores hash + intent + optional decision notes instead of verbose markdown. Full context is reconstructed on demand via git show. Dual mode: git-backed or standalone.
Based on the research paper: Git Context Controller
Why GCC?
LLM agents lose context as conversations grow. GCC solves this by giving agents structured memory:
- Lean storage -- ~50 tokens per entry vs ~500 in v1
- Git-backed truth -- real commits, not narrative copies
- Safe experimentation -- branches via git worktrees for real isolation
- Cross-session recovery -- reconstruct context from hashes on demand
- aiyoucli bridge -- auto-feeds commit data to vector memory when available
How It Works
Git Mode (with repo)
.GCC/
āāā index.yaml # Single source of truth (~50 tokens/entry)
āāā branches/ # Branch-specific notes
āāā worktrees/ # Worktree tracking
āāā .bridge-log # Sync state with aiyoucli
index.yaml entry:
- id: C001
hash: 85c8539 ā pointer to git truth
intent: "release prep" ā why
note: "descartamos semantic-release por overhead" ā optional decision
branch: main
date: "2026-02-25T21:40:00Z"
Standalone Mode (no repo)
Falls back to markdown files compatible with v1:
.GCC/
āāā index.yaml # Timeline
āāā main.md # Roadmap (v1 compat)
āāā log.md # OTA traces (v1 compat)
āāā branches/
Context Reconstruction
Agent needs context
ā
ā¼
gcc_context.sh --summary ā ~50 tokens, zero git calls
gcc_context.sh --last 5 ā reconstructs via git show
gcc_context.sh --decisions ā only entries with notes
gcc_context.sh --hash abc123 ā full diff for one commit
Installation
As a Claude Code Skill
# Via skills.sh
npx skills add faugustdev/git-context-controller
# Manual installation
cp -r gcc/ your-project/.claude/skills/gcc/
Standalone
git clone https://github.com/faugustdev/git-context-controller.git
# Initialize GCC in your project
cd your-project
/path/to/scripts/gcc_init.sh
Quick Start
Once installed, GCC activates automatically. Use commands or natural language:
| Action | Command | Natural Language |
|---|---|---|
| Save progress | /gcc commit | "save this milestone" |
| Try alternative | /gcc branch experiment | "branch to try a different approach" |
| Integrate results | /gcc merge experiment | "merge the experiment results" |
| Quick status | /gcc context --summary | "where were we?" |
| Recent work | /gcc context --last 10 | "show recent activity" |
| View decisions | /gcc context --decisions | "what did we decide about X?" |
| Deep dive | /gcc context --hash abc123 | "details on that commit" |
| Clean up | /gcc cleanup | "clean up old worktrees" |
| Sync memory | /gcc bridge --sync | "sync to aiyoucli" |
Scripts
GCC v2 includes utility scripts for mechanical operations:
| Script | Purpose |
|---|---|
| gcc_init.sh | Initialize GCC (auto-detects git/standalone) |
| gcc_commit.sh | Real git commit + lean index entry |
| gcc_context.sh | Reconstruct context from hashes |
| gcc_bridge.sh | Feed commit data to aiyoucli vector memory |
| gcc_cleanup.sh | TTL-based worktree cleanup + index pruning |
gcc_commit.sh
gcc_commit.sh "implement retry logic"
gcc_commit.sh "release prep" "descartamos semantic-release por overhead"
gcc_commit.sh --staged "hotfix: null check"
gcc_context.sh
gcc_context.sh --summary # one-line per entry (cheapest)
gcc_context.sh --last 5 # last 5 with git details
gcc_context.sh --hash abc123 # full diff for specific commit
gcc_context.sh --decisions # only entries with notes
gcc_context.sh --full # everything
gcc_bridge.sh
gcc_bridge.sh --status # check bridge connectivity
gcc_bridge.sh --sync # sync all unsynced entries to aiyoucli
gcc_cleanup.sh
gcc_cleanup.sh --dry-run # show what would be cleaned
gcc_cleanup.sh --force # clean without asking
gcc_cleanup.sh --prune-index 50 # keep last 50 timeline entries
Commands Reference
COMMIT
Persists a milestone. In git mode, executes a real commit.
/gcc commit <summary>
BRANCH
Creates an isolated workspace. In git mode, uses real git worktrees.
/gcc branch <name>
MERGE
Integrates a branch back. In git mode, real git merge + synthesis note.
/gcc merge <branch-name>
CONTEXT
Retrieves historical memory reconstructed from git.
/gcc context [--summary | --last N | --hash HASH | --decisions | --full]
| Flag | Returns | Cost |
|---|---|---|
| --summary | One-line per entry | ~0 extra tokens |
| --last N | Last N entries with git details | ~200 tokens/entry |
| --hash HASH | Full diff for one commit | Variable |
| --decisions | Only entries with notes | Minimal |
| --full | Everything | All entries |
Configuration
Controlled via index.yaml:
config:
proactive_commits: true # Auto-suggest commits after milestones
worktree_ttl: 24h # Auto-cleanup expired worktrees
bridge_to_aiyoucli: auto # auto | off | manual
Project Structure
git-context-controller/
āāā SKILL.md # Skill definition (v2)
āāā README.md # This file
āāā LICENSE # MIT License
āāā CONTRIBUTING.md # Contribution guidelines
āāā .gitignore
āāā scripts/
ā āāā gcc_init.sh # Initialization (git detect + index.yaml)
ā āāā gcc_commit.sh # Commit + lean entry
ā āāā gcc_context.sh # Context reconstruction
ā āāā gcc_bridge.sh # aiyoucli memory bridge
ā āāā gcc_cleanup.sh # Worktree TTL + index pruning
āāā references/
ā āāā file_formats.md # Format specifications (v2)
āāā examples/
āāā sample_session.md # Example session (v2)
Contributing
Contributions are welcome. See CONTRIBUTING.md for guidelines.
References
- Paper: Git Context Controller: Structured Context Management for LLM Agents
- Concept: Emergent Mind - GCC Topic
License
Related Skills
Agent-Reach
109.3kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu ā one CLI, zero API fees.
Scrapling
98.3kš·ļø The BEST Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scrapling_dev
ruflo
81.0kš The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated
algorithmic-art
177.9kCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit ā see the Safety scan above for what the skill file itself contains.
