Skip to main content
The library is the agent’s local material store: put documents, notes and reference material into one unified directory, and the agent reaches them via @ mentions and knowledge retrieval. The core principle in one line: files are the single source of truth — titles and tags are just a rebuildable metadata layer.

Shape

  • The library root is configurable (default inside the app data directory); multiple knowledge-base dimensions are supported (a global library plus per-workspace ones);
  • Content = files you import + Markdown written by “save as note” inside the app;
  • Paths are strictly constrained inside the library root (symlink escape protection).

Daily operations

How the agent uses it

  • @ mentions: type @ in the composer to pull an entry into context;
  • Knowledge retrieval: the agent has a dedicated retrieval tool ranked by recent-use ∪ recent-modified, scored across title/tags/name/path;
  • The ranking is one shared pure function used by both the renderer and the sidecar — what you see in the UI is exactly what the agent gets.

Relation to backup

The library is on the backup “optional” list — tick it and the library content travels inside the .piabk archive. See Backup & restore.