📈 Code Stock Exchange
Turn your codebase into a live stock market, right inside VS Code.
Open the exchange and watch a trading floor where every file is a stock, every folder is an ETF, and code quality drives the candlestick charts. The chart's x-axis isn't wall-clock time — it's ticks, one per batch of edits the extension detects (much like git noticing changes).

How it works
| Real world event |
Market event |
| You create a new file |
📢 New listing — the stock lists at its opening quality price |
| Code quality goes up |
🚀 The stock rises (green candles) |
| Code quality goes down |
💥 The stock falls (red candles) |
| You delete a file |
🔻 Delisted — the stock drops to zero and leaves the board |
| A folder gathers files |
🏦 ETF launch — a fund tracking the average price of its holdings |
| A burst of edits in one folder |
🕵️ Insider chatter on the market wire |
| The whole codebase |
CODX index — the average of every live stock |
What "code quality" means
Each file is scored with fast, deterministic heuristics: comment ratio, blank-line
breathing room, line length, nesting depth, file size, and TODO/FIXME/HACK
debt markers. The same content always yields the same price — no random walk — so
the chart genuinely reflects what you did to the code.
Usage
- Code Stock: Open Exchange — open the trading floor (or click the
CODX status-bar item).
- Code Stock: Reset Market — wipe history and re-seed from the current files.
- Code Stock: Force a Market Tick — rescan immediately.
Double-click any stock row to jump to its file. Switch between the Stocks and
ETFs tabs. The market wire at the bottom narrates IPOs, surges, crashes,
delistings and ETF launches.
The market state is saved between sessions, so your charts keep their history.
Settings
codestock.trackedExtensions — which file types list as stocks.
codestock.ignoreGlobs — folders/patterns to keep off the exchange (defaults exclude node_modules, .git, build output, etc.).
codestock.tickDebounceMs — how long to wait after the last edit before processing a tick.
codestock.etfMinHoldings — how many files a folder needs before it lists as an ETF.
codestock.maxFileSizeKb — skip files larger than this.
Privacy
Everything runs locally. No file contents, telemetry, or quality scores ever
leave your machine.
License
MIT