From 4bb9c5ce9fc29fc1cb8d6a1ce1fddb034518b0ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=B7=E7=94=B5=E8=8A=BD=E8=A1=A3?= Date: Fri, 27 Mar 2026 22:59:45 -0400 Subject: [PATCH] feat(260327-vvv): add codebase scan and company context to CEO kickoff task - Kickoff task now instructs CEO to explore workspace codebase before planning - Company name and description interpolated into both activeGoal and fallback branches Co-Authored-By: Claude Opus 4.6 (1M context) --- src/main/onboarding-service.ts | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/main/onboarding-service.ts b/src/main/onboarding-service.ts index a5a2ae0e..c4ede7f4 100644 --- a/src/main/onboarding-service.ts +++ b/src/main/onboarding-service.ts @@ -143,12 +143,16 @@ export function createOnboardingService({ const kickoffTaskDescription = activeGoal ? [ `Read the founding goal "${activeGoal.title}" and convert it into a real operating plan.`, - "Create the first execution structure inside AgentCompany: projects, tasks, delegation, approvals, and coordination messages as needed.", - "Use the bound workspace as the default execution boundary for the first round of work.", + `Before planning, explore the workspace codebase: list the top-level directory, read key files (README, package.json, config files), and understand the project structure, languages, and frameworks in use.`, + `Consider the full company context — the company name "${company.name}", its description ("${company.description}"), and the goal — when deciding what departments, roles, and execution strategy are needed.`, + `Create the first execution structure inside AgentCompany: projects, tasks, delegation, approvals, and coordination messages as needed.`, + `Use the bound workspace as the default execution boundary for the first round of work.`, ].join("\n\n") : [ - "Establish the first operating plan for the company.", - "Review the current company state, create the first real tasks, delegate initial work, and report progress through tasks, approvals, and messages.", + `Establish the first operating plan for the company.`, + `Before planning, explore the workspace codebase: list the top-level directory, read key files (README, package.json, config files), and understand the project structure, languages, and frameworks in use.`, + `Consider the full company context — the company name "${company.name}" and its description ("${company.description}") — when deciding what departments, roles, and execution strategy are needed.`, + `Review the current company state, create the first real tasks, delegate initial work, and report progress through tasks, approvals, and messages.`, ].join("\n\n"); const taskId = db.saveTask({