Catalog npm
Back to packageRELEASE DETAILS

0.1.0

npm

@0xkobold/pi-suggest

Context-aware suggestion engine for pi-coding-agent

context-awareintentpi-packagesuggestions
Published24 Mar 2026
Direct dependencies6
Transitive dependenciesNot calculated

README

Current package documentation

@0xkobold/pi-suggest

Ghost text prompt suggester for pi-coding-agent. Forked from @guwidoe/pi-prompt-suggester architecture.

Features

  • 👻 Ghost Text - Suggestions appear inline in the editor as ghost/dim text
  • ⌨️ Space to Accept - Press Space on empty editor to accept suggestion
  • ✏️ Type to Override - Any keypress hides ghost and types normally
  • 🔄 Auto-Generate - Suggestions generated after each agent response

Install

# Global install
pi install npm:@0xkobold/pi-suggest

# Project-local install
pi install -l npm:@0xkobold/pi-suggest

Usage

After an assistant completion, the extension suggests the next user prompt as ghost text in the editor.

Commands

  • /suggest status - Show current suggestion
  • /suggest ghost - Show current ghost text

How It Works

  1. After agent responds, a suggestion appears as gray/dim text in the empty input field
  2. Press Space on an empty editor to accept the full suggestion
  3. Type any character to dismiss the ghost and type normally

Architecture

Based on @guwidoe/pi-prompt-suggester:

  • GhostSuggestionEditor extends CustomEditor from pi-coding-agent
  • Overrides handleInput() to intercept Space key for acceptance
  • Overrides render() to draw ghost text inline with cursor
  • Uses ctx.ui.setEditorComponent() to install custom editor

License

MIT

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 6

Native requirements
6 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
zod
Environment
{
  "local_name": "zod",
  "alias": false,
  "peer_metadata": null
}
^3.25.0runtime
bun-types
Environment
{
  "local_name": "bun-types",
  "alias": false,
  "peer_metadata": null
}
^1.2.0development
@types/bun
Environment
{
  "local_name": "@types/bun",
  "alias": false,
  "peer_metadata": null
}
^1.2.0development
@types/node
Environment
{
  "local_name": "@types/node",
  "alias": false,
  "peer_metadata": null
}
^20.19.37development
@sinclair/typebox
Environment
{
  "local_name": "@sinclair/typebox",
  "alias": false,
  "peer_metadata": null
}
*peer
@mariozechner/pi-coding-agent
Environment
{
  "local_name": "@mariozechner/pi-coding-agent",
  "alias": false,
  "peer_metadata": null
}
*peer

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "61a35c6d7124f1c41c7626758bf83f0252194d68",
  "tarball": "https://registry.npmjs.org/@0xkobold/pi-suggest/-/pi-suggest-0.1.0.tgz",
  "fileCount": 37,
  "integrity": "sha512-8uPo4OwFgZVb+tr9xIw8dZq6gHqfORxBJ3+xY7btZCI5ikzsjb87lrNHdKE297Mc5VZgqTw3/Slu16f4xhy07Q==",
  "signatures": [
    {
      "sig": "MEYCIQCe/4/qL8XMEEawpt5QrY60SxgSbL9YVjKOcavAFQUh4AIhAOsbAjykHFtfkrAloVxNmqq4x22HNGU1VqNOaD4X7xee",
      "keyid": "SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"
    }
  ],
  "unpackedSize": 220851
}

Repository

PENDING
0xkobold/pi-suggest

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 21 Oct, 09:03 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:aba59475f25bbec8a774e43ee57e129b27751b5d48c2f1b7da3624b9073a1ce1

Other collected versions

0.5.024 Mar0.4.024 Mar0.3.024 Mar0.2.024 MarView all collected versions →