Skip to content

nessos666/coding-tentacle

Repository files navigation

Coding Tentacle Logo

Coding Tentacle 11

πŸ™ Secure Self-Learning Repair Agent β€” Droste Fusion
The only agent with Safety VETO + Causal Code Graph + Self-Learning

Version 11.0.0 Tests 14/14 Regression 10/10 Droste v1.1.6 Droste Repo MIT License Python 3.10+


Why Coding Tentacle?

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.

Architecture

                          β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
  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 + Droste Fusion

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

Full Pipeline

BUG β†’ Classifier β†’ SecurityBrain(VETO) β†’ REFLECTION RETRIEVAL
    β†’ Droste Context β†’ EngineRouter β†’ OpenCode / Claude / Ollama
    β†’ Safety Scan β†’ ImpactAnalyzer β†’ SkepticBrain
    β†’ Sandbox β†’ Approval β†’ BLM β†’ REFLECTION ENGINE β†’ Consolidator

Comparison

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.

Engines

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

Learning System V2

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

Quick Start

# 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

Project Status

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 Tests

Contributing

Contributions are welcome! Please see CONTRIBUTING.md for guidelines and CODE_OF_CONDUCT.md for our community standards.

License

MIT β€” Built by David Miko + Hermes Agent. Β© 2026.

About

πŸ¦‘ CT 11 β€” Secure Self-Learning Repair Agent. Droste Fusion. 4 Engines. Reflection Engine. 9/10 Benchmark.

Topics

Resources

License

Code of conduct

Contributing

Stars

2 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors

Languages