숫자를 더하던 에이전트들을 섬에 풀어봤다
ollama-swarm-test는 Qwen3 0.6B를 쓰는 에이전트 셋에게 숫자를 나눠 더하게 하는 실험으로 시작했다. 각자 8, 11, 13을 내놓았고 마지막 에이전트가 합쳐서 32를 맞혔다. 직접 질문을 던져 답을 모으는 모드도 붙이고, 투표도 넣어봤다. 그러다 정답이 정해진 문제 말고, 셋을 한 공간에 놓으면 뭘 할지가 더 궁금해졌다.
처음 만든 섬에는 10턴 뒤에 폭풍이 왔다. 첫 실행에서는 30번 중 23번이 잘못된 선택으로 처리됐다. 번호만 받아야 하는데 모델이 메뉴 문구까지 복사하거나 목재 비용인 -2를 답으로 내놓곤 했다. 매 턴 가능한 선택지를 JSON 스키마에 넣고 나서야 잘못된 선택이 0/30으로 줄었다. 그래도 아무도 살아남지 못했다. 30번 중 16번을 음식 나눔에 썼고, 대피소는 필요한 14 중 8까지만 지었다. 응답 형식을 고친 덕에 비로소 가만히 있는 이유와 자원을 엉뚱하게 쓰는 이유를 따로 볼 수 있었다.
폭풍을 빼고 자유 샌드박스로 바꾸자 다른 종류의 반복이 나왔다. 처음엔 표지판에 자기 말 대신 ‘표지판 짓기’ 메뉴 설명을 적었다. Three.js로 옮긴 뒤에는 주민 셋이 각자의 관찰과 기억을 가지고 로컬 Ollama 모델에 차례대로 물어보게 했다. 이 버전에서는 Qwen3 4B도 한 실행에서 완료된 행동 34번을 전부 이동에 썼다. 별도로 행동 종류를 먼저 고르게 한 실행에서도 계속 탐색을 골랐다. Gemma 3 4B로 바꾸고 한 번에 전체 행동을 고르는 방식으로 돌렸을 땐 이동이 30번 중 26번으로 여전히 많았지만, Mugi가 표지판 두 개를, Sora가 벤치 두 개를 실제로 지었다. 모델과 선택 방식을 둘 다 바꿨고 실행 수도 적어서, 어느 쪽 덕인지는 아직 모른다.
최근엔 Sora가 큰 캠프파이어를 만들고 싶어 하는 것처럼 보였다. 예전에 Nori랑 이야기하자고 하고 벤치까지 지은 건 로그에 남았지만, 이번 캠프파이어는 아직 관찰 중이다. 다음에는 말을 몇 번 반복하는지보다, 턴이 지나도 같은 계획을 이어서 재료를 모으고 실제로 짓는지를 보고 싶다.
Read in English: I let my number-crunching agents loose on an island
ollama-swarm-test started with three Qwen3 0.6B workers splitting up an addition problem. They got 8, 11, and 13, and a final agent added them up to 32. I added a mode where I could ask my own questions, then tried voting. Eventually I got more curious about what the agents would do in a shared space without a known answer.
On the first island, a storm arrived after ten turns. In the first run, 23 out of 30 choices were invalid. The model sometimes copied the whole menu entry instead of returning a number, or returned the wood cost, -2. Putting each turn’s legal choices into a JSON schema brought invalid choices down to zero. Nobody survived anyway. The agents spent 16 of their 30 actions giving food away and reached only 8 of the 14 shelter points they needed. Fixing the response format let me distinguish actions that never ran from legal choices that didn’t help enough.
Removing the storm brought out different loops. The first sandbox agents copied the menu description onto their signs. After moving to Three.js, I had the three residents take turns calling one local Ollama model, each with their own observations and memory. In that version, Qwen3 4B spent all 34 completed actions in one run moving. In a separate run where it had to pick an action category first, it kept choosing exploration. When I tried Gemma 3 4B with the full action list, 26 of 30 completed actions were still moves, but Mugi actually built two signs and Sora built two benches. I changed both the model and how choices were presented, so those runs don’t tell me which made the difference.
Lately Sora has looked like she wants to build a big campfire. The logs do show her inviting Nori to talk and building benches earlier. The campfire is still something I’m watching for. What I want to see next is whether the plan lasts long enough for her to gather materials and build it.
