Use Cursor to assemble a graph-based agent repo
They used Cursor to put together a GraphRAG repo with data loading, graph structure, search tools, and an agent workflow.
- What they did
- They built an open-source Agentic GraphRAG project inside Cursor and had the agent produce the main parts: a data-ingestion flow, the Neo4j layout, tools for looking things up, and an agent built with DeepAgents and LangGraph. In agent mode, they broke the job into separate subagents with their own context windows, so one could focus on loading data, another on graph lookups, and another on tests. They also leaned on pstack and two custom skills: /poteto-mode selected a playbook and then checked it by running it, while /swarm distributed work to several agents in parallel.
- How it went
- The finished repo keeps documents, task logs, and agent choices inside a single graph. It also attaches saved decisions to cited passages, marks related decisions as affected when a source changes, and offers its tools through MCP. The post did not mention benchmarks, pricing, or any specific problems.
- Tips
- This kind of build is easier to manage if you start with rules for the repo and keep each subagent narrowly scoped. If you use parallel work, make sure each branch has a clear job so the contexts do not get noisy.
Try it yourself with Cursor
I want to build an open-source repo in [Cursor] for an agent that loads [data type] and answers questions with [database]. Start by defining project rules for the stack, directory layout, and coding conventions. Then create the loading pipeline, the database schema, the lookup tools, and a [LangGraph] agent that can use them. Split the work into separate tracks for loading, graph queries, and tests, and run the code after each milestone. Before any irreversible action, such as deleting files, sending code, or modifying stored data, stop and ask for my approval. Keep going until I can ingest one example item and receive a response that cites its source.
Fill in the [brackets]. Agents can make mistakes, so review anything before it is sent, paid or deleted.
Get 3 agent uses like this every morning
With the day's top AI news. Free, and one click to unsubscribe.
Related agent uses
Move a CMS site to code and Markdown
Use Cursor agents to export CMS content, convert it to Markdown, and refactor the site in parallel.
Build Ansible with Cursor and keep lessons in CLAUDE.md
They used Cursor and Claude to write most Ansible code, while saving lessons and plans to files so the work could continue after compaction.
Run Cursor on small, well-scoped tasks
One commenter uses Cursor agent mode for limited feature work, with a human checking the plan and the agent saving notes for later runs.
Use an agent to find missing database indexes
A developer had Cursor inspect a slow NestJS page and suggest database indexes to fix a production-only slowdown.
Let a bot route review work through Cursor
A developer used Cursor as the review step in a bot-led coding workflow, and the handoff spread to more of the build process.
Assign PRs and bug fixes across Cursor sub-agents
A Cursor coordinator tracked incoming pull requests and live bugs, sent sub-agents after each issue, and kept the user updated along the way.