← Catalog

@blackbelt-technology/pi-dashboard-kb-extension

Isolated pi extension: registers kb_search/kb_neighbors/kb_get tools and a tool_result hook that reindexes markdown on edit and (opt-in) nudges DOX AGENTS.md row upkeep.

Extension

Install

Install with PiG

pig install npm:@blackbelt-technology/pi-dashboard-kb-extension

Install with Pi

pi install npm:@blackbelt-technology/pi-dashboard-kb-extension
Review before installing

Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.

Pi manifest JSON

The pi field of package.json.

{
  "extensions": [
    "src/extension.ts"
  ]
}

README

Written by the package's publisher, shown as published in version 0.11.0 (README.md). PiG does not review it.

@blackbelt-technology/pi-dashboard-kb-extension

Isolated pi extension for the markdown knowledge base. Not part of the dashboard bridge (src/extension/bridge.ts) — a standalone extension package.

What it does

  • Registers native tools (pi.registerTool): kb_search, kb_neighbors, kb_get — pull retrieval over the local SQLite/FTS5 KB. The agent calls them; nothing is auto-injected.
  • tool_result hook — Job 1 (always on): a write/edit to a .md file triggers a debounced, hash-gated incremental reindex. Editing an AGENTS.md/CLAUDE.md also acknowledges its DOX rows.
  • tool_result hook — Job 2 (opt-in, doxEnforcement default OFF): a write/edit to a non-md source file emits one bounded, deduped nudge to update the nearest AGENTS.md row (or points at kb dox init on a treeless path).
  • tool_call hook — push mode (opt-in, directoryLevelAgents.enabled && mode:"push"): surfaces the nearest AGENTS.md for a touched path. Default off (context-cost caveats).

Install

Add to .pi/settings.json packages or extensions, or drop into ~/.pi/agent/extensions/. Requires @blackbelt-technology/pi-dashboard-kb and a configured .pi/dashboard/knowledge_base.json (run kb init).

Env

  • KB_DOX_ENFORCEMENT=1 — force-enable DOX row enforcement.