Notifications
Clear all

What core skills improve performance when using Claude Code?

3 Posts
4 Users
0 Reactions
66 Views
0
Topic starter

im honestly so close to just deleting claude code off my machine because its driving me insane. i keep throwing tasks at it and it just gets stuck in these weird loops or generates code that makes absolutely no sense. i have a deadline for a small web scraper tool next week and i feel like im wasting more time fixing its mistakes than actually coding. my logic was that if i provided better prompts it would get better but clearly im missing something fundamental here. do i need to get better at breaking down tasks or is there a specific way to structure the context files so it doesnt hallucinate? how are you guys actually getting useful output out of this thing?


3 Answers
12

Honestly, stop treating it like a human. You need small, modular steps. I've been super happy using Cursor AI Code Editor Pro or just keeping context tight with Claude 3.5 Sonnet API.


12

Look, I have been coding for decades, and tools like this are just glorified autocomplete if you do not babysit them. In my experience, if you are getting loops, your context is likely too broad. You need to stop throwing the whole project at it. Here is how I keep things stable:

  • Break every single function into a separate file. Claude loves to hallucinate when the token window gets cluttered with unrelated logic.
  • Write strict type definitions first. I use TypeScript 5.0 Static Typing to force the agent to respect boundaries.
  • Manually verify the AST (Abstract Syntax Tree) after every change. If it starts guessing, stop it immediately. I honestly find it more reliable to run things through Zed Editor Version 0.160.0 because the local integration is way less prone to the weird state-loss I see in CLI tools. You are probably just overwhelming the context window, so try limiting the scope to one file at a time.


2

Came here to say the same thing lol. Great minds think alike I guess.


Share: