omp packages

@yann-perrin/suggest-tool0.1.1

Append a suggestion as a single line to the suggestions file

GitHub Actions Published 3 days ago MIT ~0 downloads/mo

Untested on omp

This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.

Did it work for you?

Result

One report per person. A new report replaces your old one.

Reports 0

No reports yet.

Readme

Suggest Tool for Pi

A small Pi extension that gives the agent a suggest tool for collecting ideas and suggestions in a plain text file.

What it does

Each time the agent calls the suggest tool, a new line is appended to the suggestions file, one suggestion per line:

2025-01-01  15:30:00  Add a dark mode toggle +pi @tui
2025-01-01  15:32:12  Ship a CLI wizard for initial setup +pi @cli
  • The line format is: YYYY-MM-DD HH:MM:SS <suggestion> (local time, with a double space separating the parts).
  • The suggestion itself is free text on a single line; it should end with a +project tag and an @context tag to make entries easy to grep later (e.g. grep '+pi').
  • Entries are appended at the end of the file, preserving existing content.

Where the file is written

  1. If the SUGGESTIONS_FILE environment variable is set, its value is used (relative paths are resolved against the current working directory; parent directories are created automatically).
  2. Otherwise, the default location is suggestions.txt in the current working directory.

Installation

Option 1: As a Pi Package (Recommended)

Local installation:

pi install ./path/to/suggest-tool

Global installation (via npm):

pi install npm:@yann-perrin/suggest-tool

Option 2: Single File (Quickest)

If you just want to run the script without managing it as a package, you can copy the suggest-tool.ts file directly into your extensions directory:

  • Global: ~/.pi/agent/extensions/suggest-tool.ts
  • Local: .pi/extensions/suggest-tool.ts

After installation, restart Pi or run /reload.

Usage

Nothing to configure. Start Pi (optionally with a custom suggestions location) and the agent will have the suggest tool available in its tool list:

# Use the default: ./suggestions.txt
pi

# Use a custom location via the environment variable
SUGGESTIONS_FILE=~/notes/ideas/suggestions.txt pi

# Or, relative to the working directory of the Pi process
SUGGESTIONS_FILE=docs/suggestions.txt pi

In the conversation, just ask the agent in natural language, for example:

"Suggest we add a settings page to the project (project: pi, context: tui)." "Capture this idea: support keyboard shortcuts for all commands (project: pi, context: cli)."

The agent will call the suggest tool, and each call appends one line to the file, including the +project and @context tags.

Example session

With SUGGESTIONS_FILE=ideas.txt:

$ SUGGESTIONS_FILE=ideas.txt pi
> note down a suggestion: export sessions to JSON, project pi, context cli

$ cat ideas.txt
2025-01-01  15:30:00  export sessions to JSON +pi @cli

Notes

  • The tool only appends; it never rewrites or deletes existing entries.
  • If the file does not exist, it is created (together with any missing parent directories when using SUGGESTIONS_FILE).
  • The SUGGESTIONS_FILE value is resolved when the tool runs, so you can change it per session or per launch.
  • Using pi --tools ls,read,grep,find,suggest with this extension active allows for an almost read-only agent that is restricted to write only to SUGGESTIONS_FILE.

License

Copyright (c) 2026 Yann Perrin

This project is licensed under the MIT License.