← Home← ホーム / Storeストア
AI-Context-StoreAI コンテキストストア

Knowledge that survives the session. セッションを越えて残る知識。

Every decision, research note, and working state lives in a central store outside your repo. Banto injects it at the start of every session and saves it again at the end, so a /clear or a compaction never loses your context. Once the store grows large (1,471 documents in the current example), the search stack takes over. It keeps searching even at zero hits, so even the cheapest model reaches the right section in under a millisecond.

決定・調査・作業状態は、すべて repo の外の中央ストアに置く。Banto がセッション開始時に注入し、 終了時に保存するため、/clear や自動圧縮でも文脈を失わない。ストアが育つと(現在の実例で 1,471 文書)、検索スタックが働き始める。0 件のときも止まらず探し続けるため、いちばん安いモデルでも 1 ミリ秒未満で目当てのセクションに届く。

01

What accumulates, and how it comes back何が貯まるか、どう再注入されるか

The store is an external memory, one per project. It accumulates decisions, research, and working state, then recalls them automatically at the next session start. The same store that saves the record also restores it.ストアは、プロジェクトごとに 1 つ持つ外部メモリだ。決定・調査・作業状態を貯め、次のセッション開始時に自動で思い出す。保存するストアが、そのまま復元も担う。

Without a store, everything built up in a conversation vanishes on /clear or auto-compaction. Next session, you explain it all again.ストアがなければ、会話で積み上げた内容は /clear や自動圧縮で消える。次のセッションで、同じ説明をまた繰り返す。

Before / after困りごとと解決

without a storeストアなし

The session ends. Memory drops to zeroセッションが終わる。記憶はゼロになる

  • why a decision was made is lost決定の理由が消える
  • the same research gets redone同じ調査をやり直す
  • the same explanation, every session毎セッション、同じ説明を繰り返す
with the storeストアあり

The store remembers. The next session continuesストアが覚えている。次のセッションは続きから始まる

  • decisions and research persist決定・調査が残る
  • restored automatically at session start開始時に自動で復元
  • no re-explaining説明のやり直しなし

How it comes backどう戻ってくるか

One store persists; sessions come and go. Session 1 works, then runs /clear. The store keeps everything from that session. Session 2 opens already restored.ストアは 1 つ、セッションは入れ替わる。セッション 1 が作業して /clear を実行する。そのすべてをストアが保存する。セッション 2 は、復元された状態で始まる。

The re-injection is not manual. Banto hooks into six lifecycle events, including SessionStart (the event that fires when a session begins), so save and restore never need a human step. The full mechanics are on the mechanism page.

この再注入は手動ではない。Banto は6 つのライフサイクルイベントに hook する。その 1 つが SessionStart(セッション開始時に発火するイベント)で、保存と復元に人の一手を挟まない。仕組みの詳細は mechanism ページに譲る。

What's inside中身

Each project gets one folder, in a fixed layout that any tool can read. Shared knowledge is flat and author-tagged. Personal state is namespaced per author.プロジェクトごとに 1 フォルダを持ち、どのツールからも読める決まった構成にする。共有知識は階層を持たず、ファイル名に作成者名が入る。個人の状態は、作成者ごとの名前空間で分離する。

Folderフォルダ What goes in何が入るか When it's usedいつ使うか Scope区分
decisions/ design-decision log (one decision, one file)設計の決定ログ(1 決定 = 1 ファイル) when you ask "why is it this way" later「なぜこうなったか」を後から引くとき shared共有
docs/research/ external research findings外部調査の結果 searched first, so the same research never runs twice次の調査の前に検索し、同じ調査を繰り返さない shared共有
docs/knowledges/ promoted, durable knowledge昇格させた恒久ナレッジ fixed once, referenced every session何度も効く知見を固定し、毎セッション参照 shared共有
docs/specs/ specifications (output of the spec skill)仕様書(spec skill の出力) to settle the design before implementing, then referenced during the build実装前に設計を固め、実装中に参照 shared共有
workspaces/<author>/ per-workspace state and tasksワークスペースごとの状態とタスク switching work, resuming where you left off作業の切替・続きからの再開 personal個人
learnings/<author>/ personal lessons個人の教訓 injected automatically at session startセッション開始時に自動で注入 personal個人
sessions/ checkpoints (session-state snapshots)チェックポイント(セッション状態の要約) saved before /clear or compaction, read at the next start/clear・圧縮の前に保存し、次の開始時に取り込む ephemeral一時
meta/ notes for operating the store itselfストア運用のメタ情報 health checks and the folder map健康診断・フォルダ地図の確認 shared共有
shared共有flat, author-tagged (…_<github>.md) — the team shares it階層なし・ファイル名に作成者(…_<github>.md)— チームで共有 personal個人under <author>/ — working state never collides<author>/ 配下 — 作業状態が衝突しない ephemeral一時gitignored, never committed — this machine, this moment onlygitignore・コミットされない — このマシンのその場限り

