{
"event": "PreToolUse",
"tool_name": "Task",
"tool_input": {
"description": "Refactor ChatSession Entity slim",
"prompt": "Lese \/var\/www\/CLAUDE.md für Projektkontext.\n\n**Task #365: ChatSession.php Entity - Anemic Domain Model beheben**\n\nArbeitsverzeichnis: \/var\/www\/dev.campus.systemische-tools.de\n\n1. Analysiere `src\/Domain\/Entity\/ChatSession.php` (414 LOC)\n2. Lagere Message-Collection-Logik in separaten Service aus\n3. Erstelle Value Objects für SessionMetadata\n4. Nutze Factory für Session-Erstellung\n5. Führe `\/var\/www\/scripts\/php-check.sh` aus\n\nMax 150 LOC für Entity. Collection-Operationen in Repository.",
"subagent_type": "general-purpose",
"run_in_background": true
}
}