Skip to main content

About the project

The Problem

Small models (Mistral-7B, Llama-3-8B) deployed as autonomous agents fail frequently due to:

Broken JSON syntax that crashes parser loops.
Type mismatches (e.g., passing a string “101” instead of an integer 101).
Infinite tool loops when encountering unexpected outputs.
Attention drift as conversational history grows too long.
The Solution: 4 Architectural Pillars
Constrained Decoding: Physically restricts model token generation to valid JSON matching tool schemas (0% syntax failures).
Pre-Execution Auto-Repair: Intercepts invalid arguments before tool execution and injects localized correction prompts to self-heal arguments on the fly.
Deterministic Loop Detection: Uses SHA-256 action hashing to detect repeated actions or circular patterns, temporarily disabling abused tools to force alternative paths.
Context Pruning & Working Memory: Prunes older context via a sliding window while preserving critical facts in a permanent memory ledger, realigning the model with a “step-back” prompt.
Key Benchmark Results (50-Task Evaluation)
Syntax Error Rate: Reduced from 31.9% (unconstrained baseline) down to 0.0%.
End-to-End Success Rate: 96.0% (exceeding the >80% target).
Tool Call Reduction: Reduced redundant tool calls by 31.9% (69 calls down to 47 calls).
Recovery Rate: 100% of schema validation errors successfully self-repaired.
Interactive Features
Dynamic User Data Studio: Ingest and run queries, aggregations, and filters directly over custom user tables, datasets, and documents.
Auto-Derived Ground Truth: When task directives change, expected answers update automatically and remain locked/non-editable .
Cyberpunk Dashboard (http://localhost:5050): Real-time cognitive execution terminal, holographic telemetry gauges, live A/B comparison matrices, and 1-click toggles for all 4 scaffolding pillars.

Built with

pythonflaskpydanticjsonschematailwindcss

Prize Categories Entered

  • DigitalOcean

    Best Open-Source AI Project

    Submitted