Goals
Goals are persistent objectives that sit above individual issues. Each goal groups a set of related issues, and the orchestrator uses that grouping to build an ordered execution plan — and optionally run it automatically with Autopilot. Goals are stored locally in .agenties/goals.json.
Goal structure
Issues link back to a goal via the goalId field on each issue. The goal record itself holds no issue IDs — the link is on the issue side.
Statuses
Creating goals
From the Goals panel
Open the Goals section in the sidebar. Click New goal, enter a title, optional description, and priority. The goal is saved immediately and becomes the target for linking new issues.
From chat
Describe a multi-issue objective in chat and the orchestrator will create a goal automatically, then break it down into linked issues. You can also ask explicitly: "Create a goal to improve the authentication flow, then split it into issues."
Via MCP tool
Linking issues to a goal
Set the goalId field when creating or updating an issue:
Issues can only belong to one goal. Removing goalId or setting it to an empty string unlinks the issue. The goal itself is not updated — re-reading the execution plan reflects the change immediately.
Execution plan
Call get_execution_plan to get an ordered view of all non-done issues for a goal:
goalId matches and status !== "done", then sorts byseq (ascending). Issues without seq appear last.Team routing
Each plan item includes a suggestedMember— a heuristic match based on the issue title/description against each team member's name, role, and instructions. The routing uses keyword overlap and domain experience signals from.agenties/experience.json. If no confident match is found (score < 3), the field is null and the orchestrator chooses the member itself.
Running a goal with Autopilot
The Goals panel has a Run button that starts the Autopilot loop for the goal. Autopilot iterates the execution plan — one issue at a time — spawning agents, waiting for evidence, and persisting a journal entry before moving to the next issue.
| Control | What it does |
|---|---|
| Run | Start the autopilot loop. Available when the goal is active and has open issues. |
| Pause | Stop after the current issue completes. The run is resumable. |
| Resume | Continue from the last checkpoint. Only available when the previous stop was resumable. |
Updating and closing goals
Marking a goal done does not automatically close its linked issues — the orchestrator closes issues individually as agents complete them. Always verify linked issues are done before marking the goal itself as done.
What persists in .agenties/
| File | Contains |
|---|---|
.agenties/goals.json | All goal records. Written on every create or update through the sidecar — includes BOM strip and rotating backup. |
.agenties/issues.json | Issue records. goalId on each issue is the only link between issues and goals. |
.agenties/experience.json | Per-member domain experience counters used by execution plan routing. Updated when agents complete tasks. |
.agenties/goals.json from outside the sidecar. All writes must go through the create_goal or update_goal MCP tools — these apply the BOM-strip logic and rotating backup in jsonFile.ts. Direct file writes silently skip that logic and can corrupt the file on Windows.