What You’ll Learn
- Compose effective prompts for code generation
- Use @-mentions to provide context
- Leverage Desktop-specific features for parallel development
- Review generated code with Code Review
Prompt Composition
Effective Prompt Structure
- Simple Tasks
- Complex Tasks
- Best Practices
For straightforward code generation:Example:
Iterative Development
Build features incrementally:1
Start Simple
Request the basic structure or core functionality first
2
Review and Refine
Review generated code, request specific improvements
3
Add Complexity
Layer in error handling, edge cases, validation
4
Test and Polish
Request tests, documentation, or final polish
Using @-Mentions
@-mentions provide context by referencing specific files, folders, or symbols.Syntax
| Mention | Scope | Example |
|---|---|---|
@filename | Single file | @userService.ts |
@folder/ | Directory | @src/components/ |
When to Use @-Mentions
- Explicit Context
- Multiple Files
- Folder Scope
Desktop-Specific Code Writing
Parallel Feature Development
- Independent Features
- Bug Fix + Feature
- Experimental
Build unrelated features simultaneously in separate workspaces:Example: Build an authentication system in one workspace while another agent builds the dashboard UI in a separate workspace.
1
Create First Workspace
Click New Workspace in the Top Bar to create an isolated workspace for your first feature
2
Name the Workspace
Give the workspace a descriptive name (e.g., “feature-auth”)
3
Start a Task
In the input box, describe what you want to build and send your message to start a new task
4
Create Additional Workspaces
Repeat the above steps for each additional feature you want to work on
5
Work in Parallel
Each agent works independently in its own workspace without conflicts
6
Review Changes
When a feature is complete, review changes
7
Rebase to main branch
Click Workspace Actions → Rebase to main branch to apply changes
Plan Mode for Complex Features
For complex code generation:- Press
Shift+TaborCtrl+.to switch to Plan Mode - Describe the feature you want to build
- Review the plan Verdent creates
- Refine with follow-up questions
- Switch to Agent Mode to execute the plan
Reviewing Generated Code
After Verdent generates code, use Code Review for quality assurance:1
View Code Review
After Verdent completes changes, the Code Review panel appears inline within the chat
2
Address Critical Issues
Review Must Fix items first, these are security, performance, or stability issues
3
Consider Suggestions
Review Suggestions for recommended improvements you may want to apply
4
Request Fixes
Ask Verdent to fix any issues by describing what needs to change in the input box
5
View Diff
Click Task Changes in the middle panel to see all file modifications
| Category | Focus |
|---|---|
| Security | Vulnerability scanning, injection risks, credential exposure |
| Accessibility | Accessibility compliance and best practices |
| Performance | Algorithmic complexity, resource usage |
| Call-chain Impact | Downstream effects on dependent code |
FAQs
How do I get more accurate code generation?
How do I get more accurate code generation?
- Be specific - Include exact requirements
- Provide context - Use @-mentions for relevant files
- Specify patterns - Reference existing code as examples
- Iterate - Build incrementally rather than all at once
Should I use Plan Mode for all code writing?
Should I use Plan Mode for all code writing?
Use Plan Mode for:
- Complex multi-file changes
- Unfamiliar patterns or codebases
- When you want to review approach first
- Simple, straightforward tasks
- Well-understood changes
- Quick iterations
Can I work on multiple features at the same time?
Can I work on multiple features at the same time?
Yes. Create separate workspaces for each feature by clicking New Workspace in the Top Bar. Each workspace has its own agent working in isolation.
How do I undo changes Verdent made?
How do I undo changes Verdent made?
You don’t need to delete the entire workspace to undo changes. You have several options:
- Rollback: Hover over any message in the chat and click Rollback to this point to revert to an earlier state.
- Use Source Control: Open Source Control (
Ctrl+Shift+G/Cmd+Shift+G) to view changed files and revert specific changes. - Delete workspace: Click Delete Workspace in the Workspace Bar to discard all changes in that workspace. Your base workspace remains unaffected.
Does Code Review use credits?
Does Code Review use credits?
Yes. Code reviews consume credits based on the amount of code analyzed. Disable auto-review in Settings → Chat if you want to save credits.
Can Verdent generate tests for my code?
Can Verdent generate tests for my code?
Yes. Ask Verdent to write tests by describing what to test and referencing files with @-mentions (e.g., “Write tests for @userService.ts”).