FG

faugustdev/git-context-controller

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

66 stars 品質 62 トレンド 18MIT

LLMエージェントの構成されたコンテキスト管理フレームワーク。 Git のような操作(COMMIT、BRANCH、MERGE)を実装し、長時間のエージェントメモリを管理します.

概要

GCC v2 は動詞のマークダウンの代わりに保存します。 完全なコンテキストは git ショーによって要求で再構築されます。 デュアルモード: git-backed またはスタンドアローン。 研究論文に基づく:Gitコンテキストコントローラー LLMエージェントは会話が成長するにつれてコンテキストを失います。 GCCは、エージェント構造化されたメモリを与えることでこれを解決します。 - -- - -- エントリごとのトークンとv1の~500 - -- 実際のコミットではなく、物語のコピー - -- 実際の分離のためのgitのワークツリーを介してブランチ - -- 要求のハッシュからコンテキストを再構築 - -- 利用可能なときにベクトルメモリにデータをコミットする自動フィード v1と互換性のあるMarkdownファイルに戻る: インストールすると、自動的にGCCが起動します。 コマンドや自然言語を使う: GCC v2には、機械的操作のためのユーティリティスクリプトが含まれています。 マイルストーンを主張します。 git モードでは、実際のコミットを実行します.

概要(AI 翻訳)

LLMエージェントのリーン、git-backedコンテクスト管理。

GCC v2 は、動詞のマークダウンの代わりに、**hash + intent + オプションの決定ノートを格納します。 [git show]を介して、完全なコンテキストが再構築されます。 デュアルモード: git-backed またはスタンドアローン。

研究論文に基づく:Gitコンテキストコントローラ

お問い合わせ

#GCCとは?

LLMエージェントは会話が成長するにつれてコンテキストを失います。 GCCは、エージェント構造化されたメモリを与えることでこれを解決します。

-リーンストレージ - - v1のエントリと〜500の1回のエントリあたり〜50トークン

  • Git-backed Trus – 実際のコミット、非物語的なコピー
  • 安全な実験 --実質の分離のためのgitのworktreesによる枝
  • 十字セッションの回復 – 要求のハッシュからコンテキストを再構築する
  • aiyoucli Bridge – 利用できる場合のベクトル記憶にデータを自動送ります

使い方

##Git モード (リポジトリ付き)

##スタンドアローンモード(リポなし)

v1と互換性のあるMarkdownファイルに戻る:

コンテキスト再構築

インストール

クロード・コード・スキルとして

###スタンドアロン

クイックスタート

インストールすると、自動的にGCCが起動します。 コマンドや自然言語を使う:

| 行動 | コマンド | 自然言語 | お問い合わせ | 進捗状況の保存 | 【[T1]】 | 「このマイルストーンを保存」 |

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

Git 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
GitHub で README 全文を見る

推奨ツール

別のキーワードを試すか、フィルタを外してください。

インストール

npx skillfish add faugustdev/git-context-controller
MCP 初心者?mcpskill.org のガイドから始めましょう →