You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Browse filesBrowse the repository at this point in the historyBrowse files
weiesky.wangc
committed
feat: ccv argument passthrough — drop-in replacement for claude
- Refactor main logic: all args passed through to claude via PTY + Web Viewer
- Remove -c/-d as ccv-specific flags (now transparent to claude)
- Add ccv -logger for hook installation
- Add --d shortcut for --dangerously-skip-permissions
- Update help text with claude passthrough options
- Update all 18 language README files
- Bump version to 1.5.19
Copy file name to clipboardExpand all lines: README.md
+79-60Lines changed: 79 additions & 60 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,12 @@
3
3
A Claude Code request monitoring system that captures and visualizes all API requests and responses from Claude Code in real time (raw text, unredacted). Helps developers monitor their context for review and troubleshooting during Vibe Coding sessions.
4
4
The latest version of CC-Viewer also provides a server-deployed web programming solution and mobile programming tools. Feel free to use them in your own projects — more plugin features and cloud deployment support are coming in the future.
5
5
6
+
Check out the fun part — here's what you can see on mobile:
### Monitor Mode (launching claude or claude --dangerously-skip-permissions in this mode automatically starts a logging process to record request payloads)
17
-
18
-
```bash
19
-
ccv
20
-
```
21
-
22
22
### Programming Mode
23
23
24
-
== claude
24
+
ccv is a drop-in replacement for claude — all arguments are passed through to claude while launching the Web Viewer.
25
25
26
26
```bash
27
-
ccv -c
27
+
ccv # == claude (interactive mode)
28
+
ccv -c # == claude --continue (continue last conversation)
29
+
ccv -r # == claude --resume (resume a conversation)
30
+
ccv -p "hello"# == claude --print "hello" (print mode)
31
+
ccv --d # == claude --dangerously-skip-permissions (shortcut)
32
+
ccv --model opus # == claude --model opus
28
33
```
29
34
30
-
== claude --dangerously-skip-permissions
31
-
32
-
```bash
33
-
ccv -d
34
-
```
35
-
36
-
After launching programming mode, a web page will open automatically.
35
+
After launching, a web page will open automatically.
37
36
38
37
You can use Claude directly from the web page while viewing the full request payloads and code changes.
39
38
40
39
Even better — you can even code from your mobile device!
41
40
42
-
This command automatically detects how Claude Code is installed locally (NPM or Native Install) and adapts accordingly.
43
41
44
-
-**NPM Install**: Automatically injects an interceptor script into Claude Code's `cli.js`.
45
-
-**Native Install**: Automatically detects the `claude` binary, configures a local transparent proxy, and sets up a Zsh Shell Hook to forward traffic automatically.
46
-
- NPM-installed Claude Code is the recommended approach for this project.
42
+
### Logger Mode
47
43
48
-
### Configuration Override
44
+
⚠️ If you still prefer using the native claude tool or VS Code extension, use this mode.
49
45
50
-
If you need to use a custom API endpoint (e.g., a corporate proxy), simply configure it in `~/.claude/settings.json` or set the `ANTHROPIC_BASE_URL` environment variable. `ccv` will automatically detect and correctly forward requests.
46
+
In this mode, launching `claude` or `claude --dangerously-skip-permissions` will automatically start a logging process that records request logs to ~/.claude/cc-viewer/*yourproject*/date.jsonl
51
47
52
-
### Silent Mode
48
+
Enable logger mode:
49
+
```bash
50
+
ccv -logger
51
+
```
53
52
54
-
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`.
53
+
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.
55
54
56
-
Once configured, use the `claude` command as normal. Visit `http://localhost:7008` to access the monitoring interface.
55
+
This command automatically detects how Claude Code is installed locally (NPM or Native Install) and adapts accordingly.
56
+
57
+
-**NPM version Claude Code**: Automatically injects an interceptor script into Claude Code's `cli.js`.
58
+
-**Native version Claude Code**: Automatically detects the `claude` binary, configures a local transparent proxy, and sets up a Zsh Shell Hook to forward traffic automatically.
59
+
- NPM-installed Claude Code is the recommended approach for this project.
60
+
61
+
Uninstall logger mode:
62
+
```bash
63
+
ccv --uninstall
64
+
```
57
65
58
66
### Troubleshooting
59
67
@@ -69,65 +77,75 @@ Letting Claude Code diagnose the issue itself is more effective than asking anyo
69
77
70
78
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.
71
79
72
-
### Uninstall
80
+
### Other Commands
73
81
82
+
See:
74
83
```bash
75
-
ccv --uninstall
84
+
ccv -h
76
85
```
77
86
78
-
### Check Version
87
+
### Configuration Override
79
88
80
-
```bash
81
-
ccv -v
82
-
```
89
+
If you need to use a custom API endpoint (e.g., a corporate proxy), simply configure it in `~/.claude/settings.json` or set the `ANTHROPIC_BASE_URL` environment variable. `ccv` will automatically detect and correctly forward requests.
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`.
88
94
89
-
- Captures all API requests made by Claude Code in real time, ensuring raw content rather than truncated logs (this is important!!!)
90
-
- Automatically identifies and labels Main Agent and Sub Agent requests (subtypes: Plan, Search, Bash)
91
-
- MainAgent requests support Body Diff JSON, showing a collapsed diff of changes from the previous MainAgent request (only changed/added fields)
92
-
- Inline token usage stats per request (input/output tokens, cache creation/read, hit rate)
93
-
- Compatible with Claude Code Router (CCR) and other proxy scenarios — falls back to API path pattern matching
95
+
Once configured, use the `claude` command as normal. Visit `http://localhost:7008` to access the monitoring interface.
94
96
95
-
### Conversation Mode
96
97
97
-
Click the "Conversation Mode" button in the top-right corner to parse the Main Agent's full conversation history into a chat interface:
- User messages are right-aligned (blue bubbles), Main Agent replies are left-aligned (dark bubbles)
102
-
-`thinking` blocks are collapsed by default, rendered in Markdown, and can be expanded to view the reasoning process; one-click translation is supported (feature is still unstable)
103
-
- User selection messages (AskUserQuestion) are displayed in a Q&A format
104
-
- Bidirectional mode sync: switching to Conversation Mode automatically scrolls to the conversation corresponding to the selected request; switching back to Raw Mode automatically scrolls to the selected request
105
-
- Settings panel: toggle the default collapsed state for tool results and thinking blocks
106
-
- 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 full conversation history on your phone
107
100
108
101
### Programming Mode
109
102
110
-
After launching with ccv -c or ccv -d, you will see:
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.
120
+
121
+
### Logger Mode (View Complete Claude Code Sessions)
- User messages are right-aligned (blue bubbles), Main Agent replies are left-aligned (dark bubbles)
139
+
-`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)
140
+
- User selection messages (AskUserQuestion) are displayed in Q&A format
141
+
- 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
142
+
- Settings panel: toggle default collapse state for tool results and thinking blocks
143
+
- 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
127
144
128
145
### Statistics Tool
129
146
130
147
The "Data Statistics" floating panel in the header area:
- Import local logs: browse historical log files grouped by project, open in a new window
@@ -148,18 +167,18 @@ Via the CC-Viewer dropdown menu in the top-left corner:
148
167
- View user Prompts: extract and display all user inputs, supporting three view modes — Raw mode (original content), Context mode (system tags collapsible), Text mode (plain text); slash commands (`/model`, `/context`, etc.) shown as standalone entries; command-related tags are auto-hidden from Prompt content
149
168
- Export Prompts to TXT: export user Prompts (plain text, excluding system tags) to a local `.txt` file
150
169
151
-
### Multi-language Support
152
-
153
-
CC-Viewer supports 18 languages, automatically switching based on system locale:
154
-
155
-
简体中文 | English | 繁體中文 | 한국어 | Deutsch | Español | Français | Italiano | Dansk | 日本語 | Polski | Русский | العربية | Norsk | Português (Brasil) | ไทย | Türkçe | Українська
156
-
157
170
### Auto-Update
158
171
159
172
CC-Viewer automatically checks for updates on startup (at most once every 4 hours). Within the same major version (e.g., 1.x.x → 1.y.z), updates are applied automatically and take effect on the next restart. Cross-major-version updates only show a notification.
160
173
161
174
Auto-update follows Claude Code's global configuration in `~/.claude/settings.json`. If Claude Code has auto-updates disabled (`autoUpdates: false`), CC-Viewer will also skip auto-updates.
162
175
176
+
### Multi-language Support
177
+
178
+
CC-Viewer supports 18 languages, automatically switching based on system locale:
179
+
180
+
简体中文 | English | 繁體中文 | 한국어 | Deutsch | Español | Français | Italiano | Dansk | 日本語 | Polski | Русский | العربية | Norsk | Português (Brasil) | ไทย | Türkçe | Українська
0 commit comments