Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR implements a dual-agent system where only the first (master) agent explains the game rules and story, while subsequent agents assume players already understand the context.
Key changes:
- Introduced a master agent with full rule explanations for the first session
- Modified non-master agents to skip rule explanations and assume prior knowledge
- Refactored agent creation logic into a dedicated method
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| deep-sea-stories/packages/backend/src/utils.ts | Added getMasterInstructionsForStory function for master agent instructions |
| deep-sea-stories/packages/backend/src/service/elevenlabs-session.ts | Refactored agent creation to differentiate between master and regular agents based on session count |
| deep-sea-stories/packages/backend/src/prompts/master-instructions-template.md | Created new template with full game rules and story setup for master agent |
| deep-sea-stories/packages/backend/src/prompts/instructions-template.md | Updated to remove initial story reading and assume players know the rules |
| deep-sea-stories/packages/backend/src/config.ts | Exported new MASTER_AGENT_INSTRUTIONS_TEMPLATE constant |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
czerwiukk
approved these changes
Oct 24, 2025
deep-sea-stories/packages/backend/src/prompts/instructions-template.md
Outdated
Show resolved
Hide resolved
This reverts commit 9b1c6b2.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes FCE-2161
Version 1 of user coordination