Skip to content

Use Cases

Practical scenarios showing how to get the most out of Agent Nine.

Bug Fixing

Find and fix bugs by describing the problem:

text
Users report that login fails when they use special characters
in their password. Find and fix the issue.

Agent Nine will:

  1. Search the codebase for authentication logic
  2. Identify the problematic code
  3. Propose and apply a fix
  4. Run tests to verify

Code Refactoring

Improve code quality without changing behavior:

text
Refactor the UserService — it's 500 lines long.
Split it into smaller, focused modules.
text
Convert all callback-based functions in the auth module to async/await
text
Replace magic numbers with named constants in the pricing logic

Writing Tests

Generate tests for existing code:

text
Write tests for the PaymentProcessor class
text
Add integration tests for all API endpoints in the orders module
text
We have no tests for the email service. Write comprehensive unit tests.

Understanding Unfamiliar Code

Explore a project you've never seen before:

text
Explain how authentication works in this project
text
What happens when a user places an order? Walk me through the entire flow.
text
Find all database queries and explain the data model

Database Work

Work with databases through natural language:

text
Write a migration to add a "status" column to the orders table
text
The query for listing active users is slow. Optimize it.
text
Create a seed script with realistic test data

API Development

Build and maintain APIs:

text
Add a new endpoint: POST /api/invitations that sends an email invite
text
Document all REST endpoints in the project with request/response examples
text
Add input validation and error handling to the user registration endpoint

Frontend Work

Build UI components and features:

text
Create a responsive dashboard page with a sidebar, stats cards, and a data table
text
The mobile menu doesn't close when clicking outside. Fix it.
text
Add dark mode support to the settings page

DevOps & CI/CD

Automate infrastructure and pipelines:

text
Write a GitHub Actions workflow that runs tests on every PR
text
Create a Dockerfile for the backend service
text
Set up a docker-compose for local development with the API, database, and Redis

Cross-Service Tasks

Use integrations to connect your workflow:

text
Read the latest Sentry errors, find the ones related to our API,
and fix them in the codebase
text
Check the Jira board for unfinished tasks in the current sprint
and create a summary
text
Read the design spec from Google Drive and implement the login page accordingly

Large-Scale Changes

Use agents for big tasks:

text
Update all API endpoints to use the new authentication middleware.
Use a team of agents — one per service module.
text
Migrate all class components to functional components with hooks
text
Add TypeScript types to all JavaScript files in the utils/ directory

Agent Nine — AI coding assistant