Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

11 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿงฌ OpenBBox | ่„‰็ปœ

Stop Coding in the Dark. Trace the DNA of your AI-Driven Projects.

License: MIT Python 3.9+ PRs Welcome Docker

English ยท ็ฎ€ไฝ“ไธญๆ–‡


OpenBBox Dashboard โ€” Three-column workspace
The Three-Column Workspace: Prompt list โ†’ AI response โ†’ Code diff with line numbers


โšก๏ธ Why OpenBBox?

AI-assisted coding is fast, but it's a Black Box.

  1. The Amnesia Problem โ€” Can't remember the prompt that fixed that complex bug 2 weeks ago?
  2. The Silo Problem โ€” Great prompts in Cursor can't be reused in Trae or Claude Code.
  3. The Blackbox Problem โ€” Looking at a git diff but forgot what instructions led to those changes?

OpenBBox is a universal side-car observer. It sniffs your local AI IDE logs and Git diffs to build a permanent, reusable DNA Sequence of your project โ€” the complete lineage from intent to code.

"Don't just code with AI. Direct it. Trace it. Preserve it."


โœจ Key Features

Feature Description
๐Ÿงฌ Prompt Lineage Every prompt captured as a clean, searchable "Genetic Code" โ€” no chat noise
๐Ÿ“Š Evolution Mapping See the "Cause" (Prompt) and "Effect" (Code Diff) in a unified timeline
๐Ÿ”„ Multi-IDE Sync One dashboard for Cursor, Trae, Claude Code, VS Code, Kiro, Windsurf, Codex
๐Ÿ’พ Asset Export Export your "Director's Scripts" as Markdown or .pulse JSON for reuse
๐Ÿ”’ Privacy First 100% local. We sniff local logs. Your data never leaves your machine
๐ŸŒ Bilingual UI Full Chinese/English toggle with one click

๐Ÿ“บ Showcase: Intent-to-Code Lineage

Imagine you built a secure auth module in Project A using Cursor. With OpenBBox, you don't just copy the code โ€” you export the .pulse sequence, the exact prompt flow that guided the AI. Then you "replay" the logic in Project B using Trae.

That is true leverage. Code is the result. The lineage is the asset.

# Intent (The Prompt) Evolution (The Code) Impact
01 "Initialize FastAPI skeleton with WebSocket routing" main.py created, connection pool established Foundation
02 "Add AES-256 encryption middleware for end-to-end security" security.py with encrypt/decrypt hooks Security
03 "Refactor: move message storage from memory to async Redis" db.py, config.py updated Performance
04 "Add JWT auth with refresh token rotation" auth.py injected, 12 files updated Auth
05 "Write comprehensive test suite for auth flow" tests/test_auth.py with 15 test cases Quality

๐Ÿ’ก Share the .pulse file and other developers can instantly see how you directed AI through these 5 architectural decisions.


๐Ÿ›  Supported IDEs (2026)

IDE Type Capture Method Status
Cursor Native AI IDE SQLite + JSONL โœ… Deep Support
VS Code Plugin Ecosystem Copilot Chat JSONL (incremental) + Extensions DB โœ… Full Support
Trae Native AI IDE SQLite โœ… Supported
Claude Code CLI Agent File Watch + PTY โœ… Supported
Kiro Native AI IDE (Amazon) Agent Sessions JSON + Q Chat API Logs โœ… Full Support
Cline / Roo Code VS Code Extension Extension Storage โœ… Supported
Windsurf Native AI IDE SQLite โœ… Supported
Codex CLI PTY โœ… Supported
Claude Desktop Cloud App API โ˜๏ธ Cloud

Want to add a new IDE? See the Contributing Guide.

IDE Scanner โ€” Auto-detect installed AI IDEs
IDE Scanner: Auto-detects Cursor, VS Code, Trae, Codex and more on your machine


๐Ÿš€ Quick Start

One-Line Install

macOS / Linux:

curl -fsSL https://raw.githubusercontent.com/Chiody/openbbox/main/install.sh | bash

Windows (PowerShell):

irm https://raw.githubusercontent.com/Chiody/openbbox/main/install.ps1 | iex

Manual Install

