SkillAgentSearch skills...

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-controller

Installs into whichever agent you are using.

About this skill
šŸ“„

SKILL.md

Installable skill definition

Quality Score

82/100

Category

Automation

Supported Platforms

Claude Code

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.

Substance
29/30
Structure
20/20
Description
15/15
Adoption
8/20
Freshness
11/15

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 found

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.

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.

SkillScoreStarsUpdatedFormat
git-context-controller (this skill)by faugustdev82663mo agoSKILL.md
Agent-Reachby Panniantong100109.3k1d agoCLAUDE.md
Scraplingby D4Vinci10098.3ktodayMCP Server
rufloby ruvnet10081.0ktodayMCP Server
algorithmic-artby anthropics100177.9k44d agoSKILL.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.

Git Context Controller (GCC) v2

Release License: MIT Skills.sh Available on CodeGuilds DOI

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

License

MIT

Related Skills

View on GitHub
GitHub Stars66
CategoryAutomation
Updated3mo ago
Forks2

Languages

Shell

Trust signals

98/100

From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.

1 info
git-context-controller — Claude Code Skill: Install & Safety Check | SkillAgent