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.

Done with Cursor· Intermediate· May 2025

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.