chore(core): explicitly state plan storage path in prompt (#18222)

This commit is contained in:
Jerop Kipruto
2026-02-03 14:55:43 -05:00
committed by GitHub
parent 40f505e257
commit 675ca07c8b
3 changed files with 6 additions and 4 deletions

View File

@@ -176,7 +176,8 @@ The following read-only tools are available in Plan Mode:
- \`write_file\` - Save plans to the plans directory (see Plan Storage below)
## Plan Storage
- Save your plans as Markdown (.md) files directly to: \`/tmp/project-temp/plans/\`
- Save your plans as Markdown (.md) files ONLY within: \`/tmp/project-temp/plans/\`
- You are restricted to writing files within this directory while in Plan Mode.
- Use descriptive filenames: \`feature-name.md\` or \`bugfix-description.md\`
## Workflow Phases

View File

@@ -305,7 +305,8 @@ ${options.planModeToolsList}
- \`${WRITE_FILE_TOOL_NAME}\` - Save plans to the plans directory (see Plan Storage below)
## Plan Storage
- Save your plans as Markdown (.md) files directly to: \`${options.plansDir}/\`
- Save your plans as Markdown (.md) files ONLY within: \`${options.plansDir}/\`
- You are restricted to writing files within this directory while in Plan Mode.
- Use descriptive filenames: \`feature-name.md\` or \`bugfix-description.md\`
## Workflow Phases

View File

@@ -53,6 +53,7 @@ export class ExitPlanModeTool extends BaseDeclarativeTool<
private config: Config,
messageBus: MessageBus,
) {
const plansDir = config.storage.getProjectTempPlansDir();
super(
EXIT_PLAN_MODE_TOOL_NAME,
'Exit Plan Mode',
@@ -64,8 +65,7 @@ export class ExitPlanModeTool extends BaseDeclarativeTool<
properties: {
plan_path: {
type: 'string',
description:
'The file path to the finalized plan (e.g., "plans/feature-x.md").',
description: `The file path to the finalized plan (e.g., "${plansDir}/feature-x.md"). This path MUST be within the designated plans directory: ${plansDir}/`,
},
},
},