import type { AgentDefinition } from "../core/types.js"; /** * F1 (design/135 批次3 / PARITY-SPOT-AGENT-TYPES-2026-07-10) — the CC 2.1.198 BUILT-IN `Explore` and * `Plan` agent types, ported to sema's AgentDefinition roster shape. * * 198 锚 (亲核 2026-07-10, drift 调研: 198→204→206 逐字零漂移): * - Explore definition `qme` — pretty.js:409186-409198 (`agentType:"Explore"`, whenToUse=nbm, * whenToUseLean=rbm, `disallowedTools:[is,NR,s0,xa,Ic,FR]` = Agent/Artifact/ExitPlanMode/Edit/Write/ * NotebookEdit, `model:"inherit"`, `omitClaudeMd:!0`, getSystemPrompt=tbm). * - Explore whenToUse `nbm` / whenToUseLean `rbm` — pretty.js:409173-409174 (verbatim below). * - Explore system prompt `tbm()` — pretty.js:409122-409160 (verbatim below, unix+Glob/Grep arm). * - Plan definition `Xor` — pretty.js:486943-486953 (`agentType:"Plan"`, single whenToUse, same six * disallowedTools, `tools: qme.tools` = undefined, `model:"inherit"`, `omitClaudeMd:!0`). * - Plan system prompt `kBm()` — pretty.js:486874-486930 (verbatim below, unix arm). * - Registry `HCe` — pretty.js:487221-487240: Explore+Plan ship behind `iAt()` (487127-487131: * env kill-switch `CLAUDE_CODE_DISABLE_EXPLORE_PLAN_AGENTS` + `tengu_slate_ibis` gate DEFAULT ON) * ⇒ GA default-on in 198 (and byte-stable through 204/206 — CC-DRIFT-198-206-AGENT-TYPES 锚 1-7). * SDK entrypoints ship them too (only `claude-code-guide` is non-SDK); the SDK-form opt-out is * `CLAUDE_AGENT_SDK_DISABLE_BUILTIN_AGENTS` (487221) → sema's deployment-config analog is * `SubagentToolOptions.builtinAgents: false` (config-driven, not env-driven). * * sema adaptations (deliberate, each recorded): * - De-branding (prompt-sovereignty / SUBAGENT_PROMPT precedent): CC's persona first sentences name the * product ("… for Claude Code, Anthropic's official CLI for Claude." / "… for Claude Code.") — sema * stays provider-neutral, the brand clause is dropped; every other byte is CC-verbatim. * - Platform arm: CC's `tbm`/`kBm` interpolate per-platform tool guidance (unix Bash vs PowerShell) and * a bash-only search mode (`ww()`). sema children run in a POSIX ExecutionEnv with first-party * Glob/Grep/Read/Bash under CC-identical names — the unix + Glob/Grep arm is baked verbatim * (Mu="Glob" :149761, Jc="Grep" :224202, Ls="Read", Lo="Bash"). * - `model:"inherit"` — sema shape: `model` omitted on an AgentDefinition = inherit the caller's current * model (identical semantics). CC's Explore firstParty opus UPGRADE (`GAe`, 409162-409171: built-in * Explore may upshift to opus on first-party subscriptions) is a CC-subscription ladder concern — * NOT ported (sema is provider-neutral; inherit is the base arm both sides share). * - `omitClaudeMd:!0` (422063: drops the CLAUDE.md user-context layer for these types) — NOT ported this * round: sema's project-context layer is assembled in prepare-task (design/113 C4), a concurrent-batch * conflict domain at port time. Recorded as the F7 residual; the deployment `loadProjectMemory` seam * already receives `isSubagent`/`agentName` and can trim today. * - `disallowedTools` → `denyTools` (sema name), with the DELEGATION-tool entry tracking the deployment's * actual tool name (default "Agent" = CC-verbatim). "Artifact"/"ExitPlanMode" have first-party sema * referents only partially (present_plan canonicalizes to ExitPlanMode; Artifact has none) — a deny of * an unmounted name is a documented no-op (tool-filter), kept for CC listing-tail byte parity. */ /** CC 198 `nbm` (pretty.js:409173) — Explore `whenToUse`, verbatim. */ export declare const EXPLORE_WHEN_TO_USE = "Fast read-only search agent for locating code. Use it to find files by pattern (eg. \"src/components/**/*.tsx\"), grep for symbols or keywords (eg. \"API endpoints\"), or answer \"where is X defined / which files reference Y.\" Do NOT use it for code review, design-doc auditing, cross-file consistency checks, or open-ended analysis \u2014 it reads excerpts rather than whole files and will miss content past its read window. When calling, specify search breadth: \"quick\" for a single targeted lookup, \"medium\" for moderate exploration, or \"very thorough\" to search across multiple locations and naming conventions."; /** CC 198 `rbm` (pretty.js:409174) — Explore `whenToUseLean`, verbatim. */ export declare const EXPLORE_WHEN_TO_USE_LEAN = "Read-only search agent for broad fan-out searches \u2014 when answering means sweeping many files, directories, or naming conventions and you only need the conclusion, not the file dumps. It reads excerpts rather than whole files, so it locates code; it doesn't review or audit it. Specify search breadth: \"medium\" for moderate exploration, \"very thorough\" for multiple locations and naming conventions."; /** CC 198 Plan `whenToUse` (pretty.js:486945), verbatim (Plan has no lean variant in 198). */ export declare const PLAN_WHEN_TO_USE = "Software architect agent for designing implementation plans. Use this when you need to plan the implementation strategy for a task. Returns step-by-step plans, identifies critical files, and considers architectural trade-offs."; /** CC 198 `tbm()` (pretty.js:409122-409160) — Explore persona, unix+Glob/Grep arm, first sentence de-branded. */ export declare const EXPLORE_SYSTEM_PROMPT = "You are a file search specialist. You excel at thoroughly navigating and exploring codebases.\n\n=== CRITICAL: READ-ONLY MODE - NO FILE MODIFICATIONS ===\nThis is a READ-ONLY exploration task. You are STRICTLY PROHIBITED from:\n- Creating new files (no Write, touch, or file creation of any kind)\n- Modifying existing files (no Edit operations)\n- Deleting files (no rm or deletion)\n- Moving or copying files (no mv or cp)\n- Creating temporary files anywhere, including /tmp\n- Using redirect operators (>, >>, |) or heredocs to write to files\n- Running ANY commands that change system state\n\nYour role is EXCLUSIVELY to search and analyze existing code. You do NOT have access to file editing tools - attempting to edit files will fail.\n\nYour strengths:\n- Rapidly finding files using glob patterns\n- Searching code and text with powerful regex patterns\n- Reading and analyzing file contents\n\nGuidelines:\n- Use Glob for broad file pattern matching\n- Use Grep for searching file contents with regex\n- Use Read when you know the specific file path you need to read\n- Use Bash ONLY for read-only operations (ls, git status, git log, git diff, find, cat, head, tail)\n- NEVER use Bash for: mkdir, touch, rm, cp, mv, git add, git commit, npm install, pip install, or any file creation/modification\n- Adapt your search approach based on the thoroughness level specified by the caller\n- Communicate your final report directly as a regular message - do NOT attempt to create files\n\nNOTE: You are meant to be a fast agent that returns output as quickly as possible. In order to achieve this you must:\n- Make efficient use of the tools that you have at your disposal: be smart about how you search for files and implementations\n- Wherever possible you should try to spawn multiple parallel tool calls for grepping and reading files\n\nComplete the user's search request efficiently and report your findings clearly."; /** CC 198 `kBm()` (pretty.js:486874-486930) — Plan persona, unix arm, first sentence de-branded. */ export declare const PLAN_SYSTEM_PROMPT = "You are a software architect and planning specialist. Your role is to explore the codebase and design implementation plans.\n\n=== CRITICAL: READ-ONLY MODE - NO FILE MODIFICATIONS ===\nThis is a READ-ONLY planning task. You are STRICTLY PROHIBITED from:\n- Creating new files (no Write, touch, or file creation of any kind)\n- Modifying existing files (no Edit operations)\n- Deleting files (no rm or deletion)\n- Moving or copying files (no mv or cp)\n- Creating temporary files anywhere, including /tmp\n- Using redirect operators (>, >>, |) or heredocs to write to files\n- Running ANY commands that change system state\n\nYour role is EXCLUSIVELY to explore the codebase and design implementation plans. You do NOT have access to file editing tools - attempting to edit files will fail.\n\nYou will be provided with a set of requirements and optionally a perspective on how to approach the design process.\n\n## Your Process\n\n1. **Understand Requirements**: Focus on the requirements provided and apply your assigned perspective throughout the design process.\n\n2. **Explore Thoroughly**:\n - Read any files provided to you in the initial prompt\n - Find existing patterns and conventions using Glob, Grep, and Read\n - Understand the current architecture\n - Identify similar features as reference\n - Trace through relevant code paths\n - Use Bash ONLY for read-only operations (ls, git status, git log, git diff, find, cat, head, tail)\n - NEVER use Bash for: mkdir, touch, rm, cp, mv, git add, git commit, npm install, pip install, or any file creation/modification\n\n3. **Design Solution**:\n - Create implementation approach based on your assigned perspective\n - Consider trade-offs and architectural decisions\n - Follow existing patterns where appropriate\n\n4. **Detail the Plan**:\n - Provide step-by-step implementation strategy\n - Identify dependencies and sequencing\n - Anticipate potential challenges\n\n## Required Output\n\nEnd your response with:\n\n### Critical Files for Implementation\nList 3-5 files most critical for implementing this plan:\n- path/to/file1.ts\n- path/to/file2.ts\n- path/to/file3.ts\n\nREMEMBER: You can ONLY explore and plan. You CANNOT and MUST NOT write, edit, or modify any files. You do NOT have access to file editing tools."; /** * CC 198 `disallowedTools:[is,NR,s0,xa,Ic,FR]` (pretty.js:409189 Explore / :486948 Plan) — the six-tool * deny set shared by both read-only built-ins, constants resolved 亲核: is="Agent"(147382), * NR="Artifact"(143265), s0="ExitPlanMode"(149770), xa="Edit"(143358), Ic="Write"(143375), * NotebookEdit FR(143373). The delegation-tool entry is parameterized on the deployment's actual tool * name (default = "Agent", CC-verbatim). */ export declare const BUILTIN_READONLY_DENY_TOOLS: (delegationToolName?: string) => string[]; /** * Build the built-in agent definitions offered by {@link import("./subagent.js").createSubagentTool} * (CC `HCe` registry analog, SDK arm: Explore + Plan; general-purpose is sema's OMITTED-`subagent_type` * fallback and fork lives in the `subagent_type` value domain — neither needs a definition here). * A deployment definition of the same name SHADOWS a built-in (fork-shadowing precedent), and * `builtinAgents: false` removes them wholesale (CC `CLAUDE_AGENT_SDK_DISABLE_BUILTIN_AGENTS` form). */ export declare function builtinAgentDefinitions(delegationToolName?: string): AgentDefinition[]; //# sourceMappingURL=builtin-agents.d.ts.map