GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - sorunokoe/Scopeon: AI context observability & optimization for Claude Code, Copilot CLI, Codex, Gemini — TUI dashboard, preset optimization, cost tracking, CI gates

BranchesTags
Open more actions menu

Latest commit

 

History

77 Commits
77 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
assets
assets
 
 
crates
crates
 
 
docs
docs
 
 
editors
editors
 
 
packaging
packaging
 
 
src
src
 
 
.gitignore
.gitignore
 
 
CHANGELOG.md
CHANGELOG.md
 
 
Cargo.lock
Cargo.lock
 
 
Cargo.toml
Cargo.toml
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
clippy.toml
clippy.toml
 
 
deny.toml
deny.toml
 
 
install.sh
install.sh
 
 
rustfmt.toml
rustfmt.toml
 
 

Repository files navigation

◈  ╔═╗╔═╗╔═╗╔═╗╔═╗╔═╗╔╗╔
   ╚═╗║  ║ ║╠═╝║╣ ║ ║║║║
   ╚═╝╚═╝╚═╝╩  ╚═╝╚═╝╝╚╝
   AI Context Observability
   & Optimization for
   Claude Code, Copilot CLI,
   Codex, Gemini CLI

The AI context observatory — for every coding agent, every token, every dollar. With one-click optimization presets.

Scopeon Sessions

CI GitHub release License: MIT OR Apache-2.0 MSRV: 1.88

Install · Quick Start · Docs · Contributing


You fire up Claude Code and start building. An hour later: "Context window full." You have no idea what burned it — was it the MCP tools? The thinking budget? Yesterday's file edits? You're flying blind on a meter that costs real money. And your AI provider runs with default settings that may cost 10x more than needed.

Scopeon gives you the instrument panel — and the optimization controls.


Why Scopeon?

Without Scopeon With Scopeon
"Why is this session so expensive?" Turn-by-turn cost breakdown with waste signals
"Is the prompt cache actually working?" Hit-rate gauge, USD saved, optimization suggestions
"How close am I to the context limit?" Real-time fill bar + "~12 turns remaining" prediction
"Which project costs the most?" Per-project / per-branch cost breakdown
"What did the agent actually call?" MCP & Skills tree — every server, tool, hook, skill with counts
"Is my context pressure growing over time?" Context/Activity timeline sparkline per turn in session detail
"How does cost trend week over week?" 14-day trend chart toggled with t — cost · sessions · cache rate
"Did my optimization actually help?" compare_sessions before/after diff
"Which AI provider preset saves me the most?" Interactive Config tab — apply most-savings/balanced/most-speed/most-power
"Can I gate AI cost in CI?" scopeon ci report --fail-on-cost-delta 50
"How is my whole team using AI?" scopeon team — per-author cost from git history, no server needed
"Can teammates see my live metrics?" scopeon serve — privacy-filtered API + SSE stream for IDEs
"Can I see AI cost in Grafana / Datadog?" Prometheus bridge or OTLP push — docs/opentelemetry.md

What you get

🔬 X-ray vision into every token — see exactly what burned your context: input, cache reads/writes, thinking budget, output, MCP calls — broken down turn by turn. No more guessing.

💸 Know your real cost before the bill arrives — live USD per turn, per session, per project, per day. Set budgets with actual alerts, not surprises.

⚡ Prompt cache that actually tells you if it's working — hit-rate gauge, dollars saved vs. uncached baseline. Know in seconds whether your cache setup is doing anything.

🎯 One-click AI provider optimization — Interactive TUI Config tab for Claude Code, Copilot CLI, Codex, Gemini CLI. Apply most-savings for max efficiency, balanced for everyday use, most-speed for fast iteration, or most-power for complex tasks. See exactly what changes before you apply. All presets persist and work instantly.

🛠️ CLI optimization commands — scopeon optimize scan detects installed providers, explain shows current settings, preview shows what will change, apply switches presets. Zero manual config editing.

⏳ "You have ~12 turns left" — Scopeon tracks context fill rate over time and tells you how many turns remain before the wall. Stop being blindsided mid-task.

🔔 Context advisory before the crisis — compaction advisory fires at 55–79% fill when context is accelerating, so you compact at the optimal moment — not after it's too late.

📊 Charts that make sense instantly — t toggles a 14-day trend chart (cost · sessions · cache rate) directly inside the Sessions view. Per-turn cost sparklines live right in the session preview. No separate screens.

🔍 Split-panel master-detail — scroll sessions on the left, live detail on the right. Press Enter for full-screen. Three tab sections ([ ] to cycle): Turns table · Context/Activity timeline · MCP & Skills tree.

🧠 Context Viewer — for token-rich sessions: context fill % sparkline, peak usage, compaction events, prompt-cache reuse tip. For Copilot CLI: Activity Timeline showing output tokens, response time, and tool-call density per turn — real data in every case.

🔌 MCP & Skills tree — every MCP server, every tool call, every hook, every skill used in the session — vertical tree layout with call counts, fully scrollable.

📡 Zero-token ambient awareness — every 30 s the MCP server pushes a free status heartbeat to the agent. No polling, no token spend, just continuous situational awareness.

🧭 See what the agent actually did — provenance-aware history shows which skills, MCPs, hooks, tasks, and subagents were involved, with exact vs. estimated support called out per provider.

🤖 Your AI agent monitors itself — 17 MCP tools let Claude Code query its own token stats, provenance history, trigger alerts, and compare sessions — without you doing anything.

🚦 Fail PRs on AI cost spikes — one command in CI, zero config. scopeon ci report --fail-on-cost-delta 50 catches runaway cost before it merges.

🌐 Live browser dashboard + IDE stream — scopeon serve → WebSocket-powered charts at localhost:7771 and a GET /sse/v1/status SSE feed for IDE extensions. No npm, no Node, just Rust.

👥 Team cost from git history — scopeon team reads AI-Cost: trailers from git log and prints a per-author cost table. No server, no cloud, works from any machine.

🐚 Cost follows you everywhere — in your shell prompt, in every git commit as an AI-Cost: trailer, in Slack via digest webhooks.

🔒 Fully local, forever — no cloud backend, no account, no telemetry. Your prompts never leave the machine. Ever.

→ Full feature list


Screenshots

Sessions — split-panel master-detail with session list, live cost sparkline, and per-turn breakdown

Sessions

Spend — daily/weekly/monthly spend by model, by project, 14-day trend chart

Spend

Config — interactive AI provider optimization with detailed preset explanations

Config

GitHub Copilot CLI MCP — Scopeon tools and live context/spend stats inside Copilot CLI

GitHub Copilot CLI MCP


Installation

Fastest: cargo binstall (pre-built binary, no compilation)

cargo install cargo-binstall   # one-time
cargo binstall --git https://github.com/sorunokoe/Scopeon scopeon

curl one-liner (macOS & Linux)

curl -fsSL https://raw.githubusercontent.com/sorunokoe/Scopeon/main/install.sh | sh

From source

cargo install --git https://github.com/sorunokoe/Scopeon

Requirements: Rust 1.88+ · macOS 12+ or Linux (glibc 2.31+) · Windows 10+

Note: cargo install scopeon and cargo binstall scopeon (without --git) require the crate to be published on crates.io, which is coming soon.

Pre-built binaries

Download from GitHub Releases:

Platform Asset
macOS Apple Silicon scopeon-vX.Y.Z-aarch64-apple-darwin.tar.gz
macOS Intel scopeon-vX.Y.Z-x86_64-apple-darwin.tar.gz
Linux x86_64 scopeon-vX.Y.Z-x86_64-unknown-linux-gnu.tar.gz
Linux ARM64 scopeon-vX.Y.Z-aarch64-unknown-linux-gnu.tar.gz
Windows x86_64 scopeon-vX.Y.Z-x86_64-pc-windows-msvc.zip

Quick Start

scopeon onboard    # auto-detect AI tools, configure MCP + shell integration
scopeon            # open the TUI dashboard
scopeon optimize scan
scopeon serve      # browser dashboard → http://localhost:7771
scopeon status     # quick inline stats, no TUI
scopeon doctor     # health diagnostics

Connect to Claude Code (MCP)

scopeon init
# → writes MCP server config to ~/.claude/settings.json
# Claude Code now has 17 Scopeon tools + proactive push alerts

All commands

scopeon [start]                # daemon + TUI (default)
scopeon tui                    # TUI only (no file watching)
scopeon mcp                    # MCP server over stdio
scopeon status                 # inline stats
scopeon serve [--port N] [--tier 0-3]

scopeon tag set <id> feature   # tag sessions for cost attribution
scopeon export --format csv --days 30
scopeon reprice                # recalculate costs after a price change
scopeon optimize scan
scopeon optimize explain --provider claude-code
scopeon optimize apply --provider codex --preset balanced

scopeon digest [--days N] [--post-to-slack <url>]
scopeon badge [--format markdown|url|html]
scopeon ci snapshot --output baseline.json
scopeon ci report  --baseline baseline.json [--fail-on-cost-delta 50]

scopeon shell-hook             # emit shell prompt hook (bash/zsh/fish)
scopeon git-hook install       # add AI-Cost trailer to commits
scopeon onboard                # interactive setup wizard
scopeon doctor                 # health diagnostics

Documentation

Topic Link
Full feature list docs/features.md
TUI guide (tabs, shortcuts, Zen, Replay, filter) docs/tui.md
MCP tools & push notifications docs/mcp.md
Webhook escalation docs/webhooks.md
CI cost gate docs/ci.md
Shell & git integration docs/shell-git.md
Team mode & REST API docs/team.md
OpenTelemetry integration docs/opentelemetry.md
Supported providers docs/providers.md
Configuration reference docs/configuration.md
Architecture & codebase map docs/architecture.md

Supported Providers

Claude Code · GitHub Copilot CLI · OpenAI Codex CLI · Aider · Cursor · Gemini CLI · Ollama · Generic OpenAI

Scopeon discovers log files automatically — no config needed for standard install paths. Adding a new provider takes ~50 lines of Rust. See docs/providers.md.


Data & Privacy

  • Local-first — no cloud backend, no accounts, no API keys required
  • Reads token counts and costs only — never prompt text or code
  • scopeon serve is read-only and localhost-bound by default
  • Webhooks are opt-in; payloads contain only metric data

Contributing

Contributions are warmly welcomed — bug fixes, new providers, dashboard features.

git clone https://github.com/sorunokoe/Scopeon
cd Scopeon
make          # fmt-check + clippy + test (same as CI)
make install  # install to ~/.cargo/bin
  • docs/contributing.md — dev workflow, PR process, adding providers
  • docs/architecture.md — codebase map: crate roles, data flow, schema

Every PR must pass the full CI suite (fmt · clippy · tests on Linux/macOS/Windows · MSRV · docs).


Changelog

See docs/changelog.md for the full version history.


License

Dual-licensed under MIT OR Apache-2.0 — use it however you like.


Built with ❤️ in Rust · Report a bug · Request a feature · Discussions

If Scopeon saved you money or context headaches, consider giving it a ⭐

About

AI context observability & optimization for Claude Code, Copilot CLI, Codex, Gemini — TUI dashboard, preset optimization, cost tracking, CI gates

github.com/sorunokoe/Scopeon/blob/main/docs/README.md

Topics

aiai-toolsclaudeclicontext-windowcost-trackingdeveloper-toolsgithub-copilotllmmcpobservabilityoptimizationpresetsrusttokenstui

Resources

Readme

Code of conduct

Code of conduct

Contributing

Contributing

Security policy

Security policy
Activity

Stars

13 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.