SYNTAX: three element types, one element chosen from each SYNTAXVersion 0.30.0

taali

30 November 2026

Two colours of squares on a grid. Each square moves to an empty cell when fewer than four in ten of the squares around it share its colour.

In eleven steps the grid has sorted itself into blocks of one colour. No square was asked to do that.

That is an agent-based model: every square follows the same small rule, and the blocks are made by none of them.

My students do not know how to code, and I wanted them to be able to make one, so I made taali.

You drag a block into each of eleven slots: the space, its edges, the kinds of agent, whom each one notices, how it moves, how agents are linked, the rule, the order of turns, what you watch, when it stops, and whether a run can be repeated exactly. Numbers are set with sliders. Nothing is typed.

The model runs on the page while you build it. You can save it as JSON or YAML, as a web page, or as plain JavaScript with a note above every part saying which block it came from and what changing each number does.

The web page taali saves carries the library inside it. It runs offline and never needs taali again.

The eleven slots come from SYNTAX, my site that breaks kinds of things into their parts. The agent-based model syntax has 39 blocks.

It also says what it leaves out: models made of equations about whole groups, a single agent alone, and agents that talk or write.

Underneath is AgentJS, the JavaScript library for agent-based models that taali runs on, now on npm as @prayas_abhinav/agentjs-core. This week I added a site with live examples.

I also added the rules, links between agents, charts and endings that taali needed.

taali is half of a saying, taali ek haath se nahi bajti: a clap does not ring from one hand.

taali: https://taali.syntax.prayasabhinav.net

The agent-based model (ABM) syntax: https://syntax.prayasabhinav.net/agent-based-model/

AgentJS: https://prayasabhinav.github.io/AgentJS/

All notes