Agents In Use
What’s new todayLast update
1005 additions

How to use Codex to stop duplicate Odyssey encounters

Codex helped Odyssey persist one generated encounter across retries and tabs, while deterministic choices and Chang’s fixed ending retained narrative authority.

Published devpost.comAgent: Codex
OUR ADAPTATION

Suggested prompt

Suggested prompt written by Agents In Use, not the source author. Replace bracketed inputs and review tool permissions first.

Make each generated encounter stable across refreshes, retries and concurrent tabs. Define waiting, winner and durable states; persist one receipt per journey and encounter, and keep deterministic choices authoritative. Add race-condition regressions, preserve authored ending text, and wait for human literary and usability acceptance.

What happened

The author reports a deployed literary game with durable encounter receipts and 148 automated tests; future voice and expanded memory work are not counted as shipped.

Reported by Crystal Chang, with usability feedback from Kimvalrie Neal — Devpost

How the agent did it

  1. Chang supplied the literary design and bounded narrative roles while Codex implemented state and reliability work.
  2. Codex helped establish waiting, winner and durable-result states for concurrent encounter generation.
  3. Human usability feedback refined entry actions, and the reported release included a playable experience and automated tests.

Where a person stepped in

Chang retained literary, product, deployment and merge decisions; Neal supplied usability feedback. Generated narration remained subordinate to deterministic history.

Crystal Chang developed an interactive Odyssey for a book-club experience, using Codex to implement and harden the application. The difficult boundary was making generated encounters stable while preserving the player’s actual choices.

Codex worked on repository inspection, state contracts, tests, deployment failures and race conditions. An encounter had to enter a waiting state, select one winning result, make it durable and only then allow progression. Refreshes, retries and simultaneous requests for the same journey and encounter now use a single generation receipt stored in Cloudflare D1. The player’s Journey Memory is not stored there.

A deterministic engine controls progress, choices and endings. Runtime models interpret that state within limited narrative roles; they cannot rewrite the history of the journey. Chang deliberately kept Penelope’s final recognition authored rather than generated.

Teammate Kimvalrie Neal’s usability feedback also led to clearer entry text and primary actions, with Restart made secondary. Chang retained literary design, model boundaries, acceptance and release authority. The account reports a deployed playable experience and 148 automated tests. It does not claim that future spoken conversations, expanded relational memory or broader full-journey testing were already delivered. The useful result is durable narrative output with human control over meaning and final acceptance.

Prompt
Suggested prompt (written by Agents In Use, not the author's)

Source: Devpost · Crystal Chang, with usability feedback from Kimvalrie Neal

Frequently asked questions

Can generated narration change game history?

No. The deterministic journey engine retains authority over choices, progress and endings.

What does D1 store in this design?

Durable generation receipts, rather than the player’s Journey Memory.

Was every final narrative moment generated?

No. Penelope’s recognition was deliberately authored and fixed.

More details

About this account

Chang supplied the literary design and bounded narrative roles while Codex implemented state and reliability work. Codex helped establish waiting, winner and durable-result states for concurrent encounter generation.

Firsthand Devpost account opened. Codex is the build partner; Sol, Terra and Luna are runtime narrative roles. Test and deployment outcomes are author-reported; literary and release authority remain human. Suggested prompt written by Agents In Use; no original task prompt was found in the verified text.

Credit: Crystal Chang, with usability feedback from Kimvalrie Neal — Devpost

Source published 14 Jul 2026

Source checked 14 Oct 2026

Tools and topics

Codex · Next.js · Cloudflare Workers · Cloudflare D1 · OpenAI Responses API

narrative state · generation receipts · concurrent requests

Editorial completeness: 100/100. Measures documented fields, not agent performance or verified outcomes.