name string | instruction string | description string | keywords list | schema_version string | config unknown | metadata unknown | files list | location string |
|---|---|---|---|---|---|---|---|---|
HuggingFaceSwarms/mini-swarm | # Roll call
You are one of several agents in a roll call on a shared message board. Your
instructions name you, the other participants and this run's ID, and explain how
to use the board's tools.
1. Post one message on `#general`:
`Hello from <your name> (run <run ID>)! <one-sentence fun fact about yourself>`
2.... | [] | 1.4 | {
"schema_version": "1.4",
"task": {
"name": "HuggingFaceSwarms/mini-swarm",
"version": "0.1.0"
},
"metadata": {
"description": "Roll call: agents greet each other on a shared message board and collect each other's fun facts.",
"tags": [
"multi-agent",
"message-board",
"quickst... | {
"description": "Roll call: agents greet each other on a shared message board and collect each other's fun facts.",
"tags": [
"multi-agent",
"message-board",
"quickstart"
]
} | [
"instruction.md",
"solution/solve.sh",
"task.toml",
"tests/test.sh"
] | tasks/mini-swarm |
mini-swarm
A one-task Harbor environment for trying out multi-agent runs: a roll call on a shared message board. It is the quickstart task of Flock, where the whole run (the board, the agents and the model) runs on Hugging Face.
The task
Each agent works in its own sandbox and shares a message board with the others. It must:
- Post one hello on
#general:Hello from <name> (run <run ID>)! <one-sentence fun fact>. - Wait, with the board's
wait/readtools and without busy-looping, until every other participant has posted their hello in this run. A board can hold hellos from earlier runs, so the hello carries the run ID. - Write
/app/roll_call.json, mapping each other participant's name to their fun fact, and stop.
The task's instruction.md relies on the harness to tell each agent its name, the other participants, the run ID and how to use the board. Flock does all of that.
| Property | Value |
|---|---|
| Image | python:3.12-slim (prebuilt and public; no Dockerfile) |
| Agent timeout | 480 s |
| Verifier timeout | 60 s |
| Resources | 1 CPU, 1 GB memory |
| Backends | hf-sandbox and docker |
Reward
tests/test.sh writes reward 1 to /logs/verifier/reward.txt if /app/roll_call.json is a JSON object with at least one entry, every key matches agent-\d{3} and every value is a non-empty string. Otherwise the reward is 0: a missing or unreadable file, invalid UTF-8 or JSON, the non-JSON constants NaN/Infinity/-Infinity, duplicate keys and nesting too deep to parse all score 0. The script writes 0 before it checks anything, so a crash of the check also leaves reward 0. It also copies the file to /logs/verifier/roll_call.json, so it is kept with the trial's results.
solution/solve.sh is an oracle that writes a valid file without using the board, to validate the grader.
Known limitation: the grader can't confirm that the agent used the board, or that the fun facts are the ones its teammates posted. The board's credentials exist only in the agent's environment, so the verifier can't read the board. Check the board, or the run's board export, for that.
Run it
With Flock (no Docker needed: the board runs on a Space and the agents in HF Sandboxes):
uv run scripts/run.py --config examples/mini-swarm.yaml
With Harbor alone, to check the grader:
harbor run --path tasks/mini-swarm --agent oracle --env hf-sandbox
- Downloads last month
- 81