How markdown, PDFs, and spreadsheets join a codebase graph
Non-code sources should enter the graph as citable nodes linked to code and tickets—not orphan chunks the agent cannot join.
By Trellis

The agent can surface a paragraph from last quarter’s design PDF and still fail the useful question: which symbols and open tickets does this note still constrain? Similarity found the text. It did not join the text to the map the agent is about to edit.
Teams feel that gap every week. READMEs, ADRs, export PDFs, and ownership spreadsheets sit next to the repo. Coding agents either ignore them, paste random chunks into context, or treat them as a second search pile that never meets the graph of code and work. The decision is not “should we embed more files?” It is how non-code sources enter a codebase knowledge graph so the agent can cite them with code and tickets — not dump them as orphan chunks.
Orphan chunks are not a codebase map
The default rescue is familiar: convert the PDF or sheet to text, slice it into pieces, embed the pieces, retrieve nearest neighbors. Document GraphRAG goes further and extracts entities from those chunks into a graph of documents, sections, and mentioned names. That is real progress for “what does this report say about X?”

It is still the wrong spine for a coding agent.
A bag of similar snippets does not answer multi-hop questions that cross systems: which open work items touch the modules this runbook names, and which PR last changed the handler the spreadsheet still lists as owned by a departed teammate? Industry pipelines for PDFs and unstructured files answer the document half of that sentence well. Code-only graph demos answer the repository half. The expensive miss is the join — prose that never becomes memory next to symbols, PRs, and tickets.
Orphan chunks also age badly under honesty. You can re-embed the folder every sprint and still lack typed edges from a design note to the service it constrains. The model re-guesses the link from wording alone, session after session.

What the prose layer is for
A codebase knowledge graph is not “code structure plus whatever we managed to dump into vectors.” Product systems that take agent memory seriously treat prose as its own layer: Markdown, PDFs, and spreadsheets — chunked, embedded, and cited. That layer sits with a graph of typed entities and typed edges, not instead of it.
Chunking still matters. Long ADRs and multipage PDFs need pieces an embedder can rank. Citation matters more. A useful answer names a path, a section, or a cell neighborhood the human can open — not a free-floating paragraph the model might have half-remembered. Embedding matters as entry, not as the whole architecture: semantic retrieval finds candidate prose; the graph keeps that prose connected to the rest of the system map.
Prose is also not the same job as a why layer of decisions, rationales, and outcomes. Design notes and tickets often feed those decisions. The prose layer’s job is simpler and stricter: durable, citable narrative and tabular sources in the same private map as code — without pretending a pile of markdown is the graph.

How non-code sources enter the same map as code
Intake is two doors into one room.
Local files already on the machine: source in most languages, SQL, and prose — Markdown, PDFs, and spreadsheets. That is the path for the ADR in docs/, the architecture PDF in the shared drive mirror, the rate or ownership sheet the team still updates by hand.
Connectors pull remote systems where work already lives — code hosts, trackers, and the rest of the integration wall. Remote systems enter through connectors; files enter through the filesystem. Same private graph, two intake paths.
The deposit shape is what separates this from a second document crawler. Everything becomes typed nodes joined by typed relationships, not a permanent landfill of raw pages. A markdown runbook is a document (or section) node with provenance. A PR and a work item are nodes of their own kinds. Typed edges are how an agent expands a neighborhood without swallowing every byte of every source.
You do not need every connector on day one. You do need the rule: when a spreadsheet or PDF enters, it enters the same map the agent uses for symbols and tickets — not a parallel “docs RAG” the agent forgets when it opens a file.
Cite with code and tickets — the join that pays
Memory for a coding agent is a queryable graph of code, docs, decisions, PRs, and work items. The word docs in that sentence is load-bearing. If docs live only in a chat paste or a disconnected index, the agent re-learns them every session or invents a bridge that is almost right.
Scenarios that only work when the join exists:
- A design PDF names a deprecated webhook. The agent should not only quote the PDF; it should reach the handlers still registered, the open ticket that promised removal, and the PR that last touched the route.
- A runbook markdown still describes a manual failover. The agent should surface that procedure and the incident or work item that tracks automation debt — not a similar-looking paragraph from an unrelated service.
- An ownership spreadsheet lists modules and review queues. Once that sheet and the code live in the same map, the agent answering “who owns this?” can cite both — instead of forcing a human to merge two separate searches.
Retrieval posture for those questions is hybrid: search by meaning over prose and code, plus search of code by name. Exact ticket keys, file paths, and symbol names still need exact matches; design language still needs meaning. Hybrid search is how the agent enters. The graph is how it stops at the right neighborhood instead of a list of almost-related chunks.

Connected and typed, not a second dump
The anti-pattern is seductive: “we already have GraphRAG for PDFs, and a code index, and a ticket search — the agent can call three tools.” Three orphan systems recreate the same blind spot at tool-call latency. The agent becomes a human-in-the-loop ETL job.
The pattern that holds is quieter. Non-code sources join the codebase graph as first-class prose: chunked where needed, embedded for entry, cited for trust, and linked with typed relationships into the same map as code and work. Retrieval stays connected and semantic because passages are searched by meaning and typed edges carry the agent from there to code and work — not because you stuffed more raw files into the window.
When that is true, “what does the design note say?” and “what still implements the old path?” stop being different products. They are one neighborhood walk with sources the agent can name.
Want this for your team?
Trellis builds local-first knowledge graphs for coding agents, and the Free plan runs on your own machine.