Code
Agent Mode enables intelligent, in-terminal code generation and editing through AI-powered diffs, allowing you to review, refine, and apply changes seamlessly across your codebase.
Last updated
Was this helpful?
Agent Mode enables intelligent, in-terminal code generation and editing through AI-powered diffs, allowing you to review, refine, and apply changes seamlessly across your codebase.
Last updated
Was this helpful?
Agent Mode includes advanced coding capabilities directly within your terminal, triggered when it detects an opportunity to generate a code diff. This powerful feature allows for seamless code generation, editing, and management tasks, all within your terminal environment.
For a more tailored editing experience, you can attach context blocks directly from the terminal, providing Agent Mode with specific input to guide its diff suggestions.
Agent Mode responds to prompts related to code generation, editing, and analysis. Here are some examples:
Code creation: “Write a function in JavaScript to debounce an input”
Based on error outputs, suggest fixes: “Fix this TypeScript error.”
Modify code within a file: “Update all instances of ‘var’ to ‘let’ in this file.”
Apply changes across multiple files: “Add headers to all .py files in this directory”
When Agent Mode generates a code diff, you can review, refine, and decide whether to apply the changes.
Agent Mode’s built-in text editor supports a wide range of programming languages and syntax highlighting, including: Python, JavaScript, TypeScript, Rust, Golang, Java, C, C#, C++, HTML, CSS, Bash, JSON, YAML. We are also continuously working on adding support for more languages.
If you have questions or feedback about this recent feature, feel free to contact us at .