Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
fix(cos): include target app directory path in agent prompts
[._.]/ Adam Eivy70c00562ebe3
diff --git a/server/services/subAgentSpawner.js b/server/services/subAgentSpawner.jsindex 96a8c14497..c321cf67e1 100644--- a/server/services/subAgentSpawner.js+++ b/server/services/subAgentSpawner.js@@ -2664,7 +2664,7 @@ You are an autonomous agent working on behalf of the Chief of Staff.- **Priority**: ${task.priority}- **Description**: ${task.description}${task.metadata?.context ? `- **Context**: ${task.metadata.context}` : ''}-${task.metadata?.app ? `- **Target App**: ${task.metadata.app}` : ''}+${task.metadata?.app ? `- **Target App**: ${task.metadata.app}\n- **Target App Directory**: ${workspaceDir}` : ''}${Array.isArray(task.metadata?.screenshots) && task.metadata.screenshots.length > 0 ? `- **Screenshots**: ${task.metadata.screenshots.join(', ')}` : ''}${worktreeSection}${jiraSection}@@ -2692,7 +2692,7 @@ ${task.metadata?.app ? `- **When done, create a pull request to the repo's defau- If the working tree is dirty with changes unrelated to your task, run \`git stash\` to set them aside before starting.## Working Directory-You are working in the project directory. Use the available tools to explore, modify, and test code.+${task.metadata?.app ? `You are working in the target app directory: \`${workspaceDir}\`. All code changes, research, plans, and docs for this task belong in this directory — NOT in the PortOS repo.` : 'You are working in the project directory.'} Use the available tools to explore, modify, and test code.Begin working on the task now.`;}