Custom AI instructions for each folder in monthlet

This post was machine-translated from the Japanese original published on note. Read the original on note →

monthlet is a note app where you write and grow notes through AI chat. From 1.3.0, you can write AI instructions for each folder. This post covers how to write them, how they are inherited from folders above, and how to decide between folder instructions and the vault-wide AI instructions.

What folder instructions do

Instructions written on a folder are passed to the AI as instructions to follow whenever you work with that folder’s notes in chat.

For example, if you write “Write in this order: date and time, attendees, decisions, to-dos.” on a meeting-notes folder, then asking “turn these memos into meeting notes” in a note in that folder produces that order. If you write “use polite style, keep headings short” on a folder of blog drafts, you don’t have to repeat it every time you ask for a draft.

If you already separate folders by the kind of note they hold, that split also becomes the unit for what you ask the AI.

Writing instructions

Right-click a folder in the sidebar and choose “Instructions for AI…”. The folder settings screen opens with the “Instructions for AI” field ready for input. You can open the same screen from “Folder settings” in the right-click menu.

The Folder settings dialog for Meeting notes, with “Write in this order: date and time, attendees, decisions, to-dos.” in the Instructions for AI field (65/2,000 characters)

Once you write and save the instructions, the chat AI follows them in notes in that folder and in folders below it. Folders that have instructions show a ✎ next to the folder name in the sidebar.

One folder can hold up to 2,000 characters, and the field shows the current character count. The instructions are passed to the AI on every chat about a note, so it is best to keep them short and limited to things you want followed every time.

Inheriting from folders above

Instructions written on a higher folder are inherited by the folders beneath it.

Say you write “Write in polite style and state the conclusion first.” on a “Work” folder, and “Write in this order: date and time, attendees, decisions, to-dos.” on a “Meeting notes” folder inside it. When you open a chat in a note under “Meeting notes”, both folders’ instructions are passed to the AI.

You can check which instructions are currently being passed from the “2 folder instructions” indicator above the chat (the number matches the folders whose instructions apply). Opening it shows which folders the instructions come from and the order of precedence when they conflict. You can also rewrite an instruction from “Edit” there.

In the chat for a note in Meeting notes, “2 folder instructions” is open: the order of precedence when they conflict, followed by the instructions for Work and Work/Meeting notes

When instructions conflict between an upper and a lower folder, the deeper folder wins. If “Work” says to use bullet points generously and “Meeting notes” says to write in prose, notes in the meeting-notes folder are written in prose.

The combined instructions along the folder path have a limit of 6,000 characters. Above that, folders are dropped starting from the shallowest, and the chat shows which folders’ instructions are not being passed.

Choosing between folder and vault-wide instructions

Instructions you want applied to every chat in the vault still go in the vault-wide AI instructions, the note you open from “Edit AI instructions” on the AI tab in Settings. Folder instructions are attached to folders inside the vault.

As a rule of thumb: things you want followed across the whole vault go in the vault-wide instructions, and things you want to vary by the kind of note go in folder instructions. Language and style preferences go in the vault-wide instructions; how meeting notes or blog drafts should be structured goes in the respective folders.

The order of precedence when they conflict is:

What you ask for in the chat at that moment takes priority. From 1.3.0, the vault-wide AI instructions rank below folder instructions, so you can write the general rules in the vault-wide instructions and the exceptions in folder instructions.

When instructions are passed

In a chat opened from a note, the instructions of that note’s folder and its parent folders are passed to the AI every time. The same applies to chats on sheets.

In a vault-wide chat, after the AI creates or updates a note or sheet, the instructions of that note’s folder are passed to the AI, which is then told to revise anything that doesn’t match. For questions that only read notes and answer, folder instructions are not used.

It works the same way whether you use your own AI API key or monthlet AI. The instructions are followed by monthlet’s chat AI; they are not passed to external AI connected over MCP.

Opening the vault on another device

Folder instructions are stored in a file named “.monthlet-folder.json” inside each folder. Because the name starts with “.”, it does not appear in the sidebar. If you move or rename the folder, the instructions travel with it.

When you open a vault stored in a cloud folder on another computer, or receive a vault from someone else, those instructions are treated as not yet reviewed. The chat marks them “Needs review”, and they are not passed to the AI. Once you read the contents and press “Use these instructions”, they are passed on that device as well. Instructions you saved yourself from the folder settings screen are treated as reviewed.

The vault-wide AI instructions have had the same review step since 1.2.0. Instructions that arrive from another device or another person are not passed to the AI until you check the contents yourself.

Try it

monthlet runs on macOS (Apple Silicon) and Windows. The Windows version is available from the Microsoft Store. The features in this post are available from 1.3.0. Entering your own AI API key gives you access to all features.