Skip to content

lucifer-prashant/opencode

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12,007 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

prashcode

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.


What's different

Statusline

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

Hints row enhancement

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 binary

prashcode is registered as an alias alongside opencode in package.json. Both launch the same binary.


Config & data

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/

Setup

git clone https://github.com/lucifer-prashant/opencode
cd opencode/packages/opencode
bun install --ignore-scripts
bun run build
bun link

Then run prashcode from any directory.


Files changed from upstream

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

Syncing with upstream

git fetch upstream
git merge upstream/main
# conflicts unlikely — only one source file changed

About

The open source coding agent.

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • TypeScript 59.3%
  • MDX 37.0%
  • CSS 2.8%
  • Rust 0.4%
  • Astro 0.2%
  • JavaScript 0.2%
  • Other 0.1%