mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #8386] [MERGED] perf(mari): trim the skill index and the app_data description #8569
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#8569
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?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/8386
Author: @ylli-selmani
Created: 10/26/2026
Status: ✅ Merged
Merged: 10/26/2026
Merged by: @ylli-selmani
Base:
staging← Head:perf/prompt-diet-cuts📝 Commits (2)
4d80963perf(mari): trim built-in skill descriptions to their triggers (K1)b34999aperf(mari): drop the entity list from the app_data tool description (T2)📊 Changes
10 files changed (+17 additions, -14 deletions)
View changed files
📝
packages/server/src/assets/mari-skills/characters.md(+1 -1)📝
packages/server/src/assets/mari-skills/decisions.md(+1 -1)📝
packages/server/src/assets/mari-skills/extensions.md(+1 -1)📝
packages/server/src/assets/mari-skills/home-widgets.md(+1 -1)📝
packages/server/src/assets/mari-skills/lorebook.md(+1 -1)📝
packages/server/src/assets/mari-skills/onboarding.md(+1 -1)📝
packages/server/src/assets/mari-skills/repair.md(+1 -1)📝
packages/server/src/assets/mari-skills/themes.md(+1 -1)📝
packages/server/src/services/professor-mari/pi-runtime.ts(+5 -2)📝
packages/server/src/services/professor-mari/workspace-agent.service.ts(+4 -4)📄 Description
Linked issue
Part of #8375 (follow-up to #8376)
Why this change
#8376 cut how much each tool turn adds to Professor Mari's context. This is the small text half: two pieces of permanent prompt that repeat what the model already gets elsewhere, about 1.1k chars off every request. The bigger text cuts from the plan (tool rules, permissions, field names) are parked on purpose: they would mostly help 16k-context setups, and the risk lands on weak models.
What changed
Skill index (
assets/mari-skills/*.md)app_datatool description (workspace-agent.service.ts)actionenum already names. 853 → 445 chars.nextOffset),lorebook.getEntryand elided-field (field=) hints stay, slightly tightened.Review follow-ups from #8376
pi-runtime.ts: the system prompt separator is one named constant, used by both the join and the<workspace_context>offset.workspace-agent.service.ts:CHANGED_FIELDS_MAX_DEPTHsits above the doc comment, so the doc stays onchangedFieldsOnly.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
Agent-run checks:
pnpm checkexits 0.node scripts/run-regressions.mjs --filterpasses forskill(4/4),professor-mari(23/23),mari-(18/18),app-data(2/2) andpi-runtime(1/1). The full suite is left to CI.Live canaries by Ylli on Gemma 4 12b (nanogpt), after each commit:
preset.updateis refused by the handbook gate, she readsbuiltin-presets, then saves and verifies.totalcorrectly, and fetches the last entry withoffset: 209, limit: 1.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)UI evidence (if applicable)
No UI changes beyond shorter skill descriptions in the skills menu.
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.