> For the complete documentation index, see [llms.txt](https://docs.wormbrain.info/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.wormbrain.info/explore-wormbrain/02-the-worm/how-a-worm-decides.md).

# how a worm decides

Cells get louder or quieter. Enough of the right cells get loud, and the body moves.

That is still what happens here. We only changed what "loud" is pointed at.

## A crawl in four beats

1. **Something hits a sensor.** In soil, a chemical lands on the nose. Here, a change in price, flow, or liquidity becomes a small current on named sensory cells.
2. **The signal fans out.** Sensory cells talk to interneurons. Interneurons talk to each other. A few steps. Not a hundred.
3. **Command cells pick a side.** Forward and reverse cannot own the body at once for long. One side wins, or neither does.
4. **Motor cells bend muscle.** In a dish, the worm crawls. Here we stop at the command cells and treat that win as an order intent.

<figure><img src="https://1059824729-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJhKk8fm2HPrujdtw7SP3%2Fuploads%2FnHQ8Wdav0JR1qpS1qkZX%2Fcommand-circuit.png?alt=media&amp;token=3a10bfdd-8bb2-4f94-978c-11555b4f7106" alt=""><figcaption></figcaption></figure>

## Toward and away

The same animal walks toward food and away from a sting. Different nose cells start those two stories.

* Attractive smells tend to run through **AWA** and **AWC**, then through interneurons that favor a forward search.
* Harsh or bitter things tend to hit **ASH**, which feeds circuits that back the animal up.

That split is why a chart can be more than one number. A rising price written onto an attractive cell is a different story from the same rise written onto ASH. We had to pick those assignments. They are listed in [The translation](file:///3621209/03-the-experiment/the-translation.md).

## A modest kind of memory

Worms can learn. A smell that came with a punch gets treated differently later. That is not a diary. It is a change in how strongly some cells answer the next time the smell shows up.

Our training is in that spirit. After a stretch of trading we adjust a small set of listening strengths and leave the wiring alone. The worm does not remember "I bought at noon." It remembers, in a dull chemical way, that a pattern of nose current went with a shove from the market.

## Pause is a decision

People watch a quiet wallet and assume the system stalled. In the animal, standing still is normal. If neither command side wins, we do not invent a trade to keep the feed interesting.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.wormbrain.info/explore-wormbrain/02-the-worm/how-a-worm-decides.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
