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:
- Search the codebase for authentication logic
- Identify the problematic code
- Propose and apply a fix
- 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/awaittext
Replace magic numbers with named constants in the pricing logicWriting Tests
Generate tests for existing code:
text
Write tests for the PaymentProcessor classtext
Add integration tests for all API endpoints in the orders moduletext
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 projecttext
What happens when a user places an order? Walk me through the entire flow.text
Find all database queries and explain the data modelDatabase Work
Work with databases through natural language:
text
Write a migration to add a "status" column to the orders tabletext
The query for listing active users is slow. Optimize it.text
Create a seed script with realistic test dataAPI Development
Build and maintain APIs:
text
Add a new endpoint: POST /api/invitations that sends an email invitetext
Document all REST endpoints in the project with request/response examplestext
Add input validation and error handling to the user registration endpointFrontend Work
Build UI components and features:
text
Create a responsive dashboard page with a sidebar, stats cards, and a data tabletext
The mobile menu doesn't close when clicking outside. Fix it.text
Add dark mode support to the settings pageDevOps & CI/CD
Automate infrastructure and pipelines:
text
Write a GitHub Actions workflow that runs tests on every PRtext
Create a Dockerfile for the backend servicetext
Set up a docker-compose for local development with the API, database, and RedisCross-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 codebasetext
Check the Jira board for unfinished tasks in the current sprint
and create a summarytext
Read the design spec from Google Drive and implement the login page accordinglyLarge-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 hookstext
Add TypeScript types to all JavaScript files in the utils/ directory