AI Chat & Analysis Guide
Use chat, agents, and tasks to review and analyze your code
Overview#
Ada CLI has no separate analysis command. To have Ada analyze or review code, pick the command that matches how you want to work:
| Goal | Command |
|---|---|
| Explore and discuss code turn by turn | ada chat |
| Run a longer analysis in the background | ada agents start "<task description>" |
| Queue analysis work on the local daemon | ada tasks submit "<description>" |
| Revisit an earlier conversation | ada sessions resume |
Interactive Analysis with Chat#
Start chat from the project you want to analyze:
cd /path/to/your/project
ada chat
Then ask for the analysis you need:
You: Walk me through the authentication flow in this codebase
You: What security improvements would you recommend for the login endpoint?
You: Which modules depend on src/db, and are there any circular imports?
To use a specific provider or model for the session:
ada chat --provider anthropic --model <model-id>
ada chat --provider openai --model <model-id>
See Interactive Chat for slash commands and session controls.
Background Analysis with Agents#
Agents run in the Lattice daemon, so a long review keeps going while you do other work:
# Architecture overview
ada agents start "Summarize the architecture of this repository and write it to docs/architecture.md"
# Dependency review
ada agents start "List outdated or unused dependencies in package.json and explain each one"
# Security review
ada agents start "Audit src/ for security vulnerabilities and report findings by severity" --wait
Check on running agents:
ada agents list
ada agents status <agent-id>
Queued Analysis with Tasks#
ada tasks submit queues work on the local daemon and returns a task ID you can follow:
# Queue a review, tagged for later filtering
ada tasks submit "Review the uncommitted changes in this repository for bugs" --tag review
# Follow the task until it finishes
ada tasks monitor <task-id> --follow
# Show task details
ada tasks get <task-id>
# List all review tasks
ada tasks list --tag review
Session Management#
Every chat is saved as a session:
# List sessions
ada sessions list
# Resume the most relevant one (pick interactively when no ID is given)
ada sessions resume
ada sessions resume <session-id>
# Resume directly into chat with a different provider
ada chat --session <session-id> --provider openai
# Rename a session so it is easy to find
ada sessions update <session-id> --title "Auth security review"
# Show details for the last session
ada sessions info --last
Troubleshooting#
Provider connection problems
# Test the active provider
ada config provider test
# Try a different provider for this session
ada chat --provider openai
Daemon or agent problems
# Daemon, agent, tool, and reachability health
ada status
# Local diagnostics
ada doctor
Best Practices#
- Be specific: name the files, modules, or risks you care about.
- Use agents for long reviews: keep chat for questions that need back-and-forth.
- Tag tasks:
--tagmakes related work easy to find withada tasks list --tag review. - Title important sessions: rename them with
ada sessions update <session-id> --titleso you can resume them later.
Next Steps:
- Agent Execution: start, monitor, and stop agents
- Editor Integration: use Ada from your editor