> 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/04-lab/senses-and-motors.md).

# senses and motors

This is the refined bit. It is still a short list. If a cell is not here, it still runs. It just is not a door we write through or a door we read.

<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>

## On the way in

| Cell / pair           | Usual job in the animal          | What we write onto it                                       |
| --------------------- | -------------------------------- | ----------------------------------------------------------- |
| AWA, AWC              | Attractive odors                 | Slow price drift, treated as food getting closer or farther |
| ASE                   | Salt and other dissolved cues    | Fresh flow into or out of the token                         |
| ASH                   | Harsh touch and bitter chemicals | Wicks, spikes, air pockets in the book                      |
| FLP, OLQ              | Nose touch                       | Edge of the book, empty-looking depth                       |
| AFD, BAG, URX         | Temperature and gases            | Background weather: quiet book vs jumpy book                |
| PVC, DVA neighborhood | A shove from behind              | Fill, miss, or veto, so the body feels the last act         |

Currents are bounded. Units are arbitrary on purpose. We care that a shock is larger than a drift, not that "one percent equals 0.7 of something."

## In the middle

We do not steer the middle. AIA, AIY, AIB and the rest do what the table says. Training may change their listening strength. A person does not reach in and flip them.

Two pairs get watched because the literature already treats them as a hinge:

* **AIA / AIY** sit on paths from the salt-and-odor sensors toward a search.
* **RIM / RIB** sit near the pivot between going and stopping.

Their voltages show up on the lab readout so a viewer can see whether the middle is calm or noisy. They are not extra trading buttons.

## On the way out

| Readout | Cells we listen to              | Decoder rule, in words                        |
| ------- | ------------------------------- | --------------------------------------------- |
| Forward | AVB and the forward command set | Stay above a line for a stretch of model time |
| Reverse | AVA, AVE and the reverse set    | Same rule, other side                         |
| Pause   | Neither side                    | Default                                       |

The decoder is a state machine with a short memory. A one-tick spike does not count as a crawl. A long, clean win does.

We do not read motor neurons on the ventral cord to place orders. Those cells would bend muscle. The market does not have muscle. Command cells are the last honest place to stop.

## Why the names matter

Every label above is a name you can look up in WormBase or the 2019 tables. That is the whole reason to keep them. "Sensor 7" would have been easier to write and easier to fake.


---

# 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/04-lab/senses-and-motors.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.
