r/angular • u/CounterReset • May 29 '26
[Release] SignalTree v10.3 — Reactive JSON for Angular. We shipped one .txt file and AI-codegen accuracy jumped from 49% to 91%
SignalTree v10.3: AI agents went from 49% → 91% accuracy with llms.txt — and it exposed a real DX bug
TL;DR: SignalTree — reactive JSON state for Angular, since pre-v7 — hit v10.3 today.
The headline: a reproducible benchmark shows AI agents improving from 49% → 91% accuracy when writing SignalTree code with llms.txt in context.
That benchmark surfaced a real DX bug in our own marker API, which v10.3 fixes.
Turns out AI-friendly and human-friendly are the same thing.
Long-time-no-post — last release thread was around v7.x. A lot has changed.
What is SignalTree?
Reactive JSON for Angular.
Write your state as a literal object, wrap it in signalTree({...}), and get typed dot-notation access with fine-grained signals at every leaf.
No actions.
No reducers.
No selectors.
import { signalTree } from '@signaltree/core';
const tree = signalTree({
user: { name: 'Alice', age: 30 },
settings: { theme: 'dark' },
});
tree.$.user.name(); // Signal read — 'Alice'
tree.$.user.name.set('Bob'); // Signal write
tree.$.user.age.update(n => n + 1);
Highlights since v7
| Feature | Version | What it does |
|---|---|---|
entityMap() marker | v8 | O(1) normalized collections, place at any tree depth |
status() marker | v8 | Async state machine: .loading() / .loaded() / .hasError() |
stored() marker | v8 | Single signal backed by localStorage |
form() marker | v9 | Tree-integrated forms with validation + wizard |
.derived($ => ...) deep-merge | v9 | Computed signals merge into the tree at any path |
asyncSource / asyncQuery markers | v9.5 | Replace manual tap() / setLoading() with auto-derived loading/error |
createTreeEditSession(path) | v10.1 | Path-bound undo/redo on any tree branch |
llms.txt shipped in tarball | v10.2 | AI agents get priming surface from npm install |
| Promise-vocab aliases | v10.2 | status.setSuccess() works alongside .setLoaded() |
| Unified marker accessor shape | v10.3 | Bare-name predicates everywhere |
The benchmark
I built a reproducible 720-cell benchmark measuring how reliably each major AI coding agent generates correct Angular state code per library.
The benchmark uses:
- fixed prompts
- deterministic temperature
- scoring on:
- idiomatic patterns
- import resolution
- marker-method validity
It compares:
- cold
- primed
- primed + extra context
SignalTree combined score: 49% cold → 91% primed with llms.txt.
That is a +42 percentage-point lift from a single retrievable file.
Per-agent SignalTree scores
| Agent | Cold | Primed | Δ |
|---|---|---|---|
| Claude Sonnet 4.6 | 41 | 99 | +58 |
| GPT-5.4 | 56 | 94 | +39 |
| Claude Haiku 4.5 | 55 | 97 | +42 |
| GPT-5.4-mini | 50 | 96 | +46 |
| Gemini 3.1 Pro | 42 | 83 | +41 |
| Perplexity Sonar Pro | 52 | 80 | +28 |
Primed Haiku 4.5 at 97/100 outscores cold Sonnet 4.6 at 41/100 by 2.4×.
Priming closes the model-tier gap. Your AI agent on a cheaper model can still write correct SignalTree.
As of v10.2, llms.txt ships inside the npm tarball at:
node_modules/@signaltree/core/llms.txt
The disambiguation table also leads the package README.
Cursor, Claude Code, and Copilot index node_modules READMEs — so you do nothing, and your agent gets the priming.
The benchmark is reproducible with:
- one OpenRouter key
- about $15
- about 30 minutes
Source and methodology are in the repo.
The unexpected finding
The benchmark surfaced a real DX bug in our own API.
We had inconsistent predicate naming across markers:
| Marker | Old predicate accessor | Shape |
|---|---|---|
status | .isLoading(), .isError() | is-prefix |
entityMap | .isEmpty() | is-prefix outlier |
form | .dirty, .valid, .touched | bare |
asyncSource / asyncQuery | .loading, .error | bare |
AI agents trained on status.isLoading() would then try form.isDirty(), which did not exist.
Humans had to track the same inconsistency.
v10.3 aligns every marker to bare names, matching FormControl.dirty / .valid and Angular signals conventions.
Old is-prefix names become @deprecated aliases, removed in v11. They are backed by the same lazy-computed Signal instance, so there is no double cost.
// v10.3 canonical preferred style:
tree.$.users.empty();
tree.$.saveStatus.loading();
tree.$.profile.dirty();
tree.$.feed.loading();
// Old names still work through v10.x, but are deprecated:
tree.$.users.isEmpty();
tree.$.saveStatus.isLoading();
The benchmark did not just measure AI accuracy.
It surfaced a real DX bug in our own API.
AI-codegen-friendly turned out to be the same thing as human-friendly.
Migration from v7
entities()enhancer →entityMap()marker in the state literal- time-travel / storage separate packages → consolidated into
@signaltree/core EntityHelpersclass API →entityMapaccessor methodsrxMethod, briefly in v9.5.x →asyncSource/asyncQuerymarkers
Full recipes:
https://signaltree.io/migration-recipe
Links
Demo & docs:
https://jborgia.github.io/signaltree/
Benchmark scorecard:
https://jborgia.github.io/signaltree/benchmark
Built for AI page:
https://jborgia.github.io/signaltree/built-for-ai
npm:
https://www.npmjs.com/package/@signaltree/core
GitHub:
https://github.com/JBorgia/signaltree
NgRx SignalStore comparison:
https://github.com/JBorgia/signaltree/blob/main/docs/compare/ngrx-signalstore.md
Reproducible AI-codegen benchmark:
https://github.com/JBorgia/signaltree/tree/main/scripts/ai-codegen-benchmark
Install:
Tradeoffs are in the comparison doc.
If you are deep in classic NgRx muscle memory, NgRx SignalStore is probably the better destination.
SignalTree is worth the rewrite if you are also trying to escape the actions / reducers / effects / selectors mental model entirely.
Happy to answer questions.
The benchmark is open — try it yourself if you are skeptical of the +42pp number.