Claude Prompt Capturer
Description
想知道vibe coding工具在做什么?统一的 Claude Code / OpenCode 代理服务,支持 Prompt 捕获、WebSocket PTY 终端和 Agent 执行流程可视化。
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
README
Claude Capturer
统一的 Claude Code / OpenCode 代理服务,支持 Prompt 捕获、WebSocket PTY 终端和 Agent 执行流程可视化。
跨平台:支持 Windows (winpty)、Mac/Linux (pty),自动检测系统选择 PTY 实现。
功能
- Prompt 捕获:拦截所有 API 请求,在网页上查看完整的 Prompt、消息历史和工具调用
- WebSocket PTY 终端:在浏览器中使用 Claude Code 和 OpenCode,支持 Windows (winpty) 和 Unix (pty)
- API 代理:将 Claude Code 和 OpenCode 的请求代理到 DashScope 等兼容服务
- Agent 编程助手:带完整执行流程可视化的本地 Agent,支持 Bash/文件读写工具
快速开始
1. 安装依赖
pip install flask flask-cors httpx websockets
**平台依赖:**
| 平台 | PTY 实现 | 额外依赖 |
|---|---|---|
| Windows | winpty | pip install pywinpty |
| Mac / Linux | 标准 pty | 无(Python 内置) |
2. 配置 API Key
在 `~/.claude/settings.json` 中配置:
{
"env": {
"ANTHROPIC_AUTH_TOKEN": "your-api-key",
"ANTHROPIC_BASE_URL": "https://coding.dashscope.aliyuncs.com/apps/anthropic",
"ANTHROPIC_MODEL": "qwen3.6-plus"
}
}
3. 启动服务
python unified_server.py
访问:
- 终端页面:http://localhost:8080
- Agent 编程助手:http://localhost:8080/agent
- Prompt 捕获:在终端页面中点击 Captured Prompts
项目结构
├── unified_server.py # 入口文件
├── terminal_ui.html # 终端 + Prompt 捕获界面
├── agent_ui.html # Agent 编程助手界面
├── server/
│ ├── __init__.py # Flask app 路由注册
│ ├── config.py # API 配置加载
│ ├── capture.py # Prompt 捕获与调试日志
│ ├── proxy.py # API 代理(Anthropic ↔ OpenAI 格式转换)
│ ├── translate.py # 翻译接口
│ ├── agent.py # Agent 工具链 + /chat SSE 端点
│ └── ws_handler.py # WebSocket PTY 处理
├── mini-cc/ # 参考的 mini-cc Agent 代码(未直接引用)
└── apps/ # 用户生成文件目录
平台兼容性
| 组件 | Windows | Mac / Linux |
|---|---|---|
| PTY 终端 | ✅ winpty | ✅ pty (内置) |
| Claude Code | ✅ | ✅ |
| OpenCode | ✅ | ✅ |
| Agent 对话 | ✅ | ✅ |
Related Skills
Auto Update
Pull the latest ECC repo changes and reinstall the current managed targets.
Development Ecc Guide
Navigate ECC's current agents, skills, commands, hooks, install profiles, and docs from the live repository su
Development Epic Claim
Claim an epic issue, stamp coordination state, and sync local ownership.
Development Epic Publish
Publish a validated epic update back to the issue and local cache.
Development Epic Review
Mark epic review requested, approved, or changes requested.
Development Epic Unblock
Sweep blocked epic issues and reopen anything whose dependencies are closed.
Development Related Agents
Django Build Resolver
Django/Python build, migration, and dependency error resolution specialist. Fixes pip/Poetry errors, migration
Openai Codex CLI
(55.8k ⭐) - Lightweight coding agent that runs in your terminal.
src/agents/ — 11 Agent Definitions
**Generated:** 2026-04-11