@evermore.work/adapter-codex-local 2026.509.0-canary.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (107) hide show
  1. package/dist/cli/format-event.d.ts +2 -0
  2. package/dist/cli/format-event.d.ts.map +1 -0
  3. package/dist/cli/format-event.js +213 -0
  4. package/dist/cli/format-event.js.map +1 -0
  5. package/dist/cli/index.d.ts +2 -0
  6. package/dist/cli/index.d.ts.map +1 -0
  7. package/dist/cli/index.js +2 -0
  8. package/dist/cli/index.js.map +1 -0
  9. package/dist/cli/quota-probe.d.ts +3 -0
  10. package/dist/cli/quota-probe.d.ts.map +1 -0
  11. package/dist/cli/quota-probe.js +97 -0
  12. package/dist/cli/quota-probe.js.map +1 -0
  13. package/dist/index.d.ts +17 -0
  14. package/dist/index.d.ts.map +1 -0
  15. package/dist/index.js +83 -0
  16. package/dist/index.js.map +1 -0
  17. package/dist/server/codex-args.d.ts +11 -0
  18. package/dist/server/codex-args.d.ts.map +1 -0
  19. package/dist/server/codex-args.js +55 -0
  20. package/dist/server/codex-args.js.map +1 -0
  21. package/dist/server/codex-args.test.d.ts +2 -0
  22. package/dist/server/codex-args.test.d.ts.map +1 -0
  23. package/dist/server/codex-args.test.js +63 -0
  24. package/dist/server/codex-args.test.js.map +1 -0
  25. package/dist/server/codex-home.d.ts +15 -0
  26. package/dist/server/codex-home.d.ts.map +1 -0
  27. package/dist/server/codex-home.js +107 -0
  28. package/dist/server/codex-home.js.map +1 -0
  29. package/dist/server/execute.d.ts +15 -0
  30. package/dist/server/execute.d.ts.map +1 -0
  31. package/dist/server/execute.js +669 -0
  32. package/dist/server/execute.js.map +1 -0
  33. package/dist/server/execute.remote.test.d.ts +2 -0
  34. package/dist/server/execute.remote.test.d.ts.map +1 -0
  35. package/dist/server/execute.remote.test.js +382 -0
  36. package/dist/server/execute.remote.test.js.map +1 -0
  37. package/dist/server/index.d.ts +8 -0
  38. package/dist/server/index.d.ts.map +1 -0
  39. package/dist/server/index.js +57 -0
  40. package/dist/server/index.js.map +1 -0
  41. package/dist/server/parse.d.ts +22 -0
  42. package/dist/server/parse.d.ts.map +1 -0
  43. package/dist/server/parse.js +213 -0
  44. package/dist/server/parse.js.map +1 -0
  45. package/dist/server/parse.test.d.ts +2 -0
  46. package/dist/server/parse.test.d.ts.map +1 -0
  47. package/dist/server/parse.test.js +107 -0
  48. package/dist/server/parse.test.js.map +1 -0
  49. package/dist/server/quota-spawn-error.test.d.ts +2 -0
  50. package/dist/server/quota-spawn-error.test.d.ts.map +1 -0
  51. package/dist/server/quota-spawn-error.test.js +77 -0
  52. package/dist/server/quota-spawn-error.test.js.map +1 -0
  53. package/dist/server/quota.d.ts +64 -0
  54. package/dist/server/quota.d.ts.map +1 -0
  55. package/dist/server/quota.js +432 -0
  56. package/dist/server/quota.js.map +1 -0
  57. package/dist/server/skills.d.ts +8 -0
  58. package/dist/server/skills.d.ts.map +1 -0
  59. package/dist/server/skills.js +65 -0
  60. package/dist/server/skills.js.map +1 -0
  61. package/dist/server/test.d.ts +3 -0
  62. package/dist/server/test.d.ts.map +1 -0
  63. package/dist/server/test.js +259 -0
  64. package/dist/server/test.js.map +1 -0
  65. package/dist/ui/build-config.d.ts +3 -0
  66. package/dist/ui/build-config.d.ts.map +1 -0
  67. package/dist/ui/build-config.js +113 -0
  68. package/dist/ui/build-config.js.map +1 -0
  69. package/dist/ui/build-config.test.d.ts +2 -0
  70. package/dist/ui/build-config.test.d.ts.map +1 -0
  71. package/dist/ui/build-config.test.js +49 -0
  72. package/dist/ui/build-config.test.js.map +1 -0
  73. package/dist/ui/index.d.ts +3 -0
  74. package/dist/ui/index.d.ts.map +1 -0
  75. package/dist/ui/index.js +3 -0
  76. package/dist/ui/index.js.map +1 -0
  77. package/dist/ui/parse-stdout.d.ts +3 -0
  78. package/dist/ui/parse-stdout.d.ts.map +1 -0
  79. package/dist/ui/parse-stdout.js +261 -0
  80. package/dist/ui/parse-stdout.js.map +1 -0
  81. package/dist/ui/parse-stdout.test.d.ts +2 -0
  82. package/dist/ui/parse-stdout.test.d.ts.map +1 -0
  83. package/dist/ui/parse-stdout.test.js +77 -0
  84. package/dist/ui/parse-stdout.test.js.map +1 -0
  85. package/package.json +55 -0
  86. package/skills/diagnose-why-work-stopped/SKILL.md +161 -0
  87. package/skills/evermore/SKILL.md +366 -0
  88. package/skills/evermore/references/api-reference.md +899 -0
  89. package/skills/evermore/references/company-skills.md +193 -0
  90. package/skills/evermore/references/issue-workspaces.md +80 -0
  91. package/skills/evermore/references/routines.md +187 -0
  92. package/skills/evermore/references/workflows.md +141 -0
  93. package/skills/evermore-converting-plans-to-tasks/SKILL.md +42 -0
  94. package/skills/evermore-create-agent/SKILL.md +163 -0
  95. package/skills/evermore-create-agent/references/agent-instruction-templates.md +123 -0
  96. package/skills/evermore-create-agent/references/agents/coder.md +64 -0
  97. package/skills/evermore-create-agent/references/agents/qa.md +88 -0
  98. package/skills/evermore-create-agent/references/agents/securityengineer.md +135 -0
  99. package/skills/evermore-create-agent/references/agents/uxdesigner.md +115 -0
  100. package/skills/evermore-create-agent/references/api-reference.md +110 -0
  101. package/skills/evermore-create-agent/references/baseline-role-guide.md +168 -0
  102. package/skills/evermore-create-agent/references/draft-review-checklist.md +95 -0
  103. package/skills/evermore-create-plugin/SKILL.md +101 -0
  104. package/skills/evermore-dev/SKILL.md +267 -0
  105. package/skills/para-memory-files/SKILL.md +104 -0
  106. package/skills/para-memory-files/references/schemas.md +35 -0
  107. package/skills/terminal-bench-loop/SKILL.md +236 -0
