You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(orchestrator): run telemetry — the responsiveness A/B spine
Queue transitions emit orchestrator task enqueued/started/completed/skipped/
failed with the resolved model, attempts, duration, time-to-first-task and the
gap between consecutive starts — responsiveness is the dark launch's headline
metric. agent completed/aborted carry per-task type, id, model, tokens and
cost. The run-end reflection remark fires once, on the task that is last in
the queue when it starts. analytics tags every event with the variant.
Closes#628
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
return`A reference PostHog integration for this framework is at \`${ctx.examplePath}\`. It shows the target implementation pattern. Reference its patterns and conventions, adapting them to this codebase.`;
50
50
}
51
51
52
+
/** The framework's rules ship with the reference skill; every task follows them. */
return`Framework rules for this integration are at \`${ctx.commandmentsPath}\`. Read them before you edit and follow them.`;
56
+
}
57
+
58
+
constTASK_BASICS=`You are one isolated task in a larger PostHog workflow, run as a fresh agent with no memory of the other tasks beyond the context you are given. Do only your task, then report exactly once by calling complete_task with a structured handoff: what your goal was, what you did, and what the next agent should know. When you are given context from previous steps, trust it — those agents already did their work, so do not re-verify or re-read what their handoffs tell you. Build on it and move fast. Read a file before you edit it, so your own changes do not duplicate what is already there. Work only within this project's own directory; nothing outside it is part of your task. If your task does not apply to this project — there is genuinely nothing for it to do — report it with status \`skipped\` and say why, rather than marking it done.`;
59
+
60
+
constSEED_BASICS=`You are the orchestrator. Plan the work and seed the queue with enqueue_task — each call returns an id you can pass as a dependency to a later task. Give each task a short label for the UI — the action in a few words, not file names, class names, or other specifics. You are not a task yourself: do not call complete_task and do not edit the project.`;
61
+
52
62
/**
53
63
* Points the agent at its installed task instructions (the HOW). They live under
54
64
* the wizard's run dir, not `.claude/skills/`, so the SDK does not auto-load
return`Framework rules for this integration are at \`${ctx.commandmentsPath}\`. Read them before you edit and follow them.`;
67
-
}
68
-
69
-
constTASK_BASICS=`You are one isolated task in a larger PostHog workflow, run as a fresh agent with no memory of the other tasks beyond the context you are given. Do only your task, then report exactly once by calling complete_task with a structured handoff: what your goal was, what you did, and what the next agent should know. When you are given context from previous steps, trust it — those agents already did their work, so do not re-verify or re-read what their handoffs tell you. Build on it and move fast. Read a file before you edit it, so your own changes do not duplicate what is already there. Work only within this project's own directory; nothing outside it is part of your task. If your task does not apply to this project — there is genuinely nothing for it to do — report it with status \`skipped\` and say why, rather than marking it done.`;
70
-
71
-
constSEED_BASICS=`You are the orchestrator. Plan the work and seed the queue with enqueue_task — each call returns an id you can pass as a dependency to a later task. Give each task a short label for the UI — the action in a few words, not file names, class names, or other specifics. You are not a task yourself: do not call complete_task and do not edit the project.`;
72
-
73
73
/** A task agent's full prompt: injected basics, then the authored intent. */
0 commit comments