Learning and Exploration Workflow
Learn new technologies and understand unfamiliar code faster with AI guidance
Use Ada CLI as a tutor for languages, frameworks, and libraries, and as a guide to unfamiliar codebases. Learning happens in ada chat, which is interactive: start it, then type the prompts shown below. Work that should produce files, such as an architecture overview of a repository, goes to agents with ada agents start "<task>".
Learning a New Framework#
Run ada chat and move from overview to practice:
- "Explain the Next.js App Router architecture. How does it differ from the Pages Router?"
- "What are the five most important concepts to understand in Next.js?"
- "Show me a server component that fetches data."
- "What is the recommended pattern for form handling with Server Actions?"
- "Explain Incremental Static Regeneration with a real-world example."
When you have code of your own, paste it into the conversation and ask for a review against current best practices.
Result: framework fundamentals, working examples, and feedback on your own code.
Understanding an Unfamiliar Codebase#
Generate an Overview#
From the repository root, create a workspace and have an agent write the overview:
ada workspaces init
ada workspaces select --id <workspace-id>
ada agents start "Read this repository and write ARCHITECTURE.md describing its purpose, entry points, main modules, and the technologies it uses"
ada agents list
ada agents status <agent-id>
Targeted Investigation#
Focus agents on specific areas:
ada agents start "Explain how authentication works under src/auth and write the explanation to notes/auth.md"
ada agents start "Trace the data flow from an API request to the database and back, and write it to notes/data-flow.md"
ada agents start "List the design patterns used under src/services and where each one appears, in notes/patterns.md"
Then open ada chat, paste the parts of the notes you want to discuss, and ask follow-up questions.
Result: a written map of the codebase and answers to the questions it raises.
Learning a Programming Language#
In ada chat:
- "Explain Rust ownership and borrowing with simple examples."
- "Compare Rust's approach to memory management with JavaScript and TypeScript."
- "What mistakes do Rust beginners make most often?"
- "Write a Rust program that reads a file and counts word frequency."
- "Here is a pattern I use in TypeScript. How would I write it idiomatically in Rust?" (paste the code)
- "Review this Rust code. Is it idiomatic?" (paste the code)
Exploring APIs and Libraries#
In ada chat:
- "Explain the Stripe API structure. What are the main resources?"
- "Show me Stripe code to create a customer, charge a card, and handle a webhook."
- "How do I set up Prisma in a Next.js project?"
- "Show me Prisma patterns for relations, transactions, and raw SQL."
- "What security considerations apply to a Stripe integration?"
A Structured Learning Plan#
Plan the month in one conversation, then come back to it each day.
-
Run
ada chatand ask: "Create a four-week learning plan for Next.js: fundamentals, data fetching and routing, performance, and a capstone project." -
Title the session so you can find it:
ada sessions list ada sessions update <session-id> --title "Next.js learning plan" -
Each day, resume the plan and work through the day's topic:
ada sessions resume <session-id>Useful daily prompts: "Explain today's topic: Next.js middleware", "Give me three exercises to practice it", and "Quiz me on middleware concepts."
-
Keep a separate titled session per topic, and find them again with:
ada sessions list ada sessions info <session-id>
Learning by Building#
Pick a small project and build it in steps. In ada chat:
- "Suggest a project that teaches Next.js core concepts."
- "Guide me through building a blog. What is step 1?"
- "Add authentication to the blog and explain each step."
- "Review my implementation. Which concepts did I miss?" (paste the code)
To scaffold a starting point rather than typing it by hand:
ada agents start "Create a basic Next.js blog with static pages in a new blog/ directory"
Learning From Mistakes#
When you hit an error, run ada chat, paste the error output and the code that produced it, and ask:
- "Explain why this error happens and how to prevent it."
- "What other common mistakes should I watch for in this area?"
Related Workflows#
- Hackathon Workflow - Build projects quickly
- Documentation Workflow - Create learning resources
- Common Workflows - Apply what you learn