Spaces:
Running

File size: 7,396 Bytes
2e3f226
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
747a077
2e3f226
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
747a077
2e3f226
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
747a077
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2e3f226
 
 
747a077
2e3f226
 
747a077
 
 
 
 
 
 
 
 
 
 
2e3f226
 
 
 
 
 
747a077
2e3f226
 
 
 
 
747a077
2e3f226
747a077
2e3f226
747a077
 
 
 
2e3f226
747a077
2e3f226
747a077
 
 
 
 
 
 
 
 
2e3f226
 
 
 
 
747a077
2e3f226
 
 
 
 
 
 
 
747a077
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2e3f226
 
 
 
 
 
 
747a077
 
2e3f226
 
 
 
 
747a077
2e3f226
 
 
 
 
 
 
 
 
 
4d43fb0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>RACT — Root Agentic Coding Tool</title>
  <style>
    :root {
      --gold: #D4AF37;
      --blue: #1E90FF;
      --red: #FF4C4C;
      --green: #32CD32;
      --amber: #FFBF00;
      --bg: #0d1117;
      --fg: #c9d1d9;
      --card: #161b22;
      --muted: #8b949e;
    }
    body {
      margin: 0;
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
      background: var(--bg);
      color: var(--fg);
      line-height: 1.6;
    }
    header {
      text-align: center;
      padding: 3rem 1rem 2rem;
    }
    header img {
      width: 160px;
      border-radius: 12px;
      margin-bottom: 1rem;
    }
    h1 {
      margin: 0;
      font-size: 2.5rem;
      color: var(--gold);
    }
    .tagline {
      color: var(--blue);
      font-size: 1.1rem;
      margin-top: 0.5rem;
    }
    .knot {
      color: var(--muted);
      font-style: italic;
      margin-top: 0.25rem;
    }
    main {
      max-width: 720px;
      margin: 0 auto;
      padding: 0 1rem 3rem;
    }
    .card {
      background: var(--card);
      border: 1px solid #30363d;
      border-radius: 12px;
      padding: 1.5rem;
      margin-bottom: 1.5rem;
    }
    .card h2 {
      margin-top: 0;
      color: var(--gold);
    }
    code {
      background: #21262d;
      padding: 0.2rem 0.4rem;
      border-radius: 4px;
      font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    }
    pre {
      background: #21262d;
      padding: 1rem;
      border-radius: 8px;
      overflow-x: auto;
    }
    a {
      color: var(--blue);
      text-decoration: none;
    }
    a:hover {
      text-decoration: underline;
    }
    .buttons {
      display: flex;
      gap: 1rem;
      flex-wrap: wrap;
      justify-content: center;
      margin-top: 1.5rem;
    }
    .btn {
      display: inline-block;
      padding: 0.75rem 1.25rem;
      border-radius: 8px;
      font-weight: 600;
    }
    .btn-primary {
      background: var(--gold);
      color: #000;
    }
    .btn-secondary {
      background: var(--blue);
      color: #fff;
    }
    .stat {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
      gap: 1rem;
      margin-top: 1rem;
    }
    .stat-box {
      background: #21262d;
      border-radius: 8px;
      padding: 1rem;
      text-align: center;
    }
    .stat-box strong {
      display: block;
      color: var(--gold);
      font-size: 1.5rem;
    }
    .stat-box span {
      color: var(--muted);
      font-size: 0.85rem;
    }
    footer {
      text-align: center;
      padding: 2rem;
      color: var(--muted);
      font-size: 0.9rem;
    }
    .receipt {
      background: #0d1117;
      border: 1px solid #30363d;
      border-radius: 8px;
      padding: 1rem;
      overflow-x: auto;
    }
    .receipt code {
      background: transparent;
      font-size: 0.85rem;
    }
  </style>
