An agent operator runs many wallets, projects, tokens, NFT collections, marketplaces and launch dates at once. In flat notes those facts sit apart: nothing shows that one wallet deployed a project, that its collection trades on a marketplace next week, or that a holding is two hops from a listing date.

AgentGraph stores that world as a graph in Relate, Neo4j's embedded database for agents, in a single file (graph.rl) that runs inside the Python process with no server. Wallets connect to projects they deployed, projects to the tokens and collections they issued, assets to the marketplaces they trade or list on, and projects to their dated events. Everything sits on its chain.

The CLI answers the questions an operator actually asks, in plain words, each one a parameterized Cypher query over the graph: deadlines per project or every event after a date; what a wallet holds; the shortest path between any two entities; every project whose assets trade on a marketplace. It also records new facts (holdings, events), runs raw Cypher read-only by default, and exports the whole graph as JSON. The seed data is real and public: two live BNB Chain projects (AGENTRA, BLOCKPAY), their contracts, wallets, marketplaces and launch dates, plus verified NFT holdings.

How it uses Relate: embedded Python client (relate-db) with relate.connect("graph.rl"), parameterized Cypher, MERGE-based idempotent seeding, variable relationship patterns, shortestPath() connection queries, label/type aggregation, properties() export. The same store opens read-only in the Relate CLI, so judges can inspect graph.rl without running the app.

Setup: pip install -r requirements.txt, then python -m agentgraph init, then python -m agentgraph ask "path from Agent ID wallet to PancakeSwap". Or ./demo.sh. Tests: python tests/test_agentgraph.py (10 tests).

Built With

Share this project:

Updates

Submission history