@yuechou/omp-display
v1.0.1
Published
Oh My Pi extension: sidebar display with session info, files, model, tasks, tools
Maintainers
Readme
@yuechou/omp-display
Oh My Pi extension for sidebar display with session info, files, model, tasks, and tools.
安装
# npm 安装
npm install -g @yuechou/omp-display
# omp 安装
omp install @yuechou/omp-display
# 本地开发
omp -e /path/to/omp-display配置
通过环境变量配置:
| 环境变量 | 默认值 | 说明 |
|----------|--------|------|
| PI_SIDEBAR_WIDTH | 32 | Sidebar 宽度 |
示例:
export PI_SIDEBAR_WIDTH=40
omp -e /path/to/omp-display功能
Sidebar 显示内容
- Session — 会话名称、工作目录、Git 分支、当前模式
- Files — 本次会话修改的文件列表(带 +/- 统计)
- Model — 当前模型、Provider、thinking level、context 使用率
- Tasks — 任务列表和完成进度
- Tools — 可用工具列表
命令
| 命令 | 说明 |
|------|------|
| /sidebar | 切换 sidebar 显示/隐藏 |
使用示例
# 启动 omp 并加载插件
omp -e @yuechou/omp-display
# 或者本地开发
omp -e /path/to/omp-display
# 切换 sidebar
/sidebar截图
┌─────────────────────────────┐
│ OMP │
│ ───────────────────────── │
│ │
│ Session │
│ name my-session │
│ cwd ~/project │
│ git main │
│ mode coding │
│ ───────────────────────── │
│ │
│ Files (3) │
│ index.ts +5 -2 │
│ utils.ts +3 │
│ README.md +10 │
│ ───────────────────────── │
│ │
│ Model │
│ claude-sonnet-4-6 │
│ anthropic │
│ think medium │
│ ctx ██████░░ 75% │
│ in 12.5k │
│ out 3.2k │
│ cache 45% │
│ ───────────────────────── │
│ │
│ Tasks │
│ 2/5 ████░░ 40% │
│ • Fix bug in parser │
│ • Add tests │
│ ✓ 3 done │
│ ───────────────────────── │
│ │
│ Tools │
│ read write edit bash │
│ grep find ls │
│ │
└─────────────────────────────┘依赖
- Oh My Pi
- @oh-my-pi/pi-tui
相关链接
- @yuechou/omp-memory - 记忆系统
- @yuechou/omp-mode - 模式管理
- @yuechou/omp-video-understanding - 视频理解
