[GH-ISSUE #434] [Feature]: Beholder — add a five-pass prompt template for locally hosted extractors #221

Closed
opened 2026-10-20 17:25:31 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @GetBeholder on GitHub (Aug 19, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/434

Originally assigned to: @GetBeholder on GitHub.

What problem does this solve?

The Beholder package ships a single prompt template: one call that asks for every tracked field at once. That is the right shape for a strong general model (GPT-5.5+, Opus 4.8+, Kimi K3+), which is what the package recommends.

It is the wrong shape for a locally hosted Beholder extractor. That model is trained per lane — it answers about worn items, wounds, held items, species, or bare/missing flags one at a time — so the whole-state prompt is off-distribution for it and it returns partial or malformed JSON. Today there is no way to drive that model correctly from the Beholder agent, even though it is the model the package is named after and the only option that runs fully locally, for free, with no data leaving the machine.

Proposed package or change

Offer a second selectable prompt template on the same agent, so the user picks the shape that matches their model from the existing prompt-template selector:

  • SOTA model — one prompt (unchanged, stays the default)
  • Beholder local model — five passes — the five per-lane prompts, each marked with a [worn], [wounds], [holding], [species], or [flags] heading

Marinara Engine 2.4.4 already detects those headings, runs one call per lane, and unions the five deltas into the single delta payload it resolves today (Engine PR #5251). Any template without the full set of headings keeps the existing single-call path, so nothing changes for current installs.

Roleplay mode only, same as today. No UI work, no server code, no new permissions — a payload change plus the regenerated manifest, artifact, and catalog entry.

Why should this be optional?

It is a prompt payload for one optional tracker Agent, and it only makes sense for users who actually run the local Beholder model. Users on a hosted SOTA model should never see it selected; it stays an opt-in alternative to the default template rather than anything the Engine core needs to know about.

Alternatives considered

  • A separate beholder-local package — duplicates the schema, description, locales, and catalog entry for what is one alternative prompt on the same Agent, and makes the user choose a package instead of a template.
  • A new Agent setting (e.g. extractionMode) — needs client UI and localization for every locale, when the existing prompt-template selector already expresses exactly this choice and is generic across built-in Agents.
  • Auto-detecting the model — an endpoint or connection is opaque; the package cannot know what is behind it, and guessing wrong silently produces bad extractions.

Additional context

Engine side is merged: Pasta-Devs/Marinara-Engine#5251.

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @GetBeholder on GitHub (Aug 19, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/434 Originally assigned to: @GetBeholder on GitHub. ## What problem does this solve? The Beholder package ships a single prompt template: one call that asks for every tracked field at once. That is the right shape for a strong general model (GPT-5.5+, Opus 4.8+, Kimi K3+), which is what the package recommends. It is the wrong shape for a **locally hosted Beholder extractor**. That model is trained per lane — it answers about worn items, wounds, held items, species, or bare/missing flags one at a time — so the whole-state prompt is off-distribution for it and it returns partial or malformed JSON. Today there is no way to drive that model correctly from the Beholder agent, even though it is the model the package is named after and the only option that runs fully locally, for free, with no data leaving the machine. ## Proposed package or change Offer a second selectable prompt template on the same agent, so the user picks the shape that matches their model from the existing prompt-template selector: - **SOTA model — one prompt** (unchanged, stays the default) - **Beholder local model — five passes** — the five per-lane prompts, each marked with a `[worn]`, `[wounds]`, `[holding]`, `[species]`, or `[flags]` heading Marinara Engine `2.4.4` already detects those headings, runs one call per lane, and unions the five deltas into the single delta payload it resolves today (Engine PR #5251). Any template without the full set of headings keeps the existing single-call path, so nothing changes for current installs. Roleplay mode only, same as today. No UI work, no server code, no new permissions — a payload change plus the regenerated manifest, artifact, and catalog entry. ## Why should this be optional? It is a prompt payload for one optional tracker Agent, and it only makes sense for users who actually run the local Beholder model. Users on a hosted SOTA model should never see it selected; it stays an opt-in alternative to the default template rather than anything the Engine core needs to know about. ## Alternatives considered - **A separate `beholder-local` package** — duplicates the schema, description, locales, and catalog entry for what is one alternative prompt on the same Agent, and makes the user choose a package instead of a template. - **A new Agent setting (e.g. `extractionMode`)** — needs client UI and localization for every locale, when the existing prompt-template selector already expresses exactly this choice and is generic across built-in Agents. - **Auto-detecting the model** — an endpoint or connection is opaque; the package cannot know what is behind it, and guessing wrong silently produces bad extractions. ## Additional context Engine side is merged: Pasta-Devs/Marinara-Engine#5251. ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-20 17:25:31 +07:00
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#221
No description provided.