Latest / AI Fire Daily / #346 Neil: 10 Secret Claude Code Tricks To Supercharge Your AI Coding Workflow
Transcript
- 0:00Picture this. You're building a massive Lego
- 0:03castle on your desk. Okay. It's got everything.
- 0:06Drawbridges, towers, the works. It's your masterpiece.
- 0:09I'm with you. But then halfway through, you realize
- 0:11you need to build a Lego car. Right. But your
- 0:13desk is full. So to build the car, you'd have
- 0:16to, what, smash a turret? Or sweep the whole
- 0:18castle into a bin just to clear some space. It
- 0:21is the worst feeling. You lose all that momentum.
- 0:24But what if you just buy second desk? And that's
- 0:27it. That's the core of what we're talking about
- 0:29today. In the real world, a new desk is expensive.
- 0:33In software, it's surprisingly cheap. And yet
- 0:36we're all still smashing our castles. We are.
- 0:39Welcome to the deep dive. I've been thinking
- 0:41a lot about how we interact with these AI tools.
- 0:44We tend to treat them like fancy search engines.
- 0:47Like a Q &A box? Exactly. When really the source
- 0:50material argues we should be treating them like
- 0:52junior partners. It's a total mental model shift.
- 0:55I see so many developers get frustrated. They're
- 0:58staring at code, waiting for the AI, copy -pasting,
- 1:00getting errors, and they just say... This is
- 1:03slower than me doing it myself. It's interesting
- 1:05you say that, because today's guide argues that
- 1:07if it feels slower, you're working linearly.
- 1:10One thing at a time. And the fix, and this is
- 1:12kind of the big theme today, is parallelism.
- 1:15Right. Breaking out of that input weight output
- 1:18loop. So let's go back to that second desk idea.
- 1:20The guide talks about this productivity killer
- 1:22called the waiting game. Oh, yeah. This is the
- 1:25invisible time sack. You ask the AI for a function,
- 1:28takes 30 seconds. You run a test suite, that
- 1:31takes a minute. And in that gap. You check Slack.
- 1:34You look at Twitter. You totally lose your train
- 1:36of thought. It's the context switch that kills
- 1:39you, not the weight itself. So the solution is
- 1:41parallel work. For, you know, the command line
- 1:44power users, the guide brings up Git work trees.
- 1:48I've heard of these, but can you break down what
- 1:50that actually is? Sure. Think of it like this.
- 1:53Your project folder is your one desk. If you
- 1:56want to switch from a bug to a feature, you have
- 1:58to switch branches. And that changes all the
- 2:00files. Their whole desk transforms. But with
- 2:03WorkTrees, you can have the same project in two
- 2:05different folders at the same time. So I'd have,
- 2:07like, folder A for the login feature and folder
- 2:10B for a database bug, and they're both open.
- 2:13Precisely. You don't close one to open the other.
- 2:16You have two desks. You push code to the AI on
- 2:19desk one. And while it's thinking, you just swivel
- 2:22over to desk two and keep working. OK. But what
- 2:24if I'm not living in the terminal? What if I'm
- 2:26just using the Claude web interface? Same principle.
- 2:29Stop using one long chat for everything. Open
- 2:31five tabs. And this part is crucial. Name them.
- 2:35Name them what? Log and fix. Database logic.
- 2:38Tab three can be stupid questions. Stupid questions?
- 2:42Yeah. Everyone needs a safe space. That's where
- 2:44you ask, wait, how does a switch statement work
- 2:46again? You don't want that basic stuff cluttering
- 2:49up your complex architecture discussion. But
- 2:51doesn't that, I mean, doesn't splitting your
- 2:53focus like that just create chaos? I feel like
- 2:55my brain would just melt. It sounds chaotic,
- 2:58I know, but it's actually cleaner for the AI.
- 3:01You have to remember these models have a context
- 3:03window. They can only remember so much. Right.
- 3:07If you mix database queries and UI design and
- 3:10CSS tweaks in one thread, the AI gets confused.
- 3:14It starts making things up, splitting them, keeps
- 3:17the AI's memory pure. So it keeps the AI's memory
- 3:20distinct and manageable. Exactly. You're acting
- 3:22less like a coder and more like a product manager
- 3:25running a team of specialists. Being an orchestrator
- 3:28means you need a plan, which brings us to the
- 3:31next point, the architect mindset. The source
- 3:34is pretty harsh here. It calls most of our prompts
- 3:36vending machine prompts. Right. Make me a snake
- 3:39game. Fix this bug. You put a coin in, you want
- 3:42a product out. And then you get mad when the
- 3:44code is messy? Of course. But you'd never tell
- 3:46a human contractor, build me a house and just
- 3:49walk away. You'd end up with a bathroom in the
- 3:50kitchen. Exactly. So the fix is what they call
- 3:53plan mode. Before you write a single line of
- 3:55code, you open a new chat and you say, act as
- 3:58a senior software architect. You ask for a blueprint,
- 4:02a file structure, libraries, data schemas, security
- 4:05risks, all of it. You're front loading the thinking,
- 4:08but doesn't that just delay the actual building?
- 4:10I want to see code. It delays the start, but
- 4:13it massively accelerates the finish because changing
- 4:17a text description is free. Changing 500 lines
- 4:20of code because you chose the wrong database
- 4:22library. That's really expensive. There's a tactic
- 4:25in here I really liked getting a second opinion
- 4:27on that plan. This is my favorite trick. So you
- 4:30get the plan from chat A, then you copy it, open
- 4:34a totally new chat B, and you say, hey, I'm thinking
- 4:37of building this. critique it, tear it apart.
- 4:40It's like an adversarial review. It is. The second
- 4:42AI has zero attachment. It's fresh. It'll spot
- 4:45things the first one best because it's not, you
- 4:47know, high on its own supply. So why is that
- 4:49planning phase so non -negotiable? Because entropy
- 4:51is the default state of all code. Without a plan,
- 4:55complexity just spirals. With a plan, you're
- 4:59executing a checklist. Fixing text is cheap.
- 5:01Fixing code is expensive. That's the bottom line.
- 5:04OK, so we have our parallel desks. We have our
- 5:06blueprints. But then you hit the wall of repetition.
- 5:08Everyone's felt this. You start a new chat. You
- 5:10have to remind the AI. I use Python. I like short
- 5:14lines of code. Don't use this library. It's like
- 5:17that movie 50 First Dates. Assistant amnesia.
- 5:20It's a huge friction point. So the solution here
- 5:23is a file called ClaudeEatE .md. How does a simple
- 5:27text file fix amnesia? Well, most of these AI
- 5:30coding tools can look at your project files now.
- 5:33So if you create a file in your main folder called
- 5:36Claude EMD... That's the start? Your tech stack?
- 5:44Sure. But the real high leverage stuff is lessons
- 5:46learned. Give me an example. Okay, let's say
- 5:48you spend four hours on a bug where the attainment
- 5:51gateway crashes if an address has a special character.
- 5:54You fix it. Normally, that knowledge just lives
- 5:57in your head. But with this system, you go to
- 6:00clodee .md and you write, lesson. Payment API
- 6:06fails on special characters. Always sanitize
- 6:09input. And the next time I ask the AI to write
- 6:12payment code. It reads that file first. It knows
- 6:14not to make that mistake. And if it slips up,
- 6:17you don't just fix the code. You actually scold
- 6:19it. You say, you ignore the instructions. Update
- 6:22clodee .md so you never do this again. So how
- 6:25does this change your relationship with the tool?
- 6:27It stops being a fresh chat every time and starts
- 6:30kind of reading your mind. It accumulates wisdom.
- 6:32It's moving from a blank slate to institutional
- 6:34memory. Exactly. The AI becomes a colleague that's
- 6:37been on the project as long as you have. Let's
- 6:39move to automation. The guide mentions custom
- 6:41skills or magic spells. This sounds pretty complex.
- 6:44It's actually not. We all have these boring,
- 6:46repetitive tasks. Check for unused variables,
- 6:49summarize what the team did on Slack. The idea
- 6:51is just to turn those into shortcuts. Like tech
- 6:53death. Right. In a really sophisticated setup,
- 6:56you can program a command like techdet to run
- 6:59a script. But even if you're just in the web
- 7:01chat, you can keep a text file on your desktop.
- 7:04Call it myprompts .txt. So when I want a really
- 7:07tough code review, I don't type out the whole
- 7:09thing. I just copy paste my spell. You got it.
- 7:11It just lowers the cognitive load. If asking
- 7:14for a code review is a hassle, You're not going
- 7:16to do it. If it's a quick copy paste away, you'll
- 7:18do it every time. So is this just about typing
- 7:20faster or is it something more? It's about reducing
- 7:23that cognitive load. It turns these repetitive
- 7:25chores into single word triggers. It lowers the
- 7:28barrier to doing things the right way. Exactly.
- 7:31Speaking of barriers, let's talk debugging. The
- 7:34red test. You run your code. The screen fills
- 7:37with red error text. And the human reaction is
- 7:40to squint at it, scroll up, try to find the one
- 7:43important line. Stop. Stop playing detective.
- 7:46Humans are terrible at parsing thousands of lines
- 7:48of logs. We see what we expect to see. AIs are
- 7:51just logic engines. They're literal. So what's
- 7:53the workflow then? You copy the entire error
- 7:56log. I don't care if it's 500 lines of gibberish.
- 7:59You paste it in and just say Fix the failing
- 8:02tests. You don't even try to give it a hint.
- 8:04Like, I think it's the database. No, because
- 8:06you might be wrong. And if you give it a hint,
- 8:09you're biasing the AI. You're contaminating the
- 8:12evidence. Let it look at the raw data. The source
- 8:15also mentions a term, MCP, Model Context Protocol.
- 8:19What does that actually mean? It sounds like
- 8:22jargon, but think of it as giving the AI hands.
- 8:25Normally, the AI is a brain in a jar. It can
- 8:28only talk. MCP lets the AI reach out and touch
- 8:31your tools. It can read your terminal, access
- 8:34your Slack, look at GitHub issues directly. So
- 8:37instead of me pasting the logs, the AI just goes
- 8:39and looks at them itself. Exactly. You can say,
- 8:41why is the goal failing? And it goes and checks
- 8:43the server logs for you. It connects the dots
- 8:45way faster. Why does this work better than a
- 8:48human searching through logs? Because it's analyzing
- 8:51logic instantly. It finds things we miss, like
- 8:53a missing semicolon or an inverted true false.
- 8:56It's unbiased pattern recognition versus human
- 8:59guessing. That brings up a really interesting
- 9:01tactic called grill me, which feels like the
- 9:04opposite of asking for help. Yeah. Usually we
- 9:08want the AI to be nice to us. Grill me is asking
- 9:11the AI to be mean. How so? You say, I'm about
- 9:15to commit this code, act as a strict security
- 9:18auditor, grill me on the flaws. You're asking
- 9:21for a stress test. And it will find them. It'll
- 9:23say, you didn't handle what happens if the internet
- 9:26connection drops. Or, this loop will freeze the
- 9:29browser with 10 ,000 items. It catches all the
- 9:32edge cases we're too optimistic to see. Then
- 9:34there's the scrap it method. This one, I think
- 9:37I'd struggle with this. Knowing everything you
- 9:39know now, scrap this and implement the elegant
- 9:42solution. It hurts, doesn't it? It's the sunk
- 9:44cost fallacy. I spent three hours on this, I
- 9:46have to make it work. But the guide argues the
- 9:48second draft is always better. Always. The first
- 9:51draft is for you and the AI to learn the problem.
- 9:54Once you understand it, that code you wrote is
- 9:56just baggage. If you tell the AI, OK, lesson
- 10:00learned, delete it, write it clean, you get a
- 10:02solution that's half the length and twice as
- 10:04fast. It just feels so counterintuitive asking
- 10:07the AI to delete its own work. But the restart
- 10:10carries all the lessons you learned and ditches
- 10:13all the baggage. Killing your darlings to lock
- 10:15in the lesson. Ruthlessly. Let's touch on the
- 10:18environment itself. There's a mention of things
- 10:20like ghosty and voice mode. Is this just about
- 10:23making things look nice? Well, ghosty is a terminal.
- 10:26And yeah, good readability helps. But voice mode,
- 10:30that's the real game changer. Really? I type
- 10:32pretty fast. You don't type as fast as you think.
- 10:35But more importantly, when you type, you summarize.
- 10:38You cut corners because typing is work. When
- 10:41you speak, you ramble, and I mean that in a good
- 10:44way. You provide so much more context. So instead
- 10:47of typing, fix this function, you're saying,
- 10:49OK, so I'm trying to sort this list, but I'm
- 10:50worried about the user data being null, and we
- 10:52need to make sure. Exactly. You're dumping your
- 10:55entire mental state into the AI. It's just high
- 10:57bandwidth communication, and it gives the AI
- 10:59a much richer context to work with. The guide
- 11:02also uses a house building analogy for something
- 11:04it calls subagents. How does that work? So think
- 11:08about building a house. You've got your general
- 11:10contractor, but you also have a plumber, an electrician,
- 11:13a roofer. You wouldn't ask the electrician to
- 11:16plumb the toilet. So a subagent is like a specialist.
- 11:19Yes. For a massive task, you tell the main AI,
- 11:22break this down, use subagents. One agent might
- 11:25just go read the documentation for a new library.
- 11:28Another might write the SQL queries. They all
- 11:31report back to the main boss. And what's the
- 11:33real benefit of using these subagents? It keeps
- 11:35the main AI from getting tired. It stops its
- 11:39context window from filling up with noise. So
- 11:41specialization keeps the context clean. Right.
- 11:44We've talked a lot about building faster. But
- 11:46there's a fear here. If the AI writes the SQL
- 11:49and the AI debugs the logs, are we just forgetting
- 11:53how to code? Yeah, the de -skilling fear. And
- 11:56it's valid, but only if you use the tool lazily.
- 11:59If you just say, do it, and paste the result
- 12:02without thinking, then yes, you will become a
- 12:04worse coder. So how do you flip that script?
- 12:06You turn the AI into a tutor. The source calls
- 12:09this the educational shift. If the AI writes
- 12:12a complex SQL query, don't just use it. Ask it,
- 12:15why did you use a left join here instead of an
- 12:18inner join? You force it to explain its work.
- 12:21And you can use visual aids. You can ask for
- 12:23an ASCII diagram. It'll literally draw a flowchart
- 12:26with text characters to show you how the data
- 12:28is moving. And what about spaced repetition?
- 12:30Yeah. Quiz me on React hooks. Use that downtime.
- 12:34Instead of scrolling Twitter while your code
- 12:36compiles, have the AI grill you on concepts you're
- 12:39weak on. You actually end up learning faster
- 12:42because you have a senior engineer who never
- 12:44gets tired of explaining things. So does relying
- 12:46on AI make us forget how to code? Not if you
- 12:49use it as a senior teacher or a study buddy.
- 12:52So active curiosity prevents that skill from
- 12:54fading. You have to use it to create curiosity,
- 12:57not replace it. We're going to take a quick break.
- 12:59When we come back, we're going to distill all
- 13:01this down. If you only do one thing from this
- 13:04list, what should it be? We've covered a lot.
- 13:07Parallel work trees, CLOUDE .md, adversarial
- 13:11grilling, voice mode. It feels like a completely
- 13:13new operating system for development. But if
- 13:16we zoom out, what's the one big idea here? The
- 13:19shift is from thinking of it as a tool to thinking
- 13:22of it as a partner. Meaning? Well, you don't
- 13:26give a hammer a memory file. You don't ask your
- 13:28hammer for a plan. But you treat AI like a hammer.
- 13:30You get really limited results. You have to treat
- 13:33it like a brilliant but junior colleague. It
- 13:35needs context. It needs clear instructions. It
- 13:38needs a dedicated workspace. It does. It's about
- 13:41leveraging the fact that it can do the heavy
- 13:43lifting, which frees you up to do the high -level
- 13:45thinking. Your brain is for architecture, business
- 13:47logic, creativity. And the AI is for syntax,
- 13:50boilerplate, and error checking. When you get
- 13:53that balance right, coding stops being a grind.
- 13:55it starts feeling like magic again. So for the
- 13:59listener who's maybe sitting at their desk right
- 14:00now, don't try to do all 10 of these things at
- 14:03once. No, you'll burn out. Just pick one. And
- 14:05which one should that be? I'd say start with
- 14:07cliude .md. Just create that text file on your
- 14:10project. Put your tech stack in it. Add just
- 14:13one lesson you learn the hard way. And just watch
- 14:16how that changes the conversation when the AI
- 14:18stops having amnesia. That's the actionable step.
- 14:21And I'll leave you with this thought. If the
- 14:24AI is handling the syntax, the debugging, the
- 14:26boilerplate, maybe we aren't just coders anymore.
- 14:29Maybe this tool lets all of us finally become
- 14:32architects. That's the goal. Let the AI handle
- 14:34the boring stuff so you can get back to the joy
- 14:36of building. Thanks for diving in with us. See
- 14:38you in the next one.