mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-07 08:26:51 +00:00
Adds a comprehensive personality and identity system to maintain
consistent agent self-awareness across all interactions.
Key features:
- Personality enum (Friendly, Pragmatic) with extensibility
- InstructionsTemplate with {{ personality_message }} placeholder
- Mid-session personality change via PersonalityUpdateMessage injection
- Explicit identity disambiguation in all DEFAULT_MODES roleDefinitions
New files:
- packages/types/src/personality.ts - types and Zod schemas
- src/core/prompts/personality/ - template rendering and loading
- src/core/prompts/identity/ - disambiguation utilities
- src/core/prompts/personalities/*.md - personality content
Modified:
- Task.ts - personality state tracking and change handling
- webviewMessageHandler.ts - changePersonality message handler
- modes.ts - getModeSelection accepts personality parameter
- system.ts - passes personality through prompt generation
- mode.ts - DEFAULT_MODES include disambiguation statements
Includes 57 new unit tests.
|
||
|---|---|---|
| .. | ||
| build | ||
| cloud | ||
| config-eslint | ||
| config-typescript | ||
| core | ||
| evals | ||
| ipc | ||
| telemetry | ||
| types | ||
| vscode-shim | ||