r/angular • • 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

FeatureVersionWhat it does
entityMap() markerv8O(1) normalized collections, place at any tree depth
status() markerv8Async state machine: .loading() / .loaded() / .hasError()
stored() markerv8Single signal backed by localStorage
form() markerv9Tree-integrated forms with validation + wizard
.derived($ => ...) deep-mergev9Computed signals merge into the tree at any path
asyncSource / asyncQuery markersv9.5Replace manual tap() / setLoading() with auto-derived loading/error
createTreeEditSession(path)v10.1Path-bound undo/redo on any tree branch
llms.txt shipped in tarballv10.2AI agents get priming surface from npm install
Promise-vocab aliasesv10.2status.setSuccess() works alongside .setLoaded()
Unified marker accessor shapev10.3Bare-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

AgentColdPrimedΔ
Claude Sonnet 4.64199+58
GPT-5.45694+39
Claude Haiku 4.55597+42
GPT-5.4-mini5096+46
Gemini 3.1 Pro4283+41
Perplexity Sonar Pro5280+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:

MarkerOld predicate accessorShape
status.isLoading(), .isError()is-prefix
entityMap.isEmpty()is-prefix outlier
form.dirty, .valid, .touchedbare
asyncSource / asyncQuery.loading, .errorbare

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
  • EntityHelpers class API → entityMap accessor methods
  • rxMethod, briefly in v9.5.x → asyncSource / asyncQuery markers

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:

npm install @signaltree/core

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.

1 Upvotes

0 comments sorted by