OpenWiki Brains:AI エージェントのための能動的メモリ機能
LangChain は、エージェントが明示的な指示なしに外部ソースから文脈を自動取得・構造化する「OpenWiki Brains」フレームワークを発表し、AI エージェントの記憶管理とコンテキスト利用のあり方を変革した。
キーポイント
能動的メモリ機能の実装
従来の受動的な更新に加え、エージェントがツールやアクセス権限を通じて関連文脈を自ら取得し、自動的に記憶を構築する「能動的メモリ」を実現した。
多様なデータソースとの統合
Gmail、Notion、Git リポジトリ、Twitter/X、Hacker News、Web 検索など、散在する情報をローカル Wiki として構造化し、エージェントが参照可能な状態にする。
コードベース以外のワークフロー対応
既存の OpenWiki をコードドキュメントから拡張し、研究、計画作成、顧客対応など、コードに限定されない広範なエージェントワークフローをサポートする一般化された脳(Brain)として機能する。
手動メンテナンスの不要化
Wiki を自動的に更新・維持するため、ユーザーが各セッションごとに文脈を手動で追跡・コピーする必要がなくなり、エージェントは常に新鮮なコンテキストにアクセスできる。
影響分析・編集コメントを表示
影響分析
この発表は、AI エージェントが単なるタスク実行ツールから、組織や個人の文脈を自律的に理解・維持するパートナーへと進化するための重要なステップを示しています。特に、コンテキストの散在化と手動管理という課題に対し、自動化された Wiki 形式のメモリ解決策を提供することで、実運用におけるエージェントの信頼性と効率性を劇的に向上させる可能性があります。
編集コメント
エージェントの「記憶」をいかに自律的に維持するかが次世代 AI の鍵となる中、LangChain が提示した能動的メモリ概念は実用性の高い重要なアプローチです。ただし、外部ソースへのアクセス権限管理やセキュリティ面での課題も今後注目されるべき点と言えます。
私たちは、エージェントに能動的な記憶機能を与えるためのフレームワークとして OpenWiki Brains を立ち上げます。
既存の記憶ソリューションでは、使用パターンを通じて発見された情報や、エージェントへの指示に対する明示的な変更に基づいて記憶ファイルを更新することで、エージェントが時間とともに改善できるようになっています。OpenWiki Brains では、エージェントはツール、チャネル、およびアクセス権限を与えられたファイルを通じて関連するコンテキストを取得し、何かを覚えるように明示的に指示する必要なく、能動的に記憶を構築することができます。
私たちは最近、コードベースのドキュメント化のためのオープンソース CLI として OpenWiki を立ち上げました。リポジトリで実行すると、そのコードベース用のウィキが生成され、コードの変更に応じてウィキも自動的に更新されました。
OpenWiki 0.1.0 では、この概念を拡張し、コードエージェント以外のより広範なエージェントワークフローをサポートします。
OpenWiki は now、エージェントのための汎用脳(brain)を作成できるようになりました。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 はブレインが何に焦点を当てるべきかを尋ねます。一般的なパーソナル・アシスタント向けのデフォルトのプロンプトを提供していますが、これをカスタマイズすることも可能です。
例えば、OpenWiki に進行中のプロジェクト、AI 研究のトピック、顧客に関する文脈、保存されたリンク、または Notion ワークスペースからの最近のノートに焦点を当てるよう指示することができます。
このプロンプトは、新しい情報を取り込む際に OpenWiki が何を保持すべきかを決定するのを助けます。
コネクタ
Personal Brain はコネクタを通じて動作します。コネクタにより、OpenWiki は情報が既に存在する場所からコンテキストを引き出すことができます。
最初のセットのコネクタには以下が含まれます:
- Gmail
- Notion
- Git リポジトリ
- Twitter/X
- Hacker News
- Web 検索
Slack のサポートもまもなく提供されます。

一部のコネクタは決定論的です。Gmail は最新のメールを取得できます。Twitter/X は最近のタイムラインデータやブックマークを取得できます。Hacker News は最近の投稿を取得できます。Git リポジトリは最近のコミットを検査できます。
他のコネクタでは、よりエージェント的なアプローチが必要です。Notion と Web 検索がその好例です。「関連するすべてのもの」を単純なフィードとして取得することはできません。これらのソースに対しては、OpenWiki は取り込み時にエージェントにツールを提供します。あなたが何を探索してほしいかを記述すると、エージェントはその目的を持って検索を実行します。
ブレインの最新状態の維持
ローカルで実行することが「最新状態を維持する」ことを現実的なものにしています。ブレインがあなたのマシン上に存在するため、OpenWiki は任意のローカルツールと同様に、スケジュールされたジョブを実行してコネクタから新しい情報を取得し、ディスク上のウィキを更新することで、それを最新の状態に保つことができます。プロビジョニングが必要なサーバーや、常時稼働させる必要がある長期プロセスは不要です。これはあなたが選択した間隔で実行されるだけです。
スケジュールされた実行が開始されると、OpenWiki は設定済みのコネクタを順次処理し、新しい情報でウィキを更新します。
意図されたワークフローは、ソースを一度設定したら、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 はファイルシステム上のウィキとして動作しています。今後は、Brain 全体での全文検索、MCP(Model Context Protocol)、セマンティック検索、そしてエージェント型検索の実装を検討中です。
第三に、フォーマットの改善です。Markdown は出発点としてよく機能しますが、エージェントの記憶を表現し、関連する文脈をリンクさせるためのより良い方法を引き続き模索しています。
これらの取り組みについて、コミュニティからのフィードバックをぜひお聞かせください。
試してみましょう
OpenWiki はオープンソースで、現在利用可能です。
Code Brain を使用すれば、リポジトリのドキュメント生成と維持管理が可能です。また、Personal Brain を使えば、接続されたソースから汎用ウィキを自動生成し、自動的に更新し続けることもできます。
リポジトリはこちらでご覧ください: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日報で今日の重要ニュースをまとめ読み