@hariketsu/pi-statusline0.1.0
A compact, theme-aware status line for the pi coding agent
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
pi-statusline
English | 中文
编辑器下方的一行状态栏,只放你干活时真的会看的东西:这个模型是谁在答、你在哪个目录、改了多少行、上下文还剩多少、出字有多快。
chat-model · max · pi-statusline · main +12 −3 · 15%/1M · 42.4t/s · 1h2m
颜色按终端明暗自动选 Gruvbox Light / Dark,白底黑底都耐看。
显示什么
| 模型与思考等级 | chat-model · max |
| 你在哪 | 目录、git 分支、+12 −3 工作区行数 |
| 还剩多少空间 | 15%/1M,仪表图标与颜色在 70%、90% 升级 |
| 出字速度 | 42.4t/s,最近一轮的实测值 |
| 待了多久 | 1h2m |
| 其它扩展的状态 | 原样接在行尾(它们的 ctx.ui.setStatus()) |
没有数据的段直接不出现,不会显示 -- 之类的占位;prompt 缓存平时沉默,只有命中率掉到 50% 以下才提醒。
安装
pi install git:github.com/Hariketsu/pi-statusline
新开会话或 /reload 生效。/statusline 切回 pi 原生 footer;/statusline debug 打印每段的原始数值,用来排查「某段怎么不见了」。
要求
- pi 1.5 以上,且是交互模式(footer 是 TUI 组件)
- Node.js 22.19+
- 图标需要 Nerd Font;没有就设
"icons": "emoji"或"none"
调成你的样子
配置写在 ~/.pi/agent/settings.json,和 pi 其它配置放一起:
{
"statusline": {
"segments": ["model", "dir", "git", "diff", "context", "tps", "duration"],
"separator": " · ",
"icons": "nerd"
}
}
每段都可以删、可以调顺序;style 可以在彩色文字与背景色块之间切换。完整键位见 docs/configuration.md。
文档
License
MIT