> 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/the-302-neurons.md).

# the 302 neurons

Three hundred and two sounds tiny until you remember each cell has a name, a spot in the body, and a job people have poked at for years.

Most come in left and right pairs. AVAL and AVAR are the two AVA cells. People say "AVA" and mean the pair.

## Three jobs

| Kind         | Rough job                              | Examples                                  |
| ------------ | -------------------------------------- | ----------------------------------------- |
| Sensory      | Notice the world                       | AWA, AWC, ASH, ASE, AFD, nose-touch cells |
| Interneurons | Mix those notices and pick a direction | AIA, AIY, AIB, AVA, AVB, AVE, RIM, RIB    |
| Motor        | Talk to muscle                         | Ventral-cord cells that bend the body     |

Signal usually runs sensory to interneuron to motor. It is not a single file line. Cells talk sideways. Some talk back. That mess is why we run the whole map instead of three arrows on a slide.

## The command layer

A handful of interneurons decide whether the body goes or stops.

* **AVB** and the forward set: activity here lines up with crawling ahead.
* **AVA** and the reverse set: activity here lines up with backing up.
* **Pause:** neither side wins long enough to count as a step.

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

In a dish those cells drive muscle. In WormBrain we read the same cells and treat a clean forward win as a buy intent, a clean reverse win as a sell intent, and a muddle as wait. The decoder is on [Senses and motors](file:///3621209/04-lab/senses-and-motors.md).

## ![](https://1059824729-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJhKk8fm2HPrujdtw7SP3%2Fuploads%2FpbGJxQQHQsHyUdNV8BDb%2FSomeCells.png?alt=media\&token=e301678a-82ea-4438-8ef7-fd171a5ab8d1)

## The throat has its own twenty

Twenty of the 302 run the pumping pharynx that swallows bacteria. We load them because they are in the table. They do not place orders. The market readout comes from the crawl commands, not the throat.

## What we refuse to pretend

We do not simulate every drop of fluid. We do not grow new cells. We do not add a 303rd neuron called "portfolio manager." If a cell is in the published hermaphrodite list, it is in the run. If it is not, it is not.


---

# 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/the-302-neurons.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.
