OpenWiki Brains:AI エージェントのための能動的メモリ機能(7 分読了)
OpenWiki Brains は、Gmail や Notion などの外部ソースを自動収集・構造化して AI エージェントに永続的な記憶(脳)を提供する新しい OSS フレームワークである。
キーポイント
能動的な記憶メカニズムの実現
従来の明示的な指示やパターン検出に依存せず、エージェントがツールを通じて関連コンテキストを自動的に取得し、記憶を構築する能動的アプローチを採用している。
多様なデータソースとの統合
Gmail, Notion, Git リポジトリ, Twitter/X, Hacker News, Web 検索など、散在する情報をローカル Wiki として統合し、エージェントが常に最新かつ構造化された文脈にアクセスできるようにする。
コードベースから一般ワークフローへ
元々はコードベースのドキュメント化 CLI として開発されていた OpenWiki の概念を拡張し、研究、計画、顧客対応など、コーディング以外の広範なエージェントワークフローに対応する汎用脳(Brain)へと進化させた。
手動管理の不要化と文脈の一貫性
ユーザーが各セッションでコンテキストを手動で追跡・コピーする必要をなくし、Wiki が自動的に更新されることで、エージェントに常に正確なプロジェクトや研究の背景知識を提供する。
重要な引用
With OpenWiki Brains, agents can build memories proactively by fetching relevant context through the tools, channels, and files you give it access to, without the need to explicitly tell it to remember something.
OpenWiki Brains gives agents a durable place to look. It turns your connected sources into a structured wiki that can be refreshed over time.
The goal is your agents should know the important context about your work, projects, interests, and research without forcing you to track and copy all of that context into every session.
影響分析・編集コメントを表示
影響分析
この発表は、AI エージェントが単なる会話パートナーから、組織や個人のデジタル資産を自律的に理解・活用する真の『作業パートナー』へと進化するための重要な基盤技術を示唆しています。特に、RAG(検索拡張生成)の概念を動的で能動的な「Wiki 化」プロセスに昇華させた点は、エージェントの信頼性と実用性を大幅に高める可能性があります。
編集コメント
エージェントの記憶問題を「手動管理」から「自動構築」へと解決するアプローチは、実務レベルでのエージェント導入における最大のボトルネックの一つを解消する有望な動きです。ただし、外部データソースとの連携におけるセキュリティとプライバシー保護が今後の実装課題となるでしょう。
私たちは、エージェントに能動的な記憶機能を与えるためのフレームワークとして「OpenWiki Brains」の公開を開始しました。
既存のメモリソリューションは、利用パターンや明示的な指示の変更を通じて発見された情報を基にメモリファイルを更新することで、エージェントが時間とともに改善される仕組みを提供しています。一方、OpenWiki Brains を用いれば、エージェントはツール、チャンネル、アクセス権限を与えられたファイルなどから関連する文脈を自動的に取得し、記憶すべき内容を明示的に指示することなく、能動的に記憶を構築できるようになります。
先日、私たちはコードベースのドキュメント作成のためのオープンソース CLI ツールとして「OpenWiki」を発表しました。これはリポジトリ内で実行すると、そのコードベース用のウィキを生成し、コードが変更されるたびにウィキも自動的に更新するものです。
OpenWiki 0.1.0 では、この概念を拡張し、コードエージェント以外のより幅広いワークフローにも対応できるようにしました。
これにより、OpenWiki はエージェントのための汎用的な「脳」を作成できるようになりました。Gmail、Notion、Git リポジトリ、Twitter/X、Hacker News、Web 検索などのソースに接続し、その情報をローカルウィキに変換して、エージェントが記憶として活用できるようにします。また、このウィキは自動的に更新されるため、手動で記述したり維持管理したりすることなく、常に新鮮な文脈をエージェントが利用できるようになります。
目指しているのは、あなたがすべてのセッションに手動で文脈を追跡・コピーしなくても、エージェントがあなたの仕事やプロジェクト、関心、研究に関する重要な文脈を理解できるようにすることです。
エージェントがウィキメモリを必要とする理由
エージェントは、適切な文脈を持っているときに、より高いパフォーマンスを発揮します。
コーディングエージェントにとって、その文脈とは通常リポジトリを指します。重要なロジックがどこに存在し、ファイル同士がどう接続され、コードベースでどのようなパターンが期待されているかを理解する必要があります。OpenWiki を構築したのも、まさにこの理由からです。
しかし現在、エージェントはコーディングだけでなく、より多様な領域で活躍しています。リサーチ、計画策定、文章作成、顧客対応、個人ワークフローの支援、社内ツールの活用などです。これらのタスクにおいて、有用な情報は多くの場所に散在しています。
Gmail や Notion、ブックマークした記事、Hacker News のスレッド、Git リポジトリ、あるいは繰り返される Web 検索の中に情報が眠っているのです。
エージェントに都度これらのソースを検索させることも可能ですが、それは遅く、結果も不安定です。逆に自分で文脈を記録すれば更新の手間がかかりますが、常に最新の状態を保つ必要があります。
OpenWiki Brains は、エージェントが参照できる永続的な場所を提供します。接続された複数のソースを構造化されたウィキに変換し、時間とともに自動的に更新していく仕組みです。
内蔵メモリとの違い
多くのエージェントにはすでにメモリ機能が備わっています。Claude や ChatGPT、LangSmith Fleet など、ユーザーが伝えた事実を記憶し、その後の会話で活用できるアシスタントも増えています。
この機能は有用であり、OpenWiki Brain がそれを置き換える必要はありません。
問題は、内蔵メモリの多くが「反応的」である点にあります。エージェントに明示的に渡した情報や、対話から推測できる情報のみを記憶する仕組みです。
これはすでに共有済みの好みや事実には有効ですが、ツール間で日々変化する文脈を扱うには不向きです。
Slack で重要なプロジェクトの更新が発生したら、エージェントはそれを把握できるべきです。Notion に関連する議事録が到着しても、それを取り込む能力が必要です。メールで有益なスレッドが見つかったり、Twitter/X で何かをブックマークしたりした場合も、チャットに貼り付けなくても、後でその文脈が重要になる可能性があります。
OpenWiki Brain は能動的な記憶機能です。あなたの情報源に接続し、あなたが「気にしてほしい」と指示した内容と一致する情報を検索して、エージェントが後で使用できるウィキに書き込みます。
標準搭載の記憶機能は、ユーザーがエージェントに伝えた内容を覚えておくのに役立ちますが、OpenWiki Brain は、あなたが普段作業している場所から情報を持ってくることで、エージェントを支援します。
今回の発表に伴い、OpenWiki Brain に関する新しい概念を 2 つご紹介します。
Personal Brain(パーソナル・ブレイン)
Personal Brain は、OpenWiki 0.1.0 で導入された主要な新機能です。
接続した情報源に基づいてローカルウィキを作成します。このウィキには、進行中のプロジェクトに関する文脈、調査中のトピック、協力している人物や企業、保存したリンク、関連するメールやノート、エージェントが後で必要とするその他の情報が含まれます。
設定時には、OpenWiki がブレインに何を集中させるかを尋ねます。一般的なパーソナルアシスタント向けのデフォルトプロンプトを用意していますが、必要に応じてカスタマイズ可能です。
例えば、「進行中のプロジェクト」「AI 研究のトピック」「顧客に関する文脈」「保存したリンク」、あるいは Notion ワークスペースからの最近のノートに焦点を当てるよう指示することもできます。
このプロンプトは、新しい情報を取り込む際に OpenWiki が何を保持すべきかを判断する基準となります。
コネクタ
Personal Brain はコネクタを通じて機能します。これにより、OpenWiki は情報が既に存在する場所から文脈を抽出して取り込むことが可能になります。
初期にサポートされるコネクタは以下の通りです。
- Gmail
- Notion
- Git リポジトリ
- Twitter/X
- Hacker News
- Web 検索
Slack のサポートも近日中に追加予定です。

