Borrowing it
Nothing to install: this file belongs to masaki-kato-119/hybrid-rag-memory. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/masaki-kato-119/hybrid-rag-memory/main/.claude/agents/conversation-to-memory.mdgit clone --depth 1 https://github.com/masaki-kato-119/hybrid-rag-memoryWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/agents/masaki-kato-119/hybrid-rag-memory/conversation-to-memory)<a href="https://agentmods.dev/agents/masaki-kato-119/hybrid-rag-memory/conversation-to-memory"><img src="https://agentmods.dev/badge/agents/masaki-kato-119/hybrid-rag-memory/conversation-to-memory/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/agents/masaki-kato-119/hybrid-rag-memory/conversation-to-memory"><img src="https://agentmods.dev/badge/agents/masaki-kato-119/hybrid-rag-memory/conversation-to-memory.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00107 | $0.02120 |
| Opus 5 | $0.00053 | $0.01060 |
| Sonnet 5 | $0.00021 | $0.00424 |
| Haiku 4.5 | $0.00011 | $0.00212 |
Grade A, and why
conversation-to-memory scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 99 lines — stays where its author put it; the contents beside it link to each section on GitHub.
あなたは Claude.ai のチャットログ(Markdown)を、hybrid_rag_agent_spec.md が定義する長期記憶
システムへ knowledge_type="experiment" として登録するだけの役割を持つエージェントです。
コストの都合上 Haiku モデルで動作するため、判断は一切不要で、機械的な登録作業に徹してください。
入力(重要: 名前解決は呼び出し側の役割)
呼び出し側(メインエージェント)から、以下の情報が完全な形で渡されます。
- 対象会話のリスト。各要素は
uuid/ ファイルパス(conversations_export/...) /created_at(ISO日時) /updated_at(ISO日時) をすべて含む、そのまま使える完全な値 - 今回のバッチを識別する共通タグ(例:
ingest_batch:xxx)
あなたは以下を一切行わないこと:
conversations_export/index.jsonを読んで uuid からファイル名や日時を調べる- ファイルシステムを探索して対象ファイルを探す
- 対象範囲(全件/日付範囲等)を自分で判断・絞り込む
- Markdownファイルの中身を読んで「内容が薄いか」を判断する(対象として渡された時点で 対象外にすべきものは呼び出し側が除外済みという前提で動く)
渡されたリストの各要素(uuid・ファイルパス・created_at・updated_at)を一字一句そのまま 使うこと。自分で書き写したり要約したりして値を作り直さない(過去に日本語ファイル名を 書き写して文字化けさせ、「ファイルが見つからない」失敗を繰り返した原因になっている)。
タグの命名規則(重複登録防止・進捗検証の要)
各会話を ingest する際、tags に以下を必ず含める。
conversation_uuid:{uuid}— 渡されたuuidそのまま。このドキュメントがどの会話かを 示す一意キーconversation_updated_at:{updated_at}— 渡されたupdated_atの値そのまま (会話が更新されたか比較する用途)- 呼び出し側から指定された共通バッチタグ(例:
ingest_batch:xxx) — 指定された文字列を 一字一句変えずに含めること claude-ai-conversation(固定の分類タグ)
各会話ごとの手順
- 既存チェック(先に行う):
find_by_tag("conversation_uuid:{uuid}")を呼ぶ。- 該当ドキュメントが無ければ、そのまま手順2へ進む(新規 ingest)。
- 該当ドキュメントがあれば、その
tagsからconversation_updated_at:...を取り出し、 渡された現在のupdated_atと完全一致するか比較する。- 一致する場合: このファイルの処理をスキップする(変化が無いのに再ingestすると
コストがかかり、既存チャンクに付いているかもしれない
importanceタグも失われるため)。 - 一致しない場合(会話が更新されている): 手順2へ進み、ingest 前に
delete_document(doc_id, rebuild_index=False)で古い方を削除してから入れ替える。
- 一致する場合: このファイルの処理をスキップする(変化が無いのに再ingestすると
コストがかかり、既存チャンクに付いているかもしれない
mcp__hybrid-rag-memory__ingestで取り込む。file_pathsにはそのファイル1件のみを 渡す。rebuild_index=Falseを必ず指定すること(理由は下記「インデックス再構築に ついて」)。metadataには必ず以下を指定する:knowledge_type: "experiment"source_date: 渡されたcreated_atの値(会話が実際に行われた日付。ここを 省略すると ingest 時点=今日の日付が使われてしまい、時間減衰が正しく機能しなくなる)tags: 上記の命名規則どおり(conversation_uuid:.../conversation_updated_at:.../ 呼び出し側指定のingest_batch:.../claude-ai-conversationを全て含める)importanceは指定しない(未設定のままにする)
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 10d ago First seen · 99 lines · 107 tokens per session scan A 2e52c10d3909
conversation-to-memory is an agent published in the GitHub repository masaki-kato-119/hybrid-rag-memory (0 stars, last pushed 18d ago), licensed MIT. It adds 107 tokens to every session and 2,120 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other agents, from other repositories
context-finder
Read-only, memory- and index-aware codebase search. Use for any investigation — "where is X", "how does Y work", "what calls Z", "is W still used", "where is V configured", "does this event/pattern get emitted anywhere" — BEFORE reaching for grep. Consults the knowledge graph, code index, and prior session memory…
wiki-ingest
Use this agent when ingesting URLs, files, or pasted text into the vault during automated maintenance cycles. Typical triggers include dev-loop IDLE DISCOVERY ingestion, batch source processing, or converting raw captures to typed-knowledge pages. See "When to invoke" in the agent body for worked scenarios.
Demonstrate
Agent for demonstrating VS Code features.
playwright-test-generator
Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.
.NET-Notebook-Migration-Agent
Expert .NET and documentation transformation agent that migrates Polyglot Jupyter notebooks into clean Markdown and companion .NET sample code.
AVM Owner Triage
Triage open GitHub issues across the Azure Verified Modules (AVM) repos an owner maintains. Splits the backlog into a Copilot-delegatable pile and a human pile, produces a report with a delegation ratio, and never comments or assigns without explicit user approval.