Problem
Global variables like CLAUDE_CMD_ARGS, CLAUDE_USE_CONTINUE, CLAUDE_OUTPUT_FORMAT, and CLAUDE_ALLOWED_TOOLS are used by all 5 drivers, not just Claude Code. The naming leaks the Claude Code origin and confuses new driver authors.
Proposal
Rename with backward-compatible aliases:
| Old |
New |
CLAUDE_CMD_ARGS |
DRIVER_CMD_ARGS |
CLAUDE_USE_CONTINUE |
SESSION_CONTINUITY (already exists as public alias) |
CLAUDE_OUTPUT_FORMAT |
DRIVER_OUTPUT_FORMAT |
CLAUDE_ALLOWED_TOOLS |
DRIVER_ALLOWED_TOOLS |
Keep backward compat in load_ralphrc() so existing .ralphrc files continue to work.
Files
ralph/ralph_loop.sh — global variable declarations and all references
- All 5 drivers in
ralph/drivers/
ralph/templates/ralphrc.template
Priority
15/16 — Low impact, 3 hours effort
Problem
Global variables like
CLAUDE_CMD_ARGS,CLAUDE_USE_CONTINUE,CLAUDE_OUTPUT_FORMAT, andCLAUDE_ALLOWED_TOOLSare used by all 5 drivers, not just Claude Code. The naming leaks the Claude Code origin and confuses new driver authors.Proposal
Rename with backward-compatible aliases:
CLAUDE_CMD_ARGSDRIVER_CMD_ARGSCLAUDE_USE_CONTINUESESSION_CONTINUITY(already exists as public alias)CLAUDE_OUTPUT_FORMATDRIVER_OUTPUT_FORMATCLAUDE_ALLOWED_TOOLSDRIVER_ALLOWED_TOOLSKeep backward compat in
load_ralphrc()so existing.ralphrcfiles continue to work.Files
ralph/ralph_loop.sh— global variable declarations and all referencesralph/drivers/ralph/templates/ralphrc.templatePriority
15/16 — Low impact, 3 hours effort