@tekmidian/pai

@tekmidian/pai is a plugin for Gemini CLI from mnott/PAI. Its token cost is not measured, scanned A, original, MIT.

A local memory and session-management service for AI coding assistants. It can search stored memories, retrieve project information, track sessions, and maintain a project registry and background index.

In plain words
What is it for?
Use it to search past context, inspect projects and their health, list sessions, find registry entries, and review project to-do information.
Why use it?
It helps an assistant retain useful project and session context instead of starting with no history each time.

Plugin for Gemini CLI

Written for Gemini CLI: a Gemini CLI extension manifest. Also seen: mentions Claude Code; mentions Gemini CLI.

Good fit Use it to search past context, inspect projects and their health, list sessions, find registry entries, and review project to-do information.

Compare 6 plugins from other repositories ↓
Install with agentmods
npx agentmods add plugins/mnott/pai/gemini-extension
View source ↗ mnott/PAI
Install

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.

Clone the repo
git clone --depth 1 https://github.com/mnott/PAI

Made for: Gemini CLI.

Wrote 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.

agentmods badge for @tekmidian/pai

README.md
[![agentmods](https://agentmods.dev/badge/plugins/mnott/pai/gemini-extension/github.svg)](https://agentmods.dev/plugins/mnott/pai/gemini-extension)
Your own site
<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.

agentmods 80×15 button for @tekmidian/pai

Your own site · 80×15
<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>
Per session not measured What this adds to a session before it is invoked.
When invoked not measured Not applicable: nothing here is loaded into a session.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Security

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.

The scan reads gemini-extension.json. This mod also ships 20 executable files (scripts/analyze-stall-profile.mjs, scripts/bench-router-timers.ts, scripts/build-docs.mjs, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

gemini-extension.json · 27 lines

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."
}
Files

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.

Changes

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.

  1. 3d ago Changed 727386110eea
  2. 4d ago Changed a2dbd1b284f0
  3. 5d ago Changed fa5dffd7ff8c
  4. 6d ago Changed e9e23c3f6f68
  5. 7d ago Changed f862fa2bd81b
  6. 8d ago Changed 1245a9cdcdc0
  7. 11d ago Changed 31c79c4a9752
  8. 12d ago Changed eee8030b56f8
  9. 13d ago Changed 4a87b7ea5824
  10. 14d ago First seen · 27 lines scan A dafbd0db38c7

Subscribe to this mod's changes

@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.

Related

@tekmidian/pai compared with plugins from other repositories

@tekmidian/pai next to 6 plugins from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
@tekmidian/paimnott/PAIPlugin743d agoMITA—Gemini CLI
open-knowledge-vaultglebis/claude-skillsPlugin417todayMITA—Claude Code
knowledge-and-memoryoaustegard/claude-skillsPlugin425yesterdayMITA—Claude Code
mega-brainguhcostan/claude-mega-brainPlugin1284d agoMITA—Claude Code
bestpracticeavanturer/claude-bestpracticePlugin3todayMITA—Claude Code
todoxbeydemirfurkan/todoxPlugin2yesterdayMITA—Claude Code
vault-templateballred/obsidian-claude-pkmPlugin1.9k9mo agoMITA—Claude Code