Skip to content

only master agent explains rules and story#11

Merged
Gawor270 merged 9 commits intomainfrom
2161
Oct 24, 2025
Merged

only master agent explains rules and story#11
Gawor270 merged 9 commits intomainfrom
2161

Conversation

@Gawor270
Copy link
Member

@Gawor270 Gawor270 commented Oct 24, 2025

Closes FCE-2161
Version 1 of user coordination

Copilot AI review requested due to automatic review settings October 24, 2025 10:31
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@linear
Copy link

linear bot commented Oct 24, 2025

@Gawor270 Gawor270 merged commit 2bdb8af into main Oct 24, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants