← all recipes

Gravity operational

Intent Magnet

pull likely actions toward the user's current context

frame bodies 0 relationships 0

Running the actual recipe live via applyRecipe() — not a mock.

"Intent Magnet" — pull likely actions toward the user's current context. It has a gravity layer (universal attraction toward mass), a memory layer (a decaying trail / hysteresis), a link layer (ropes / cloth between neighbours), and a cohesion layer (flocking — pull toward neighbours). The active render stack is links, field-lines, dots, particles.

Current focus, history, and task state become a gentle gravity center that draws likely next actions closer; memory weights what worked before while cohesion keeps related actions together, assisting without taking control.

Runtime tokens
gravity memory link cohesion
Metrics
intent confidence memory next-action intent, next-action are host-supplied lanes — drive them with data-field-<metric> (or a domain model); without that, their --field-* stays inert.
Diagnostics
potential causality inspector
Conditions
focused
Render
links · field-lines · dots · particles
Reduced motion
a suggested-actions list with a next-step badge and contextual shortcuts
Without motion
likely actions are ranked in a list by confidence, each labelled with why it was suggested

Copy this recipe

<field-root></field-root>
  <div data-body="gravity" data-strength="0.9" data-range="380" data-feedback></div>
  <div data-body="memory" data-strength="0.6" data-range="280"></div>
  <div data-body="link" data-strength="0.6" data-range="300"></div>
  <div data-body="cohesion" data-strength="0.5" data-range="260"></div>

See also