git clone https://github.com/Chiody/openbbox.git
cd openbbox
python3 -m venv .venv && source .venv/bin/activate
pip install -e .
openbbox start
# Open http://localhost:9966

Docker

git clone https://github.com/Chiody/openbbox.git
cd openbbox
docker compose up -d
# Open http://localhost:9966

Makefile Shortcuts

make install    # Set up venv + install
make start      # Start the server
make dev        # Dev mode with auto-reload
make scan       # One-time scan
make status     # Show detected IDEs
make help       # Show all commands

๐Ÿค– AI-Assisted Setup (Recommended)

Due to the wide variety of operating systems, Python versions, and environment configurations, you may encounter setup issues. The fastest way to resolve them is to let your AI IDE or AI agent handle it.

Simply clone the repo, open it in your AI editor (Cursor, Kiro, VS Code with Copilot, Trae, etc.), and paste one of the following prompts:

Suggested Prompts

First-time setup:

I just cloned the OpenBBox project. Please read the README, install all
dependencies, resolve any environment issues (Python version, missing
packages, etc.), and start the server so I can open http://localhost:9966

If the server fails to start:

The OpenBBox server failed to start. Here is the error: [paste error].
Please diagnose the issue, fix it, and restart the server. The entry
point is `PYTHONPATH=. python3 cli/main.py start` and it should run
on port 9966.

If IDE detection is not working:

OpenBBox is running but it's not detecting my IDE conversations.
I use [Cursor/VS Code/Kiro/Trae/etc.]. Please check the adapter
configuration, verify the expected data paths exist on my system,
and run a manual scan to debug.

Full autopilot:

Read the entire OpenBBox project structure. Set up the Python
environment, install dependencies, start the server, open the
dashboard, trigger a scan of all my local AI IDEs, and report
what conversations were found.

๐Ÿ’ก Why this works: OpenBBox is a pure Python project with minimal dependencies. Any modern AI coding assistant can read the codebase, understand the architecture, and fix environment-specific issues in seconds โ€” much faster than manual debugging.


๐Ÿ“‚ Project Structure

openbbox/
โ”œโ”€โ”€ adapters/           # IDE-specific data readers (Cursor, Trae, Claude, VS Code...)
โ”œโ”€โ”€ core/               # Engine: matching algorithm, data models, storage, export
โ”œโ”€โ”€ server/             # FastAPI + WebSocket + REST API
โ”œโ”€โ”€ cli/                # Click CLI with Rich output
โ”œโ”€โ”€ protocol/           # OpenPulse JSON Schema specification
โ”œโ”€โ”€ dashboard/          # Three-column SPA (zero build dependencies)
โ”œโ”€โ”€ docs/               # Landing page + technical documentation
โ”œโ”€โ”€ .github/            # Issue templates
โ”œโ”€โ”€ Dockerfile          # Container support
โ”œโ”€โ”€ docker-compose.yml  # One-command deployment
โ”œโ”€โ”€ pyproject.toml      # pip install support
โ”œโ”€โ”€ Makefile            # Developer shortcuts
โ”œโ”€โ”€ install.sh          # macOS/Linux one-line installer
โ””โ”€โ”€ install.ps1         # Windows one-line installer

๐Ÿ’ก For the full directory breakdown, see CONTRIBUTING.md.


๐Ÿง  How It Works

OpenBBox operates as a Shadow Observer โ€” a side-car process that passively reads local IDE databases without modifying them.

IDE Logs (SQLite/JSONL) โ”€โ”€โ–ถ Adapters โ”€โ”€โ–ถ Temporal Matcher โ”€โ”€โ–ถ PulseNodes โ”€โ”€โ–ถ Dashboard
                                              โ”‚
                                    Score = ฮฑยท(1/ฮ”T) + ฮฒยทFileOverlap + ฮณยทKeywords
  1. Sniff โ€” Read-only access to IDE conversation databases
  2. Match โ€” Pair prompts with Git diffs using weighted temporal alignment
  3. Store โ€” Save structured PulseNodes to ~/.openbbox/openbbox.db
  4. Visualize โ€” Three-column dashboard with search, export, and real-time updates

๐Ÿ“– For the full algorithm breakdown, see Technical Architecture.

Sniff Strategies by IDE

