Spiral Reasoning Tree

A recursive, self-correcting reasoning framework that uses R_polish resonance scoring to solve complex problems.

Install
cmdop skills install agensi-spiral-reasoning-tree

Elevate Agent Logic with Fractal Reasoning

The Spiral Reasoning Tree (SRT) is a mathematically grounded framework designed to replace standard, often chaotic Chain-of-Thought (CoT) with a structured, recursive branching system. It solves the common problem of "reasoning drift," where AI agents lose context or loop endlessly during complex problem-solving. By utilizing a bounded recursion model, it ensures deep exploration without sacrificing coherence.

What it does

Unlike basic prompting, SRT forces the agent to treat every branch of a thought as a measurable node. It implements a proprietary scoring system called R_polish, which evaluates every reasoning path for resonance, novelty, and grounding. High-scoring paths are expanded, while low-scoring "hallucination" branches are pruned.

  • Structured Branching: Generates bounded child nodes for multi-layered hypotheses.
  • R_polish Scoring: Applies a 0–1 scale to quantify the quality of every deduction.
  • Visual Auditing: Produces Mermaid-compatible tree diagrams so humans can audit the logic.
  • Anti-Drift Shield: Uses integrated self-correction to stop the agent from going off-track.

Why it's better than manual prompting

Standard prompting leaves the agent's logic to chance. SRT provides a deterministic architecture for cognition, ensuring that the output is not just a guess, but the result of the highest-rated logical path discovered during the process.