Skip to main content

Overview

This document summarizes common practices for handling daily development tasks with Qoder CLI—from exploring unfamiliar code, fixing bugs, and refactoring, to writing tests, committing, and reviewing. Each category provides ready-to-use prompt examples that you can adapt to your own projects. All examples are performed in interactive mode. For startup instructions, see Using the CLI.

Exploring and Understanding Code

When facing an unfamiliar codebase, start by having Qoder help you build a high-level understanding:
Qoder will autonomously search the code, read relevant files, and provide explanations with file locations. You can follow up on its responses to dive deeper step by step.

Fixing Bugs

Describe the symptoms and let Qoder locate and fix the issue:
A safe approach is to have Qoder reproduce the issue and explain the root cause before making any changes. For issues with a broader impact, you can use Plan to confirm the approach first; see Plan Before Execution (Plan).

Refactoring

Refactoring often involves multiple files. Clearly describe your goals and constraints:
It is recommended to run tests and perform a code review before and after refactoring to ensure behavior remains unchanged; see Viewing and Reviewing Code Changes. For larger-scale refactoring, it is best to use Plan to outline the approach first.

Implementing Features

Let Qoder write code based on your requirements:
Qoder supports multimodal input. You can attach design mockups or screenshots and have it generate code accordingly.

Writing and Running Tests

Having Qoder proactively run tests after writing code creates a closed loop of implementation, verification, and correction. To have it continuously fix issues until all tests pass, you can use Goal; see Continuously Achieving Goals (Goal).

Commits and PRs

When performing Git operations, Qoder will request confirmation before execution based on your permission settings. For details on permission control, see Permissions.

Code Review

Review your changes before committing:
You can also directly use /review to select the scope of the review; see Viewing and Reviewing Code Changes.

Tips

  • Clearly describe goals and constraints: Specifying what you want and what you do not want changed can significantly improve the quality of the results.
  • Focus on one thing at a time: Breaking complex tasks into steps is more manageable than describing all requirements at once.
  • Leverage project instructions: Document your project conventions in AGENTS.md, and Qoder will follow them in every session; see Memory.
  • Large Codebases: For practices tailored to large repositories and Monorepos, see Best Practices and Large Codebases.