Scaffold a second module from an existing one's structure
A commenter asked Cursor to create a second module following another module's structure, but it failed because it did not read the relevant files.
Done withCursor
- What they did
- The commenter set up the project foundation manually, then asked Cursor to create a second module by following the structure of an existing module. It failed because, according to the post, it did not read the 4–5 files that made up the reference module instead of pulling in that context on its own.
- How it went
- The result was that the agent could not scaffold the matching module from the existing pattern, and the commenter described the agent as too lazy to read context. In replies, others echoed that shrinking context made results worse and more error-prone.
- Worth knowing
- The practical catch was context: the source says the relevant module structure lived across 4–5 files, and Cursor missed it unless that context was explicitly brought in.
Try it yourself with Cursor
Create a new module called [new module name] in [repo name], modeled on the existing module [existing module path]. Before writing anything, open and read every file in that module and list its structure, naming conventions, and patterns back to me. Then scaffold the new module to match, and finish by confirming that it builds and that its structure mirrors the original.
Want help getting this working? Join the Vibe Coding Academy ↗ Run by Alex Finn, who also runs this site.
Source: Reddit · Undated
Related use cases
Keep coding agents running autonomously for long stretches
Cursor's write-up on scaling long-running autonomous coding.
Upgrade site dependencies and frameworks with Cursor
Kent C. Dodds had Cursor's agent look up migration docs, plan and upgrade Remix v2 to React Router v7 and xstate in his site.
Turn Sentry bug reports into fix pull requests
Sentry's Seer passes root cause analysis and issue context to a Cursor Cloud Agent, which writes the fix and opens a pull request in the user's repo.
Build a C compiler with a team of parallel agents
Anthropic's engineering write-up on tasking Opus 4.6 agent teams with building a C compiler.
Run a multi-bot team that opens draft PRs
A Grok setup of research, classifier, builder, tester, reviewer, and security bots maps repos, makes minimal changes, runs tests and lint, and opens draft PRs; the author reports over 1,000 PRs.
Catch bugs by exploring web and mobile apps with QA agents
Momentic's agents autonomously plan, explore and bug-bash user flows in web, iOS and Android apps for engineering teams.
Custom agent
Get 5 like this every morning
The best things people got an AI agent to do, each with the prompt to try it.