Write project rules in HOUDINI_AGENT.md
Write standing rules for the agent in HOUDINI_AGENT.md, such as naming conventions, units, renderer and folder layout, and they're included in every conversation automatically.
User and project instruction files
| Level | Applies to | File |
|---|---|---|
| User | Every scene | %LOCALAPPDATA%\HoudiniAgent\HOUDINI_AGENT.md |
| Project | Only the current project's scenes | HOUDINI_AGENT.md in the project folder |
The project folder comes from the current .hip: starting at the .hip's folder, the app looks upward for a folder containing .git, HOUDINI_AGENT.md or .houdini_agent. If none is found, the .hip's own folder is used.
Let the agent write it for you
Type /init, and the agent studies the current scene (network layout, main nodes, output settings, external paths), writes it up as project notes and saves them, so later conversations include them. You can add extra requests after the command.
Edit in the app
- Press
Ctrl+,to open Settings, choose Memory, and switch to the Instruction files tab. - Click Edit user file or Edit project file. If the file doesn't exist yet, a commented template is created first. The project file needs a saved .hip.
- Edit it in the app's editor window and click Save or press
Ctrl+S. To use your own editor, click Open in external editor.
The Instruction files tab lists every instruction file currently loaded; click View / edit on any of them to open it.
What to write
Short, clear rules that stay true over time, for example:
# Project conventions
- Units: meters, Y up
- Renderer: Karma XPU
- Node names: lower case with underscores; output nodes start with OUT_
- Write caches to $HIP/cache/, never to the desktop
One-off requests belong in the chat; personal habits can also go into long-term memory.
When changes take effect
Instruction files are loaded into every conversation, whether long-term memory is on or off. If you change a file mid-conversation, the change applies from your next message. They're re-read after the context is compacted, so nothing is lost.
Advanced use
- Import other files: write
@relative/path(for example@docs/naming.md) to load that .md as well. Paths are relative to the file that contains them, nested up to 4 levels. An@inside a code block isn't an import. - Comments: anything inside
<!-- -->isn't sent to the agent, which is handy for notes to people. - More files: at user level, every .md in
%LOCALAPPDATA%\HoudiniAgent\rules\is read too. At project level, the app walks from the drive root down to the .hip's folder and readsHOUDINI_AGENT.md,.houdini_agent\HOUDINI_AGENT.md,HOUDINI_AGENT.local.mdand.houdini_agent\rules\*.mdat each level; files closer to the .hip are read later. - AGENTS.md: if there's no HOUDINI_AGENT.md anywhere along that path,
AGENTS.mdfiles are read instead.
Anything beyond 40,000 characters in a single file is cut off.