/** * Export Claude Code agents → Grok native `.grok/agents/*.md`. * * Per Grok README Claude Compatibility: `.claude/agents/` is also scanned, but * native `.grok/agents/` is the documented project location and shows up in * `/config-agents`. Copy (not symlink) so Grok works even if compat.agents is off. * * v1.16.0: tester points at expo-testing on react-native. * v1.15.0: security-auditor / tester / documenter fork on react-native * (SecureStore, Jest+RNTL, Expo Files paths; skip web overlay). * v1.14.0: documenter same-pass Attention crumb (+ P&S if gotcha=). * HEAD mapping is source of truth. Still one spawn. * v1.13.0: one documenter spawn (why=/slug= includes RC). Hook strips * Read-first svs-document + 40k compact essays (01a00f26 tail 254+394 s). * v1.12.0: no GROK_BANNER in child files (parent spawn law stays in * GROK_SPAWN_RECIPE_MD / svs-dev-process). Prefer parent-inline docs when small. * v1.11.0: named CVEs in security-baseline/cve-watchlist.md (Read on hit). * Agents stay protocol; skills are corpus. Never Read a skill first. * v1.10.0: security-auditor CWE matrix + stack forks + dependency CVE probes. * v1.9.0: native tester / research-web / security-auditor / claude-md-compactor * (Grok Build tools only — search_tool/use_tool, no Claude mcp__ / skills:). * v1.8.0: agents_md false; no mandatory svs-document Read (2.90.2 bloated * prompt 39k→56k). background:true; push after C2; HEREDOC commit body. * v1.7.0: grok-4.6 accepts only low|medium|high|xhigh — pin writers to `low` * (not `none`, API 400). Grok frontmatter (prompt_mode, permission_mode, * agents_md, tools). * v1.6.0: spawn schema often omits `reasoning_effort` (session 01a00f26). Do * not pass that key (schema reject blocks spawn). Hook rewrites * general-purpose → type name. * v1.4.0: write Grok-native lean agents (stacks/_shared/targets/grok-native-agents) * for documenter / domain-updater / commit-manager. Other Claude agents become * short stubs — do not copy 200–400 line Task manuals (session 01a00f26: 8 min * finalize from reading those copies). * v1.3.1: Do **not** inline agent bodies into the parent spawn prompt (auto-compact * / session hang). Child Reads the file in its own window. Drop fat personas/roles * (`instructions_file` of Claude manuals). * v1.3.0: spawn recipe + overlays (fat overlays reverted in 1.3.1). * v1.1.0: strip Claude-only `model: sonnet`, inject inline-exec banner. */ export declare const GROK_AGENTS_VERSION = "1.16.0"; export declare const GROK_AGENTS_REL = ".grok/agents"; export declare const GROK_PERSONAS_REL = ".grok/personas"; export declare const GROK_ROLES_REL = ".grok/roles"; export interface GrokAgentsResult { written: number; overlaysRemoved: number; version: string; skippedReason?: string; } /** * Parent spawn law — do **not** prepend this to child `.grok/agents/*.md`. * Lives in GROK_SPAWN_RECIPE_MD / generated svs-dev-process only. */ export declare const GROK_BANNER = ""; /** * Parent-side spawn recipe (Grok Build 1.0.4+). * Custom type loads the lean agent + matching role (reasoning_effort=low). * Do not pass reasoning_effort on spawn — schema often omits the key. */ export declare const GROK_SPAWN_RECIPE_MD: string; /** Drop a leading SVS `> **Kimi / Grok:**` blockquote so we can rewrite it. */ export declare function stripSvsGrokBanner(rest: string): string; /** Strip Claude-only frontmatter keys and inject the current SVS spawn banner. */ export declare function adaptAgentForGrok(body: string): string; /** 1.3.0 fat overlays (`instructions_file` / `prompt_file`) bloat boot. Keep lean effort pins. */ export declare function removeSvsGrokOverlays(projectDir: string): number; export declare function hasStaleSvsGrokOverlays(projectDir: string): boolean; export declare function grokAgentsNeedsUpdate(projectDir: string): { missing: boolean; outdated: boolean; claudeCount: number; }; export declare function exportGrokAgents(projectDir: string, opts?: { force?: boolean; }): GrokAgentsResult;