If you spend any time on developer social media, you've probably seen the posts: someone pastes a four-paragraph prompt packed with architectural specifications into an AI coding assistant, and a complete feature appears on the first try.
For a while, watching that gave me imposter syndrome.
I kept asking myself: How does everyone seem to know exactly what to paste? Why do I find myself exploring unfamiliar codebases, asking questions, getting stuck, and figuring things out step by step?
It felt like I was using the tools wrong. While other developers appeared to have master prompts that solved problems in one shot, I was having messy, iterative conversations with an AI assistant to understand code I hadn't written.
Recently, while contributing a feature to the Proofline CLI, an open-source Rust project, I realized something: you don't need a perfect prompt before touching an unfamiliar codebase. You need a way to explore it and follow how things connect.
The Problem With One-Shot Expectations
Detailed prompts and specifications can be genuinely useful, especially when you already understand the architecture. The problem is assuming a prompt can replace the work of understanding and verification.
Real codebases have unwritten conventions, version compatibility quirks, and subtle invariants. An AI assistant doesn't automatically know those constraints. A solution might even compile while ignoring the project's existing patterns.
The trap isn't that AI tools are unhelpful. It's believing you need to know the entire solution before you start asking questions.
Three Questions to Get Started
When you open an unfamiliar repository, the number of files can feel overwhelming. A useful way to get started is to ask three questions:
- What comes in? Where does the user input or event enter the program?
- What happens to it? What logic transforms the data?
- Where does the result go? Is it printed, saved, or sent somewhere else?
These aren't steps you have to follow in order. They're starting points. You might begin with a command, a data structure, or a function related to the feature you're building. Follow the references and ask questions as you go.
What This Looked Like in Real Rust Code
I was adding a diff feature to Proofline CLI, the open-source Rust command-line client for Proofline. The CLI tracks multiple review runs across a pull request's commits, but developers had no way to see what changed between runs.
I hadn't mapped the repository yet, but I knew the central concept: a review produces findings.
I started by finding where Finding was defined and following how the application used it. That led me to src/model.rs:
pub struct Finding {
pub id: Uuid,
pub severity: String,
pub claim: String,
...
}
My initial thought was to compare findings from Run 1 and Run 2 using their IDs.
But when I asked the AI assistant how we could match them, we hit a problem: the finding id changes on every run. Even if the same issue remains unfixed, the server assigns it a new UUID.
So I asked a more specific question: If IDs change every run, how does the platform correlate the same finding across commits?
Looking further into the model and API schema revealed a field I had overlooked:
pub struct Finding {
pub id: Uuid,
/// The retained semantic identity that correlates this finding's
/// occurrences across runs.
pub finding_fingerprint: Option<String>,
...
}
The backend already generated a stable, 64-character hash representing the underlying issue across runs. That unlocked the feature.
From there, I followed the path through the application:
The logic: We implemented a function in
src/outcome.rsthat matched findings byfinding_fingerprint, categorizing them as resolved, persistent, or new. We also added fallback matching for older server versions where the fingerprint might beNone, with unit tests covering those cases.The output: I wanted to know where the CLI formatted terminal output. That led me to
src/render.rs, where we added[FIXED],[PERSISTS], and[NEW]labels.The input: Finally, I looked at where existing commands were defined. That led me to
src/lib.rs, where the CLI arguments are parsed usingclap. That's where we addedproofline diff --pr <id>.
I didn't know these filenames before starting. Each became relevant as I worked through the previous piece. I started with one concept, followed its references, and asked questions when something didn't make sense.
Asking Questions Is Part of the Work
What initially felt like a weakness, asking questions, exploring files, reading compiler errors, and iterating, is actually a big part of working in an unfamiliar codebase.
Using an AI coding assistant effectively isn't about writing a theatrical prompt that does everything in one shot. It's about using the assistant to explore unfamiliar territory faster.
Questions like these might not look impressive on social media:
- "Why is this UUID different across runs?"
- "Where does this repository handle terminal formatting?"
- "What happens when the fingerprint is
None?"
But they help you understand what's happening before making changes.
The important part is that you're not blindly accepting what the assistant produces. You're investigating, checking assumptions, running tests, and making sure the implementation fits the existing codebase.
You don't need to understand an entire codebase before you start contributing to it. You just need an initial thread and the willingness to follow it.
Top comments (3)
When a question uncovers a standing constraint, I would keep that constraint as a short reusable instruction for later sessions. The useful reusable piece is not a theatrical master prompt, it is the note that stops you rediscovering the same quirk.
Yeah, I do this too, especially for edge cases and project-specific pitfalls. I tend to save those as reusable notes as I discover them, rather than trying to anticipate everything in one big prompt upfront.
Collecting them as you go also keeps each note tied to a real failure, so later it is easier to tell whether it still applies. One big prompt written upfront mostly guesses at problems the project may never have.