@diegopetrucci/pi-gnosis

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

Packages

Package details

extension

Install @diegopetrucci/pi-gnosis from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:@diegopetrucci/pi-gnosis
Package
@diegopetrucci/pi-gnosis
Version
0.1.0
Published
May 20, 2026
Downloads
not available
Author
diegopetrucci
License
MIT
Types
extension
Size
8.2 KB
Dependencies
0 dependencies · 3 peers
Pi manifest JSON
{
  "extensions": [
    "index.ts"
  ]
}

Security note

Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.

README

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.