Claude Prompt Capturer — Development skill for Claude Code
想知道vibe coding工具在做什么.
How to install Claude Prompt Capturer
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open FengGuanyun/claude_prompt_capturer and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Claude Prompt Capturer does
想知道vibe coding工具在做什么?统一的 Claude Code / OpenCode 代理服务,支持 Prompt 捕获、WebSocket PTY 终端和 Agent 执行流程可视化。
Alternatives in Development
- IPolloWork — Enterprise-grade, local-first Agent Workbench for people and agent teams 4.9k ★
- Petdex — A public gallery of animated pets for Codex, Claude Code, DeepSeek Harness, Hermes, OpenCode, Gemini CLI, and 4k ★
- Hapi — App for Claude Code / Codex / Gemini / OpenCode, vibe coding anytime, anywhere 3.6k ★
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
Hive
Browser-native hive-mind for CLI coding agents — Claude Code, Codex, Gemini, and OpenCode collaborate as real
Agent Deck
Local web dashboard to orchestrate multiple Claude Code & OpenCode CLI sessions — real PTY terminals, persona
Go Providers
Unified Go Provider interface over CLI/PTY-driven coding-agent adapters (Claude Code, Codex, opencode) with Bo
Zehn
Fuzzy-find any prompt across claude, codex, pi & opencode histories, then resume that session. Fast Zig TUI.
Meridian Plugin Opencode Scrub
Meridian plugin: strip OpenCode identifying fingerprints from the system prompt
Phone A Friend
Ask Antigravity, Codex, Gemini, Claude, OpenCode, pi, or Ollama for a second opinion through the phone-a-frien
Related Agents
Demo Creator Py
Python creator for the live-demo and workbench builds — the PTY adapter, the terminal websocket route, the det
Evidence Capturer
Captures concrete validation evidence from real running systems
Research Capturer
Isolated RKC writer. Owns knowledge/research/. Never invents types or rels.