← Catalog

@diegopetrucci/pi-gnosis

A pi extension that exposes the gnosis repo-local knowledge base CLI as an agent tool.

Package

Install

Install with PiG

pig install npm:@diegopetrucci/pi-gnosis

Install with Pi

pi install npm:@diegopetrucci/pi-gnosis
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": [
    "index.ts"
  ]
}

README

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

gnosis

A pi extension that exposes gnosis as an agent tool.

gnosis is a repo-local knowledge base for durable project context: decisions, rejected alternatives, constraints, operational lessons, and intent that are not obvious from code or docs.

What it adds

  • a gnosis tool for the agent
  • support for plan, review, search, latest, show, topics, write, and reindex
  • prompt guidance encouraging the agent to search before implementation and record only durable, non-obvious knowledge

This extension intentionally does not add slash commands; it is an agent-facing wrapper around the gn CLI. It also intentionally omits edit and rm actions from the tool surface.

Requirements

Install the gn CLI first:

brew install --cask skorokithakis/tap/gnosis

Or with Go:

go install github.com/skorokithakis/gnosis/cmd/gn@latest

Install

Standalone npm package

pi install npm:@diegopetrucci/pi-gnosis

Collection package

pi install npm:@diegopetrucci/pi-extensions

GitHub package

pi install git:github.com/diegopetrucci/pi-extensions

Then reload pi:

/reload

Notes

  • The extension shells out to gn in the current Pi working directory.
  • Gnosis stores entries in .gnosis/entries.jsonl at the repo root and uses a disposable SQLite FTS5 index for search.
  • write mutates the repo-local gnosis knowledge base; reindex rebuilds the search cache.