PI-Desktop
Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins
What XERJ indexed
Snapshot
Only apps/desktop, docs/spec/04-ux, docs/spec/06-delivery, docs/spec/08-meta, docs/zh-CN/spec/04-ux, docs/zh-CN/spec/06-delivery, docs/zh-CN/spec/08-meta, scripts at commit 5a74d3a858 (2026-09-22). main is 2,165 commits ahead.
Selected work

“copy rendered formulas as round-trippable TeX”. 13 files, 2,129 lines in apps/desktop, scripts, the project root.
Licence
The repository
LICENSE file checked at the pinned commit; the author agreed to inclusion.
The XERJ corpus
The author agreed by email on 2026-10-17. Agents read it for how it works, not to copy it. Answers name the repo, the commit and the file:line.
selected for the XERJ Corpus Hublicence clearedsuggested use: approach only
pi-desktopai-agentcoding-agentdesktop-appelectronglobali18nlocal-first
Example questions
- How does PI-Desktop implement ai-agent?
- Where does PI-Desktop handle “copy rendered formulas as round-trippable TeX”?
- What does apps/desktop do in PI-Desktop?
Inside the indexed corpus
- 2,171 files, 45.9 MB in total, about 21.7 KB per file.
- The selected commit changed 13 of those files (0.6%).
- Languages by size: TypeScript 54.8%, JavaScript 26.8%, Rust 15.1%, CSS 2.9%, Shell 0.1%.
- On GitHub since 2023-03-22, last push 2026-10-31, 5,790 commits on main.
- The pin is 2,165 commits behind main; the corpus answers from the pinned code, not the newest.
Licence on GitHub and in the corpus
GitHub reported LGPL-3.0 for vastsa/PI-Desktop on 2026-10-31, and the LICENSE file at commit 5a74d3a858 was reviewed as LGPL-3.0. They match, so answers from this corpus carry the same terms as the live repository.
Contributors
Yuc (@KtzeAbyss) has 1 selected repository on the hub.
Using XERJ with PI-Desktop
- Code search MCP for Claude Code: cite file:line, not grep PI-Desktop is tagged mcp on GitHub.
- What is an MCP memory server?
- A local search tool for Codex and Cursor PI-Desktop is tagged coding-agent on GitHub.
- Local code search MCP that uses fewer tokens than grep
The prompt
Paste it into your AI agent. It clones vastsa/PI-Desktop at the pinned commit and indexes it on your machine.
Search the GitHub repository vastsa/PI-Desktop with XERJ (https://hub.xerj.org/corpus/vastsa--pi-desktop). Run these in a shell, in order, and check each result before the next: 1. xerj --help (success: it prints usage). If xerj is missing: curl -fsSL https://xerj.org/get | sh 2. git clone https://github.com/vastsa/PI-Desktop PI-Desktop && git -C PI-Desktop checkout 5a74d3a8588ee939f9dd257a5d2b1447a8ea6852 3. Start a local node and leave it running: xerj --insecure --data-dir ./xerj-data 4. xerj autoindex ./PI-Desktop --url http://127.0.0.1:9200 --prefix pi-desktop --progress plain 5. xerj autoindex map --url http://127.0.0.1:9200 Then answer my question from the indexed files and cite the ax_path of every hit. Query syntax: https://xerj.org/llms.txt Licence: LGPL-3.0. Read it for the approach only, do not copy code.
Related
YucAI, prompts and agents corporadunorth595--ai-agent-memoryxobotyi--cc-foundry-the-workflow-handoffxobotyi--cc-foundry-rustEileenes/pi-desktopliaan/grok-desktopincadawr/anycode
Stats: GitHub API, fetched 2026-10-31. Snapshot: the git tree at the pinned commit. Selected work and consent: the XERJ registry.