omp packages

@lwlee2608/pi-output-style0.1.0

Change how Pi writes its replies with Claude Code-style output styles: built-in presets or your own Markdown styles.

lwlee2608 Published 4 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

Pi Output Style

Change how Pi writes its replies, like Claude Code's output styles. Pick a built-in style, or write your own in Markdown. Only the replies change. The tools and the coding work stay the same.

Install

pi install npm:@lwlee2608/pi-output-style

Requires Node.js 22.19+ and Pi 1.0.0. Run /reload after installing.

Use

Command Effect
/output-style Open the picker. The current style is marked.
/output-style <name> Switch to a style. Tab completes the names.
/output-style default Turn styles off.

A new style applies from your next prompt, with no /reload or new session. Your choice is saved for all sessions and projects.

Built-in styles

Style What it does
Default Pi's normal replies.
Explanatory Does the task, and adds short Insight notes on why the code and the choices are the way they are.
Learning Like Explanatory, and asks you to write small, meaningful pieces of code, marked TODO(human).
Concise Short, direct replies that start with the answer.

Custom styles

A style is a Markdown file with a name, a description, and instructions for the agent. It uses the same format as Claude Code, so your Claude Code styles in ~/.claude/output-styles/ show up in the picker as they are.

---
name: Diagrams first
description: Start each explanation with a small diagram
---

When you explain code, architecture, or data flow, start with a small ASCII diagram, then explain in prose.

Put the file in one of these folders:

Folder Scope
~/.claude/output-styles/ You, shared with Claude Code
~/.pi/agent/output-styles/ You, Pi only
.claude/output-styles/ in a project That project, when Pi trusts it
.pi/output-styles/ in a project That project, when Pi trusts it

If two styles have the same name, the one lower in this table wins. A custom style can replace a built-in style with the same name. If name is missing, the file name is the style name. Pi reads the folders again for each prompt, so your edits apply at once.

Config

The chosen style is saved in ~/.pi/agent/pi-output-style/config.json. You can edit this file by hand:

{ "style": "Concise" }

If the saved style no longer exists, Pi shows a warning and uses Default.

Differences from Claude Code

  • Claude Code removes its coding instructions unless a style sets keep-coding-instructions: true. Pi has no long coding prompt to remove, so this key has no effect.
  • Styles from a project folder load only when Pi trusts the project. Pi trusts a project without asking when it has no other project config, so check the style files in a repo you clone, as you would its AGENTS.md.
  • With each message you send, Pi reminds the model of the active style, so the style holds in long sessions. These reminders are not saved in the session.
  • Subagent workers do not use the style.

License

MIT