Graph Live
Live file-activity graph for opencode sidebar (which files the agent is reading / modifying)
0
422
近 7 天 422
36.1
生态多维模型
4 天前
2026-10-01
快速安装与配置
opencode.json写入当前项目的 opencode.json,只对这个仓库生效。
opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["opencode-graph-live@0.1.2"]
}写入 ~/.config/opencode/opencode.json,对所有项目生效。
~/.config/opencode/opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["opencode-graph-live@0.1.2"]
}若你要在本地改造这个插件,先装到项目里再从本地路径引用。
shell
pnpm add -D opencode-graph-liveOpenCode 启动时会通过内嵌运行时自动加载 npm 依赖并缓存至本地目录,无需手动在全局环境执行安装。
Live file-activity graph for the opencode TUI sidebar. Shows which files the agent is reading and editing, under the MCP block.
● files · live
▸ main.rs ×3 · edit
! lib.rs · 12s
○ index.ts ×2 · 2m
3 files · 2 edits · 1 running
○read ·●edited ·▸running (with tool name) ·!failed ·?awaiting permission×3is total touches per file,· 12sis recency
Install
Requires a recent opencode build with TUI plugin support.
From npm:
opencode plugin add opencode-graph-live@latest
Usage
Ctrl+P commands (all under the graph-live group):
| Command | What it does |
|---|---|
| Toggle File Graph | Enable/disable the sidebar panel (persisted) |
| File Graph: cycle filter | Cycle all → edits → reads |
| File Graph: show edits / reads / all | Filter the list |
File Graph Detail (/files, /file-graph) |
Full per-file timeline in a session panel (f fullscreen, esc close) |
| File Graph: show full paths | Picker with touched files → toast reveals the absolute path |
Edit failures also fire a one-time error toast + notification per file.
License
MIT
同类生态推荐
Skills Tui
opencode-skills-tui
OpenCode TUI plugin that shows skills and loaded state in the sidebar
Cache Hit
opencode-cache-hit
OpenCode TUI sidebar: prompt cache hit rate, tokens & cost with sub-agent rollup. Works with opencode-visual-cache; optional per-call JSONL timeline.
Sidebar Token Metrics
opencode-sidebar-token-metrics
OpenCode sidebar plugin showing generation speed (tok/s), cache hit rate, and average time-to-first-token (TTFT).