Run script/setup in new worktrees and give each task a port block

This commit is contained in:
Ian Gulliver
2026-10-15 11:52:13 -07:00
parent f5e5dd30e3
commit cfa9699f4b
15 changed files with 453 additions and 174 deletions
+3 -1
View File
@@ -37,6 +37,7 @@ type Options struct {
ForkSession bool
GitName string
GitEmail string
Env []string
Guidance string
Hooks map[string][]HookMatcher
MCPServers []*mcp.Server
@@ -355,7 +356,7 @@ func buildEnv(opts Options) []string {
env = append(env, kv)
}
return append(env,
env = append(env,
"CLAUDE_CODE_ENTRYPOINT=sdk-go",
"CLAUDE_CODE_DISABLE_AUTOUPDATER=1",
"GIT_AUTHOR_NAME="+opts.GitName,
@@ -363,6 +364,7 @@ func buildEnv(opts Options) []string {
"GIT_COMMITTER_NAME="+opts.GitName,
"GIT_COMMITTER_EMAIL="+opts.GitEmail,
)
return append(env, opts.Env...)
}
func (s *Session) hookConfig(hooks map[string][]HookMatcher) map[string]any {