[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-113189":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":16,"forks30d":16,"starsTrendScore":19,"compositeScore":20,"rankGlobal":10,"rankLanguage":10,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":24,"hasPages":22,"topics":25,"createdAt":10,"pushedAt":26,"updatedAt":27,"readmeContent":28,"aiSummary":29,"trendingCount":16,"starSnapshotCount":16,"syncStatus":30,"lastSyncTime":31,"discoverSource":32},113189,"obsidian-icap-agent","EdwinZhanCN\u002Fobsidian-icap-agent","EdwinZhanCN","Learn inside your Obsidian notes — contextual explanations, recall with feedback and in-document requests, powered by your own Pi agent.","https:\u002F\u002Ficap.edwinzhan.space",null,"TypeScript",92,6,55,1,0,19,26,4,54.64,"MIT License",false,"main",true,[],"2026-11-19 03:17:27","2026-11-23 16:06:21","# ICAP Learning Agent\n\nAn Obsidian plugin for learning inside your own notes. There is no chat panel: explanations, questions and feedback appear in the note you are reading, and whatever you keep is plain Markdown. Its agent is [Pi](https:\u002F\u002Fpi.dev), built into the plugin and connected to your own model provider.\n\n**[中文说明](README.zh-CN.md)** · Obsidian 1.11.4+ on desktop, iPhone, iPad and Android · English and Chinese interface\n\n![Selecting \"angle of attack\" opens an explanation under the paragraph](docs\u002Fimages\u002Fexplain.en.png)\n\n## Features\n\n- **Explain.** Select a word or passage; the explanation appears under it. Ask for deeper, an example, plainer, or a comparison, and keep it if it helped.\n- **Recall.** Explain a section from memory. The agent answers what you actually wrote and asks a follow-up.\n- **Check.** A few questions on a section or a whole note, with feedback on your answer.\n- **Ask the agent here.** A request block anywhere in a note. Point at files with `[[` or `@`; use your Pi skills and commands with `\u002F`.\n- **Documents.** PDFs, EPUBs and Word files in the vault become readable trees: the agent opens a book's table of contents, reads only the chapters it needs, and cites pages you can click.\n- **Interactive visuals.** Sliders and diagrams you can drag, in a sandbox with no network.\n- **Activity.** The status bar shows what the agent is doing and lists recent tasks: their status, what they cost (tokens, cache hits, price), and every file they created or changed. Turn on *Record tasks as notes* and every task that does real work also gets a note with properties, listed in a native Base (`ICAP\u002FActivity.base`) you can filter, group and change; a task's name leads back to where you asked.\n\n![A request block: notes made from a PDF, with the edit to an existing note proposed as a diff](docs\u002Fimages\u002Frequest.en.png)\n\nEdits to your existing notes are proposed as a diff and applied only when you accept them. Notes stay readable without the plugin. The name comes from the ICAP framework (Chi & Wylie, 2014): learning deepens from **P**assive to **A**ctive, **C**onstructive and **I**nteractive.\n\n## Install\n\nIn Obsidian, open **Settings → Community plugins → Browse**, search for **ICAP Learning Agent**, then **Install** and **Enable**.\n\nTo install by hand instead, download `main.js`, `manifest.json` and `styles.css` from the latest [release](https:\u002F\u002Fgithub.com\u002FEdwinZhanCN\u002Fobsidian-icap-agent\u002Freleases) into `\u003Cyour vault>\u002F.obsidian\u002Fplugins\u002Ficap-agent\u002F`, and enable the plugin there.\n\nThe first launch opens a guide note that walks through every interaction. Coming from ICPA (`icpa-agent`)? ICAP imports its settings on first start; then remove the old plugin.\n\n## Connect a model\n\nOpen **Settings → ICAP Learning Agent → Model providers → Log in…**, then sign in with a subscription (Claude Pro\u002FMax, ChatGPT, GitHub Copilot…) or paste an API key. Pi stores it in `~\u002F.pi\u002Fagent\u002Fauth.json`, shared with the Pi CLI. A key exported in your shell profile also works.\n\nFor a service Pi does not list (Ollama, LM Studio, vLLM, a proxy, any OpenAI-compatible API), use **Custom endpoint…** next to it: a name, base URL, key and model ids. It is saved in Pi's `~\u002F.pi\u002Fagent\u002Fmodels.json` (`%USERPROFILE%\\.pi\\agent\\models.json` on Windows), shared with the Pi CLI. A key written there is plain text; enter `$NAME` to read an environment variable instead.\n\n**On a phone or tablet.** Pi needs Node, which Obsidian mobile does not have, so there ICAP runs its own agent on Pi's model libraries, with ICAP's tools only. Open **Settings → ICAP Learning Agent → Model providers** and add an API key for Anthropic, OpenAI, Google Gemini, OpenRouter, DeepSeek, Mistral, Groq or xAI. Keys are kept in Obsidian's keychain on that device only: never in the vault, never synced, so each device gets its own. **Add endpoint…** connects Ollama or LM Studio on your network, a proxy, or any OpenAI- or Anthropic-compatible API. When saved, ICAP checks once whether the server allows the app to stream from it. If it doesn't, replies go through Obsidian and arrive whole: you see \"waiting for the complete reply\" instead of text appearing, and stopping only stops the wait (the request is still billed). Subscription logins, Bedrock and Vertex are desktop only. The model you choose on mobile is separate from the desktop's.\n\n**Agent setup.** By default the agent runs with your own Pi setup (skills, extensions, MCP servers, shell) and can edit files directly; every change is listed in Activity. Choose **ICAP only (isolated)** for read-only tools inside the vault and the folders you allow.\n\n## Network, accounts and files outside the vault\n\n- **Network.** Requests, with the parts of your notes and documents the agent reads, go only to the model provider you choose. ICAP has no server, no telemetry and no analytics. Visuals have no network access. In the default setup your own Pi extensions and MCP servers may contact their own services.\n- **Accounts.** You need an account with a model provider, which bills you directly. ICAP needs no account.\n- **Files outside the vault.** ICAP reads Pi's folder `~\u002F.pi\u002Fagent\u002F` (settings, credentials, extensions, skills) and writes there when you sign in, add a custom endpoint, change the model or trust a project, as the Pi CLI does. On first use it runs your login shell once to pick up missing environment variables such as provider keys. In isolated mode the agent reads only the outside folders you allow; in the default setup it has Pi's shell.\n- **On mobile.** Nothing outside the vault is read. API keys are in Obsidian's keychain on the device.\n- **In the vault.** Settings and sessions live in `.obsidian\u002Fplugins\u002Ficap-agent\u002F`; so does the document cache (`docs\u002F`). The vault gets task notes and `Activity.base` only if you turn on *Record tasks as notes*.\n\n## Troubleshooting and limitations\n\n- **\"No model has credentials\":** log in under **Model providers**. A key added to `~\u002F.zshrc` reaches Obsidian on its next launch; then press ↻.\n- `main.js` is about 13 MB: Pi for the desktop and the model libraries the mobile agent uses; a phone loads only the latter.\n- **On mobile:** no Pi setup (your skills, extensions, MCP servers, `\u002Fcompact`), no file or shell tools, no folders outside the vault. Each turn of a request block replays the conversation to the model, since sessions are not cached there. If iOS suspends Obsidian while a reply is coming in, the task pauses; open it again and press **continue**.\n- Scanned PDFs without a text layer can't be read (no OCR).\n- An explanation you haven't kept disappears when the plugin reloads.\n\n## More\n\n[DESIGN.md](DESIGN.md) (how it works) · [FORMAT.md](FORMAT.md) (what it writes into notes) · [CONTRIBUTING.md](CONTRIBUTING.md) · [MIT](LICENSE)\n","这是一个为 Obsidian 笔记软件设计的学习增强插件，通过嵌入式 Pi 代理实现上下文感知的知识理解与主动回忆训练。核心功能包括：选中文字即时生成解释并支持多角度追问（如举例、类比）、基于笔记内容的主动回忆测验、结构化问答与反馈、支持文档引用的内联请求块，以及对 PDF\u002FEPUB\u002FWord 文件的章节级智能解析与页码溯源。所有交互直接呈现在 Markdown 笔记中，编辑以 diff 形式预览，确保笔记始终纯文本可读。适用于自学、知识梳理、备考复习等需要深度加工与长期记忆巩固的个人知识管理场景。",2,"2026-11-24 04:45:04","CREATED_QUERY"]