CodePiler icon
CodePiler
HomeDocsApp
Launch App
Home/Docs

Documentation

CodePiler docsUploading repositoriesOne File ViewerExamples and FAQ

CodePiler Docs

One File Viewer

Explore the One File Viewer, switch formats, set a token budget, add a prompt wrapper, and navigate directly from the repository tree to matching content in the assembled output.

File preview vs. selection

Clicking a filename in the repository tree previews it in the editor — the viewer scrolls to that file's section in the assembled output. This is a preview-only action and does not change your selection.

To include a file in the export, check its checkbox. This separation makes it easy to inspect a file before deciding whether it belongs in the prompt.

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.

Switch formats at any time — the selection and prompt wrapper are preserved across format changes.

Token budget

The token chip in the viewer header shows the total token count for your current output, including any system prompt and task text from the prompt wrapper.

Use the model dropdown next to the chip to set a context limit: Claude 200K, GPT-4o 128K, Gemini 1M, or GPT-3.5 16K. A color-coded bar fills green → amber → red as you approach the limit, so you know when to trim before copying.

Prompt wrapper

Click the Prompt button in the header to open the prompt wrapper modal. The left panel is for a system prompt (prepended before all code) and the right panel is for a task (appended after all code).

Each panel has a preset dropdown. System prompt presets cover 12 languages and stacks — JavaScript/TypeScript, Python, Go, Rust, Java, C++, PHP, Ruby, Swift, Kotlin, React/Next.js, and a general polyglot option. Task presets cover 12 common operations: modularize, apply OOP, write tests, performance audit, security review, refactor for readability, add TypeScript types, document the code, find bugs, functional style, scalability, and code review.

Selecting a preset fills the textarea, which you can edit freely before exporting. Both sections contribute to the token count in real time.

Examples

Prepare a refactor brief

Filter to a service cluster, apply the Refactor for readability task preset, switch to Markdown, and export a readable prompt bundle.

Security audit

Select auth routes, middleware, and config files. Apply the Security review task preset with a language-specific system prompt, then paste the output into your model.

FAQ

Why use One File Viewer instead of opening the source files directly?

The viewer shows the exact prompt output — system instruction, code, and task — not just the underlying files. That makes it easy to validate scope, token usage, and final wording before you export.

Does the prompt wrapper affect the file format output?

Yes. The system prompt is placed before the formatted code block and the task is placed after it, separated by blank lines. The combined result is what gets copied or downloaded.

Are token counts accurate for Claude models?

CodePiler uses a GPT-compatible tokenizer (tiktoken cl100k_base). Claude uses a similar but slightly different tokenizer, so counts may differ by a few percent. Treat the budget bar as a close estimate, not an exact limit.

CodePiler

Turn your codebase into structured, AI-ready context. Built for developers working with modern LLMs.

Product

  • Launch App
  • Features
  • Use Cases

Resources

  • Docs
  • Upload Guide
  • Viewer Guide

Company

  • Client-side workflow
  • Prompt-first utility
  • Made for AI-assisted dev
(c) 2026 CodePiler. All rights reserved.Built for developers working with AI