Custom Agents
Custom Agents are user-defined agents with specific instructions and tool access for recurring tasks (code review, documentation updates, domain-specific refactoring, etc.). They can be invoked on selected code or entire files via CodeLens.Access the Custom Agents Manager
- In your code editor, click on CodeLens above your code.
- Select ‘Manage Custom Agents’ from the dropdown menu to open the management window.
Create a New Custom Agent
- In the Custom Agents Manager, click the ‘Add’ button.
- Enter a name for your custom agent to identify it easily.
Define Agent Behavior
- Provide specific instructions or guidelines that define your custom agent’s behavior.
- These could include tasks like repairing code, generating unit tests, or following a particular coding style.
Enable Quick Access
- Toggle on ‘Show in CodeLens’ for quick access to your agent while coding.
- Click ‘Save’ to finalize your custom agent setup.
Use Your Custom Agent
- Access your custom agent anytime through CodeLens in your code editor.
- It will execute the instructions you’ve defined, enhancing your development workflow.