8000 feat(config): a launcher that overrides how claude is spawned by dominikwozniak · Pull Request #36 · dominikwozniak/dw-mc · GitHub
[go: up one dir, main page]

Skip to content

feat(config): a launcher that overrides how claude is spawned - #36

Merged
dominikwozniak merged 1 commit into
mainfrom
feat/35-launcher
Sep 17, 2026
Merged

dominikwozniak merged 1 commit into
mainfrom
feat/35-launcher

Conversation

@dominikwozniak
Copy link
Copy Markdown
Owner

Closes #35.

A machine that reaches Claude Code through another program — cswap run --, a multi-account manager — could not use the tool at all: claude was hardcoded in all three spawns. A global launcher key names the program and the arguments that go in front of mission control's own.

launcher:
  command: ["cswap", "run", "--"]   # program + argument prefix, default ["claude"]
  fix_args: ["--enable-auto-mode"]  # flags only the fix session gets

command is an argv list and never a shell string: a shell string needs sh -c, and that extra process in the terminal's foreground group takes the inherited stdin and the Ctrl-C of a fix session with it. An empty list is a ConfigMalformed at read; a program that is not on PATH is left to the spawn, which already reports it as a RunnerFailed.

The key sits beside defaults and repos rather than inside them, because what starts claude is a fact of the machine and no repository's business. It reaches the runner as a field in each spawn's options — review.ts and fix.ts already read the configuration — and it is serialised as well as read, so init rewriting the whole file does not drop a hand-written one. init neither asks for it nor takes a flag for it.

Failures name command[0]: under another program it is that program that exited, and saying claude sends the search to the wrong process. The turn deadline moved into turn for the same reason — the outer pipeline cannot see the launcher.

No review_args: review.model never reaching argv is a separate hole.

🤖 Generated with Claude Code

A machine that reaches Claude Code through a wrapper could not use the tool at
all: the program name was hardcoded in every spawn. A global launcher key names
the program and the arguments that go in front of mission control's own, and the
fix session takes flags of its own on top, because it is the run I steer.

The key sits beside defaults and repos rather than inside them: what starts
claude is a fact of this machine and no repository's business. It is serialised
as well as read, so init rewriting the file does not drop a hand-written one.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@dominikwozniak
dominikwozniak merged commit 09b810a into main Sep 17, 2026
1 check passed
@dominikwozniak
dominikwozniak deleted the feat/35-launcher branch September 17, 2026 07:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(config): a launcher that overrides how claude is spawned

1 participant

0