Skip to content

refactor(run): rename vestigial CLAUDE_* variables to DRIVER_* #134

@LarsCowe

Description

@LarsCowe

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    code-qualityCode quality improvementsralph-loopRalph autonomous loop improvements

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions