feat(core,cli,server,web): add goal mode — loop Tasks on one Session until an objective completes (#66)

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
rank-Yu
2026-07-27 23:43:24 +08:00
committed by GitHub
parent e1141ca010
commit 46463bee26
61 changed files with 3411 additions and 188 deletions
+13
View File
@@ -67,6 +67,19 @@ export function workspacesDir(root: string, projectId: string, agentId: string):
return path.join(agentDir(root, projectId, agentId), "workspaces");
}
/**
* `<agentDir>/scratchpad/<sessionId>/GOAL.yaml`, the goal-mode control file of one Session
* (sibling of the model's PLAN.md convention; see goal/goal-file.ts for field ownership).
*/
export function goalFilePath(
root: string,
projectId: string,
agentId: string,
sessionId: string,
): string {
return path.join(scratchpadDir(root, projectId, agentId), sessionId, "GOAL.yaml");
}
/**
* `<projectDir>/.project_config.toml`, the Project's single config file (a hidden file, not
* shown by default `ls`, written with mode 0600; model entries are inlined with their credential,