π Secure Self-Learning Repair Agent β Droste Fusion
The only agent with Safety VETO + Causal Code Graph + Self-Learning
The Problem: AI coding agents β OpenCode, Claude Code, Codex, Copilot β generate code with zero safety guarantees. They can emit eval(user_input), DROP TABLE, or rm -rf / without hesitation. They use grep, not code graphs. They never learn from mistakes.
The Solution: Coding Tentacle is a Cyber-Safety Layer that sits between bug reports and fix engines. It doesn't generate code β it controls what code gets generated.
| Metric | CT + OpenCode + Droste | Baseline (grep-only) |
|---|---|---|
| Repair Accuracy | 9/10 (90%) | 3/10 (30%) |
| Security Blocks | 2 (eval, API key) | 0 |
| Causal Context | 4,697 edges | 0 |
| Learning Retention | 92 experiences, 23 REFLECTION entries | None |
3Γ improvement over grep-only baselines. Security VETO catches dangerous patterns before execution.
ββββββββββββββββββββββββββββββββββββ
Bug Report βββββββββββββΊβ CODING TENTACLE β
β β
β ββ Classification (18 types) ββ β
β β SecurityBrain VETO β β
β β Droste Causal Graph β β
β β ReflectionEngine β β
β β 4-Engine Router β β
β βββββββββββββββββββββββββββββββ β
β β
β APPROVE / BLOCK / REQUEST_MORE β
ββββββββββββββββ¬ββββββββββββββββββββ
β controls
ββββββββββββββββββββββββββββββββββββββββΌβββββββββββββββββββββ
β FIX ENGINES β
β β
β OpenCode (deepseek-v4) β Claude Code (2.1.86) β
β Ollama (granite3.2) β Codex (disabled) β
β β
β Sandbox β Safety Scan β Impact Analysis β Approval β
β β
β CANNOT act without CT approval. CANNOT bypass safety. β
β CANNOT access files directly. CANNOT auto-commit. β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
CT uses Droste β a causal code graph engine β to give every fix engine structural context. Instead of blind grep, the LLM sees which functions are causally connected to the bug.
CODING TENTACLE DROSTE v1.1.6
ββββββββββββββββββ βββββββββββββββββββββββββ
Classifier (18 types) β 4,187 symbols β
SecurityBrain (VETO) β 4,697 causal edges β
EngineRouter (4 engines) β 98% budget efficiency β
ReflectionEngine β "Which functions are β
BLM + EngineLearning β causally connected?" β
ββββββββββββββββββ βββββββββββββββββββββββββ
β β
βββββββββββ FUSION βββββββββββββ
β
Causal Code Context in Engine Prompt
BUG β Classifier β SecurityBrain(VETO) β REFLECTION RETRIEVAL
β Droste Context β EngineRouter β OpenCode / Claude / Ollama
β Safety Scan β ImpactAnalyzer β SkepticBrain
β Sandbox β Approval β BLM β REFLECTION ENGINE β Consolidator
| Feature | CT | Claude Code | Codex | Copilot | Devin |
|---|---|---|---|---|---|
| Safety VETO (5-layer) | β | β | β | β | β |
| Causal Code Graph | β | β grep | β grep | β grep | β grep |
| Self-Learning (BLM) | β | β | β | β | β |
| Open Source | β | β | β | β | β |
| Local / No Cloud | β | β | β | β | β |
| Multi-Engine Routing | β | β | β | β | β |
| Immutable Evidence Trail | β | β | β | β | β |
| No Auto-Apply | β | β | β |
CT is the only system with all 8 features.
| Engine | Status | Type |
|---|---|---|
| OpenCode (deepseek-v4) | Primary | Local, free |
| Claude Code (2.1.86) | Active | Top-tier |
| Ollama (granite3.2) | Fallback | Offline |
| Codex (GPT-5.x) | Disabled | API required |
Run 1: Bug β Fix β REFLECTION: "Why did this work?"
Run 2: Bug β BLM: "I've seen this!" β LEARNED LESSONS enrich prompt
Run N: 92 experiences, 23 REFLECTION entries, trust calibrated
# Clone and install
git clone https://github.com/nessos666/coding-tentacle.git
cd coding-tentacle
pip install -e .
# Verify installation
ct version
# Repair a bug
ct repair --title "NullPointer in payment.py" --body "NoneType has no attribute 'process'"Requirements: Python 3.10+ β’ Droste v1.1.6 β’ OpenCode CLI β’ No API keys β’ No cloud
| Metric | Value |
|---|---|
| Version | 11.0.0 |
| Modules | 27 production |
| Lines of Code | 8,405 |
| Test Suite | 14/14 passing |
| Regression | 10/10 passing |
| Checkpoints | 28 |
| Archived Modules | 34 |
| CI/CD |
Contributions are welcome! Please see CONTRIBUTING.md for guidelines and CODE_OF_CONDUCT.md for our community standards.
MIT β Built by David Miko + Hermes Agent. Β© 2026.
