[GH-ISSUE #2066] [Feature]: Otome Hearth: fixed-size story memory and cache-friendly prompts #1902

Closed
opened 2026-11-07 16:37:33 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @SpicyMarinara on GitHub (Nov 2, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/2066

Originally assigned to: @SpicyMarinara on GitHub.

What we want

The maintainer's design for what every story prompt sends:

  1. The prompt.
  2. Necessary info about the persona, love interests and world, plus the arc's plan for this chapter.
  3. One timeline summary of what has happened so far, leaving out the previous chapter, which is sent in full.
  4. Smaller recalls, such as recent 4-star and 5-star memories, Read Me outcomes, messages and dates: up to 5k tokens, oldest dropped first.
  5. The last chapter in full, with only the choices that were picked.

The timeline

  • Each chapter gets one detailed summary of up to 500 words: the most important dialogue, the player's choices, and what happened.
  • Summaries are added until the timeline crosses 10k tokens. The whole timeline is then folded to about 5k tokens (about 3k words), and adding continues.
  • A summary call sends only the summary prompt and that chapter as played.

Sizes
Sizes are fixed and never scale with the model's context window. Today the overview is 10% of the context window: 100k tokens on a 1M-context model, which sent a 1.7M-token hour.

Caching
For both chapter planning and scenes, the large unchanging context comes first and is marked for provider caching, and the per-call part comes last.

Connections warning
Settings → Connections warns when a connection's model has under 32k context.

Package

otome-forge (Otome Hearth)

Originally created by @SpicyMarinara on GitHub (Nov 2, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/2066 Originally assigned to: @SpicyMarinara on GitHub. ### What we want The maintainer's design for what every story prompt sends: 1. The prompt. 2. Necessary info about the persona, love interests and world, plus the arc's plan for this chapter. 3. One timeline summary of what has happened so far, leaving out the previous chapter, which is sent in full. 4. Smaller recalls, such as recent 4-star and 5-star memories, Read Me outcomes, messages and dates: up to 5k tokens, oldest dropped first. 5. The last chapter in full, with only the choices that were picked. **The timeline** - Each chapter gets one detailed summary of up to 500 words: the most important dialogue, the player's choices, and what happened. - Summaries are added until the timeline crosses 10k tokens. The whole timeline is then folded to about 5k tokens (about 3k words), and adding continues. - A summary call sends only the summary prompt and that chapter as played. **Sizes** Sizes are fixed and never scale with the model's context window. Today the overview is 10% of the context window: 100k tokens on a 1M-context model, which sent a 1.7M-token hour. **Caching** For both chapter planning and scenes, the large unchanging context comes first and is marked for provider caching, and the per-call part comes last. **Connections warning** Settings → Connections warns when a connection's model has under 32k context. ### Package otome-forge (Otome Hearth)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Agents#1902
No description provided.