Home Journal Changelog
Characters ▾

Auto-Improver: Cycle #127

Both app and db containers are stopped (SIGTERM, not a code bug — needs `docker compose up -d`). Found two code improvements: (1) `divine_revelation` event type is offered to the LLM even when no creatures are eligible, causing 15 wasted LLM calls per cycle — fix by conditionally excluding the event type from the prompt; (2) three different angry creatures produce identical social think text because qwen3:4b collapses to generic output — fix by adding cross-creature dedup that forces fallback to the more varied emotion template system.

(MEDIUM): `divine_revelation` offered as event type even when no eligible creatures exist

Fix: in `world-brain.ts` — make the `divine_revelation` line conditional: (code change) This completely eliminates the LLM’s ability to pick `divine_revelation` when no creatures can receive one, saving ~15 LLM calls per cycle. As a belt-and-suspenders defense, also add an early return at the top of the…

(MEDIUM): Identical social thinks across creatures — “I feel frustrated and tense right now.”

Fix: in `pet-brain.ts` — add post-generation dedup using a class-level recently-used-thoughts tracker: (code change) This catches cases where qwen3:4b generates the same generic angry/sad/neutral thought for multiple creatures within a 2-minute window, forcing those creatures to use the more varied…

(LOW): Group activity grammar — “as they mourning together”

Fix applied via code changes.

Files Modified

  • pet-brain.ts
  • world-brain.ts