CJ Zafir Profile picture
Nov 30, 2024 11 tweets 5 min read Read on X
Today I've completed my 28th project with AI Code.

3 months back I knew nothing about Cursor, bolt, v0 or even Claude as a coding assistant.

But after spending 600+ hours with these AI tools, I have learned some TRICKs.

I'm sharing TOP 10 TRICKs of:
- Cursor
- Bolt
🧵
Let's start with bolt.

1. Do you know Bolt is open source? which means I can inspect their Github repo and find their "system prompt"

I copy this prompt and feed it to claude/o1 when I work on bolt related tasks.

I ask AI to keep the prompt in mind and bolt instructions.

It always works. Try it.

You can find this prompt under:
bolt .new/app/lib/.server/llm/prompts.tsImage
2. Target file

I paste v0 code in bolt to get my frontend components done quickly and with less token burn.

But when I paste the code in the file myself, bolt doesn't update its context.

For this purpose I use "target file" option.

I let bolt know that I pasted the code in x file. Help me run the update and update linked files.

It works.Image
3. Let me help you save tokens on Bolt.

When you ask bolt to make a specific change in the code. Bolt tries to rewrite the code for complete file.

It burns alot of tokens.

To solve this issue Bolt launch a beta feature "Diffs"

Go to Settings/Preview features and enable Diffs