Kiro โ€” 2-Layer Strategy (Agent Sessions + Q Chat API Logs)
Layer Source Speed What It Captures
workspace_sessions kiro.kiroagent/workspace-sessions/{b64path}/sessions.json FAST User prompts from session history; project path decoded from base64 directory name
workspace_db workspaceStorage/{hash}/state.vscdb FAST Fallback: chat/composer keys from VS Code-compatible SQLite

Key insight: Kiro's session JSON only stores placeholder assistant responses ("On it."). The real AI responses live in Q Chat API.log files under ~/Library/Application Support/Kiro/logs/. OpenBBox parses these logs, extracts fullResponse and assistantResponseEvent content, and correlates them back to sessions via conversationId.

VS Code โ€” 3-Layer Strategy (Workspace Chat + Global Chat + AI Extensions)
Layer Source Speed What It Captures
workspace_chat workspaceStorage/{hash}/chatSessions/*.jsonl FAST Copilot Chat conversations per project
global_chat globalStorage/emptyWindowChatSessions/*.jsonl FAST Conversations from windows without a workspace
ai_extensions globalStorage/{ext-id}/ (Cline, Roo Code, Continue, Cody) MEDIUM Third-party AI extension conversations

Key insight: VS Code Copilot Chat uses an incremental JSONL format โ€” kind=0 initializes the session state, kind=1 patches individual fields, kind=2 replaces entire arrays. OpenBBox reconstructs the full session by replaying these updates, then extracts markdownContent from the response objects.


๐Ÿ”Œ API

Method Endpoint Description
GET /api/health Health check
GET /api/adapters List IDEs with detection status
GET /api/nodes List PulseNodes (paginated)
GET /api/search?q= Search prompts by keyword
GET /api/export/markdown Export as Markdown
GET /api/export/json Export as .pulse JSON
WS /ws Real-time node push

Full interactive docs at http://localhost:9966/docs after starting the server.


๐Ÿ”’ Privacy & Security

  • 100% Local โ€” All data stored in ~/.openbbox/openbbox.db on your machine
  • No Telemetry โ€” Zero network calls, no analytics, no tracking
  • Read-Only Sniffing โ€” IDE databases opened with ?mode=ro and PRAGMA query_only = ON
  • No IDE Modification โ€” No plugins, no extensions, no code injection
  • Your Data, Your Control โ€” Delete ~/.openbbox/ to remove everything

๐Ÿ“– Documentation

Document Description
Technical Architecture Shadow Listener engine, Temporal Matching algorithm, data pipeline
Contributing Guide How to add new IDE adapters, code style, PR process
OpenPulse Protocol PulseNode JSON Schema, export formats, versioning

๐Ÿค Contributing

OpenBBox is built for the community. Whether you use Cursor, Trae, or raw CLI, we need your help.

git clone https://github.com/Chiody/openbbox.git
cd openbbox && make install && source .venv/bin/activate
make dev  # starts with auto-reload

See CONTRIBUTING.md for the full guide.


๐Ÿ—บ Roadmap

  • Core Python sniffer engine with multi-adapter architecture
  • Temporal matching algorithm (Prompt โ†’ Git Diff)
  • Three-column web dashboard with bilingual UI
  • Multi-IDE support (Cursor, Trae, Claude Code, VS Code, Kiro, Windsurf, Codex)
  • PTY terminal wrapper for CLI tools
  • Asset export (Markdown / JSON / prompt list)
  • Community "Pulse Hub" for sharing prompt sequences
  • GitHub Actions integration for automated lineage tracking
  • VS Code extension for in-editor lineage view

๐Ÿ™ Acknowledgments

  • Aider โ€” Git monitoring patterns
  • Continue โ€” SQLite ChatHistory structure
  • Asciinema โ€” PTY terminal recording architecture
  • python-unidiff โ€” Unified diff parsing

๐Ÿ“„ License

Distributed under the MIT License. See LICENSE for details.


Built with โค๏ธ for the AI Director era.
Open the Box. Trace the Pulse.

About

๐Ÿงฌ The DNA of AI-Driven Coding. Stop losing your prompts in chat history. OpenBBox traces the "Intent-to-Code" lineage across Cursor, Trae, and Claude Code. Build your reusable Prompt Assets today.

Resources

Contributing

Stars

11 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages