omp packages

@suemi994/pi-init0.1.0-beta.0

Generate and maintain project instructions from Pi

suemi994 Published 10 days ago ~265 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

@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.

  • /init asks Pi's model to inspect the current working tree and create or update the English AGENTS.md. When updating, it checks existing guidance against the repository, fixes outdated details, and keeps applicable project rules. The extension creates a missing CLAUDE.md with @AGENTS.md on its only line.
  • /init --template fills an English starter template using local project metadata, writes the two files when missing, and asks the active model to refine a new AGENTS.md if a model is available. It preserves an existing AGENTS.md. Pass a custom English template as --template ./template.md or --template="./docs/agent template.md".
  • /init --dry-run displays the initialization prompt without writing project files or calling a model. Combine it with --template to also see the rendered draft and refinement prompt.
  • /init --check-only reports which common topics appear in the AGENTS.md headings and checks the CLAUDE.md reference. It uses local files only.
  • An existing CLAUDE.md with other content is preserved and reported.
  • Submit # Use npm test before changing the parser. to record a project instruction. Pi reads the current AGENTS.md and 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 /init first 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.