[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-115534":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":16,"stars7d":17,"stars30d":17,"stars90d":15,"forks30d":15,"starsTrendScore":18,"compositeScore":19,"rankGlobal":9,"rankLanguage":9,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":23,"hasPages":21,"topics":24,"createdAt":9,"pushedAt":27,"updatedAt":28,"readmeContent":29,"aiSummary":30,"trendingCount":15,"starSnapshotCount":15,"syncStatus":16,"lastSyncTime":31,"discoverSource":32},115534,"pi-emphasis","johnlindquist\u002Fpi-emphasis","johnlindquist","Pi extension: colored status pills with icons, labeled headings and colored bold, so assistant replies are easy to scan",null,"TypeScript",276,11,62,3,0,2,165,20,77.12,"MIT License",false,"main",true,[25,26],"pi","pi-package","2026-11-16 05:58:40","2026-11-23 18:36:21","# Pi Emphasis\n\nReplies you can scan. This [Pi](https:\u002F\u002Fpi.dev\u002F) extension turns `[[Done]]`, `[[Failed]]` and `[[Needs you]]` into colored pills with icons, gives headings and lead labels an icon from their word, and colors bold text, arrows and tree lines.\n\n![A Pi reply about a failed deploy, with colored pills, icons and labels](screenshots\u002Freply.png)\n\nThe reply above is an invented example about an imagined deploy. This is the same reply without the extension:\n\n![The same reply as plain Markdown, with the pills shown as bracketed words](screenshots\u002Fwithout.png)\n\nIt changes only what is drawn. Stored messages, copied text and HTML exports keep the original Markdown. It calls no model and costs nothing to run.\n\n## Requirements\n\n| You need | Why | Without it |\n|---|---|---|\n| [Pi](https:\u002F\u002Fgithub.com\u002Fearendil-works\u002Fpi) 1.5 or newer (checked on 1.5.0) | This is a Pi extension | It cannot be installed |\n| A terminal that can draw [Nerd Font](https:\u002F\u002Fwww.nerdfonts.com\u002F) symbols | The icons and the rounded pill ends are Nerd Font symbols | You see empty boxes or question marks. See [Set up your terminal](#set-up-your-terminal) |\n| A terminal with color | Pills are colored backgrounds | Pills are drawn in reverse video, all in one color |\n| `git` | `pi install` clones this repository | The install fails |\n\nChecked on macOS only. Setup takes about two minutes if your terminal already has the symbols.\n\n## Install\n\n```sh\npi install git:github.com\u002Fjohnlindquist\u002Fpi-emphasis\n```\n\nThen run `\u002Freload` in Pi, or start Pi again.\n\n- Update: `pi update --extensions`\n- Try once without installing: `pi -e git:github.com\u002Fjohnlindquist\u002Fpi-emphasis`\n- Remove: `pi remove git:github.com\u002Fjohnlindquist\u002Fpi-emphasis`\n\n## Set up your terminal\n\n**1. Check whether your terminal already draws the symbols.** Paste this into your shell:\n\n```sh\nprintf '\\ue0b6\\uf00c \\uf128 \\uf007\\ue0b4\\n'\n```\n\nYou should see a half circle, a check mark, a question mark, a person and another half circle. If you do, skip to step 3. Ghostty, kitty and WezTerm include these symbols, so they usually pass with any font.\n\n**2. If you see boxes, install a Nerd Font and select it.** On macOS with Homebrew:\n\n```sh\nbrew install --cask font-jetbrains-mono-nerd-font\n```\n\nOr download any family from [nerdfonts.com](https:\u002F\u002Fwww.nerdfonts.com\u002Ffont-downloads). Then choose it as the terminal's font and run the check again:\n\n| Terminal | Where the font is set |\n|---|---|\n| iTerm2 | Settings, Profiles, Text, Font |\n| macOS Terminal | Settings, Profiles, Text, Font |\n| VS Code terminal | the `terminal.integrated.fontFamily` setting, for example `JetBrainsMono Nerd Font` |\n| Alacritty | `font.normal.family` in `alacritty.toml` |\n\nTo keep your current font, install only the symbols with `brew install --cask font-symbols-only-nerd-font` and add \"Symbols Nerd Font\" as a fallback font where your terminal supports one.\n\n**3. Check it in Pi.** After installing the extension and running `\u002Freload`, ask:\n\n> Reply with one line that uses the pills [[Done]], [[Needs you]], [[Failed]] and [[Costs money]].\n\nYou should see four rounded pills in green, yellow, soft red and solid red, each with an icon.\n\n**No Nerd Font, or you prefer plain chips?** Start Pi with the icons and rounded ends turned off. To make it permanent, put the two `export` lines in your shell profile, such as `~\u002F.zshrc`:\n\n```sh\nexport PI_EMPHASIS_PILL_ICONS=0\nexport PI_EMPHASIS_ROUND_CAPS=0\npi\n```\n\n## The rules come with it\n\nAn agent writes pills only when it is told how. In Pi's terminal interface the extension adds a `reply_style` section to the system prompt on every run, so there is nothing to paste into an `AGENTS.md`. The section tells the agent:\n\n- which words to use for each color, and that every failure, ask and unchecked claim needs its pill\n- to open a reply with the kind of work it understood, and to mark consequences and ownership\n- to follow each attention pill with the action it calls for, such as the fastest check after `[[Unverified]]`\n- to write labels as plain words, because the extension adds the icons\n\nThe word lists in that section are read from the same tables that color the pills, so the rules and the drawing cannot drift apart. It adds about 1,500 tokens to the prompt. Print, JSON and RPC runs do not get the section, since nothing there draws pills.\n\nTo keep the drawing and write your own rules, set `PI_EMPHASIS_GUIDANCE=0`.\n\n## Pills\n\nWrite `[[Word]]` beside the thing it describes. The word decides the color and the icon.\n\n![Every pill word, grouped by color](screenshots\u002Fvocabulary.png)\n\n| Color | Meaning | Words |\n|---|---|---|\n| Red | Something is wrong | Failed, Blocked, Broken, Unsafe, Rejected, Down |\n| Yellow | Look here | Needs you, Decision, Unverified, Partial, Skipped, In progress, Pending, At risk, Review, Todo, Stale, Draft |\n| Green | Settled | Done, Passed, Observed, Fixed, Live, Recommended, Keep, Ready, Merged, Safe, Verified, Shipped, Approved, Healthy |\n| Solid red | Consequences | Costs money, Destructive, Irreversible |\n| Cyan | Kind of work | Brainstorm, Investigate, Preview, Implement, Qualify |\n| Solid blue | Ownership | Owned, Shared, Foreign |\n| Soft blue | Context | Inferred, New, Changed, Optional, and any other label |\n\n- **Detail.** A known word may be followed by detail: `[[Passed 12\u002F12]]`, `[[Failed: 3 tests]]`, `[[In progress 40%]]`.\n- **Synonyms.** Completed, Complete, OK and Finished display as Done. Fail, Failing and Error display as Failed. Pass displays as Passed, Waiting as Pending, and Needs review as Review.\n- **Your own icon.** A label that starts with a Nerd Font glyph keeps that glyph.\n- **Length.** A label can be up to 32 characters. Longer ones are left as typed.\n\n## Labels and shapes\n\n- **Headings and lead labels.** A `##` heading, or bold text at the start of a line or list item, takes an icon when it is one of: Finding, Result, Status, Evidence, Cause, Effect, Fix, Risk, Limits, Cost, Decision, Options, Plan, Next, Why, How, Rule, Example, Checked, Verdict, Rollback, Undo, Review, Scoreboard, Terminal, Folder, File, Branch, Ideas, Pills, Colors, Icons. A trailing colon is fine.\n- **Action lead-ins.** Bold **Check:**, **Do:**, **Next:**, **Unblock:**, **Left:**, **Run:**, **Guard:**, **Undo:** and **See:** take an icon anywhere in a line, so the action that follows a pill is easy to find: `[[Unverified]] the red pills on your screen. **Check:** run \u002Freload.` The colon is required.\n- **Bold.** `**anchor term**` keeps its weight and takes the theme's link color.\n- **Marks.** `✓` takes the success color, `✗` the error color, and `→` the accent color.\n- **Trees.** `├──` and `└──` are dimmed so the content stands out.\n\nYour own messages, inline code, fenced code and escaped asterisks are left alone.\n\n## Settings\n\nEnvironment variables. Set them in the shell before starting Pi, or in your shell profile:\n\n- `PI_EMPHASIS_COLOR`: theme color for bold text (default `mdLink`).\n- `PI_EMPHASIS_ROUND_CAPS=0`: square chips, for fonts without Nerd Font symbols.\n- `PI_EMPHASIS_PILL_ICONS=0`: no icons in pills or on labels.\n- `PI_EMPHASIS_GUIDANCE=0`: do not add the reply-style rules to the prompt.\n\nTo add a word, an icon or a synonym, edit the tables at the top of [`index.ts`](index.ts). The rules are the `replyGuidance` function in the same file.\n\n## Troubleshooting\n\n| You see | Cause | Fix |\n|---|---|---|\n| `[[Done]]` as plain text | The extension is not loaded | Run `\u002Freload`. Check that `pi list` shows pi-emphasis |\n| Boxes or question marks in or around pills | The terminal has no Nerd Font symbols | [Set up your terminal](#set-up-your-terminal), or turn icons and rounded ends off |\n| Icons that overlap the next letter | The font draws its icons two cells wide | Use the \"Mono\" variant of the Nerd Font, such as JetBrainsMono Nerd Font Mono |\n| Pills that are all one color, in reverse video | Pi's theme has no panel colors, which happens with the `system` theme when the terminal reports none | Choose a theme with `\u002Ftheme`, such as `dark` |\n| Solid red, cyan or blue pills in odd shades | Those three use your terminal's own colors | Change the terminal's color theme |\n| Bold that looks no heavier than normal text | The terminal draws normal text at a medium weight, or its font has no real bold | Choose a font with a distinct bold. In Ghostty, `font-style-bold` selects a heavier face |\n| The agent writes no pills | The rules reach the agent only in Pi's terminal interface, and not when `PI_EMPHASIS_GUIDANCE=0` | Unset the variable. Print, JSON and RPC runs never get the rules |\n| Pills inside code blocks stay as typed | Code is left alone on purpose | Nothing to fix |\n\n## Limits\n\n- A bold span that continues onto a second source line is colored only on its first line.\n- Checked on macOS only, in Ghostty and the Herdr app.\n\n## Development\n\n```sh\nbun install\nbun run check                # types and tests\npython3 demo\u002Fshots.py        # redraw the demo replies in a real Pi session, as HTML to screenshot\n```\n\n`demo\u002F` holds the two example replies. `sgr-sampler.sh` prints every terminal text style so you can see which ones your terminal draws.\n","Pi Emphasis 是一个为 Pi（AI 助手终端）设计的轻量级前端增强扩展，用于提升 AI 回复内容的可读性与扫描效率。它将特定标记（如 [[Done]]、[[Failed]]）渲染为带图标的彩色状态标签，自动为标题和首行标签添加语义化图标，并高亮加粗文本、箭头及树状结构符号；所有变更仅影响终端渲染层，不修改原始 Markdown 数据，也不调用模型或产生额外计算开销。适用于需要快速识别任务状态、部署结果或结构化反馈的开发者日常 AI 交互场景。","2026-11-24 04:51:16","CREATED_QUERY"]