πŸŒ€ Fibonacci Game
Source: Notion task β€œPublish the Fibonacci Game site on the public site” (private notes) Β· code in fib-game/ Β· built 2026-11-24

Four dwarves. Four algorithms.
One Fibonacci sequence.

The Fibonacci Game is a demonstration of several AI coding agents working together in Herdr, a terminal workspace for coding agents. A supervisor agent, The Supe, received one assignment and split it across four agents named after dwarves. Each dwarf wrote its own Fibonacci generator with a different method and drew the numbers in a different ASCII style. Then all four displays ran side by side for 75 seconds.

0, 1, 1, 2, 3, 5, 8, 13, 21, 34 …F(n) = F(nβˆ’1) + F(nβˆ’2)

The players

πŸ§ͺ Doc

PythonFast doubling

Laboratory ledger

Measures everything, twice, and writes it in the ledger.

😠 Grumpy

C2Γ—2 matrix exponentiation

Grumpy scoreboard

Squares a matrix. Complains about it.

🌈 Happy

Node.jsLazy generator with BigInt

Rainbow golden spiral

Adds the last two numbers and celebrates every result.

😴 Sleepy

bash + bcBinet's closed form

Sleepy night sky

Uses a formula so it never has to count. Still falls asleep.

All four at the same moment

These are the four display panes 35 seconds into the run, captured from Herdr with their colours. Each one is a real terminal screen, not a mock-up. The show page steps through seven moments of the run.

Doc's show Β· t = 35 s
β”Œβ”€β”€β”€β”€β”€β”€β”€ LABORATORY LEDGER Β· F(n) by fast doubling ────────┐
β”‚       nβ”‚             F(n)β”‚ digitsβ”‚ F(n)/F(n-1)β”‚      |Δφ|β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚      58β”‚     591286729879β”‚     12β”‚1.6180339887β”‚   3.3e-24β”‚
β”‚      59β”‚     956722026041β”‚     12β”‚1.6180339887β”‚   1.3e-24β”‚
β”‚      60β”‚    1548008755920β”‚     13β”‚1.6180339887β”‚   4.9e-25β”‚
β”‚      70β”‚  190392490709135β”‚     15β”‚1.6180339887β”‚   3.2e-29β”‚
β”‚      80β”‚23416728348467685β”‚     17β”‚1.6180339887β”‚   2.1e-33β”‚
β”‚      90β”‚28800671943…(19d)β”‚     19β”‚1.6180339887β”‚   1.4e-37β”‚
β”‚     100β”‚35422484817…(21d)β”‚     21β”‚1.6180339887β”‚   9.3e-42β”‚
β”‚     128β”‚25172882568…(27d)β”‚     27β”‚1.6180339887β”‚     1e-52β”‚
β”‚     200β”‚28057117299…(42d)β”‚     42β”‚1.6180339887β”‚     1e-82β”‚
β”‚     256β”‚14169381771…(54d)β”‚     54β”‚1.6180339887β”‚    1e-106β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚β Ό t=34.9s  next F(500)…  last F(256): 1Β΅s, 9 doublings    β”‚
β”‚[β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘]  46%β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
Grumpy's show Β· t = 35 s

                GRUMPY SCOREBOARD   n = 49

                          Q^49 =
               ⎑ 12586269025  7778742049 ⎀
               ⎣  7778742049  4807526976 ⎦

                          F(49)
         β–ˆβ–ˆβ–ˆ β–ˆβ–ˆβ–ˆ β–ˆβ–ˆβ–ˆ β–ˆβ–ˆβ–ˆ β–ˆβ–ˆβ–ˆ β–ˆ β–ˆ β–ˆβ–ˆβ–ˆ β–ˆβ–ˆβ–ˆ β–ˆ β–ˆ β–ˆβ–ˆβ–ˆ
           β–ˆ   β–ˆ   β–ˆ β–ˆ β–ˆ   β–ˆ β–ˆ β–ˆ   β–ˆ β–ˆ β–ˆ β–ˆ β–ˆ β–ˆ β–ˆ
           β–ˆ   β–ˆ   β–ˆ β–ˆβ–ˆβ–ˆ   β–ˆ β–ˆβ–ˆβ–ˆ β–ˆβ–ˆβ–ˆ β–ˆ β–ˆ β–ˆβ–ˆβ–ˆ β–ˆβ–ˆβ–ˆ
           β–ˆ   β–ˆ   β–ˆ β–ˆ β–ˆ   β–ˆ   β–ˆ β–ˆ   β–ˆ β–ˆ   β–ˆ   β–ˆ
           β–ˆ   β–ˆ   β–ˆ β–ˆβ–ˆβ–ˆ   β–ˆ   β–ˆ β–ˆβ–ˆβ–ˆ β–ˆβ–ˆβ–ˆ   β–ˆ β–ˆβ–ˆβ–ˆ

            Yes, it's still growing. Shocking.
              41s left. Ctrl+C if you must.
Happy's show Β· t = 35 s
  β€’                                   β€’βœ¦β€’β€’β€’βœ¦β€’β€’β€’             
  β€’                                β€’β€’β€’         β€’β€’β€’          
  β€’                               ·✦              ·✦        
  β€’β€’                              β€’        267914296β€’β€’      
  β€’β€’                              β€’                 β€’β€’      
   ✦*                             Β·β€’                 β€’      
   ✦*+                             β€’β€’+β€’              β€’      
    *+                                               β€’      
     +·✦     701408733                               β€’      
      β€’β€’β€’                                           β€’β€’      
        β€’β€’                                         β€’β€’β€’      
          β€’β€’                           433494437  β€’β€’β€’       
           β€’β€’β€’                                   +Β·         
              β€’β€’β€’                              ✦*+          
                 β€’β€’β€’β€’                        β€’β€’β€’            
                    β€’β€’β€’β€’*+               β€’β€’β€’β€’               
                          Β·β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’+β€’β€’β€’                   
Spiralling with joy!
n=44  F(44)=701408733
Sleepy's show Β· t = 35 s
 sleepy fibonacci ~ binet's closed form
                ..                      .          _.._
       .                     *        .          .' .-'
         .             .                         |  (
 .F(9) = 34                        .             '. '-.
                                                   `''`
                 . z Z z                     .
  F(10) = 55            +                .
     .
 +                             .                  .
  F(11) = 89z Z z                     .
                                       .       .
            .                                 .
     .       .   z                          .

                       .                      .

  ...*yawn*... F(1
 n=12  scale=23  bc -l      dawn in 41s

At a glance

DwarfLanguageMethodCost per term DisplayFurthest term
πŸ§ͺ DocPythonFast doublingO(log n) big-integer multiplications per termLaboratory ledgerF(20,000,000), 4,179,753 digits (shown abbreviated)
😠 GrumpyC2Γ—2 matrix exponentiationO(log n) 2Γ—2 matrix products, fixed-width 64-bit integersGrumpy scoreboardF(93), the largest value that fits in 64 bits, then it starts again at F(0)
🌈 HappyNode.jsLazy generator with BigIntO(1) additions per term, exact arbitrary-size integersRainbow golden spiralF(94) = 19,740,274,219,868,223,167
😴 Sleepybash + bcBinet's closed formOne high-precision power per term (precision grows with n)Sleepy night skyF(24) = 46,368 (slow on purpose: it is sleepy)

How to run it

fib-game/show-all.sh               # inside Herdr: all four start at once in the "Show" tab
fib-game/<dwarf>/run.sh            # one display in any terminal (about 75 s; Ctrl+C stops it)
fib-game/<dwarf>/run.sh --verify   # check the numbers; exit code 0 means pass
The team β†’