You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add an external_directory permission for directory grants #157
Speculative. Depends on a future TUI (or other interactive frontend)
being added to this project. ReloadedCode is headless today.
Problem
Agents get file access through a PathResolver
(AllowedPathResolver, AllowedGlobResolver) built once, at agent
construction time.
The permission model (reloaded_code_core::permissions::Ruleset) already gates
tools (read, write, edit, bash, task, ...) with default-deny,
last-match-wins allow/deny rules.
A TUI would let a user point an agent at a new folder during a
session, for example "also work in ~/other-project". Today there is
no permission key that governs which directories a session may ever
add.
Current behavior
permission: in agent frontmatter has no external_directory key.
Path resolvers fix their allowed directories at construction time.
Nothing in reloaded-code-core gates a runtime directory grant.
Expected behavior
Add external_directory as a permission key, evaluated with the same Ruleset used for every other permission:
#80 - Added: Support wildcard patterns in permission keys [merged] #89 - Add AllowedGlobResolver for fine-grained path sandboxing with glob patterns [merged] #94 - Added: External directory permission for path resolvers [merged] #95 - Optimize external directory path resolution and add benchmarks [merged] #98 - Rework path resolvers to use workspace-rooted semantics [merged]
📝 Issue Planner
Check the box below or use the @coderabbitai plan command to generate an implementation plan and prompts that you can use with your favorite coding assistant.
Create Plan
🧪 Issue enrichment is currently in open beta.
You can configure auto-planning by selecting labels in the issue_enrichment configuration.
To disable automatic issue enrichment, add the following to your .coderabbit.yaml:
issue_enrichment:
auto_enrich:
enabled: false
💬 Have feedback or questions? Drop into our discord!
Activity
coderabbitai commentedon Aug 19, 2026
🔗 Related PRs
#80 - Added: Support wildcard patterns in permission keys [merged]
#89 - Add AllowedGlobResolver for fine-grained path sandboxing with glob patterns [merged]
#94 - Added: External directory permission for path resolvers [merged]
#95 - Optimize external directory path resolution and add benchmarks [merged]
#98 - Rework path resolvers to use workspace-rooted semantics [merged]
📝 Issue Planner
Check the box below or use the
@coderabbitai plancommand to generate an implementation plan and prompts that you can use with your favorite coding assistant.🧪 Issue enrichment is currently in open beta.
You can configure auto-planning by selecting labels in the issue_enrichment configuration.
To disable automatic issue enrichment, add the following to your
.coderabbit.yaml:💬 Have feedback or questions? Drop into our discord!