


Every decision a machine has ever made reduces to a comparison that yields a true or a false. It is the smallest primitive there is and the one none of the others can stand without: before anything moves, something must be judged, and judgment onchain is boolean.
A plug compares any two values it can read: equal, unequal, above, below, at or past a line, and it chains those verdicts together with and and or until an arbitrary condition folds down to a single bit. Guards decide whether a step runs at all, whether it runs only when something is false, whether it holds a loop open or ends it, or whether the entire execution should refuse to proceed. Named flags persist across runs and can be read, written, and flipped, so a plan carries memory: one execution arms the next, a kill switch set once stays set, a state machine lives across days without a database.
A stop that only becomes live after the target has printed once. An entry that requires three separate conditions to agree before a single token moves. A family of plugs coordinated through one shared flag instead of a person relaying state between them. Strategies that survive are the ones whose conditions are written down and enforced, because a rule that lives in someone's head is not a rule, it is a mood.
Dollar-cost average on Base · 4 plugs



Steers control flow by comparing two values: branch, loop, or require the condition holds.
Reach for it to guard a write behind a read, such as requiring a health factor stays above a floor, to branch between two strategies on a price, or to repeat a step until a balance target is met. Use the comparison action when you need the boolean as a value.



Reads a boolean flag from the socket's global storage by key.
Reach for it to coordinate plugs: read a flag another plug set, then branch on it with a predicate, so one run can mark a milestone and later runs react to it.



Writes a boolean flag to the socket's global storage under a key.
Reach for it to record state across executions: mark that a one-time setup has run, that a position was opened, or that a threshold was crossed, so a later run can branch on it instead of repeating work.



Flips a boolean flag in the socket's global storage.
Reach for it to alternate behaviour between runs, such as rebalancing in opposite directions on successive executions, without tracking the previous state yourself.
Posts · 18