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
BBC's daemon (`bbc_daemon.py`) watches for file changes. If your code changes after AI interaction, it automatically triggers a re-analysis to prevent stale context.
155
+
BBC's daemon (`bbc_daemon.py`) actively monitors your project for changes every 30 seconds:
-**Files deleted** → context updated to remove orphaned symbols
159
+
160
+
The daemon uses `adaptive_mode.check_context_freshness()` for hash-based staleness detection and recommends `RESCAN` or `PARTIAL_RESCAN` based on the ratio of changed files.
141
161
142
162
### 🧠 Adaptive Mode (STRICT / RELAXED)
143
163
BBC operates in two modes depending on context match quality:
@@ -163,12 +183,47 @@ Verification also runs automatically at the end of every `bbc start` and `bootst
163
183
164
184
---
165
185
166
-
## 🛠️ Commands
186
+
## � Case Study: Borsa MCP (Real-World Benchmark)
187
+
188
+
BBC was tested on **borsa-mcp** — a financial data MCP server for Borsa Istanbul with 257K+ lines of code. Testing was performed using the **Cline extension** (VS Code) with free-form prompts.
> **119:1 compression ratio** — verified with `tiktoken` (GPT-4o tokenizer)
200
+
201
+
### How BBC Achieved This
202
+
203
+
1.**Context Discipline:** Instead of dumping README + raw data + verbose instructions into one prompt, BBC enforces focused task payloads with `context_source: .bbc/bbc_context.json`
204
+
2.**Adaptive Sampling:** 3,650 daily records → key inflection points only (`TokenOptimizer`)
205
+
3.**Compact JSON:** Field shortening, null removal, number rounding (`CompactJSONOptimizer`)
206
+
4.**Hallucination Prevention:**`constraint_status: verified` ensures AI stays within sealed context
207
+
208
+
### Key Insight
209
+
210
+
> *"BBC is not magic automation — it’s an engineering framework that keeps AI work safe and focused."*
211
+
>
212
+
> The massive token reduction comes from BBC discipline + optimization working together, not from a single tool.
213
+
214
+
*Tested with Cline extension (VS Code) using free-form prompts. March 2026.*
0 commit comments