Skip to content

weiesky/cc-viewer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

613 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CC-Viewer

CC-Viewer

A Vibe Coding toolkit distilled from hands-on development experience, built on top of Claude Code:

  1. Push the capability ceiling — run /ultraPlan and /ultraReview locally, so your project code never has to be fully exposed to Claude's cloud;
  2. Multi-device adaptive — code from mobile devices over your local network, the web build adapts to every scenario for embedding into browser extensions or OS split views, and a native installer is also provided;
  3. Full audit trail — full Claude Code payload interception and analysis, perfect for logging, debugging, learning, and reverse-engineering;
  4. Knowledge sharing — comes with accumulated study notes and hands-on experience (look for the "?" icons throughout the app);
  5. Native experience preserved — only augments Claude Code's capabilities without any substantive changes to its core, keeping the native experience intact;
  6. Third-party model support — works with deepseek-v4-*, GLM 5.1, Kimi K2.6, with built-in cc-switch capability for hot-swapping third-party tools at any time.

English | 简体中文 | 繁體中文 | 한국어 | 日本語 | Deutsch | Español | Français | Italiano | Dansk | Polski | Русский | العربية | Norsk | Português (Brasil) | ไทย | Türkçe | Українська

Usage

Prerequisites

Install ccv

Install via npm

npm install -g cc-viewer --registry=https://registry.npmjs.org

Install via Homebrew (recommended for macOS / Linux)

brew tap weiesky/cc-viewer
brew install cc-viewer
brew upgrade cc-viewer   # for updates — do NOT use npm install -g for brew installs

Launch

ccv is a drop-in replacement for claude — all arguments are passed through to claude while launching the Web Viewer.

ccv                    # == claude (interactive mode)

The author's most-used command is:

ccv -c --d             # == claude --continue --dangerously-skip-permissions
                       # ccv passes through all Claude Code launch arguments — combine them however you like

After launching in programming mode, a web page will open automatically.

CC-Viewer also ships as a native desktop app: Download page

Logger Mode

If you still prefer the native claude tool or the VS Code extension, use this mode.

In this mode, launching claude will automatically start a logging process that records request logs to ~/.claude/cc-viewer/yourproject/date.jsonl

Enable logger mode:

ccv -logger

When the console cannot print the specific port, the default first port is 127.0.0.1:7008. Multiple instances use sequential ports like 7009, 7010.

Uninstall logger mode:

ccv --uninstall

Troubleshooting

If you encounter issues starting cc-viewer, here is the ultimate troubleshooting approach:

Step 1: Open Claude Code in any directory.

Step 2: Give Claude Code the following instruction:

I have installed the cc-viewer npm package, but after running ccv it still doesn't work properly. Please check cc-viewer's cli.js and findcc.js, and adapt them to the local Claude Code deployment based on the specific environment. Keep the scope of changes as constrained as possible within findcc.js.

Letting Claude Code diagnose the issue itself is more effective than asking anyone or reading any documentation!

After the above instruction is completed, findcc.js will be updated. If your project frequently requires local deployment, or if forked code often needs to resolve installation issues, keeping this file lets you simply copy it next time. At this stage, many projects and companies using Claude Code are not deploying on Mac but rather on server-side hosted environments, so the author has separated findcc.js to make it easier to track cc-viewer source code updates going forward.

Other Commands

See:

ccv -h

Silent Mode

By default, ccv runs in silent mode when wrapping claude, keeping your terminal output clean and consistent with the native experience. All logs are captured in the background and can be viewed at http://localhost:7008.

Once configured, use the claude command as normal. Visit http://localhost:7008 to access the monitoring interface.

Features

Programming Mode

After launching with ccv, you can see:

image

You can view code diffs directly after editing:

image

While you can open files and code manually, manual coding is not recommended — that's old-school coding!

Mobile Programming

You can even scan a QR code to code from your mobile device:

image image

Fulfill your imagination of mobile programming. There's also a plugin mechanism — if you need to customize for your coding habits, stay tuned for plugin hooks updates.

Logger Mode (View Complete Claude Code Sessions)

image
  • Captures all API requests from Claude Code in real time, ensuring raw text — not redacted logs (this is important!!!)
  • Automatically identifies and labels Main Agent and Sub Agent requests (subtypes: Plan, Search, Bash)
  • MainAgent requests support Body Diff JSON, showing collapsed differences from the previous MainAgent request (only changed/new fields)
  • Each request displays inline Token usage statistics (input/output tokens, cache creation/read, hit rate)
  • Compatible with Claude Code Router (CCR) and other proxy scenarios — falls back to API path pattern matching

Conversation Mode

Click the "Conversation Mode" button in the top-right corner to parse the Main Agent's complete conversation history into a chat interface:

image
  • Agent Team display is not yet supported
  • User messages are right-aligned (blue bubbles), Main Agent replies are left-aligned (dark bubbles)
  • thinking blocks are collapsed by default, rendered as Markdown — click to expand and view the thinking process; one-click translation is supported (feature is still unstable)
  • User selection messages (AskUserQuestion) are displayed in Q&A format
  • Bidirectional mode sync: switching to conversation mode auto-scrolls to the conversation corresponding to the selected request; switching back to raw mode auto-scrolls to the selected request
  • Settings panel: toggle default collapse state for tool results and thinking blocks
  • Mobile conversation browsing: in mobile CLI mode, tap the "Conversation Browse" button in the top bar to slide out a read-only conversation view for browsing the complete conversation history on mobile

Log Management

Via the CC-Viewer dropdown menu in the top-left corner:

image

Log Compression Regarding logs, the author wants to clarify that the official Anthropic definitions have not been modified, ensuring log integrity. However, since individual log entries from the 1M Opus model can become extremely large in later stages, thanks to certain log optimizations for MainAgent, at least 66% size reduction is achieved without gzip. The parsing method for these compressed logs can be extracted from the current repository.

More Useful Features

image

You can quickly locate your prompts using the sidebar tools.


image

The interesting KV-Cache-Text feature lets you see exactly what Claude sees.


image

You can upload images and describe your needs — Claude's image understanding is incredibly powerful. And as you know, you can paste images directly with Ctrl+V, and your complete content will be displayed in the conversation.


image

You can customize plugins, manage all CC-Viewer processes, and CC-Viewer supports hot-switching to third-party APIs (yes, you can use GLM, Kimi, MiniMax, Qwen, DeepSeek — although the author considers them all quite weak at this point).


image

More features waiting to be discovered... For example: the system supports Agent Team, and has a built-in Code Reviewer. Codex Code Reviewer integration is coming soon (the author highly recommends using Codex to review Claude Code's code).

License

MIT

About

A request monitoring system for Claude Code that captures and visualizes all API requests and responses in real time. Helps developers monitor their Context for reviewing and debugging during Vibe Coding.

Resources

License

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages