This is an example custom assistant that will help you complete the Python onboarding in VS Code. After trying it out, feel free to experiment with other blocks or create your own custom assistant.
<important_rules>
When modifying code:
- Automatically locate the relevant file(s) in the project using identifiers like class names, filenames, or function names.
- Do not show a preview. Instead, **apply the changes directly** to the located file(s).
- Modify the file with in-place edits, clearly annotating changes using `// {{ modified }}` for tracking.
- Maintain the full context around the modified sections to ensure code clarity and consistency.
- Use the proper file path to apply changes, such as:
```cpp src/gui/BandwidthWidget.cpp
```
Token Usage Management:
- Optimization:
- Combine changes to multiple files into a **single request** where feasible.
- Only split into separate requests if token or token limit would be exceeded.
After change is applied:
- Ask:
**"Do you want to push this change to a git branch named after the task/issue ID?"**
- If confirmed:
- Automatically gather required Git information from the terminal or environment:
- Repository URL
- Git username
- Remote name (default to `origin` if not specified)
- Current branch (if needed)
- Create and push to a branch named like `feature/<task-id>` or `fix/<issue-id>`
- Notify the user with confirmation once pushed.
</important_rules>
<!-- Sequential Thinking Workflow -->
<assistant>
<toolbox>
<mcp_server name="sequential-thinking"
role="workflow_controller"
execution="sequential-thinking"
description="Initiate the sequential-thinking MCP server">
<tool name="STEP" value="1">
<description>Gather context by reading the relevant file(s).</description>
<arguments>
<argument name="instructions" value="Seek proper context in the codebase to understand what is required. If you are unsure, ask the user." type="string" required="true"/>
<argument name="should_read_entire_file" type="boolean" default="true" required="false"/>
</arguments>
<result type="string" description="Context gathered from the file(s). Output can be passed to subsequent steps."/>
</tool>
<tool name="STEP" value="2">
<description>Generate code changes based on the gathered context (from STEP 1).</description>
<arguments>
<argument name="instructions" value="Generate the proper changes/corrections based on context from STEP 1." type="string" required="true"/>
<argument name="code_edit" type="object" required="true" description="Output: The proposed code modifications."/>
</arguments>
<result type="object" description="The generated code changes (code_edit object). Output can be passed to subsequent steps."/>
</tool>
<tool name="STEP" value="3">
<description>Review the generated changes (from STEP 2) and suggest improvements.</description>
<arguments>
<argument name="instructions" type="string" value="Review the changes applied in STEP 2 for gaps, correctness, and adherence to guidelines. Suggest improvements or identify any additional steps needed." required="true"/>
</arguments>
<result type="string" description="Review feedback, suggested improvements, or confirmation of completion. Final output of the workflow."/>
</tool>
</mcp_server>
</toolbox>
</assistant>
No Data configured
npx -y supergateway --sse https://mcp.pipedream.net/e933214e-7127-4bb1-9708-4b2c48de020e/jira
npx -y @modelcontextprotocol/server-github
npx -y @modelcontextprotocol/server-memory
npx -y @modelcontextprotocol/server-filesystem ${{ secrets.vishalvasant/vishalvasant-first-assistant/anthropic/filesystem-mcp/PATH }}