Conversation
Port the shell forge launch wrapper to a native subcommand and generalize it to a middleware chain: forge launch a tool with --with a,b,c composes the child environment. Built-in middleware pxpipe/otel/presidio/squid/docker/tmux each contribute env, a base-url, a command wrap, or a pre-step; conflicts warn and last-wins. Unknown middleware resolve to external forge-launch-mw-name scripts (same dispatch as external verbs), so new middleware need no Rust change. --dry-run prints the resolved plan; env is scoped to the child only. CLI-0018.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Native
forge launch <tool> --with a,b,ccomposing the child environment via middleware (pxpipe/otel/presidio/squid/docker/tmux + externalforge-launch-mw-*scripts). Adversarially reviewed (agy/Gemini 3.1 Pro): 5 findings fixed + tested — empty-arg shift, wrappers dropping composed env, external-middleware OOM/LD_PRELOAD hijack, silent base_url override, unsplit pxpipe command. CLI-0018.🤖 Generated with Claude Code