@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 16d ago.

The scan reads gemini-extension.json. This mod also ships 11 executable files (scripts/bench-embed.mjs, scripts/bench-sort.mjs, 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": "0.7.0",
  "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."
}
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. 16d ago Changed e03f42174e07
  2. 1mo ago First seen · 27 lines scan A 55eb7cc5910f

Subscribe to this mod's changes

@tekmidian/pai is a plugin published in the GitHub repository mnott/PAI (52 stars, last pushed 12d 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.