AI Agent

Delegate entire coding tasks to List Coder's autonomous AI Agent.

AI Agent

The AI Agent in List Coder can handle entire coding tasks autonomously. Unlike Tab completion which works line-by-line, the Agent operates at the project level — understanding your codebase and making changes across multiple files.


Capabilities

Code Generation

Describe what you need in natural language and the Agent generates complete, working code.

"Add error handling for null values in the user object across all API endpoints"

The Agent will:

  1. Analyze your existing code patterns
  2. Generate appropriate error handling
  3. Apply changes across all relevant files
  4. Maintain consistency with your codebase

Bug Fixing

Point the Agent to a bug and it will analyze the code, identify the root cause, and implement a fix.

"The login form doesn't validate email addresses properly"

The Agent will:

  1. Locate the login form component
  2. Analyze the current validation logic
  3. Implement proper email validation
  4. Add error messages for invalid input

Refactoring

Restructure code for better performance, readability, or maintainability.

"Extract the database logic from this component into a separate service layer"

The Agent will:

  1. Identify all database-related code in the component
  2. Create a new service file
  3. Move the logic while maintaining functionality
  4. Update imports and dependencies

Test Generation

Automatically generate unit tests for your functions and classes.

"Write unit tests for the UserService class"

The Agent will:

  1. Analyze the UserService class
  2. Identify all public methods
  3. Generate comprehensive test cases
  4. Include edge cases and error scenarios

How to Use the Agent

Opening the Agent

  1. Press Ctrl + L (or Cmd + L on macOS)
  2. Or click the AI icon in the sidebar

Writing Effective Prompts

Be specific:

  • ❌ "Fix this"
  • ✅ "Add error handling for null values in the user object and show a toast notification when validation fails"

Provide context:

  • ❌ "Make it faster"
  • ✅ "Optimize the database query in src/api/users.ts to use pagination instead of loading all records"

Break down complex tasks:

  • ❌ "Rewrite the entire app"
  • ✅ "Refactor the authentication module to use JWT tokens instead of session cookies"

Agent Modes

Autonomous Mode

The Agent makes changes automatically and shows you the results. Best for well-defined tasks.

Interactive Mode

The Agent asks for confirmation before making each change. Best for complex or uncertain tasks.

Preview Mode

The Agent shows you what it plans to do before executing. Best for reviewing changes before they're applied.


Best Practices

Start Small:

Begin with simple tasks to understand how the Agent works. As you become more comfortable, tackle larger refactoring tasks.

Review Changes:

Always review the Agent's changes before accepting them. Use the visual checkpoint system to inspect each modification.

Provide Feedback:

If the Agent's output isn't what you expected, provide feedback in your next prompt. The Agent learns from your corrections.


Limitations

  • The Agent works best with clear, specific instructions
  • Very large codebases may require breaking tasks into smaller pieces
  • The Agent cannot access external services or APIs without MCP configuration
  • Complex architectural changes may require multiple iterations