コネクタには、動作が明確なものと、よりエージェント的なアプローチが必要なものの 2 つがあります。Gmail は直近のメールを取得し、Twitter/X はタイムラインやブックマークを、Hacker News は最新の投稿を、Git リポジトリは最近のコミットを検索するなど、データソースごとに単純な取得処理で対応できるケースです。
一方で、Notion や Web 検索のように「関連するすべての情報」が単一のフィードとして存在しないソースでは、より高度なアプローチが必要です。こうした場合、OpenWiki は取り込み時にエージェントにツールを提供します。ユーザーが「何を発見したいか」を指示すると、エージェントはその目的を持って検索を実行します。
ブレインの最新状態維持
ローカル環境で動作させることが、「最新情報を保つ」ことを現実的なものにする鍵です。Brain があなたのマシン上に存在するため、OpenWiki は他のローカルツールと同様に、スケジュールされたジョブを定期的に実行してコネクタから新情報を取得し、ディスク上の Wiki を更新します。サーバーの用意や、常時稼働するプロセスの維持は不要です。必要なタイミングで動作させるだけです。
スケジュールされた実行が開始されると、OpenWiki は設定済みのコネクタを順に処理し、Wiki に新しい情報を反映させます。
想定されるワークフローは、ソースを一度設定すれば、あとは OpenWiki がバックグラウンドで脳(メモリ)の維持管理を行ってくれるというものです。
OpenWiki Code Brain
OpenWiki は依然として、従来のコードベースワークフローをサポートしています。これを「Code Brain」と呼びます。
Code Brain は Git リポジトリ内で動作し、ドキュメントを生成して openwiki ディレクトリに書き出し、ウィキへの参照を含むエージェントの指示ファイルを更新します。
Code Brain と Personal Brain が別々になっているのは、解決する課題が異なるからです。Code Brain はリポジトリの構造、Git の履歴、ファイル間の関係性、そしてコーディング規約といった点に焦点を当てます。一方、Personal Brain は接続された複数のソースにまたがる広範な作業文脈を扱います。
メモリを更新するためのプロンプト、コネクタ、ワークフローはそれぞれ異なりますが、根底にある考え方は同じです。OpenWiki はエージェントが必要に応じて使用できる、生成され維持されるコンテキストを提供します。
Markdown first
現在の OpenWiki Brains は、プレーンな Markdown ファイルを使用しています。
Markdown は読みやすく、内容の確認も容易で、エージェントがナビゲートする際にも最適です。さらに、脳をインターフェースの奥に隠すのではなく、ファイルシステム上で可視化しておくことができます。
今後はフォーマットが進化するでしょう。ページ間のリンク機能や、よりリッチな知識形式、Google の Open Knowledge Format などの新しいフォーマットも興味深い方向性です。現時点では、既存のエージェントワークフローと互換性があり、シンプルに動作する Markdown が最適な出発点となっています。
What comes next
今後改善したい領域はいくつかあります。
まずは接続先の拡充です。Slack の連携はまもなく対応予定で、今後は LangSmith のトレースデータや Claude/Codex のローカルセッションなど、さらに多くの情報源を追加していく予定です。
次に検索機能の強化です。現在の Brain はファイルシステム上のウィキとして動作していますが、全文検索、MCP(Model Context Protocol)、セマンティック検索、そしてエージェントによる検索など、Brain 上での多様な検索手法を模索しています。
さらにフォーマットの改善も進めています。Markdown は出発点として適切ですが、エージェントの記憶表現や関連コンテキストのリンク方法について、より良い方法を引き続き探求していく考えです。
これらの取り組みについては、コミュニティからのフィードバックを歓迎します。
実際に試してみましょう
OpenWiki はオープンソースで、現在すぐに利用可能です。
Code Brain を使えば、リポジトリ用のドキュメント生成と維持管理が可能です。また、Personal Brain を活用すれば、接続した情報源から汎用的なウィキを自動生成し、常に最新の状態に保つことができます。
GitHub リポジトリはこちら:https://github.com/langchain-ai/openwiki
NPM 経由での利用も可能です:https://www.npmjs.com/package/openwiki
npm install -g openwiki@latest
openwiki personal --init
原文を表示
We’re launching OpenWiki Brains as a framework for giving agents proactive memory.
Existing memory solutions allow agents to improve over time by updating memory files based on patterns discovered through use or explicit changes to agent instructions. With OpenWiki Brains, agents can build memories proactively by fetching relevant context through the tools, channels, and files you give it access to, without the need to explicitly tell it to remember something.
We recently launched OpenWiki as an OSS CLI for codebase documentation. You ran it in a repo, it generated a wiki for that codebase, and it kept the wiki updated as the code changed.
With OpenWiki 0.1.0, we’re expanding the concept to support more agent workflows beyond code agents.
OpenWiki can now create a general-purpose brain for your agents. It connects to sources like Gmail, Notion, git repos, Twitter/X, Hacker News, and web search, then turns that information into a local wiki your agents can use as memory. It can also keep that wiki updated automatically, so your agents have access to fresh context without you manually writing or maintaining it.
The goal is your agents should know the important context about your work, projects, interests, and research without forcing you to track and copy all of that context into every session.
Why agents need wiki memory
Agents work better when they have the right context.
For coding agents, that context is usually the repo. They need to know where key logic lives, how files connect, and which patterns the codebase expects. That was the original reason we built OpenWiki.
But agents increasingly work across more than code. They help with research, planning, writing, customer work, personal workflows, and internal tools. For those tasks, useful context is scattered across many places.
It might live in Gmail, Notion, bookmarked posts, Hacker News threads, git repos, or repeated web searches.
You can ask an agent to search those sources each time, but that is slow and inconsistent. You can write the context down yourself, but then you have to keep it updated.
OpenWiki Brains gives agents a durable place to look. It turns your connected sources into a structured wiki that can be refreshed over time.
How this is different from built-in memory
Many agents already have memory. Claude, ChatGPT, LangSmith Fleet, and other assistants can remember facts you tell them and use those facts in future conversations.
That memory is useful, and OpenWiki Brain doesn't need to replace it.
The limitation is that built-in memory is mostly reactive. It remembers information you explicitly give the agent, or information the agent can infer from your conversations with it.
That works for preferences and facts you've already shared. It works less well for context that changes across your tools every day.
If an important project update happens in Slack, your agent should be able to know about it. If relevant meeting notes land in Notion, it should be able to incorporate them. If a useful thread shows up in email, or you bookmark something on Twitter/X, that context may matter later even if you never paste it into a chat.
OpenWiki Brain is proactive memory. It connects to your sources, looks for information that matches what you asked it to care about, and writes that information into a wiki your agents can use later.
Built-in memory helps agents remember what you told them. OpenWiki Brain helps agents from the places you already work.
With this announcement, we're introducing two new concepts for OpenWiki Brain.
Personal Brain
Personal Brain is the main new mode in OpenWiki 0.1.0.
It creates a local wiki based on the sources you connect. The wiki can include context about active projects, topics you are researching, people or companies you are working with, saved links, relevant emails, notes, and other information your agents may need later.
During setup, OpenWiki asks what the brain should focus on. We provide a default prompt for a general personal assistant, but you can customize it.
For example, you could tell OpenWiki to focus on active projects, AI research topics, customer context, saved links, or recent notes from a Notion workspace.
That prompt helps OpenWiki decide what to preserve when it ingests new information.
Connectors
Personal Brain works through connectors. Connectors let OpenWiki pull context from the places where your information already lives.
The first set of connectors includes:
- Gmail
- Notion
- Git repositories
- Twitter/X
- Hacker News
- Web search
Slack support is coming soon.

