Skip to content

feat: add additionalDirs setting for cross-directory access#13

Draft
morganhein wants to merge 1 commit intomoazbuilds:masterfrom
BananaSwarm:feat/additional-dirs
Draft

feat: add additionalDirs setting for cross-directory access#13
morganhein wants to merge 1 commit intomoazbuilds:masterfrom
BananaSwarm:feat/additional-dirs

Conversation

@morganhein
Copy link
Copy Markdown

When security is not "unrestricted", Claude sessions are scoped to the project directory. This adds an additionalDirs setting so the daemon can automatically pass --add-dir flags, and the scope prompt dynamically includes additional allowed directories.

  • Settings schema, parsing, and defaults in config.ts
  • Dynamic DIR_SCOPE_PROMPT and --add-dir injection in runner.ts
  • Startup logging and hot-reload detection in start.ts
  • Interactive setup question in start.md
  • dirs add/remove/clear/list sub-commands in config.md

When security is not "unrestricted", Claude sessions are scoped to the
project directory. This adds an `additionalDirs` setting so the daemon
can automatically pass `--add-dir` flags, and the scope prompt
dynamically includes additional allowed directories.

- Settings schema, parsing, and defaults in config.ts
- Dynamic DIR_SCOPE_PROMPT and --add-dir injection in runner.ts
- Startup logging and hot-reload detection in start.ts
- Interactive setup question in start.md
- dirs add/remove/clear/list sub-commands in config.md

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@moazbuilds
Copy link
Copy Markdown
Owner

Cool PR, thank you! before I merge it, you're can update the commit to be under your name instead of claude code, if that matters to you.

@morganhein
Copy link
Copy Markdown
Author

Honestly this is my bad. I was trying to set up a local fork that I could have my bots auto-submit PR's into, and was manually testing, and mis-clicked to upstream this. I don't mind upstreaming it, just a little premature at the moment. I don't mind who it's attributed to.

I'll convert this to a draft and move back when it's tested.

@morganhein morganhein marked this pull request as draft March 5, 2026 23:21
Fenrur added a commit to Fenrur/claudeclaw that referenced this pull request Mar 13, 2026
From upstream PR moazbuilds#13 by morganhein.
Allows configuring additional directories Claude can access beyond the
project root, with validation and hot-reload support.

Co-Authored-By: Morgan <morganhein@users.noreply.github.com>
Fenrur added a commit to Fenrur/claudeclaw that referenced this pull request Mar 13, 2026
… and /kill command

From upstream PR moazbuilds#21 by 1872-svg (streaming + verbose) and PR moazbuilds#20 (fork agent).
- Streaming output via editMessageText for real-time response display
- /verbose command to show tool calls in Telegram
- /fork command for parallel lightweight agent using Haiku
- /kill command to terminate active agent
- Auto-routing to fork when main agent is busy
- Merged with additionalDirs (moazbuilds#13) and session corruption fix (moazbuilds#26)

Co-Authored-By: 1872-svg <1872-svg@users.noreply.github.com>
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.

2 participants