You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
345 words in the live dictionary (run WORDS to list them). Organized by
category below. Stack effects use standard Forth notation ( before -- after );
words shown without one are ( -- ) (pure side effect / print). Words whose
name ends in " parse a trailing string argument up to a closing ".
Stack
Word
Effect
Word
Effect
DUP
( a -- a a )
2DUP
( a b -- a b a b )
DROP
( a -- )
2DROP
( a b -- )
SWAP
( a b -- b a )
NIP
( a b -- b )
OVER
( a b -- a b a )
TUCK
( a b -- b a b )
ROT
( a b c -- b c a )
.S
print stack
Arithmetic & Logic
Word
Effect
Word
Effect
+-*/MOD
arithmetic
=<>>=
comparison
ANDORNOTINVERT
bitwise logic
ABSNEGATEMINMAX
math
1+1-2*2/
shortcuts
0=0<<>TRUEFALSE
predicates
>= is ( a b -- flag ); INVERT is ( n -- ~n ) (bitwise complement, alias
of NOT).
Memory
Word
Description
@!
fetch / store
HERE,C,ALLOTCELLS
data space allocation
VARIABLECONSTANTCREATEDOES>
data words
DOES> attaches runtime behavior to the most recently CREATEd word
(seed-level approximation — the code after DOES> in a definition becomes that
word's action).
leave the REPL — BYE auto-saves first, QUIT exits immediately
HELP prints the top-level guide; the topic pages are HELP-STACKHELP-MATHHELP-MESHHELP-GOALSHELP-MONITORHELP-SPAWNHELP-IOHELP-COLONYHELP-PERSISTHELP-EVOLVEHELP-DISTHELP-MEMORYHELP-IMMUNE (all ( -- )).
S-Expressions
Word
Description
SEXP"
parse S-expression, translate to Forth, execute
SEXP-EVAL"
evaluate an S-expression in a sandbox, print its (result ...) envelope
SEXP-SEND"
broadcast S-expression to mesh peers
SEXP-RECV
drain inbound S-expression messages
Mesh & Gossip
Word
Description
MESH-STATUSMY-ADDRMESH-HELLO
mesh info (print)
PEERS
( -- n ) peer count (alias of PEER-COUNT)
ID
( -- addr n ) node id string written to PAD
PEER-COUNT
( -- n ) count of connected peers
MESH-AVG-FITNESS
( -- avg ) mean fitness across self + peers
LOADCAPACITY
( -- n ) local load metric / capacity threshold
PEER-TABLEMESH-STATSMESH-KEY
cross-machine
CONNECT"DISCONNECT"
manual peer management
SEND
( addr n peer -- ) raw broadcast (peer arg ignored)
RECV
( -- addr n peer ) next message, or 0 0 0 when empty
PROPOSEREPLICATE
broadcast this unit's serialized state (consensus / direct)
DISCOVERAUTO-DISCOVER
LAN discovery
SHARE"SHARE-ALLAUTO-SHARESHARED-WORDS
word sharing (real decompiled source since v0.40)
SWARM-ONSWARMSWARM-STATUS
swarm mode (SWARM-OFF only prints — the toggles stay on)
AUTO-SPAWNAUTO-CULL
toggle population auto-grow / auto-shrink
MIN-UNITSMAX-UNITS
( n -- ) population bounds for auto-spawn/cull
Distributed Computation
Word
Description
DIST-GOAL{
distribute pipe-separated expressions across peers
DIST-STATUS
show active distributed goals
DIST-CANCEL
cancel all distributed goals
RECRUIT"
send "<peer> <s-expr>" as a recruit round-trip
RECRUITS
show outstanding and collected recruit round-trips
RECRUITS-SEXP
machine-readable slot status — one parseable (recruit-slot :id … :state pending|unplaced|ok|err …) per line (the stable surface for harnesses/tooling)
PARALLEL"
run "(parallel (e1) (e2) ...)" under local resource pressure, print collected results
Genetic Programming
Word
Description
GP-EVOLVE
run 10 generations (call repeatedly to continue)
GP-STATUSGP-BEST
inspect evolution state
GP-STOPGP-RESET
control evolution
Immune System & Energy
Word
Description
CHALLENGES
list all challenges with status and reward
IMMUNE-STATUS
summary: solved, unsolved, antibody count
ANTIBODIES
list learned SOL-* words
ENERGY
current energy level and efficiency
METABOLISM
full metabolic report with cost/reward table
FEED
( n -- ) manually add energy (capped at 500)
LANDSCAPE
landscape status: depth, environment
DEPTH
evolutionary depth metric
GENERATORS
list top generators by fitness and program
META-EVOLVE
run one generation of generator evolution
SCORERS
list top scoring functions (third-order)
META-DEPTH
evolution depth at all three levels
GENERATE-CHALLENGE
evolve and register a new challenge from best generator
( goal-id -- ) combined results across a goal's tasks
SUBTASK{FORKRESULTSREDUCE"PROGRESS
decomposition
AUTO-CLAIMTIMEOUT
execution control
GOAL-COUNT
( -- total pending active completed failed ) goal tallies
TASK-COUNT
( -- total waiting running done failed ) task tallies
Built-in demo goals (each ( -- id )): PING-GOALMATH-GOALSTRESS-GOALWORDS-GOALHELLO-WORLD.
Monitoring
Word
Description
WATCH"WATCH-FILE"WATCH-PROC"
( interval -- id ) create watches
WATCHESUNWATCHWATCH-LOGUPTIME
manage watches
ON-ALERT"ALERTSACKALERT-HISTORYHEAL
alerting
ALERT-THRESHOLD
( level -- ) set alert level; reads a trailing watch-id"
CHECK-WATCHESRUN-HANDLERS
( -- ) run due checks / fire alert handlers
WATCH-COUNTALERT-COUNT
( -- n ) watch / active-alert counts
DASHBOARDOPS
overview (print)
HEALTH
( -- score ) numeric health score
HEALTH-PORT
( -- port ) replication port (0 if mesh offline)
EVERYSCHEDULEUNSCHED
scheduling
Fitness & Mutation
Word
Description
FITNESSLEADERBOARDRATE
scoring
MUTATEMUTATE-WORD"UNDO-MUTATEMUTATIONS
mutation
MUTATE-RANDOM
( -- flag ) mutate a random word; -1 on success, 0 if none
UNDO-LAST-MUTATION
( -- ) revert the most recent mutation
SMART-MUTATEMUTATION-REPORTMUTATION-STATS
smart mutation
EVOLVEAUTO-EVOLVEBENCHMARK"
fitness-driven evolution
RUN-BENCHMARK
( -- score ) run the benchmark, push its score
Spawn & Replication
Word
Description
SPAWNSPAWN-N
local replication
PACKAGEPACKAGE-SIZE
build UREP package
REPLICATE-TO"
remote replication
TRANSPORT
self-relocate to a sufficient-first destination with confirm-before-release (costs 150; no-op when not mislocated, no destination, or starving). Unit-invoked, GP-mutable. See self-replication.md
CHILDRENFAMILYFAMILY-TREEGENERATIONKILL-CHILD
lineage
CHILD-COUNT
( -- n ) number of local children
SPAWN-TEST
( -- ) spawn one child and announce it (demo helper)
Inter-unit signaling — direct (peer inbox) and environmental layers.
See signaling.md for the design rationale.
Word
Stack effect
Cost
Description
SAY!
( v -- )
3
broadcast value v to neighbors' inboxes
LISTEN
( -- v -1 | 0 )
0
pop oldest inbox entry; push value+flag, or 0 if empty
INBOX?
( -- n )
0
push count of pending inbox entries
MARK!
( v -- )
5
deposit v into per-host environmental field, keyed by dominant niche (native only; WASM shim)
GIVE
( n -- )
n+1
donate n energy (max 500) to the neediest sibling — conserved: donor spends n+1, recipient earns n, 1 friction dissipates; a lone unit's gift returns minus friction
SENSE
( -- v )
0
read current environmental strength for this unit's niche (native only; WASM shim)