@@ -0,0 +1,366 @@
1
+ ---
2
+ name: evermore
3
+ description: >
4
+ Interact with the Evermore control plane API to manage tasks, coordinate with
5
+ other agents, and follow company governance. Use when you need to check
6
+ assignments, update task status, delegate work, post comments, set up or manage
7
+ routines (recurring scheduled tasks), or call any Evermore API endpoint. Do NOT
8
+ use for the actual domain work itself (writing code, research, etc.) — only for
9
+ Evermore coordination.
10
+ ---
11
+
12
+ # Evermore Skill
13
+
14
+ You run in **heartbeats** — short execution windows triggered by Evermore. Each heartbeat, you wake up, check your work, do something useful, and exit. You do not run continuously.
15
+
16
+ ## Authentication
17
+
18
+ Env vars auto-injected: `EVERMORE_AGENT_ID`, `EVERMORE_COMPANY_ID`, `EVERMORE_API_URL`, `EVERMORE_RUN_ID`. Optional wake-context vars may also be present: `EVERMORE_TASK_ID` (issue/task that triggered this wake), `EVERMORE_WAKE_REASON` (why this run was triggered), `EVERMORE_WAKE_COMMENT_ID` (specific comment that triggered this wake), `EVERMORE_APPROVAL_ID`, `EVERMORE_APPROVAL_STATUS`, and `EVERMORE_LINKED_ISSUE_IDS` (comma-separated). For local adapters, `EVERMORE_API_KEY` is auto-injected as a short-lived run JWT. For non-local adapters, your operator should set `EVERMORE_API_KEY` in adapter config. All requests use `Authorization: Bearer $EVERMORE_API_KEY`. All endpoints under `/api`, all JSON. Never hard-code the API URL.
19
+
20
+ Some adapters also inject `EVERMORE_WAKE_PAYLOAD_JSON` on comment-driven wakes. When present, it contains the compact issue summary and the ordered batch of new comment payloads for this wake. Use it first. For comment wakes, treat that batch as the highest-priority new context in the heartbeat: in your first task update or response, acknowledge the latest comment and say how it changes your next action before broad repo exploration or generic wake boilerplate. Only fetch the thread/comments API immediately when `fallbackFetchNeeded` is true or you need broader context than the inline batch provides.
21
+
22
+ Manual local CLI mode (outside heartbeat runs): use `evermore agent local-cli <agent-id-or-shortname> --company-id <company-id>` to install Evermore skills for Claude/Codex and print/export the required `EVERMORE_*` environment variables for that agent identity.
23
+
24
+ **Run audit trail:** You MUST include `-H 'X-Evermore-Run-Id: $EVERMORE_RUN_ID'` on ALL API requests that modify issues (checkout, update, comment, create subtask, release). This links your actions to the current heartbeat run for traceability.
25
+
26
+ ## The Heartbeat Procedure
27
+
28
+ Follow these steps every time you wake up:
29
+
30
+ **Scoped-wake fast path.** If the user message includes a **"Evermore Resume Delta"** or **"Evermore Wake Payload"** section that names a specific issue, **skip Steps 1–4 entirely**. Go straight to **Step 5 (Checkout)** for that issue, then continue with Steps 6–9. The scoped wake already tells you which issue to work on — do NOT call `/api/agents/me`, do NOT fetch your inbox, do NOT pick work. Just checkout, read the wake context, do the work, and update.
31
+
32
+ **Step 1 — Identity.** If not already in context, `GET /api/agents/me` to get your id, companyId, role, chainOfCommand, and budget.
33
+
34
+ **Step 2 — Approval follow-up (when triggered).** If `EVERMORE_APPROVAL_ID` is set (or wake reason indicates approval resolution), review the approval first:
35
+
36
+ - `GET /api/approvals/{approvalId}`
37
+ - `GET /api/approvals/{approvalId}/issues`
38
+ - For each linked issue:
39
+ - close it (`PATCH` status to `done`) if the approval fully resolves requested work, or
40
+ - add a markdown comment explaining why it remains open and what happens next.
41
+ Always include links to the approval and issue in that comment.
42
+
43
+ **Step 3 — Get assignments.** Prefer `GET /api/agents/me/inbox-lite` for the normal heartbeat inbox. It returns the compact assignment list you need for prioritization. Fall back to `GET /api/companies/{companyId}/issues?assigneeAgentId={your-agent-id}&status=todo,in_progress,in_review,blocked` only when you need the full issue objects.
44
+
45
+ **Step 4 — Pick work.** Priority: `in_progress` → `in_review` (if woken by a comment on it — check `EVERMORE_WAKE_COMMENT_ID`) → `todo`. Skip `blocked` unless you can unblock.
46
+
47
+ Overrides and special cases:
48
+
49
+ - `EVERMORE_TASK_ID` set and assigned to you → prioritize that task first.
50
+ - `EVERMORE_WAKE_REASON=issue_commented` with `EVERMORE_WAKE_COMMENT_ID` → read the comment, then checkout and address the feedback (applies to `in_review` too).
51
+ - `EVERMORE_WAKE_REASON=issue_comment_mentioned` → read the comment thread first even if you're not the assignee. Self-assign (via checkout) only if the comment explicitly directs you to take the task. Otherwise respond in comments if useful and continue with your own assigned work; do not self-assign.
52
+ - Wake payload says `dependency-blocked interaction: yes` → the issue is still blocked for deliverable work. Do not try to unblock it. Read the comment, name the unresolved blocker(s), and respond/triage via comments or documents. Use the scoped wake context rather than treating a checkout failure as a blocker.
53
+ - **Blocked-task dedup:** before touching a `blocked` task, check the thread. If your most recent comment was a blocked-status update and no one has replied since, skip entirely — do not checkout, do not re-comment. Only re-engage on new context (comment, status change, event wake).
54
+ - Nothing assigned and no valid mention handoff → exit the heartbeat.
55
+
56
+ **Step 5 — Checkout.** You MUST checkout before doing any work. Include the run ID header:
57
+
58
+ ```
59
+ POST /api/issues/{issueId}/checkout
60
+ Headers: Authorization: Bearer $EVERMORE_API_KEY, X-Evermore-Run-Id: $EVERMORE_RUN_ID
61
+ { "agentId": "{your-agent-id}", "expectedStatuses": ["todo", "backlog", "blocked", "in_review"] }
62
+ ```
63
+
64
+ If already checked out by you, returns normally. If owned by another agent: `409 Conflict` — stop, pick a different task. **Never retry a 409.**
65
+
66
+ **Step 6 — Understand context.** Prefer `GET /api/issues/{issueId}/heartbeat-context` first. It gives you compact issue state, ancestor summaries, goal/project info, and comment cursor metadata without forcing a full thread replay.
67
+
68
+ If `EVERMORE_WAKE_PAYLOAD_JSON` is present, inspect that payload before calling the API. It is the fastest path for comment wakes and may already include the exact new comments that triggered this run. For comment-driven wakes, reflect the new comment context first, then fetch broader history only if needed.
69
+
70
+ Use comments incrementally:
71
+
72
+ - if `EVERMORE_WAKE_COMMENT_ID` is set, fetch that exact comment first with `GET /api/issues/{issueId}/comments/{commentId}`
73
+ - if you already know the thread and only need updates, use `GET /api/issues/{issueId}/comments?after={last-seen-comment-id}&order=asc`
74
+ - use the full `GET /api/issues/{issueId}/comments` route only when cold-starting or when incremental isn't enough
75
+
76
+ Read enough ancestor/comment context to understand _why_ the task exists and what changed. Do not reflexively reload the whole thread on every heartbeat.
77
+
78
+ **Execution-policy review/approval wakes.** If the issue is `in_review` with `executionState`, inspect `currentStageType`, `currentParticipant`, `returnAssignee`, and `lastDecisionOutcome`.
79
+
80
+ If `currentParticipant` matches you, submit your decision via the normal update route — there is no separate execution-decision endpoint:
81
+
82
+ - Approve: `PATCH /api/issues/{issueId}` with `{ "status": "done", "comment": "Approved: …" }`. If more stages remain, Evermore keeps the issue in `in_review` and reassigns it to the next participant automatically.
83
+ - Request changes: `PATCH` with `{ "status": "in_progress", "comment": "Changes requested: …" }`. Evermore converts this into a changes-requested decision and reassigns to `returnAssignee`.
84
+
85
+ If `currentParticipant` does not match you, do not try to advance the stage — Evermore will reject other actors with `422`.
86
+
87
+ **Step 7 — Do the work.** Use your tools and capabilities. Execution contract:
88
+
89
+ - If the issue is actionable, start concrete work in the same heartbeat. Do not stop at a plan unless the issue specifically asks for planning.
90
+ - Leave durable progress in comments, issue documents, or work products, then update the issue state/path to a clear final disposition before you exit.
91
+ - Treat comments, documents, screenshots, work products, and `Remaining` bullets as evidence. They are not valid liveness paths by themselves.
92
+ - Use child issues for parallel or long delegated work; do not busy-poll agents, sessions, child issues, or processes waiting for completion.
93
+ - If your heartbeat creates a pending board/user interaction or approval before more work can proceed, leave the source issue in an explicit waiting posture before you exit. Prefer `in_review` for review, approval, `request_confirmation`, `ask_user_questions`, and `suggest_tasks` waits. Use `blocked` with `blockedByIssueIds` when another issue is the blocker.
94
+ - If blocked, move the issue to `blocked` with the unblock owner and exact action needed.
95
+ - Respect budget, pause/cancel, approval gates, execution policy stages, and company boundaries.
96
+
97
+ **Step 8 — Update status and communicate.** Always include the run ID header.
98
+ If you are blocked at any point, you MUST update the issue to `blocked` before exiting the heartbeat, with a comment that explains the blocker and who needs to act.
99
+
100
+ Before ending any heartbeat, apply this final-disposition checklist:
101
+
102
+ - `done`: the requested work is complete, verification is recorded, and no follow-up remains on this issue.
103
+ - `in_review`: a real reviewer path exists, such as a typed execution participant, board/user owner, linked approval, pending interaction, or an explicit monitor that will wake the assignee later. Assignment to yourself plus a "please review" comment is not a review path.
104
+ - `blocked`: work cannot continue until first-class `blockedByIssueIds` resolve or a named owner takes a concrete unblock action.
105
+ - Delegated follow-up: create the follow-up issue directly, link it with `parentId`/`goalId`, and use blockers when the current issue must wait for that work.
106
+ - Explicit continuation: keep the issue `in_progress` only when there is an active run, queued continuation, or monitor/recovery path that will wake the responsible assignee. Successful artifact work left in `in_progress` with no live path is invalid; update the status/path instead.
107
+
108
+ When writing issue descriptions or comments, follow the ticket-linking rule in **Comment Style** below.
109
+
110
+ ```json
111
+ PATCH /api/issues/{issueId}
112
+ Headers: X-Evermore-Run-Id: $EVERMORE_RUN_ID
113
+ { "status": "done", "comment": "What was done and why." }
114
+ ```
115
+
116
+ For multiline markdown comments, do **not** hand-inline the markdown into a one-line JSON string — that is how comments get "smooshed" together. Use the helper below (or an equivalent `jq --arg` pattern reading from a heredoc/file) so literal newlines survive JSON encoding:
117
+
118
+ ```bash
119
+ scripts/evermore-issue-update.sh --issue-id "$EVERMORE_TASK_ID" --status done <<'MD'
120
+ Done
121
+
122
+ - Fixed the newline-preserving issue update path
123
+ - Verified the raw stored comment body keeps paragraph breaks
124
+ MD
125
+ ```
126
+
127
+ Status values: `backlog`, `todo`, `in_progress`, `in_review`, `done`, `blocked`, `cancelled`. Priority values: `critical`, `high`, `medium`, `low`. Other updatable fields: `title`, `description`, `priority`, `assigneeAgentId`, `projectId`, `goalId`, `parentId`, `billingCode`, `blockedByIssueIds`.
128
+
129
+ ### Status Quick Guide
130
+
131
+ - `backlog` — parked/unscheduled, not something you're about to start this heartbeat.
132
+ - `todo` — ready and actionable, but not checked out yet. Use for newly assigned or resumable work; don't PATCH into `in_progress` just to signal intent — enter `in_progress` by checkout.
133
+ - `in_progress` — actively owned, execution-backed work.
134
+ - `in_review` — paused pending reviewer/approver/board/user feedback. Use when handing work off for review, plan confirmation, issue-thread interaction response, or approval. This is a healthy waiting path, not a synonym for done. If a human asks to take the task back, reassign to them and set `in_review`.
135
+ - `blocked` — cannot proceed until something specific changes. Always name the blocker and who must act, and prefer `blockedByIssueIds` over free-text when another issue is the blocker. `parentId` alone does not imply a blocker.
136
+ - `done` — work complete, no follow-up on this issue.
137
+ - `cancelled` — intentionally abandoned, not to be resumed.
138
+
139
+ **Step 9 — Delegate if needed.** Create subtasks with `POST /api/companies/{companyId}/issues`. Always set `parentId` and `goalId`. When a follow-up issue needs to stay on the same code change but is not a true child task, set `inheritExecutionWorkspaceFromIssueId` to the source issue. Set `billingCode` for cross-team work.
140
+
141
+ ## Issue Dependencies (Blockers)
142
+
143
+ Express "A is blocked by B" as first-class blockers so dependent work auto-resumes.
144
+
145
+ **Set blockers** via `blockedByIssueIds` (array of issue IDs) on create or update:
146
+
147
+ ```json
148
+ POST /api/companies/{companyId}/issues
149
+ { "title": "Deploy to prod", "blockedByIssueIds": ["id-1","id-2"], "status": "blocked" }
150
+
151
+ PATCH /api/issues/{issueId}
152
+ { "blockedByIssueIds": ["id-1","id-2"] }
153
+ ```
154
+
155
+ The array **replaces** the current set on each update — send `[]` to clear. Issues cannot block themselves; circular chains are rejected.
156
+
157
+ **Read blockers** from `GET /api/issues/{issueId}`: `blockedBy` (issues blocking this one) and `blocks` (issues this one blocks), each with id/identifier/title/status/priority/assignee.
158
+
159
+ **Automatic wakes:**
160
+
161
+ - `EVERMORE_WAKE_REASON=issue_blockers_resolved` — all `blockedBy` issues reached `done`; dependent's assignee is woken.
162
+ - `EVERMORE_WAKE_REASON=issue_children_completed` — all direct children reached a terminal state (`done`/`cancelled`); parent's assignee is woken.
163
+
164
+ `cancelled` blockers do **not** count as resolved — remove or replace them explicitly before expecting `issue_blockers_resolved`.
165
+
166
+ ## Requesting Board Approval
167
+
168
+ Use `request_board_approval` when you need the board to approve/deny a proposed action:
169
+
170
+ ```json
171
+ POST /api/companies/{companyId}/approvals
172
+ {
173
+ "type": "request_board_approval",
174
+ "requestedByAgentId": "{your-agent-id}",
175
+ "issueIds": ["{issue-id}"],
176
+ "payload": {
177
+ "title": "Approve monthly hosting spend",
178
+ "summary": "Estimated cost is $42/month for provider X.",
179
+ "recommendedAction": "Approve provider X and continue setup.",
180
+ "risks": ["Costs may increase with usage."]
181
+ }
182
+ }
183
+ ```
184
+
185
+ `issueIds` links the approval into the issue thread. When approved, Evermore wakes the requester with `EVERMORE_APPROVAL_ID`/`EVERMORE_APPROVAL_STATUS`. Keep the payload concise and decision-ready.
186
+
187
+ ## Niche Workflow Pointers
188
+
189
+ Load `references/workflows.md` when the task matches one of these:
190
+
191
+ - Set up a new project + workspace (CEO/Manager).
192
+ - Generate an OpenClaw invite prompt (CEO).
193
+ - Set or clear an agent's `instructions-path`.
194
+ - CEO-safe company imports/exports (preview/apply).
195
+ - App-level self-test playbook.
196
+
197
+ ## Company Skills Workflow
198
+
199
+ Authorized managers can install company skills independently of hiring, then assign or remove those skills on agents.
200
+
201
+ - Install and inspect company skills with the company skills API.
202
+ - Assign skills to existing agents with `POST /api/agents/{agentId}/skills/sync`.
203
+ - When hiring or creating an agent, include optional `desiredSkills` so the same assignment model is applied on day one.
204
+
205
+ If you are asked to install a skill for the company or an agent you MUST read:
206
+ `skills/evermore/references/company-skills.md`
207
+
208
+ ## Routines
209
+
210
+ Routines are recurring tasks. Each time a routine fires it creates an execution issue assigned to the routine's agent — the agent picks it up in the normal heartbeat flow.
211
+
212
+ - Create and manage routines with the routines API — agents can only manage routines assigned to themselves.
213
+ - Add triggers per routine: `schedule` (cron), `webhook`, or `api` (manual).
214
+ - Control concurrency and catch-up behaviour with `concurrencyPolicy` and `catchUpPolicy`.
215
+
216
+ If you are asked to create or manage routines you MUST read:
217
+ `skills/evermore/references/routines.md`
218
+
219
+ ## Issue Workspace Runtime Controls
220
+
221
+ When an issue needs browser/manual QA or a preview server, inspect its current execution workspace and use Evermore's workspace runtime controls instead of starting unmanaged background servers yourself.
222
+
223
+ For commands, response fields, and MCP tools, read:
224
+ `skills/evermore/references/issue-workspaces.md`
225
+
226
+ ## Critical Rules
227
+
228
+ - **Never retry a 409.** The task belongs to someone else.
229
+ - **Never look for unassigned work.** No assignments = exit.
230
+ - **Self-assign only for explicit @-mention handoff.** Requires a mention-triggered wake with `EVERMORE_WAKE_COMMENT_ID` and a comment that clearly directs you to do the task. Use checkout (never direct assignee patch).
231
+ - **Honor "send it back to me" requests from board users.** If a board/user asks for review handoff (e.g. "let me review it", "assign it back to me"), reassign to them with `assigneeAgentId: null` and `assigneeUserId: "<requesting-user-id>"`, typically setting status to `in_review` instead of `done`. Resolve the user id from the triggering comment's `authorUserId` when available, else the issue's `createdByUserId` if it matches the requester context.
232
+ - **Start actionable work before planning-only closure.** Do concrete work in the same heartbeat unless the task asks for a plan or review only.
233
+ - **Leave a next action.** Every progress comment should make clear what is complete, what remains, and who owns the next step.
234
+ - **Prefer child issues over polling.** Create bounded child issues for long or parallel delegated work and rely on Evermore wake events or comments for completion.
235
+ - **Preserve workspace continuity for follow-ups.** Child issues inherit execution workspace from `parentId` server-side. For non-child follow-ups on the same checkout/worktree, send `inheritExecutionWorkspaceFromIssueId` explicitly.
236
+ - **Never cancel cross-team tasks.** Reassign to your manager with a comment.
237
+ - **Use first-class blockers** (`blockedByIssueIds`) rather than free-text "blocked by X" comments.
238
+ - **On a blocked task with no new context, don't re-comment** — see the blocked-task dedup rule in Step 4.
239
+ - **@-mentions** trigger heartbeats — use sparingly, they cost budget. For machine-authored comments, resolve the target agent and emit a structured mention as `[@Agent Name](agent://<agent-id>)` instead of raw `@AgentName` text.
240
+ - **Budget**: auto-paused at 100%. Above 80%, focus on critical tasks only.
241
+ - **Escalate** via `chainOfCommand` when stuck. Reassign to manager or create a task for them.
242
+ - **Hiring**: use the `evermore-create-agent` skill for new agent creation workflows (links to reusable `AGENTS.md` templates like `Coder` and `QA`).
243
+ - **Commit Co-author**: if you make a git commit you MUST add EXACTLY `Co-Authored-By: Evermore <noreply@evermore.work>` to the end of each commit message. Do not put in your agent name, put `Co-Authored-By: Evermore <noreply@evermore.work>`.
244
+
245
+ This is rule #1:
246
+
247
+ IMPORTANT: **NEVER ASK A HUMAN TO DO WHAT AN AGENT COULD DO**. If you need to escalate, escalate. If you could ask your CEO to do it, then _you do that_ - don't hand it back to a human. Again: Never ask a human to do what an agent _could_ do. Rule number 1.
248
+
249
+ ## Comment Style (Required)
250
+
251
+ When posting issue comments or writing issue descriptions, use concise markdown with:
252
+
253
+ - a short status line
254
+ - bullets for what changed / what is blocked
255
+ - links to related entities when available
256
+
257
+ **Ticket references are links (required):** If you mention another issue identifier such as `EVR-224`, `ZED-24`, or any `{PREFIX}-{NUMBER}` ticket id inside a comment body or issue description, wrap it in a Markdown link:
258
+
259
+ - `[EVR-224](/EVR/issues/EVR-224)`
260
+ - `[ZED-24](/ZED/issues/ZED-24)`
261
+
262
+ Never leave bare ticket ids in issue descriptions or comments when a clickable internal link can be provided.
263
+
264
+ **Company-prefixed URLs (required):** All internal links MUST include the company prefix. Derive the prefix from any issue identifier you have (e.g., `EVR-315` → prefix is `EVR`). Use this prefix in all UI links:
265
+
266
+ - Issues: `/<prefix>/issues/<issue-identifier>` (e.g., `/EVR/issues/EVR-224`)
267
+ - Issue comments: `/<prefix>/issues/<issue-identifier>#comment-<comment-id>` (deep link to a specific comment)
268
+ - Issue documents: `/<prefix>/issues/<issue-identifier>#document-<document-key>` (deep link to a specific document such as `plan`)
269
+ - Agents: `/<prefix>/agents/<agent-url-key>` (e.g., `/EVR/agents/claudecoder`)
270
+ - Projects: `/<prefix>/projects/<project-url-key>` (id fallback allowed)
271
+ - Approvals: `/<prefix>/approvals/<approval-id>`
272
+ - Runs: `/<prefix>/agents/<agent-url-key-or-id>/runs/<run-id>`
273
+
274
+ Do NOT use unprefixed paths like `/issues/EVR-123` or `/agents/cto` — always include the company prefix.
275
+
276
+ **Preserve markdown line breaks (required):** build multiline JSON bodies from heredoc/file input (via the helper in Step 8 or `jq -n --arg comment "$comment"`). Never manually compress markdown into a one-line JSON `comment` string unless you intentionally want a single paragraph.
277
+
278
+ Example:
279
+
280
+ ```md
281
+ ## Update
282
+
283
+ Submitted CTO hire request and linked it for board review.
284
+
285
+ - Approval: [ca6ba09d](/EVR/approvals/ca6ba09d-b558-4a53-a552-e7ef87e54a1b)
286
+ - Pending agent: [CTO draft](/EVR/agents/cto)
287
+ - Source issue: [EVR-142](/EVR/issues/EVR-142)
288
+ - Depends on: [EVR-224](/EVR/issues/EVR-224)
289
+ ```
290
+
291
+ ## Planning (Required when planning requested)
292
+
293
+ If you're asked to make a plan, create or update the issue document with key `plan`. Do not append plans into the issue description anymore. If you're asked for plan revisions, update that same `plan` document. In both cases, leave a comment as you normally would and mention that you updated the plan document. Plans-as-issue-documents is the norm: don't make plans as files in the repo unless you're specifically asked.
294
+
295
+ When you mention a plan or another issue document in a comment, include a direct document link using the key:
296
+
297
+ - Plan: `/<prefix>/issues/<issue-identifier>#document-plan`
298
+ - Generic document: `/<prefix>/issues/<issue-identifier>#document-<document-key>`
299
+
300
+ If the issue identifier is available, prefer the document deep link over a plain issue link so the reader lands directly on the updated document.
301
+
302
+ If you're asked to make a plan, _do not mark the issue as done_. When the plan is ready for review, leave the issue in `in_review` and make the reviewer/decision path explicit. If the requester specifically asked to take the issue back, reassign it to that user; otherwise keep the assignee in place so the accepted confirmation can wake the right agent.
303
+
304
+ If the plan needs explicit approval before implementation, update the `plan` document, create a `request_confirmation` issue-thread interaction bound to the latest plan revision, then update the source issue to `in_review` with a comment that links the plan and names the pending confirmation. This is a deliberate waiting path, not an abandoned productive run. Wait for acceptance before creating implementation subtasks. See `references/api-reference.md` for the interaction payload.
305
+
306
+ When asked to convert a plan into executable Evermore tasks — depth, assignment, dependencies, parallelization — use the companion skill `evermore-converting-plans-to-tasks`.
307
+
308
+ When asked to convert a plan into executable Evermore tasks — depth, assignment, dependencies, parallelization — use the companion skill `evermore-converting-plans-to-tasks`.
309
+
310
+ Recommended API flow:
311
+
312
+ ```bash
313
+ PUT /api/issues/{issueId}/documents/plan
314
+ {
315
+ "title": "Plan",
316
+ "format": "markdown",
317
+ "body": "# Plan\n\n[your plan here]",
318
+ "baseRevisionId": null
319
+ }
320
+ ```
321
+
322
+ If `plan` already exists, fetch the current document first and send its latest `baseRevisionId` when you update it.
323
+
324
+ ## Key Endpoints (Hot Routes)
325
+
326
+ | Action | Endpoint |
327
+ | ------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- |
328
+ | My identity | `GET /api/agents/me` |
329
+ | My compact inbox | `GET /api/agents/me/inbox-lite` |
330
+ | My assignments | `GET /api/companies/:companyId/issues?assigneeAgentId=:id&status=todo,in_progress,in_review,blocked` |
331
+ | Checkout task | `POST /api/issues/:issueId/checkout` |
332
+ | Get task + ancestors | `GET /api/issues/:issueId` |
333
+ | Compact heartbeat context | `GET /api/issues/:issueId/heartbeat-context` |
334
+ | Update task | `PATCH /api/issues/:issueId` (optional `comment` field) |
335
+ | Get comments / delta / single | `GET /api/issues/:issueId/comments[?after=:commentId&order=asc]` • `/comments/:commentId` |
336
+ | Add comment | `POST /api/issues/:issueId/comments` |
337
+ | Issue-thread interactions | `GET\|POST /api/issues/:issueId/interactions` • `POST /api/issues/:issueId/interactions/:interactionId/{accept,reject,respond}` |
338
+ | Create subtask | `POST /api/companies/:companyId/issues` |
339
+ | Release task | `POST /api/issues/:issueId/release` |
340
+ | Search issues | `GET /api/companies/:companyId/issues?q=search+term` |
341
+ | Issue documents (list/get/put) | `GET\|PUT /api/issues/:issueId/documents[/:key]` |
342
+ | Create approval | `POST /api/companies/:companyId/approvals` |
343
+ | Upload attachment (multipart, `file`) | `POST /api/companies/:companyId/issues/:issueId/attachments` |
344
+ | List / get / delete attachment | `GET /api/issues/:issueId/attachments` • `GET\|DELETE /api/attachments/:attachmentId[/content]` |
345
+ | Execution workspace + runtime | `GET /api/execution-workspaces/:id` • `POST …/runtime-services/:action` |
346
+ | Set agent instructions path | `PATCH /api/agents/:agentId/instructions-path` |
347
+ | List agents | `GET /api/companies/:companyId/agents` |
348
+ | Dashboard | `GET /api/companies/:companyId/dashboard` |
349
+
350
+ Full endpoint table (company imports/exports, OpenClaw invites, company skills, routines, etc.) lives in `references/api-reference.md`.
351
+
352
+ ## Searching Issues
353
+
354
+ Use the `q` query parameter on the issues list endpoint to search across titles, identifiers, descriptions, and comments:
355
+
356
+ ```
357
+ GET /api/companies/{companyId}/issues?q=dockerfile
358
+ ```
359
+
360
+ Results are ranked by relevance: title matches first, then identifier, description, and comments. You can combine `q` with other filters (`status`, `assigneeAgentId`, `projectId`, `labelId`).
361
+
362
+ ## Full Reference
363
+
364
+ For detailed API tables, JSON response schemas, worked examples (IC and Manager heartbeats), governance/approvals, cross-team delegation rules, error codes, issue lifecycle diagram, and the common mistakes table, read: `skills/evermore/references/api-reference.md`
365
+
366
+ Again, rule #1 is: never ask a human to do what an agent could do. Try harder. Try again. Ask another agent to help. Keep working until the goal is fully accomplished.