Skip to content

Commit 78ee45f

Browse files
fix(prompts): let grants govern outside-workspace plugin reads (#1079)
Permission grants already govern outside-workspace reads, including the yolo exemption, so a prompt-level ban diverges from enforcement and blocks legitimate reads.
1 parent b25bfc2 commit 78ee45f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/agent/prompts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ export function buildHarnessFacts(
9494
...(dynamicTools
9595
? [
9696
"- Core tools plus the advertised catalog (including skill_search) are resident. Use tool_search to load extra capabilities from plugins or integrations when needed.",
97-
"- Use search_agents before dispatching named specialists or teams (ids and descriptions by default; include_body=true for the loaded system prompt). Do not read_file plugin paths outside the workspace.",
97+
"- Use search_agents before dispatching named specialists or teams (ids and descriptions by default; include_body=true for the loaded system prompt).",
9898
"- The user may send follow-up messages while workers run; they are queued. Enter delivers at the next parent tool.boundary; Alt+Enter on session-idle. A long parent tool holds that boundary. Update your plan, spawn or adjust workers, and keep the operator informed.",
9999
]
100100
: ["- The tools below are your full toolset."]),

0 commit comments

Comments
 (0)