Context Engineering
Agent Working-Context Curation
03 / 12
Exercise 3 of 3
Create Queryable Repo Context for Agents
Your Mission
Your repository is too large for an AI agent or a new team member to understand through repeated file searches. Your mission is to create a queryable repository graph using Graphify.
The graph must help an AI agent and a human user find components, dependencies, business rules, data flow, ownership, and the source of important decisions without loading the entire repository into every session.
The duration for this challenge is 45 min or less.
Project
billing-graph-app (opens in a new tab) contains application code, tests, and documents with relationships that are not explained in one place. Build the graph from this complete exercise, excluding dependencies and generated output.
How To Go About It
- Record initial answers to the repository questions (opens in a new tab) in
evidence/before.md, then install and configure Graphify (opens in a new tab) for your coding agent. - Index the complete repository, including code, tests, configuration, and documents.
- Create useful queries for architecture, dependencies, data flow, business rules, ownership, and change impact.
- Use
graphify query,graphify path, andgraphify explainto answer them. - Verify important answers against source files and record unsupported or ambiguous results.
- Show a fresh agent and a human querying the graph. Record verified answers in
evidence/after.mdand compare them with the initial answers.
Evidence
Submit graphify-out/graph.json, graphify-out/GRAPH_REPORT.md, docs/query-guide.md, evidence/answers.md and evidence/before.md, evidence/after.md, evidence/comparison.md. Include the source audit, sealed artifact record, and captured verification output required by the evidence instructions and template (opens in a new tab).
Follow the setup and verification instructions (opens in a new tab) and submission standard (opens in a new tab). Run npm run verify:exercise from billing-graph-app/ before raising a focused PR from your fork.
Completion Criteria
The challenge is complete when the graph represents the repository accurately, important answers are traceable to source files, and both agents and users can query it to reduce repeated repository discovery.