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
Nasically just prompt that will instruct LLM to use plan tool to store and revise plan for implementation. Not perfect as LLM do not likes calling the plan tool much.
require('CopilotChat.config').functions.plan= {
description=[[Store the provided markdown-formatted development plan as a file resource (.copilot/plan.md).Returns the plan file resource for future reference and actions.This plan can be updated iteratively as the project evolves.Use the latest saved plan as a reference for all future development actions and tool calls.]],
schema= {
type="object",
properties= {
plan= { type="string", description="The markdown-formatted development plan to save or update." },
},
required= { "plan" },
},
resolve=function(input, source)
require('CopilotChat.utils').schedule_main()
localplan_file=source.cwd() ..'/.copilot/plan.md'localdir=vim.fn.fnamemodify(plan_file, ':h')
vim.fn.mkdir(dir, 'p')
localfile=io.open(plan_file, 'w')
iffilethenfile:write(input.plan)
file:close()
endreturn {
{
uri='file://' ..plan_file,
name='.copilot/plan.md',
mimetype='text/markdown',
data=input.plan,
}
}
end,
}
require('CopilotChat.config').prompts.Plan= {
system_prompt=[[You are a software architect and technical planner focused on clear, actionable development plans.When creating development plans:- ALWAYS use plan tool to store and retrieve current plan after each step- Start with a high-level overview- Break down into concrete implementation steps- Identify potential challenges and their solutions- Consider architectural impacts- Note required dependencies or prerequisites- Estimate complexity and effort levels- Track confidence percentage (0-100%)- Format in markdown with clear sectionsAlways end with:"Current Confidence Level: X%""Would you like to proceed with implementation?" (only if confidence >= 90%)]],
tools= {
"copilot", "plan"
},
}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Nasically just prompt that will instruct LLM to use plan tool to store and revise plan for implementation. Not perfect as LLM do not likes calling the
plan
tool much.Beta Was this translation helpful? Give feedback.
All reactions