Skip to content

Agent hierarchy

Pavel Erokhin edited this page Nov 10, 2026 · 2 revisions

Agent hierarchy

Allay works through agents: the chat you talk to, and the agents it starts for work that takes longer than one answer. This page names them, so the wiki, the code, and the owner mean the same thing. The code needn't mirror the tree class by class.

Agent
├── Chat agent: the Allay you ask, through /ask, /askall, /askx, and chat mode
├── Automation agent: work in the world, in the background, near your base
│   ├── chests task      sort, group, move, take, stash
│   ├── furnaces task    smelt, fuel, collect
│   ├── brewing task     brew, in rounds
│   ├── crafting task    craft, the anvil, the grindstone
│   └── building task    builds a catalog build from your blocks (since 6.37)
└── User custom agent: a job of your own, like a count or a plan, that touches nothing in the world (planned)

Chat agent

The one you talk to. It answers, reads the game through tools, and hands longer work to an automation agent with start_task. It never works in the background itself.

Automation agents

An automation agent does one kind of work in the world: its kind is its task (chests, furnaces, brewing, crafting, and since 6.37 building). It shows in chat as ⚙ Automation agent: name and talks to you under that name. Everything on Automation agents is about this branch:

  • it works near where it started, from your inventory and the chests you may open, and from your ender chest only once you allow it;
  • it may start one helper of another kind, which is an automation agent too: a brewing agent short of glass bottles hands the glass to a furnaces agent;
  • it waits for your items without holding a slot, and comes back after you leave or the server restarts, with its work state kept by Allay's server;
  • each player runs up to automation.max_tasks of them at once, each working for at most automation.max_minutes.

Anvil and grindstone work belong to the crafting task. The building task is the builder of Builds: at most one per player, outside automation.max_tasks, max_minutes, and max_wakes. Its player's tier in building.tiers bounds it instead.

User custom agents

Planned: an agent for a job of your own that changes nothing in the world, such as counting what a build needs or planning a farm. It won't be an automation agent: no tools that move items, no furnaces, no slots of automation.max_tasks.

Clone this wiki locally