Some connectors are deterministic. Gmail can fetch recent emails. Twitter/X can fetch recent timeline data or bookmarks. Hacker News can fetch recent posts. Git repos can inspect recent commits.
Other connectors need a more agentic approach. Notion and web search are good examples. There is no simple feed of "everything relevant." For those sources, OpenWiki gives the agent tools at ingestion time. You describe what you want it to look for, and the agent searches with that goal in mind.
Keeping the brain up to date
Running locally is what makes “staying current” practical. Because the brain lives on your machine, OpenWiki can update it the same way any local tool does, by running a scheduled job that pulls new information from your connectors and refreshes the wiki on disk. There’s no server you need to provision or long‑running process to keep alive; it just runs on a cadence you choose.
When the scheduled run starts, OpenWiki goes through your configured connectors and updates the wiki with new information.
The intended workflow is that you configure your sources once, then let OpenWiki maintain the brain in the background.
OpenWiki Code Brain
OpenWiki still supports the original codebase workflow, now called Code Brain.
Code Brain runs inside a git repo, generates documentation, writes it into an openwiki directory, and updates agent instruction files with a reference to the wiki.
Code Brain and Personal Brain are separate because they solve different problems. Code Brain cares about repo structure, git history, file relationships, and coding conventions. Personal Brain cares about broader work context across your connected sources.
The prompts, connectors, and workflows to update memory are all different, but the underlying idea is the same. OpenWiki gives agents generated, maintained context they can use when they need it.
Markdown first
OpenWiki Brains currently use plain Markdown files.
Markdown is easy to read, easy to inspect, and easy for agents to navigate. It also keeps the brain visible on the filesystem instead of hiding it behind an interface.
We expect the format to evolve. Inter-page linking, richer knowledge formats, and formats like Google's Open Knowledge Format are all interesting directions. For now, Markdown gives us a simple starting point that works with existing agent workflows.
What comes next
There are a few areas we want to improve.
First, more connectors. Slack is coming soon, and we expect to add more sources over time like LangSmith traces, Claude/Codex local sessions, and more.
Second, better retrieval. Right now, the brain is a wiki on the filesystem. We are exploring full-text search, MCP, semantic search, and agentic search over the brain.
Third, better formats. Markdown works well as a starting point, but we want to keep exploring better ways to represent agent memory and link related context.
We'd love feedback from the community on all of this.
Try it
OpenWiki is open source and available now.
You can use Code Brain to generate and maintain documentation for a repo. You can use Personal Brain to generate a general-purpose wiki from your connected sources and keep it updated automatically.
Check out the repo here: https://github.com/langchain-ai/openwiki
And try it via NPM: https://www.npmjs.com/package/openwiki
npm install -g openwiki@latest
openwiki personal --init
関連記事
今日のまとめ
AI日報で今日の重要ニュースをまとめ読み