[PR #2557] [MERGED] Improve Professor Mari workspace agent with mari CLI and Pi Agent #5658

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/2557
Author: @SpicyMarinara
Created: 6/14/2026
Status: ✅ Merged
Merged: 6/14/2026
Merged by: @SpicyMarinara

Base: staging ← Head: feat/prof-mari


📝 Commits (8)

  • ca45384 Add Professor Mari workspace agent
  • c5448ea Cleaned up tool calling to work with JSON only
  • 0eba0b2 fixed up the prompt
  • fe19177 themes are possible!!!
  • 93478b1 Potential fix for pull request finding 'Useless assignment to local variable'
  • e573eda Potential fix for pull request finding 'Useless assignment to local variable'
  • 4894b09 Merge branch 'main' into feat/prof-mari
  • 47c5b77 Merge branch 'staging' into feat/prof-mari

📊 Changes

23 files changed (+6124 additions, -527 deletions)

View changed files

➕ docs/PROFESSOR_MARI_WORKSPACE_AGENT_SPEC.md (+730 -0)
📝 packages/client/src/components/chat/ChatInput.tsx (+0 -6)
📝 packages/client/src/components/chat/ConversationInput.tsx (+0 -6)
📝 packages/client/src/components/chat/HomeProfessorMariChat.tsx (+868 -80)
➖ packages/client/src/components/chat/MariCapabilityNotice.tsx (+0 -91)
➖ packages/client/src/components/chat/MariThinkingIndicator.tsx (+0 -183)
📝 packages/client/src/components/layout/AppShell.tsx (+2 -2)
📝 packages/client/src/components/onboarding/OnboardingTutorial.tsx (+2 -79)
📝 packages/client/src/styles/globals.css (+1 -0)
📝 packages/server/package.json (+5 -0)
➕ packages/server/src/bin/mari.ts (+168 -0)
📝 packages/server/src/db/seed-mari.ts (+16 -31)
📝 packages/server/src/routes/chats.routes.ts (+27 -9)
📝 packages/server/src/routes/index.ts (+2 -0)
➕ packages/server/src/routes/professor-mari-workspace.routes.ts (+116 -0)
📝 packages/server/src/services/llm/providers/anthropic.provider.ts (+233 -0)
📝 packages/server/src/services/llm/providers/google.provider.ts (+264 -0)
➕ packages/server/src/services/mari-db/mari-db.service.ts (+1463 -0)
➕ packages/server/src/services/professor-mari/workspace-agent.service.ts (+1095 -0)
📝 packages/shared/src/index.ts (+1 -0)

...and 3 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 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.

Validation

  • Not run by Codex for this PR creation step.

🔄 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/2557 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 6/14/2026 **Status:** ✅ Merged **Merged:** 6/14/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `feat/prof-mari` --- ### 📝 Commits (8) - [`ca45384`](https://github.com/Pasta-Devs/Marinara-Engine/commit/ca453846326fb75b1c55a563610ddb508ece9e8d) Add Professor Mari workspace agent - [`c5448ea`](https://github.com/Pasta-Devs/Marinara-Engine/commit/c5448ea11f153356d2b8a18f3f8f31261025057a) Cleaned up tool calling to work with JSON only - [`0eba0b2`](https://github.com/Pasta-Devs/Marinara-Engine/commit/0eba0b2597238fcbb5318620bd498dede4075b1c) fixed up the prompt - [`fe19177`](https://github.com/Pasta-Devs/Marinara-Engine/commit/fe191775dba47e86c28e967efe90230f9420feb0) themes are possible!!! - [`93478b1`](https://github.com/Pasta-Devs/Marinara-Engine/commit/93478b1655eeaac54fcf5a50a743cc583ae79613) Potential fix for pull request finding 'Useless assignment to local variable' - [`e573eda`](https://github.com/Pasta-Devs/Marinara-Engine/commit/e573eda0b436f1908626a1b9378ae45ff31f753f) Potential fix for pull request finding 'Useless assignment to local variable' - [`4894b09`](https://github.com/Pasta-Devs/Marinara-Engine/commit/4894b096a920b93581e59e3ff6cfaa90359d5e8a) Merge branch 'main' into feat/prof-mari - [`47c5b77`](https://github.com/Pasta-Devs/Marinara-Engine/commit/47c5b77f069d2e73dee256815f2a80dde325fa1e) Merge branch 'staging' into feat/prof-mari ### 📊 Changes **23 files changed** (+6124 additions, -527 deletions) <details> <summary>View changed files</summary> ➕ `docs/PROFESSOR_MARI_WORKSPACE_AGENT_SPEC.md` (+730 -0) 📝 `packages/client/src/components/chat/ChatInput.tsx` (+0 -6) 📝 `packages/client/src/components/chat/ConversationInput.tsx` (+0 -6) 📝 `packages/client/src/components/chat/HomeProfessorMariChat.tsx` (+868 -80) ➖ `packages/client/src/components/chat/MariCapabilityNotice.tsx` (+0 -91) ➖ `packages/client/src/components/chat/MariThinkingIndicator.tsx` (+0 -183) 📝 `packages/client/src/components/layout/AppShell.tsx` (+2 -2) 📝 `packages/client/src/components/onboarding/OnboardingTutorial.tsx` (+2 -79) 📝 `packages/client/src/styles/globals.css` (+1 -0) 📝 `packages/server/package.json` (+5 -0) ➕ `packages/server/src/bin/mari.ts` (+168 -0) 📝 `packages/server/src/db/seed-mari.ts` (+16 -31) 📝 `packages/server/src/routes/chats.routes.ts` (+27 -9) 📝 `packages/server/src/routes/index.ts` (+2 -0) ➕ `packages/server/src/routes/professor-mari-workspace.routes.ts` (+116 -0) 📝 `packages/server/src/services/llm/providers/anthropic.provider.ts` (+233 -0) 📝 `packages/server/src/services/llm/providers/google.provider.ts` (+264 -0) ➕ `packages/server/src/services/mari-db/mari-db.service.ts` (+1463 -0) ➕ `packages/server/src/services/professor-mari/workspace-agent.service.ts` (+1095 -0) 📝 `packages/shared/src/index.ts` (+1 -0) _...and 3 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 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. ## Validation - Not run by Codex for this PR creation step. --- <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:14 +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#5658
No description provided.