Provenant Docs

Documentation for the repository model.

Provenant is not a coding model. It is the system that turns a repository into a compact, measurable memory layer for agents.

The Provenant loop
01
Model
Create pages, symbols, and graph structure.
02
Retrieve
Return a small packet for a specific task.
03
Measure
Track citations, confidence, tokens, and dollars.
04
Repair
Improve weak pages with targeted regeneration.

Build a repository model

Index source, extract structure, generate repository pages, and make the codebase retrievable.

Retrieve context

Use search and context APIs to find the files, symbols, and pages an agent should read.

Understand the graph

Use Map to see files, symbols, entry points, and neighborhoods as a spatial memory.

Repair weak evidence

Turn low attribution into targeted regeneration instead of rebuilding everything.

Build

Create the model once, update it when code changes.

Full model

Use full init when you want Provenant to generate repository documentation pages. This gives search and context assembly the strongest semantic retrieval surface.

provenant init .

Structural model only

Use index-only when you want graph, symbols, search, and source inspection without LLM-generated pages.

provenant init . --index-only

Refresh after edits

Use update after source changes. Add --docs when generated pages should be refreshed too.

provenant update --docs
Serve

Run Provenant from the repository you want to inspect.

provenant serve starts the local API and the web UI. The browser UI talks to the API; if the API is offline, the shell will show a disconnected state.

provenant serve
UIlocalhost:3000
APIlocalhost:7337
No UIprovenant serve --no-ui
Retrieve

Search first, then inspect context.

Ask the task

Describe what an agent needs to know before editing code. Good questions name the change, bug, or subsystem.

Read the packet

The ranked context is the product. It shows the pages Provenant thinks are worth sending to an agent.

Check the economics

Compare raw-source equivalent tokens with Provenant packet tokens. Savings only matter when attribution is healthy.

Good retrieval prompt

“Which files define request routing and endpoint registration?”

Search
Map

The graph is the spatial view of memory.

router.ts
entry
symbol
config.ts
Repair

Repair changes the representation, not the source.

1

Detect

A packet retrieves pages that are not cited.

2

Select

Those pages become repair candidates.

3

Regenerate

Provenant rewrites the page from source.

4

Measure

Run the task again and compare attribution.

provenant improve
Screens

Where to go in the application.

Agents

Use Provenant before reading source.

Agent flow

Search or ask first. Then request context for a small set of targets. Only open raw source when the packet points to a specific file or symbol.

MCP

Expose Provenant to an editor or coding agent when the agent should call repository tools directly.

provenant mcp .
Reference

Commands and meanings.

provenant init .

Build the model for the current repo.

provenant init . --index-only

Build fast structural indexes without generated docs.

provenant serve

Start the API and web UI for the current repo.

provenant update

Refresh after code changes.

provenant update --docs

Regenerate documentation pages too.

provenant improve

Repair weak representation pages.

provenant mcp .

Expose Provenant to an editor or agent through MCP.

Troubleshooting

When something feels wrong.

UI shows an old build

Stop serve, clear C:\Users\Shreyash\.provenant\web, then run provenant serve.

API disconnected

Start Provenant from the target repo. The UI needs the local API, usually on port 7337.

Graph is empty

The repo may not be initialized, or serve is running from the wrong directory. Run provenant init ..

Retrieval is vague

Use a more specific search question, inspect citations, then repair pages retrieved but not cited.

White Paper