Personal fork of opencode by @lucifer-prashant.
Launch with prashcode instead of opencode. All original features, keybinds, MCP servers, and config are identical — this fork only adds UI enhancements.
A new row appears below the input box after the first assistant message in a session.
opencode main +12 -5 ⊙ 5m 23s
Left side — git info:
- Repo name + current branch
↑N(green) — commits ahead of remote↓N(yellow) — commits behind remote+N(green) /-N(red) — lines added / removed in working directory (staged + unstaged, excludes.opencode/)
Right side — session stats:
⊙ Xm Ys— live session timer, ticks every second from session creation
The existing hints row (31.5K (12%) · ctrl+p commands) now also shows:
↓N— cumulative output tokens generated this session
Token counting is correct:
- Context
31.5K (12%)= last message's context window size (not cumulative — input tokens are resent each turn so summing them inflates the number) ↓N= true cumulative output tokens across all messages in the session
prashcode is registered as an alias alongside opencode in package.json. Both launch the same binary.
Reads from the exact same locations as upstream opencode. No separation, no duplication.
| What | Path |
|---|---|
| Global config (providers, MCPs, keybinds) | ~/.config/opencode/opencode.json |
| Project config | ./.opencode/ or ~/.opencode/ |
| Sessions DB | ~/.local/share/opencode/ |
| State | ~/.local/state/opencode/ |
| Cache | ~/.cache/opencode/ |
git clone https://github.com/lucifer-prashant/opencode
cd opencode/packages/opencode
bun install --ignore-scripts
bun run build
bun linkThen run prashcode from any directory.
| File | Change |
|---|---|
packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx |
Statusline logic + git polling + token display |
packages/opencode/package.json |
Added prashcode bin alias |
packages/opencode/bin/opencode.cjs |
CJS wrapper to fix ESM conflict on Node 22 / Fedora |
git fetch upstream
git merge upstream/main
# conflicts unlikely — only one source file changed