@suemi994/pi-init0.1.0-beta.0
Generate and maintain project instructions from Pi
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.
Reports 0
No reports yet.
Readme
@suemi994/pi-init
Install the package from the repository root with pi install ./pi-init, then start Pi in the project directory you want to document. At startup and reload, pi-init gives priority to an existing /init from Pi, another extension, or a prompt template. Pi displays a warning and skips pi-init's command, skill, and # shortcut when a conflict is found. It also skips activation if an unfamiliar Pi build's built-in command registry cannot be verified.
The npm prerelease uses the next tag. Install a published prerelease with pi install npm:@suemi994/pi-init@next.
/initasks Pi's model to inspect the current working tree and create or update the EnglishAGENTS.md. When updating, it checks existing guidance against the repository, fixes outdated details, and keeps applicable project rules. The extension creates a missingCLAUDE.mdwith@AGENTS.mdon its only line./init --templatefills an English starter template using local project metadata, writes the two files when missing, and asks the active model to refine a newAGENTS.mdif a model is available. It preserves an existingAGENTS.md. Pass a custom English template as--template ./template.mdor--template="./docs/agent template.md"./init --dry-rundisplays the initialization prompt without writing project files or calling a model. Combine it with--templateto also see the rendered draft and refinement prompt./init --check-onlyreports which common topics appear in theAGENTS.mdheadings and checks theCLAUDE.mdreference. It uses local files only.- An existing
CLAUDE.mdwith other content is preserved and reported. - Submit
# Use npm test before changing the parser.to record a project instruction. Pi reads the currentAGENTS.mdand inserts the instruction into the most relevant section. For English files or files whose language is unclear, Pi translates non-English prose into English and preserves commands, paths, and identifiers. For primarily non-English files, Pi keeps the instruction in its original language. Run/initfirst if the local file is missing. - Prefix an ordinary Markdown prompt with
\#to send a literal leading#.
Pi 1.6.0 exposes the input hook before prompt expansion and model processing. This package recognizes a leading # on user submissions in interactive and RPC modes. Section selection and translation use the active model and Pi's file tools. Run /reload after updating the file to refresh Pi's automatically loaded project context in the current session.
Custom templates support {{PROJECT_NAME}}, {{LANGUAGE}}, {{PACKAGE_MANAGER}}, {{INSTALL_CMD}}, {{DEVELOPMENT_COMMANDS}}, {{SCRIPTS_TABLE}}, {{STRUCTURE}}, and {{DATE}}.
dsh-tui Pi backend
dsh-tui 0.20.2 reserves /init for the host unless the Pi backend advertises a command override. The dsh-pi-backend v0.2.2 patch advertises that override when Pi exposes /init. Apply it to the backend package before starting dsh-tui with --backend pi. From the root of the backend checkout, run git apply /absolute/path/to/pi-init/integrations/dsh-pi-backend-v0.2.2.patch, then use the patched backend in your dsh-tui profile.