Inspiration

BBS door games were small, strange and social. You dialed a stranger's computer, typed a handle, read the SysOp's bulletins and played a text adventure at 2400 baud, and sometimes the line just died. We wanted that feeling back, with one modern twist: an LLM that narrates and understands free text, kept on a very short leash. What we resurrect is the BBS itself, busy signals and dropped carriers included.

What it does

You dial in through a CRT-style web terminal, or through a real telnet client on your own machine. You see a title screen, log in, pick a handle, read funny SysOp bulletins and choose a door. The Haunted Maze is a 13-room story with a skeleton, a riddle that hides a hatch, and the SysOp's ghost. You type free text ("take the lantern", "answer keyboard") and the game replies in 80 columns of green or amber phosphor, paced at modem speed.

The signature feature is the carrier drop. During a fight the engine may cut your line. It saves the game, prints +++ATH0 and NO CARRIER, and hangs up. Call back with the same handle and you resume the same round with the same dice, so you cannot dodge a bad roll by reconnecting.

How we built it

One rule: the LLM never changes the game. A Python engine (Pydantic v2) owns hit points, dice, inventory and rooms. The model only narrates what the engine decided, or turns free text into a typed proposal that the engine checks against an allow-list and the rules. If the model is slow, wrong or switched off, a deterministic offline narrator takes over, so the game also runs with no API key.

How Kiro shaped the work:

  • Specs first. EARS requirements, a design with 17 correctness properties, and ordered tasks with a verify command each.
  • Steering. 13 steering files: the golden rule, code style (200-line files, no nested loops), retro-terminal rules, testing, and human gates.
  • Hooks. Seven hook files run real scripts: tests and lint on save, file length, nested loops, story-graph validation, and a check that .kiro/ is never gitignored.
  • Property-based tests. Hypothesis on the rules, the stores and the renderer.
  • Kiro Crew. A Kiro Crew bot (Mate) conducted the build. It split the work into items, ran one worker per item, and verified every "done" itself by re-running the checks. The human gates were written as a steering file: agents stopped before the first playable turn, combat, story tone, AWS deploys and submission until the human said go. Every decision and correction is a [crew] entry in DEVLOG.md.

Telnet and the web terminal share one session facade and one render pipeline, and a test checks that both send identical bytes. The public demo is serverless on AWS (S3, CloudFront, API Gateway, Lambda, DynamoDB) with Amazon Bedrock (Nova Lite) as the narrator.

Challenges we ran into

  • 80 columns, always. Hypothesis broke our wrapper twice: a soft hyphen that some terminals draw as a column, and an accent that CP437 writes as ?, which made a box 81 columns wide. We now measure the bytes we send, not the text we started with.
  • A green run that was not green. A worker reported all checks passing. A second run found the 81-column bug. Now we run property tests several times before believing them.
  • A cost cap that leaked. Reading our DynamoDB condition showed that a daily cap of zero let one call through. Fixed and pinned with a test.
  • A hang we never reproduced. Chasing it exposed a real race in the file store (two saves of one handle shared a temp file). We fixed it and added a test timeout.
  • Model access is account state. The model we wanted failed in our AWS account, so model ids live in environment variables.

Accomplishments that we're proud of

  • A model that has no way to change a number, and 462 tests, property tests included, that show it.
  • The carrier drop: a random disconnect decided by the seeded engine, saved, and resumed exactly.
  • A public demo with spending guards: API throttling, login lockout, and per-session and daily LLM call caps.
  • A DEVLOG.md that tells the truth, bugs included.

What we learned

Writing the rules first (steering, EARS, properties) made decisions cheap and kept agents inside the lines. One green run of a random test proves little. Hooks that run real scripts beat reminders.

What's next for The Telnet Tales

More stories on the same YAML format, a 2d6 combat variant with fumbles and critical hits, and more doors on the same board.

Built With

Share this project:

Updates

Submission history