Naidan
Guides

Choose which files and folders AI can read or edit

Give the AI only the files needed for a task. Choose one file, a working copy of a folder, or a linked folder, then decide whether the AI can make changes.

Open Naidan and choose or create the Chat where you want to use the file or folder. You can close first-time setup with × to attach it. Before asking AI to inspect a mounted file or folder, finish setup with a working endpoint and a model that supports tool calls. For an in-browser model, see browser model setup.

Folder (copy) creates a separate working copy. The Chat can read it while the browser copy is still being saved; the original folder stays on your device.

Folder (copy): try changes separately

When attached from the Chat input, the selected folder becomes available before copying into browser storage finishes. Edits affect that copy, not the original directory. Download the results when you are ready to use them elsewhere. Later edits to the original and the copy are independent.

Folder (link): work on the actual folder

A supporting browser lets you choose a real folder. Reads reflect its current contents. With both browser write permission and a writable mount, changes affect the original files. Use this when you deliberately want to work in place.

Use an attachment while it copies

For non-image files and Folder (copy) added beside the Chat input, you can start reading as soon as the mount appears. This uses OPFS storage. The progress card offers Pause, Resume, and Retry after a copy fails. Pausing lets the file already being copied finish first. Copying is separate from the Chat’s read/write permission.

Keep this page open until copying finishes before reloading or relying on the copy in another page. An unfinished copy still depends on the files selected in this page. Folders copied from Settings follow a separate flow and are mounted after their copy finishes.

Reading a file and changing it are separate permissions

A read-only mount is useful for reference material and project inspection. Allow writing only for a mounted file or folder you intend to edit. Folder selection, browser permissions and the effective mount configuration together determine access to device folders.

If the Naidan file mount is on, Shell can also read saved files from other chats. See how to read chats and saved files through Wesh sysfs.

The file or folder

Choose one file, a project folder or a smaller subfolder rather than a broad directory of unrelated files.

The scope

Global settings, Chat Group settings and Chat settings determine the mounts for a conversation. Check which files or folders this Chat actually exposes.

The destination

A linked folder changes original files; a copied folder changes browser-held data. Confirm the working location before asking for edits.

Add a file or working folder

  1. Open the attachment menu beside the Chat input.
  2. For one non-image file, choose Files and select it. Naidan mounts it read-only and starts a browser copy in the background, then enables Shell for this Chat; skip the folder choice in the next step. Images selected alone through Files are message attachments instead. To have AI read an attached image, configure a working endpoint and a model that accepts image input before sending the message.
  3. For a folder, choose Folder (copy) or Folder (link) and select the folder. The choices available depend on browser capabilities. If you selected a non-image file in step 2, continue with step 4.
  4. Check the mount path and read-only access above the Chat input. For a mounted file or folder, Shell is enabled for this Chat; a model that supports tool calls can use it to inspect the contents. When Shell reads from the mount, its command result becomes input to the selected model; with a server model, that result is sent to the configured endpoint. An image attached to a message does not follow these mount steps.
  5. Ask for a small inspection first, such as reading a few lines or listing filenames, and review the result. If you then want an edit, select the lock beside the mounted item above the Chat input to allow writing; a linked folder also needs browser write permission.