Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
git clone --depth 1 https://github.com/mnott/PAIWrote 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/plugins/mnott/pai/gemini-extension)<a href="https://agentmods.dev/plugins/mnott/pai/gemini-extension"><img src="https://agentmods.dev/badge/plugins/mnott/pai/gemini-extension/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/plugins/mnott/pai/gemini-extension"><img src="https://agentmods.dev/badge/plugins/mnott/pai/gemini-extension.svg" alt="Reviewed on agentmods" width="80" height="20"></a>Grade A, and why
@tekmidian/pai 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 3d 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.
What it actually says
{
"name": "@tekmidian/pai",
"displayName": "PAI Knowledge OS",
"description": "Personal AI Infrastructure — persistent memory and session continuity for AI coding assistants",
"version": "1.2.142",
"author": "Matthias Nott",
"license": "MIT",
"homepage": "https://github.com/mnott/PAI",
"mcpServers": {
"pai": {
"command": "node",
"args": ["dist/daemon-mcp/index.mjs"],
"description": "PAI Knowledge OS — federated memory search, project registry, session management. Provides 10 tools: memory_search, memory_get, memory_outline, project_info, project_list, session_list, registry_search, project_detect, project_health, project_todo."
}
},
"capabilities": {
"mcp": true,
"hooks": false,
"skills": false
},
"setup": {
"prerequisite": "Run 'pai setup' to configure storage backend, indexing, and daemon.",
"daemon": "Run 'pai daemon install' to start the background indexing service."
},
"notes": "Gemini CLI supports MCP servers. PAI's 9 MCP tools work fully. Hooks and skills are Claude Code-specific features that require Claude Code."
}
What ships with it
31 files beside gemini-extension.json in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- examples/workers.yaml 2.6 KB
- scripts/analyze-stall-profile.mjs 1.9 KB runs code
- scripts/bench-router-timers.ts 1.2 KB runs code
- scripts/build-docs.mjs 1.7 KB runs code
- scripts/build-hooks.mjs 12 KB runs code
- scripts/build-skill-stubs.mjs 7.9 KB runs code
- scripts/check-duplicates.mjs 3.0 KB runs code
- scripts/copy-defaults.mjs 2.0 KB runs code
- scripts/dist-stale.mjs 622 B runs code
- scripts/duplicates-baseline.json 3 B
- scripts/embed-ollama-job.mjs 11 KB runs code
- scripts/gen-builtin-rules.mjs 6.9 KB runs code
- scripts/lib/dist-reachable.mjs 1.1 KB runs code
- scripts/lib/sync-guard.mjs 5.6 KB runs code
- scripts/night-report/charts2.py 13 KB runs code
- scripts/night-report/make_report2.py 25 KB runs code
- scripts/probe-cache-keepalive.ts 2.7 KB runs code
- scripts/prune-dist.mjs 14 KB runs code
- scripts/regen-docs.ts 627 B runs code
- scripts/replay-tool-args.mjs 5.9 KB runs code
- scripts/sync-versions.mjs 1.8 KB runs code
- templates/agent-prefs.example.md 10.0 KB
- templates/ai-steering-rules.template.md 1.7 KB
- templates/claude-md.template.md 24 KB
- templates/commands/now.md 370 B
- templates/commands/sessions.md 1.3 KB
- templates/opencode/pai-bridge.mjs 4.0 KB runs code
- templates/pai-project.template.md 373 B
- templates/pai-skill.template.md 16 KB
- templates/skills/user/.gitkeep 0 B
- templates/voices.example.json 8.6 KB
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.
- 3d ago Changed 727386110eea
- 4d ago Changed a2dbd1b284f0
- 5d ago Changed fa5dffd7ff8c
- 6d ago Changed e9e23c3f6f68
- 7d ago Changed f862fa2bd81b
- 8d ago Changed 1245a9cdcdc0
- 11d ago Changed 31c79c4a9752
- 12d ago Changed eee8030b56f8
- 13d ago Changed 4a87b7ea5824
- 14d ago First seen · 27 lines scan A dafbd0db38c7
@tekmidian/pai is a plugin published in the GitHub repository mnott/PAI (74 stars, last pushed 3d ago), licensed MIT. Its token cost is not measured: this kind of file is read by the harness, not the model. 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-09-06.
@tekmidian/pai compared with plugins from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| @tekmidian/paimnott/PAI | Plugin | 74 | 3d ago | MIT | A | — | Gemini CLI |
| open-knowledge-vaultglebis/claude-skills | Plugin | 417 | today | MIT | A | — | Claude Code |
| knowledge-and-memoryoaustegard/claude-skills | Plugin | 425 | yesterday | MIT | A | — | Claude Code |
| mega-brainguhcostan/claude-mega-brain | Plugin | 128 | 4d ago | MIT | A | — | Claude Code |
| bestpracticeavanturer/claude-bestpractice | Plugin | 3 | today | MIT | A | — | Claude Code |
| todoxbeydemirfurkan/todox | Plugin | 2 | yesterday | MIT | A | — | Claude Code |
| vault-templateballred/obsidian-claude-pkm | Plugin | 1.9k | 9mo ago | MIT | A | — | Claude Code |