Skip to content
All topics▾

Step 5 of 12

Files in a project

Instead of typing out your context, attach it: notes, a database schema, an example file.

By Updated

How do I upload a file?

In a project, the context panel has a Files section. Whatever you upload there is available to Finn in every chat of this project. For a single message, there's the plus button in the chat, see Chat with Finn.

Which files are allowed?

Three kinds of files are allowed, each with its own size limit:

  • Text, code and configuration, up to 200 KB: .md, .txt, .json, .csv, .yaml, .yml, .toml, .xml, .ini, .ts, .tsx, .js, .jsx, .mjs, .cjs, .css, .scss, .html, .svg, .sql, .prisma, .graphql, .py, .go, .rb, .rs, .php, .java, .kt, .swift, .vue, .svelte, .astro
  • Lockfiles, up to 1 MB: anything ending in .lock (such as yarn.lock), plus package-lock.json and pnpm-lock.yaml. They may be larger than a note because in a medium-sized project they quickly reach several hundred KB.
  • Images, up to 2 MB: .png, .jpg, .jpeg, .webp

On top of that, two limits apply to the whole project: at most 20 files, which together may take up at most 25 MB.

What are images for?

Images, such as screenshots of your app, are sources for the project's memory. During the analysis, PromptPrinter looks at up to three of them and reads the design direction from them: layout, colours, the style of the controls. It's the three you uploaded first; any others stay in the project but aren't used.

A project's images don't come along into your chats by themselves. So Finn doesn't see them directly, only what the analysis recorded from them. Without an analysis, a project image stays invisible to him. If you want Finn to actually look at a screenshot, attach it to a message with the plus button.

What doesn't work?

The upload rejects anything missing from the lists above. That mainly affects PDFs, Word files, Excel spreadsheets, GIFs and design files from Figma or Sketch. From a PDF or Word document, copy the relevant part into a .md or .txt file instead; export a spreadsheet as .csv and a design as .png.

Which files work well?

  • a database schema or an SQL excerpt
  • your notes on the audience or the feature set
  • a style guide or a list of design rules
  • a .csv with sample data, so the fields are clear
  • an existing README.md from your repo
  • a package.json or tsconfig.json that shows your stack

How much of my files reaches Finn?

The files share one context budget. That sounds small, but it's deliberate: the context is sent with every chat message, and an unlimited amount would make every message expensive. How big the budget is depends on whether your project already has a memory:

  • Without memory: around 12,000 characters in total, at most about 3,000 per file.
  • With memory: around 6,000 characters in total, at most about 2,000 per file. On top of that comes the memory block itself, at most 2,500 characters.

The smaller file budget is no loss. What Finn needs to know about the stack and structure is already in the memory then, and doesn't have to be read from the raw files again with every message. Together that's at most 8,500 instead of 12,000 characters.

In practice, that means:

  • .md files come first, then the rest in the order you uploaded them
  • files that are too long are shortened, not left out
  • anything that doesn't fit into the budget at all is at least named to Finn, so he knows it exists
  • images in the project don't count, they don't go into the chat

The practical upshot: a short, targeted file beats a complete export. Upload the schema rather than the whole database dump.

The one-off analysis for the memory, on the other hand, reads much more: files and repository together up to 60,000 characters of text, up to 12,000 per file. It reads thoroughly once, and the result then travels along with every message.

Does Finn follow instructions from a file?

The content of your files is explicitly treated as background material. If it contains text that sounds like an instruction, that text is only read, never followed. That protects you when you attach files from someone else, such as a document you didn't write yourself. You give instructions in the Instructions field or directly in the chat.

How do I delete a file?

You can remove files one by one. They're kept in private storage that only your own account can access, and they disappear completely when you delete the file, the project or your account.