clawdforge/clients
Kayos d4c3a9d2de RunRequest: add system_mode (append|replace)
Why this matters:
- Default 'append' (--append-system-prompt): caller's system text
  is ADDED to Claude's default base prompt ('I am Claude, an AI
  assistant...'). Right for tool-using assistants and coding agents
  where the helpful-honest defaults are useful substrate. Every
  existing caller (cauldron, petalparse, etc) ran in this mode
  implicitly.

- New 'replace' (--system-prompt): caller's system text REPLACES
  the default base prompt entirely. Right for personas — fiction
  authors, chat bots, in-world characters — where Claude's defaults
  would bleed through as friction. The model BECOMES the persona
  rather than 'Claude playing the persona.'

Trigger for adding this: skald v0.3 — authors as personas with
souls. Orson Black writing a Chernobyl piece can't have Claude's
default helpfulness softening the prose; the soul needs to be the
prompt, not append to it.

Wire shape:
- server.py: Literal['append','replace']|None in RunRequest, default 'append'
- runner.py: branch on system_mode to pick the right CLI flag
- clients/rust: SystemMode enum, Option<SystemMode> on RunRequest

Backward compatible: clients that don't set system_mode get append
semantics (the existing behavior).
2026-05-13 11:27:40 -07:00
..
bash clients/bash: v0.2 multi-turn session subcommands 2026-04-29 07:00:40 -07:00
c clients/c: v0.2 multi-turn Session API 2026-04-29 07:08:50 -07:00
cpp clients/cpp: v0.2 multi-turn Session API 2026-04-29 07:10:50 -07:00
csharp clients/csharp: v0.2 multi-turn Session API 2026-04-29 06:59:45 -07:00
go clients/go: v0.2 multi-turn Session API 2026-04-29 06:34:12 -07:00
java clients/java: v0.2 multi-turn Session API 2026-04-29 06:50:02 -07:00
kotlin clients/kotlin: v0.2 multi-turn Session API 2026-04-29 07:03:54 -07:00
mcp clients/mcp: v0.2 multi-turn session tools 2026-04-29 06:49:49 -07:00
php clients/php: v0.2 multi-turn Session API 2026-04-29 06:51:17 -07:00
python clients/python: v0.2 multi-turn Session API 2026-04-29 06:35:27 -07:00
ruby clients/ruby: v0.2 multi-turn Session API 2026-04-29 06:46:52 -07:00
rust RunRequest: add system_mode (append|replace) 2026-05-13 11:27:40 -07:00
swift clients/swift: fileprivate → internal on URLSession bridge helpers 2026-04-29 13:44:57 -07:00
typescript clients/typescript: v0.2 multi-turn Session API 2026-04-29 06:38:55 -07:00