[PR #2555] [CLOSED] Improve Professor Mari workspace agent with mari CLI and Pi Agent #5655

Closed
opened 2026-10-22 04:18:11 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/2555
Author: @ghost
Created: 6/14/2026
Status: ❌ Closed

Base: main ← Head: feat/prof-mari


📝 Commits (10+)

  • cdec650 feat(image): add image style profiles and prompt compiler
  • 4ae2075 feat(image): enhance image prompt compilation with style profiles and negative prompt handling
  • ec6805e feat(image): implement token estimation and avoid instruction handling in prompt compilation
  • fa0c1c2 feat: enhance NPC and scene context handling
  • bc3175e feat(image): add title context to scene illustration prompts and enhance prompt cleaning
  • 6997275 feat(image): enhance image style profile handling and prompt compilation
  • d6ad83c Align Staging with Main only changes (#2512)
  • a900a69 ci: allow Bunny Review on staging-based PRs (#2513)
  • 4e0db2f ci(bunny-review): retarget review brain to the web monorepo
  • 3710916 Merge pull request #1976 from bignast/staging

📊 Changes

276 files changed (+29213 additions, -14171 deletions)

View changed files

📝 .github/bunny-review/bunny_review.py (+9 -9)
📝 .github/bunny-review/reviewer-prompt.md (+13 -10)
📝 .github/bunny-review/rules.json (+105 -32)
📝 .github/workflows/bunny-review-auto.yml (+3 -2)
📝 .github/workflows/bunny-review-command.yml (+1 -1)
📝 .gitignore (+3 -0)
📝 AGENTS.md (+4 -0)
📝 CHANGELOG.md (+10 -1)
📝 README.md (+1 -0)
📝 docs/FRONTEND.md (+3 -10)
📝 docs/GENERATION_PARAMETERS.md (+2 -2)
➕ docs/IMAGE_GENERATION.md (+44 -0)
➕ docs/PROFESSOR_MARI_WORKSPACE_AGENT_SPEC.md (+730 -0)
📝 packages/client/src/components/agents/AgentEditor.tsx (+120 -11)
📝 packages/client/src/components/agents/RegexScriptEditor.tsx (+185 -7)
📝 packages/client/src/components/agents/ToolEditor.tsx (+43 -2)
📝 packages/client/src/components/characters/CharacterEditor.tsx (+47 -223)
📝 packages/client/src/components/characters/CharacterLibraryView.tsx (+0 -8)
📝 packages/client/src/components/chat/ChatArea.tsx (+225 -201)
📝 packages/client/src/components/chat/ChatBranchSelector.tsx (+16 -0)

...and 80 more files

📄 Description

Why this change

  • Professor Mari should be able to act as a real local workspace helper, not just a chat assistant.
  • Users need a safer, reviewable path for Mari to inspect the app, explain setup, and make local Marinara data changes with approval.
  • Marinara's file-backed JSON storage needs a model-friendly interface so data edits can be searched, dry-run, validated, approved, and journaled instead of requiring
    raw manual file edits.

What changed

  • Added a Pi-powered Professor Mari workspace runtime backed by Marinara's existing LLM connection settings.
  • Added privileged workspace endpoints for status, prompt streaming, abort/reset, approval handling, history, and mari db commands.
  • Added the mari server CLI with mari db support for table discovery, schema/counts, list/get/select/search, validation, and dry-run/apply mutations.
  • Added managed mutation approvals, validation, operation hashing, history, and journal output for database changes.
  • Added shared workspace-agent and database approval/history types.
  • Updated the home Professor Mari chat UI with workspace status, tool/timeline rendering, approval controls, reset/abort actions, and richer assistant output.
  • Updated onboarding copy for Professor Mari's expanded workspace role.
  • Added the workspace-agent design/spec document.
image image

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/2555 **Author:** [@ghost](https://github.com/ghost) **Created:** 6/14/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `feat/prof-mari` --- ### 📝 Commits (10+) - [`cdec650`](https://github.com/Pasta-Devs/Marinara-Engine/commit/cdec650f86f5dc70b3db56ff39e378ec7532f2f3) feat(image): add image style profiles and prompt compiler - [`4ae2075`](https://github.com/Pasta-Devs/Marinara-Engine/commit/4ae20759e4772707a0ed3a6b25e1637227129763) feat(image): enhance image prompt compilation with style profiles and negative prompt handling - [`ec6805e`](https://github.com/Pasta-Devs/Marinara-Engine/commit/ec6805e04ebb1b9cf9f0c7aaf2c11f9e6e86b9db) feat(image): implement token estimation and avoid instruction handling in prompt compilation - [`fa0c1c2`](https://github.com/Pasta-Devs/Marinara-Engine/commit/fa0c1c2052cd89fd79b79b3f5c735a131f5f6032) feat: enhance NPC and scene context handling - [`bc3175e`](https://github.com/Pasta-Devs/Marinara-Engine/commit/bc3175eaca3a44c15182201f230a1523418db3bd) feat(image): add title context to scene illustration prompts and enhance prompt cleaning - [`6997275`](https://github.com/Pasta-Devs/Marinara-Engine/commit/69972750eb8516e207dc7e2ebe1e7a65df46c349) feat(image): enhance image style profile handling and prompt compilation - [`d6ad83c`](https://github.com/Pasta-Devs/Marinara-Engine/commit/d6ad83c2461f054c3a511f1d9142e66d0fe5b56d) Align Staging with Main only changes (#2512) - [`a900a69`](https://github.com/Pasta-Devs/Marinara-Engine/commit/a900a692b4cdd091145915446f7b421d9ffeb006) ci: allow Bunny Review on staging-based PRs (#2513) - [`4e0db2f`](https://github.com/Pasta-Devs/Marinara-Engine/commit/4e0db2f3151c8fcff5c62d0512a15657fd0aed07) ci(bunny-review): retarget review brain to the web monorepo - [`3710916`](https://github.com/Pasta-Devs/Marinara-Engine/commit/371091630f393ba991a7f1485d5488bb6afab324) Merge pull request #1976 from bignast/staging ### 📊 Changes **276 files changed** (+29213 additions, -14171 deletions) <details> <summary>View changed files</summary> 📝 `.github/bunny-review/bunny_review.py` (+9 -9) 📝 `.github/bunny-review/reviewer-prompt.md` (+13 -10) 📝 `.github/bunny-review/rules.json` (+105 -32) 📝 `.github/workflows/bunny-review-auto.yml` (+3 -2) 📝 `.github/workflows/bunny-review-command.yml` (+1 -1) 📝 `.gitignore` (+3 -0) 📝 `AGENTS.md` (+4 -0) 📝 `CHANGELOG.md` (+10 -1) 📝 `README.md` (+1 -0) 📝 `docs/FRONTEND.md` (+3 -10) 📝 `docs/GENERATION_PARAMETERS.md` (+2 -2) ➕ `docs/IMAGE_GENERATION.md` (+44 -0) ➕ `docs/PROFESSOR_MARI_WORKSPACE_AGENT_SPEC.md` (+730 -0) 📝 `packages/client/src/components/agents/AgentEditor.tsx` (+120 -11) 📝 `packages/client/src/components/agents/RegexScriptEditor.tsx` (+185 -7) 📝 `packages/client/src/components/agents/ToolEditor.tsx` (+43 -2) 📝 `packages/client/src/components/characters/CharacterEditor.tsx` (+47 -223) 📝 `packages/client/src/components/characters/CharacterLibraryView.tsx` (+0 -8) 📝 `packages/client/src/components/chat/ChatArea.tsx` (+225 -201) 📝 `packages/client/src/components/chat/ChatBranchSelector.tsx` (+16 -0) _...and 80 more files_ </details> ### 📄 Description # Why this change - Professor Mari should be able to act as a real local workspace helper, not just a chat assistant. - Users need a safer, reviewable path for Mari to inspect the app, explain setup, and make local Marinara data changes with approval. - Marinara's file-backed JSON storage needs a model-friendly interface so data edits can be searched, dry-run, validated, approved, and journaled instead of requiring raw manual file edits. ## What changed - Added a Pi-powered Professor Mari workspace runtime backed by Marinara's existing LLM connection settings. - Added privileged workspace endpoints for status, prompt streaming, abort/reset, approval handling, history, and `mari db` commands. - Added the `mari` server CLI with `mari db` support for table discovery, schema/counts, list/get/select/search, validation, and dry-run/apply mutations. - Added managed mutation approvals, validation, operation hashing, history, and journal output for database changes. - Added shared workspace-agent and database approval/history types. - Updated the home Professor Mari chat UI with workspace status, tool/timeline rendering, approval controls, reset/abort actions, and richer assistant output. - Updated onboarding copy for Professor Mari's expanded workspace role. - Added the workspace-agent design/spec document. <img width="1883" height="1237" alt="image" src="https://github.com/user-attachments/assets/a631c4bb-1475-4c99-a57f-50a86a5573c8" /> <img width="1883" height="1237" alt="image" src="https://github.com/user-attachments/assets/32973a5c-7b96-4c68-b034-4e02a5a61d26" /> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:18:11 +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-Engine#5655
No description provided.