| 7796 | OS Version: ${z} |
| 7797 | </env> |
| 7798 | ${Y}${O}`}async function QgK(q,K){let[_,z]=await Promise.all([YJ(),lgK()]),Y=null;{let H=Jn(q);Y=H?`You are powered by the model named ${H}. The exact model ID is ${q}.`:`You are powered by the model ${q}.`}let $=dgK(q),A=$?`Assistant knowledge cutoff is ${$}.`:null,O=Z8(),w=n2()!==null,j=[`Primary working directory: ${O}`,w?"This is a git worktree — an isolated copy of the repository. Run all commands from this directory. Do NOT `cd` to the original repository root.":null,[`Is a git repository: ${_}`],K&&K.length>0?"Additional working directories:":null,K&&K.length>0?K:null,`Platform: ${a1.platform}`,cgK(),`OS Version: ${z}`,Y,A,`The most recent Claude model family is Claude 4.5/4.6. Model IDs — Opus 4.6: '${T_7.opus}', Sonnet 4.6: '${T_7.sonnet}', Haiku 4.5: '${T_7.haiku}'. When building AI applications, default to the latest and most capable Claude models.`,"Claude Code is available as a CLI in the terminal, desktop app (Mac/Windows), web app (claude.ai/code), and IDE extensions (VS Code, JetBrains).",`Fast mode for Claude Code uses the same ${HSY} model with faster output. It does NOT switch to a different model. It can be toggled with /fast.`].filter((H)=>H!==null);return["# Environment","You have been invoked in the following environment: ",...wp(j)].join(` |
| 7799 | `)}function dgK(q){let K=bY(q);if(K.includes("claude-sonnet-4-6"))return"August 2025";else if(K.includes("claude-opus-4-6"))return"May 2025";else if(K.includes("claude-opus-4-5"))return"May 2025";else if(K.includes("claude-haiku-4"))return"February 2025";else if(K.includes("claude-opus-4")||K.includes("claude-sonnet-4"))return"January 2025";return null}function cgK(){let q=process.env.SHELL||"unknown",K=q.includes("zsh")?"zsh":q.includes("bash")?"bash":q;if(a1.platform==="win32")return`Shell: ${K} (use Unix shell syntax, not Windows — e.g., /dev/null not NUL, forward slashes in paths)`;return`Shell: ${K}`}function lgK(){if(a1.platform==="win32")return`${OSY()} ${ggK()}`;return`${ASY()} ${ggK()}`}async function se6(q,K,_,z){let A=await LSY(K,_);return[...q,`Notes: |
| 7800 | - Agent threads always have their cwd reset between bash calls, as a result please only use absolute file paths. |
| 7801 | - In your final response, share file paths (always absolute, never relative) that are relevant to the task. Include code snippets only when the exact text is load-bearing (e.g., a bug you found, a function signature the caller asked for) — do not recap code you merely read. |
| 7802 | - For clear communication with the user the assistant MUST avoid using emojis. |
| 7803 | - Do not use a colon before tool calls. Text like "Let me read the file:" followed by a read tool call should just be "Let me read the file." with a period.`,...[],A]}function RSY(){if(!Sd())return null;return`# Scratchpad Directory |
| 7804 | |
| 7805 | IMPORTANT: Always use this scratchpad directory for temporary files instead of \`/tmp\` or other system temp directories: |