CodePiler Docs
One File Viewer
Explore the One File Viewer, switch formats, track token counts, and navigate directly from the repository tree to matching content in the assembled output.
Available formats
Text format is optimized for direct prompting, JSON and XML are useful for structured tooling, and Markdown is a readable option for notes, docs, and shareable prompt context.
The token counter helps estimate prompt size before sending the output to an LLM.
Examples
Prepare a refactor brief
Filter down to a service cluster, switch to Markdown, and export a readable prompt bundle for a model-assisted refactor request.
Build onboarding notes
Collect the entrypoint files, routing, and configuration modules, then export a single file for onboarding explanations or architecture notes.
FAQ
Why use One File Viewer instead of opening the source files directly?
The viewer shows the exact prompt output, not just the underlying repository files. That makes it easier to validate selection scope, order, and token usage before you export.