Skip to content

Make profile launch setup explicit and reversible#5

Merged
NagyVikt merged 1 commit into
mainfrom
agent/agent/a16-2026-05-20-09-45
May 20, 2026
Merged

Make profile launch setup explicit and reversible#5
NagyVikt merged 1 commit into
mainfrom
agent/agent/a16-2026-05-20-09-45

Conversation

@NagyVikt
Copy link
Copy Markdown
Contributor

Automated by gx branch finish (PR flow).

Add interactive shell initialization that detects zsh, bash, or PowerShell, prints the rc-file diff, requires confirmation unless --yes is passed, and backs up existing rc files before writing managed launcher blocks.

Constraint: Claude Code docs identify CLAUDE_CONFIG_DIR, not CLAUDE_CONFIG_PATH, as the supported configuration-directory override; direnv output uses that variable.

Rejected: Raw PowerShell aliases | PowerShell aliases cannot chain Set-Location and launcher args, so generated profile launchers are functions.

Rejected: Editing shell rc files silently | violates the A16 safety contract and makes startup changes hard to audit.

Confidence: high

Scope-risk: moderate

Directive: When A14 replaces the soul use stub, preserve the --direnv path or call buildDirenvPlan/writeDirenvFile from shell-init.ts.

Tested: bun test bin/cli/lib bin/cli/commands; temp zsh alias generation for claude-/codex- profile launchers; temp bash rc backup; temp PowerShell function rendering; temp soul use --direnv .envrc with inherited profile.env; git diff --cached --check

Not-tested: Full bun test still fails on existing missing supertest dependency in skills/skills/stripe/stripe-webhooks/examples/express/test/webhook.test.js; zsh and pwsh binaries are not installed in this environment, so zsh/pwsh verification was text-level.
@NagyVikt NagyVikt merged commit 57b361d into main May 20, 2026
@NagyVikt NagyVikt deleted the agent/agent/a16-2026-05-20-09-45 branch May 20, 2026 07:55
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.

1 participant