(There're still some issues with accuracy but it is much better now)Image
4. Specific Change.

If you want to use Diffs even better and you know some context of code. Try this.

Highlight the code snippet and click on "Ask AI"

Bolt will attach the snippet to input filed. Now prompt it to mak ethat specific change.

This works fast and burn very less tokens.Image
5. Enhance prompt.

When you start your workflow or during the process, when you ask bolt to make any changes.

Try this "enhance prompt" feature to make your prompt more detailed.

8/10 times it makes your request alot clear, resulting in less errors and less token burn. Image
Now let me give you 5 Cursor Tricks.

1. Check if you're using latest Sonnet Model?

By default Cursor is using the old Claude Sonnet 3.5 model.

Go to Cursor Settings/Models and enable Cursor sonnet-20241022

Then in composer select that model.

New model is alot efficient for coding and debugging.Image
3. New Agent 0.43 Update Download.

Many of you are still using Cursor 0.42 which doesn't have Cursor agent.

Go to changelog .cursor.sh/ and download cursor from here.

This is Cursor's feature update page. Image
3. Enable Bug finder

This is an experimental (beta feature) that helps you find minor bugs in the code.

Go to Cursor Settings/beta and enable this feature.

It will show up alongside composer.

(Still not super accurate but alot better than manual prompting and fixing).

Documentation makes a huge difference.Image
4. Documentation

Project Documentation works like a context boundary around Cursor.

You need to understand that Cursor's system prompt is very complex. If you don't provide context around your project.

It will mess up code, file structure, layout. You'll burn out and quit.

Let me help you.

Check out my earlier posts where I shared what docs you need to create to make cursor work with you not gainst you.

I was asked alot that how do you upload documents?

you just need to create a folder in your root directory. I name it "Documents" and them upload all your docs in .md format.

Good part. Cursor Agent picks up docs right away. Just tag the right doc, prompt cursor and boom. It works.Image
For Dumentation process which is 80% work of the AI code.

I am building codeguide .dev to create High Quality Docs in 15 minutes rather than 5 hours after burning all chat limits on o1 and Claude.

I fixed my painpoint. Sign up today to get early access.
(720 signed up in 48 hours. 🙌)

Share this Post with others to Support.

If you want me to share more Tricks on tools like v0, Windsurf, Cline? Comment your thoughts below. ✨

Peace.
CJImage

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with CJ Zafir

CJ Zafir Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @cjzafir

Aug 16
Introducing Codespace

A virtual computer that runs custom Claude Code on server.

It is using 2 models: Kimi K2 + Claude Sonnet 4 in a sync.

I achieved same code quality with 2x better reasoning and 53% less model cost.

Access it today @CodeGuidedev
(500 credits for everyone)
We fixed some core issues:
1. It works with new and existing codebases and it won’t touch your existing code.

It can scan large codebases, 10M tokens (250,000 lines of code) and remember all core details.

Just attach your GitHub Account and select the repo you want to work on. Image
Image
2. It works autonomously (you don’t need to hit accept all) everytime.

It generates 7 docs to build a solid knowledge base to refer and create detailed tasks/sub-tasks list on autopilot.

Resulting in 88% less hallucinations and better code structure. Image
Read 8 tweets
Aug 14
Every AI startup is focused on "Build me an ........... app" (New projects)

But what about millions of existing codebases on GitHub with billions of lines of code?

To focus on existing codebases, I built a coding environment: Codespace.

(Explained below)
Simple Steps:
1. Connect your GitHub Account
2. Open Codespace and select the repo you want to work on. (AI agent will make an isolated environment for every request)
3. Let AI agent Analyze, generate docs and tasks list
4. analyze the kanban board to track tasks
5. Go have coffee and wait for the agent to email you when done.
I built a Claude Code wrapper that:
- runs on cloud (access it with phone, or laptop)
- can analyze upto 10M token size codebases
- has better visual UI & flow
- generate docs (knowledge base)
- tasks/sub-task list (2x better than claude)
- notifies me when its done via email
Read 5 tweets
Jun 27
I built "Clade Tasks" to make Claude Code 10x better and 2x cheaper.

I integrated 3 engines in 1 flow:

1. Claude Code (best agentic coding interface)
2. CodeGuide (to provide deep context to AI)
3. Taskmaster (to create detailed implementation plan)

Here's how it works: ↓
Claude Code is the most powerful AI coding tool right now.

Yes better than Cursor/windsurf.

But Claude 4 (the underlying model) can spit out unnecessary files/code and burn tokens.

Also it's plan mode is good but I found a better alternative: ↓
1. Plan before code

"Build me x, y, z." type prompts don't work because of no technical context.

So turn your idea into a set of well structured docs:
- PRD
- Tech stack doc.
- App flow doc
- UI guidelines
- backend structure
etc

@CodeGuidedev write these docs in only 3 steps Image
Read 7 tweets
Jun 15
The most important document in AI coding: PRD
(Project Requirements Document)

It serves like a blueprint & explains:
- project's overview
- tech stack
- user flow
- core features
- ui details
- backend schema
- security guidelines
- regulations

Here's how you can create PRDs:
Before you create a PRD, brainstorm with ChatGPT voice.

This step will help you finalize what features you want in your version 1.

In the end ask ChatGPT: "now add all approved features in one document and create a detailed draft)

Now it's time to create a PRD.
I use @CodeGuidedev to create all my coding docs including PRD

It uses 03 + 04-mini + Sonnet 4 model to create extensive set of docs

Flow is simple

Step 1: Open "New Project" and paste the feature draft in the input field

Step 2: Now select AI tools & AI models you'll use
Read 8 tweets
Apr 18
What are AI Agents?

OpenAI just published 30-page guide on AI agents.

I explained the guide in 10 points. Bookmark this: Image
1. Agents ≠ basic workflows

A normal “workflow” just runs a fixed list of steps with an LLM; it doesn’t think for itself.

On the other hand, Agents are systems that independently accomplish tasks on your behalf.

Workflows are linear. Agents are dynamic & autonomous. Image
2. Use agents for the complex jobs

Agents handle changing rules, tricky choices, and unstructured data better than any fixed script.

Pick jobs that need judgment, change a lot, or rely on messy text, images, or PDFs. Image
Read 12 tweets
Apr 10
I tested Gemini Pro 2.5 as my main coding model for 40+ hours.

Here're 2 documents that are working brilliantly well with Gemini.

"App flow document + App flowchart."

This made my Cursor workflow 10x better. Here's why it is working: ↓
Gemini Pro 2.5 has a 1 million token context window.

In simple terms it can scan upto 100,000 lines of code instantly to understand full codebase.

Claude & GPT models has 200k context window and that's why they struggle with large codebases.
But large context window doesn't mean Gemini doesn't hallucinate or assume things.

That issue is still there but I'm able to fix hallucinations by 95% in Gemini with my 'Context Boundary' technique.

You need to provide context with coding docs:
- PRD
- App flow doc
- Tech stack doc
etc

But here's how 2 docs are working really good with Gemini.Image
Read 7 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us!

:(