mono claude
Launches Claude Code with all workspace:* dependencies automatically added as --add-dir flags. This gives Claude full context of all packages your app depends on.
Usage
mono claude
How it works
- Reads
package.jsonin the target directory - Finds all
workspace:*dependencies - Resolves each to its package path in the monorepo
- Launches
claudewith--add-dirfor each dependency
Examples
# From an app directory (uses INIT_CWD)
mono claude
# Specify directory explicitly
mono claude --dir apps/salary-calc
# Pass arguments through to claude
mono claude --print "explain this codebase"
# Preview the generated command
mono claude --dry-run
Options
| Flag | Description |
|---|---|
--dir, -d <path> | Package directory (defaults to INIT_CWD or cwd) |
--dry-run | Show the command without executing |