</head>
<body>
  <header>
    <img src="DrLucasRoot-Logo.png" alt="Dr. Lucas Root logo">
    <h1>RACT</h1>
    <div class="tagline">Model-agnostic, local-first agentic coding</div>
    <div class="knot">Every plan Rooted. Every file carries the Knot.</div>
  </header>

  <main>
    <div class="card">
      <h2>The problem</h2>
      <p>
        A 2024 analysis of <strong>623 million commits</strong> by GitClear and GitKraken found that AI-assisted code is already rotting codebases: more copy/paste, less refactoring, and a measurable decline in code movement. The tools that write code fastest are not the tools that keep code healthy.
      </p>
    </div>

    <div class="card">
      <h2>What RACT does differently</h2>
      <p>
        RACT is an agentic coding tool that keeps a human in the loop while a small management LM routes work to the right provider — local, cheap frontier, or cloud. Every plan and result is <code>Rooted[T]</code>: it carries the assumption, confidence, and provenance that justify it.
      </p>
      <p>
        Every generated file carries the <strong>Root Knot</strong> (<code>_ROOT_KNOT = object()</code>). The knot is both a coder signature and a loop invariant: if the recursion loop produces an artifact without it, the loop stops instead of compounding unsigned drift.
      </p>
      <div class="stat">
        <div class="stat-box"><strong>4</strong><span>anti-rot verbs</span></div>
        <div class="stat-box"><strong>6</strong><span>provider presets</span></div>
        <div class="stat-box"><strong>7</strong><span>built-in skills</span></div>
        <div class="stat-box"><strong>∞</strong><span>models you own</span></div>
      </div>
    </div>

    <div class="card">
      <h2>Install</h2>
      <pre><code>pip install rootact</code></pre>
      <p><code>ract</code> is provided as a shorter alias for <code>rootact</code>.</p>
    </div>

    <div class="card">
      <h2>Quick start</h2>
      <pre><code># Scaffold a project
rootact init --template python-package --provider local

# Run a self-recursing build loop
rootact "add input validation" --loop --max-iterations 10

# Check for duplication and drift
rootact novelty scan</code></pre>
    </div>

    <div class="card">
      <h2>Signed receipts</h2>
      <p>
        Every RACT run produces a structured receipt capturing intent, model, steps, test results, quality score, cost, and latency. Receipts make quality measurable and comparable across models — a surface no incumbent can copy.
      </p>
      <pre class="receipt"><code>{
  "final_decision": "done",
  "summary": "Completed 3 iterations; 3 with passing tests.",
  "metrics": {
    "total_tokens": 1247,
    "total_cost": 0.0003,
    "total_latency_ms": 8420
  },
  "iterations": [
    {
      "index": 1,
      "intent": "add input validation",
      "test_returncode": 0,
      "quality_score": 0.91,
      "decision": "continue"
    }
  ]
}</code></pre>
      <p>
        Export a receipt with <code>rootact report --last --format json --output report.json</code>.
      </p>
    </div>

    <div class="card">
      <h2>Why RACT?</h2>
      <ul>
        <li><strong>Own your pipeline.</strong> No vendor lock-in. Mix local and cheap frontier models.</li>
        <li><strong>Progress Oracle.</strong> Milestone-driven recursion, not just time-based looping.</li>
        <li><strong>Anti-rot arsenal.</strong> Duplication guard, refactor tax, error-mask detection, novelty budget, Chesterton's Fence, Dead Code Auction, and Legacy Whisperer.</li>
        <li><strong>Operator Handshake.</strong> High-risk actions queue for review instead of pausing the loop.</li>
      </ul>
    </div>

    <div class="buttons">
      <a class="btn btn-primary" href="https://github.com/LucRoot/RACT">GitHub</a>
      <a class="btn btn-secondary" href="https://lucroot.github.io/RACT">Documentation</a>
      <a class="btn btn-secondary" href="https://lucasroot.pro/ai-agent-playbook-thanks">From the author</a>
    </div>
  </main>

  <footer>
    By Dr. Lucas Root, Ph.D. · PolyForm Noncommercial License 1.0.0 · Free for personal, research, education, and noncommercial use.
    <br>
    <a href="https://lucasroot.pro/ai-agent-playbook-thanks">Get the free chapter on assumption-driven agentic tooling →</a>
  </footer>
</body>
</html>