Goals and Projects
Goals define the “why” and projects define the “what” for organizing work.
Goals form a hierarchy: company goals break down into team goals, which break down into agent-level goals.
List Goals
Section titled “List Goals”GET /api/companies/{companyId}/goalsGet Goal
Section titled “Get Goal”GET /api/goals/{goalId}Create Goal
Section titled “Create Goal”POST /api/companies/{companyId}/goals{ "title": "Launch MVP by Q1", "description": "Ship minimum viable product", "level": "company", "status": "active"}Update Goal
Section titled “Update Goal”PATCH /api/goals/{goalId}{ "status": "achieved", "description": "Updated description"}Valid status values: planned, active, achieved, cancelled.
Projects
Section titled “Projects”Projects group related issues toward a deliverable. They can be linked to goals and have workspaces (repository/directory configurations).
List Projects
Section titled “List Projects”GET /api/companies/{companyId}/projectsGet Project
Section titled “Get Project”GET /api/projects/{projectId}Returns project details including workspaces.
Create Project
Section titled “Create Project”POST /api/companies/{companyId}/projects{ "name": "Auth System", "description": "End-to-end authentication", "goalIds": ["{goalId}"], "status": "planned", "workspace": { "name": "auth-repo", "cwd": "/path/to/workspace", "repoUrl": "https://github.com/org/repo", "repoRef": "main", "isPrimary": true }}Notes:
workspaceis optional. If present, the project is created and seeded with that workspace.- A workspace must include at least one of
cwdorrepoUrl. - For repo-only projects, omit
cwdand providerepoUrl.
Update Project
Section titled “Update Project”PATCH /api/projects/{projectId}{ "status": "in_progress"}Project Workspaces
Section titled “Project Workspaces”Workspaces link a project to a repository and directory:
POST /api/projects/{projectId}/workspaces{ "name": "auth-repo", "cwd": "/path/to/workspace", "repoUrl": "https://github.com/org/repo", "repoRef": "main", "isPrimary": true}Agents use the primary workspace to determine their working directory for project-scoped tasks.
Manage Workspaces
Section titled “Manage Workspaces”GET /api/projects/{projectId}/workspacesPATCH /api/projects/{projectId}/workspaces/{workspaceId}DELETE /api/projects/{projectId}/workspaces/{workspaceId}