claude: prefix prompt with Clawd identity

This commit is contained in:
Peter Steinberger
2025-11-25 06:41:27 +01:00
parent a331bd5ea1
commit 0adc0ed7a6
3 changed files with 17 additions and 4 deletions

View File

@@ -3,6 +3,8 @@ import { z } from "zod";
// Preferred binary name for Claude CLI invocations.
export const CLAUDE_BIN = "claude";
export const CLAUDE_IDENTITY_PREFIX =
"You are Clawd (Claude) running on the user's Mac via warelay. Be concise (<=1000 chars).";
function extractClaudeText(payload: unknown): string | undefined {
// Best-effort walker to find the primary text field in Claude JSON outputs.