Skip to content

Feature Request: Start AI sessions in subdirectories when Claude Squad is run from a subdirectory #141

@ichizero

Description

@ichizero

Description

Currently, when Claude Squad is launched from a subdirectory within a Git repository, AI sessions always start at the worktree root. This behavior can be inconvenient when working on specific parts of a large codebase.

Proposed Enhancement

When Claude Squad is executed from a subdirectory (e.g., /project/backend/api), the AI assistant session should start in the corresponding subdirectory within the worktree, rather than at the worktree root.

Example

# Repository Root: /home/user/myproject

# Current behavior
cd /home/user/myproject/backend/api
cs
# AI session starts at: ~/.config/claude-squad/worktrees/session_xxx/

# Desired behavior
cd /home/user/myproject/backend/api
cs
# AI session starts at: ~/.config/claude-squad/worktrees/session_xxx/backend/api/

Benefits

  • More intuitive workflow when working in specific project areas
  • Reduces the need for AI assistants to navigate to the relevant directory
  • Maintains context of where the developer is working

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions