Pocket Flow Tutorial Project: Build Cursor with Cursor
Find a file
2025-03-17 10:40:57 -04:00
assets update tutorial image 2025-03-16 15:06:50 -04:00
docs update readme 2025-03-16 12:18:11 -04:00
project init 2025-03-14 18:28:25 -04:00
utils Delete utils/dir_ops_old.py 2025-03-16 01:42:13 -04:00
.cursorrules Initial commit 2025-03-14 18:24:33 -04:00
.gitignore Initial commit 2025-03-14 18:24:33 -04:00
blog.md update blog post 2025-03-14 23:27:36 -04:00
cursor_original_instruction.txt init 2025-03-14 18:28:25 -04:00
flow.py refine structure 2025-03-14 20:16:36 -04:00
LICENSE init 2025-03-14 18:28:25 -04:00
main.py init 2025-03-14 18:28:25 -04:00
README.md Update README.md 2025-03-17 10:40:57 -04:00
requirements.txt init 2025-03-14 18:28:25 -04:00

Build Cursor with Cursor

Cursor is cool! But what if we use it to build an open-source, customizable AI coding agent? Well develop a “Cursor Agent” that writes, reviews, and refactors code—right within Cursor itself. Its meta, its moddable, and its powered by the power of Cursor. Lets build Cursor…with Cursor.

  • To install:

    pip install -r requirements.txt
    
  • To run the Agent

    python main.py --query "For Trusted by industry leaders, add two more boxes." --working-dir ./project
    
  • How does it work? The best starting point to learn is the design doc and the flow code.

  • Note: This project hasn't been pressure-tested or optimized. We intentionally keep it simple for learning.

I built this Cursor Agent using Cursor itself!

  • I built using Agentic Coding, the fastest development paradigm, where humans simply design and agents code.

  • The secret weapon is Pocket Flow, a 100-line LLM framework that lets Agents (e.g., Cursor AI) build for you

  • Step-by-step YouTube development tutorial:



Examples

We provide an example project of SaaS product homepage for the code agent to edit.

To run the page:

cd project
npm install
npm run dev

Here are some example queries you can try:

python main.py --query "For Trusted by industry leaders, add two more boxes." --working-dir ./project