mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #5105] [Feature]: Inventory Tracker agent — structured currencies, equipped, and carried items with a grid tracker panel #2825
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#2825
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @augusteo on GitHub (Aug 15, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5105
Originally assigned to: @SpicyMarinara on GitHub.
The problem
In Roleplay Mode there is no structured way to track inventory. The only option today is the Custom Tracker agent, whose contract is deliberately unstructured —
CustomTrackerFieldis{ name: string; value: string }and its prompt states "Values are always strings."So an entire inventory collapses into a single prose string in a single cell:
The panel then truncates it:
isLongCustomFieldflags values over 32 characters and the value rendersline-clamp-2(packages/client/src/features/tracker-panel/components/sections/CustomTrackerPanel.tsx). Expanding the tracker panel does not help, because there is no structure to lay out — it just makes the same truncated string bigger.Two further problems fall out of the string-only shape:
Game/GM mode already has a proper item grid. Roleplay does not.
Reported on Discord (2026-08-15). PR #5051 improved tracker panel spacing, which helped, but could not address the structural cause.
Proposed solution
A dedicated Inventory Tracker agent that emits structured arrays instead of prose, plus a tracker-panel section that renders them as grids in the docked side panel alongside World, Persona, Present Characters, Quest Board and Custom Stats.
Output contract — one uniform row shape,
{ name, qty }, across three groups:qtyis an integer >= 1 and is omitted when 1, keeping the stored payload compact.The prompt is prescriptive by design, since the whole point is to stop the model writing prose:
equipped, never ininventory. Equipping moves the row across; unequipping moves it back. Never both.currenciesis money only — coins, notes, credits, gold. Not gems-as-loot, not rations, not trade goods.qty.Scope
The agent writes to its own new
PlayerStatsfields. It does not touchplayerStats.inventory, which the Persona Stats agent owns — existing chats are unaffected, and enabling both agents simply shows both sections.This needs two PRs, because agent definitions are not stored in this repository:
inventory-trackerpackage itself (packages/server/data/is gitignored; packages are fetched from that repository at runtime).The Engine PR lands first. It is testable on its own by creating a custom agent in the Agent Editor with the new result type, and the package is inert without it.
@SpicyMarinara commented on GitHub (Aug 15, 2026):
SpicyMarinara is taking the Engine integration in
feature/5105-inventory-tracker. The downloadable package is tracked separately in Pasta-Devs/Marinara-Agents#361.@augusteo commented on GitHub (Aug 16, 2026):
Working on this — draft PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/5115 (Engine side).
The downloadable
inventory-trackerpackage forPasta-Devs/Marinara-Agentsis the follow-up; the Engine PR lands first since the package is inert without it.@Xelvanis — you mentioned in the Discord thread you didn't mind picking this up. I've taken the Engine side to avoid duplicate work; shout if you'd rather own it or want the agents-repo package.