Skip to content
Lovelace

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:

GoalCommand
Explore and discuss code turn by turnada chat
Run a longer analysis in the backgroundada agents start "<task description>"
Queue analysis work on the local daemonada tasks submit "<description>"
Revisit an earlier conversationada sessions resume

Interactive Analysis with Chat#

Start chat from the project you want to analyze:

bash
cd /path/to/your/project
ada chat

Then ask for the analysis you need:

text
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:

bash
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:

bash
# 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:

bash
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:

bash
# 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:

bash
# 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

bash
# Test the active provider
ada config provider test

# Try a different provider for this session
ada chat --provider openai

Daemon or agent problems

bash
# Daemon, agent, tool, and reachability health
ada status

# Local diagnostics
ada doctor

Best Practices#

  1. Be specific: name the files, modules, or risks you care about.
  2. Use agents for long reviews: keep chat for questions that need back-and-forth.
  3. Tag tasks: --tag makes related work easy to find with ada tasks list --tag review.
  4. Title important sessions: rename them with ada sessions update <session-id> --title so you can resume them later.

Next Steps: