Skip to content

Add --cd flag to codemob new#34

Open
blipinsk wants to merge 1 commit into
mainfrom
feat/new-cd
Open

Add --cd flag to codemob new#34
blipinsk wants to merge 1 commit into
mainfrom
feat/new-cd

Conversation

@blipinsk

@blipinsk blipinsk commented Apr 7, 2026

Copy link
Copy Markdown
Member

Summary

  • Adds --cd flag to codemob new so users can create a mob and land directly in the worktree directory without launching an agent session
  • Go binary prints the worktree path as the last stdout line when --cd is set
  • Shell function intercepts --cd, captures the path, and cds into it

Closes #27

Test plan

  • Added TestNewCdPrintsWorktreePath integration test
  • Manual: mob new --cd foo creates mob and changes directory
  • Manual: mob new --cd (no name) auto-generates name and cd's
  • Manual: mob new foo (no --cd) still launches agent as before

Allow creating a mob without launching an agent session, landing
directly in the worktree directory instead. The Go binary prints
the worktree path as the last stdout line; the shell function
intercepts --cd, captures the path, and cd's into it.

Closes #27
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.

new codemob with a cd rather than a claude session

1 participant