Setup never stops the work. An unregistered project still works immediately. Records land in a temporary local home (~/ai-context-local/<project>/, same layout) until bootstrap registers a private GitHub store and pulls the local content in. That migration only adds. It never destroys anything.

準備で作業を止めない。未登録のプロジェクトも即座に動く。まず仮のローカル置き場(~/ai-context-local/<project>/・同じ構成)に記録し、bootstrap が非公開の GitHub ストアを登録した時点でローカル分を取り込む。移行は追加のみ。

03

Git and team scalegit と複数人運用

The rule is one line: the index is never committed.規律は 1 行:索引は絶対にコミットしない。

  1. Canonical vs. derived.正本と派生物。 Git manages markdown only. The index is a local cache with zero information value. You can delete it and lose nothing. The next session rebuilds it in 2.5 seconds.git が管理するのは markdown だけだ。索引は情報価値ゼロのローカルキャッシュだ。消しても何も失わない。次のセッションが 2.5 秒で作り直す。
  2. No shared database.共有 db なし。 SQLite's classic weaknesses never arise here: concurrent writers, corruption on network filesystems. Each machine builds its own index from the markdown it has. The only writer is the local rebuild.sqlite の古典的弱点(同時書き込み・ネットワークファイルシステム上の破損)は、構造上発生しない。各マシンが、手元の markdown から自分の索引を作る。書き込むのはローカルの再生成だけだ。
  3. Teammates never see it.メンバーは意識しない。 New members clone the repo, open a session, and their index is already there. There's no setup step, no shared infrastructure, and no need to know SQLite.新メンバーは、clone してセッションを開くだけで自分の索引を持つ。準備の手順も、共有インフラも、sqlite の知識も要らない。
  4. Access control stays in git.アクセス制御は git のまま。 Your index is built only from markdown you already have legitimate access to. Repository access decides the sharing granularity. The index itself can never widen that access.索引は、自分が正当に持つ markdown からしか作られない。共有の粒度は、リポジトリのアクセス権が決める。索引がその粒度を広げることは、決してない。
04

Register a new project新規プロジェクトを登録する

A brand-new repo works immediately in a temporary local store. Moving it to the shared central store, or pinning it local on purpose, is one sentence away.新規 repo は、一時的なローカル store の上ですぐに動き始める。中央 store へ上げるのも、意図してローカルに留めるのも、一言で済む。

A new repo is never blocked on setup. Records land in ~/ai-context-local/<project>/ (the same layout as the central store) until you decide otherwise.

新規 repo はセットアップで止まらない。まず ~/ai-context-local/<project>/(中央 store と同じ構成)へ記録し、決めるまではそのままそこに置かれる。

aLocal by default既定はローカル

A new repo is not yet on the shared GitHub store. It accumulates non-destructively in the temporary local home above.新規 repo はまだ GitHub の中央 store には乗っていない。上記の一時ローカル置き場に、非破壊で貯まっていく。

bMove it to the central store中央 store へ上げる

Say "I want this on GitHub" or "set up the store." That triggers bootstrap, which registers a private GitHub store and pulls the local content in.「GitHub に上げたい」「store を作って」と言うと、bootstrap が発火し、非公開の GitHub store を登録してローカル分を取り込む。

cOr pin it local, on purpose意図してローカル固定

Say "keep this repo local-only," and local pins it. No GitHub store is ever registered for this project.「この repo はローカルだけで」と言うと local が固定する。この project 用の GitHub store は一切登録されない。

dAn old in-repo .ai-context/ still works旧 .ai-context/ もそのまま活きる

A repo that still carries an old in-repo .ai-context/ gets it copied into the central store automatically at session start. That copy only adds. Nothing is destroyed.repo 内に旧 .ai-context/ が残っている場合は、セッション開始時に自動で中央 store へコピーされる。コピーは追加のみで、既存のものは壊さない。

The harness holds the knowledge. You hold the vision.知識はハーネスが持つ。方針はあなたが持つ。

The store and its search are one of Banto's flagships, alongside the toolset that drives it and the deterministic mechanism underneath.ストアと横断検索は、Banto の目玉の 1 つだ。それを動かす道具一式や、その下で働く決定論的な仕組みと並ぶ。

See all the evidence →実測を見る → The toolset →道具一式 → How the mechanism works →仕組みを見る →