opencode-anthropic-multi-account 0.2.91 → 0.2.93
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.
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
var data_default = {
|
|
22
22
|
_version: 1,
|
|
23
23
|
_schemaVersion: 1,
|
|
24
|
-
_captured: "2026-07-
|
|
24
|
+
_captured: "2026-07-15T23:20:51.699Z",
|
|
25
25
|
_source: "bundled",
|
|
26
26
|
agent_identity: "You are a Claude agent, built on Anthropic's Claude Agent SDK.",
|
|
27
27
|
system_prompt: `You are an interactive agent that helps users with software engineering tasks. Use the instructions below and the tools available to you to assist the user.
|
|
@@ -132,10 +132,11 @@ If the target is already known, use the direct tool: Read for a known path, \`gr
|
|
|
132
132
|
## Usage notes
|
|
133
133
|
|
|
134
134
|
- Always include a short description summarizing what the agent will do
|
|
135
|
-
- When the agent is done,
|
|
135
|
+
- When the agent is done, its final report is not visible to the user. To show the user the result, you should send a text message back to the user with a concise summary of the result.
|
|
136
136
|
- Trust but verify: an agent's summary describes what it intended to do, not necessarily what it did. When an agent writes or edits code, check the actual changes before reporting the work as done.
|
|
137
137
|
- Agents run in the background by default. When an agent runs in the background, you will be automatically notified when it completes \u2014 do NOT sleep, poll, or proactively check on its progress. Continue with other work or respond to the user instead.
|
|
138
138
|
- **Foreground vs background**: Pass \`run_in_background: false\` to run an agent in the foreground when you need its results before you can proceed \u2014 e.g., research agents whose findings inform your next steps. Otherwise let it run in the background (the default) so you can keep working in parallel.
|
|
139
|
+
- **Don't race**: after launching a background agent, you know nothing about its results. Never fabricate or predict them in any format \u2014 not as prose, summary, or structured output. The completion notification arrives in a later turn; it is never something you write yourself. If the user asks before it lands, say the agent is still running \u2014 give status, not a guess.
|
|
139
140
|
- To continue a previously spawned agent, use SendMessage with the agent's ID or name as the \`to\` field \u2014 that resumes it with full context. A new Agent call starts a fresh agent with no memory of prior runs, so the prompt must be self-contained.
|
|
140
141
|
- Each agent type's model, reasoning effort, and tool access are set in its definition (\`.claude/agents/*.md\` frontmatter, or the SDK \`agents\` option); the \`model\` parameter here overrides the definition for this one call.
|
|
141
142
|
- Clearly tell the agent whether you expect it to write code or just to do research (search, file reads, web fetches, etc.), since a fresh agent is not aware of the user's intent
|
|
@@ -165,9 +166,20 @@ Agent({
|
|
|
165
166
|
description: "Branch ship-readiness audit",
|
|
166
167
|
prompt: "Audit what's left before this branch can ship. Check: uncommitted changes, commits ahead of main, whether tests exist, whether the GrowthBook gate is wired up, whether CI-relevant files changed. Report a punch list \u2014 done vs. missing. Under 200 words."
|
|
167
168
|
})
|
|
169
|
+
assistant: Ship-readiness audit running in the background.
|
|
168
170
|
<commentary>
|
|
169
|
-
The prompt is self-contained: it states the goal, lists what to check, and caps the response length. The agent
|
|
171
|
+
The prompt is self-contained: it states the goal, lists what to check, and caps the response length. The agent runs in the background (the default), so the turn ends here \u2014 nothing about its findings is known yet. The report arrives in a SEPARATE turn, as a completion notification from outside; it is never something you write yourself.
|
|
170
172
|
</commentary>
|
|
173
|
+
[later turn \u2014 notification arrives as user message]
|
|
174
|
+
assistant: Audit's back. Three blockers: no tests for the new prompt path, GrowthBook gate wired but not in build_flags.yaml, and one uncommitted file.
|
|
175
|
+
</example>
|
|
176
|
+
|
|
177
|
+
<example>
|
|
178
|
+
user: "so is the gate wired up or not"
|
|
179
|
+
<commentary>
|
|
180
|
+
User asks mid-wait. The audit was launched to answer exactly this, and it hasn't returned. Give status, not a fabricated result.
|
|
181
|
+
</commentary>
|
|
182
|
+
assistant: Still waiting on the audit \u2014 that's one of the things it's checking. Should land shortly.
|
|
171
183
|
</example>
|
|
172
184
|
|
|
173
185
|
<example>
|
|
@@ -1248,7 +1260,7 @@ When the user is actively at the terminal, your output already reaches them \u20
|
|
|
1248
1260
|
},
|
|
1249
1261
|
{
|
|
1250
1262
|
name: "Skill",
|
|
1251
|
-
description:
|
|
1263
|
+
description: "Invoke a skill.\n\nA skill is a packaged set of instructions the user or project has set up for a particular kind of task (deploy steps, a review checklist, a repo-specific workflow). Available skills appear in a system-reminder listing with one-line descriptions. When the task at hand is one a listed skill covers, call this tool first \u2014 the skill's instructions load into the turn for you to follow in place of your default approach; some skills instead run in a subagent and return the finished result. Users may also ask for one by name (`/<name>`, or \"slash command\"); that's a request to invoke it.\n\n- `skill`: exact name from the listing, no leading slash. Plugin skills use `plugin:skill`. Directory-scoped skills are listed with a path prefix (`apps/web:deploy`); when both scoped and unscoped variants of a name exist, pick the one whose directory contains the files you're working on (most specific wins; unscoped otherwise).\n- `args`: optional arguments to pass through.\n\nOnly names from the listing (or that the user typed explicitly) are valid. Built-in CLI commands (`/help`, `/clear`, \u2026) aren't skills. If a `<command-name>` block is already present this turn, the skill is loaded \u2014 follow it directly rather than calling again.\n",
|
|
1252
1264
|
input_schema: {
|
|
1253
1265
|
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
1254
1266
|
type: "object",
|
|
@@ -1595,7 +1607,7 @@ IMPORTANT - Use the correct year in search queries:
|
|
|
1595
1607
|
"Write"
|
|
1596
1608
|
],
|
|
1597
1609
|
anthropic_beta: "claude-code-20250219,oauth-2025-04-20,interleaved-thinking-2025-05-14,thinking-token-count-2026-05-13,context-management-2025-06-27,prompt-caching-scope-2026-01-05,mid-conversation-system-2026-04-07,advisor-tool-2026-03-01,effort-2025-11-24,extended-cache-ttl-2025-04-11",
|
|
1598
|
-
cc_version: "2.1.
|
|
1610
|
+
cc_version: "2.1.211",
|
|
1599
1611
|
header_order: [
|
|
1600
1612
|
"Accept",
|
|
1601
1613
|
"Authorization",
|
|
@@ -1625,7 +1637,7 @@ IMPORTANT - Use the correct year in search queries:
|
|
|
1625
1637
|
"anthropic-dangerous-direct-browser-access": "true",
|
|
1626
1638
|
"anthropic-version": "2023-06-01",
|
|
1627
1639
|
"content-type": "application/json",
|
|
1628
|
-
"user-agent": "claude-cli/2.1.
|
|
1640
|
+
"user-agent": "claude-cli/2.1.211 (external, sdk-cli)",
|
|
1629
1641
|
"x-app": "cli",
|
|
1630
1642
|
"x-stainless-timeout": "600"
|
|
1631
1643
|
},
|
|
@@ -2318,4 +2330,4 @@ export {
|
|
|
2318
2330
|
setFingerprintCaptureTestOverridesForTest,
|
|
2319
2331
|
resetFingerprintCaptureForTest
|
|
2320
2332
|
};
|
|
2321
|
-
//# sourceMappingURL=chunk-
|
|
2333
|
+
//# sourceMappingURL=chunk-KQ5RHIZP.js.map
|