Files in your repository
endurable has almost no per-project configuration of its own. What it needs to know about a project, it reads from a handful of files in the repository, most of them conventions other agent tools already use. Commit them and everyone on the project gets the same behaviour.
| File | Purpose |
|---|---|
AGENTS.md or CLAUDE.md |
Instructions every agent reads |
.agents/checks |
Commands that mean the work is done |
.agents/setup.sh |
Prepares a new worktree |
.agents/teardown.sh |
Cleans up after one |
.agents/template.sh |
Prepares a sandbox image |
.worktreeinclude |
Ignored files to copy into worktrees |
.agents/skills/ |
Skills for this project |
.endurable/extensions/ |
Extensions for this project |
.gitattributes |
Which files are tests, docs or generated, for reviews |
Instructions
Section titled “Instructions”Every thread is given the repository’s AGENTS.md. If there isn’t one, it’s given CLAUDE.md. An AGENTS.md that exists but is empty counts as having no instructions, and CLAUDE.md isn’t read in its place. This is where you put what an agent should know before it touches the code: how to run the tests, conventions, what never to do.
In a thread focused on a subfolder, the instruction files in each folder between the top and that subfolder are read too, and a deeper one wins where they disagree.
The whole file goes into every request, so a shorter file is cheaper. An edit takes effect from the thread’s next message.
Checks
Section titled “Checks”.agents/checks lists the commands that must pass before work counts as done, one per line:
npm run lintnpm testAgents run each one when they think they’ve finished, and every finished turn says how they stood. A turn that ends with one failing needs you. Checks covers the rules.
Setup and teardown scripts
Section titled “Setup and teardown scripts”.agents/setup.sh runs in every new worktree, after it’s created and before the agent starts. Use it for whatever a fresh checkout needs:
#!/bin/shpnpm installdocker compose up -d dbpnpm db:migrateWrite it so it can run twice. It runs again when you press Retry setup, and in a sandbox each time the sandbox restarts. It’s stopped if it runs longer than thirty minutes, and if it fails, the thread needs attention with the log.
.agents/teardown.sh runs when the thread is done with the worktree: on archive, on delete, and on Ship it. Use it to undo what setup started. It’s stopped after five minutes, and a failure never blocks the archive or delete.
Both are run with bash, whatever their first line says.
Both scripts get these variables:
| Variable | Value |
|---|---|
PORT |
The thread’s own port, the same every time |
ENDURABLE_THREAD |
The thread’s id |
ENDURABLE_WORKTREE |
The worktree’s path |
ENDURABLE_PROJECT |
The path of the checkout the worktree came from |
Local threads run neither script. They work in your checkout, which you’ve set up already.
.agents/template.sh is only for sandboxes. It runs once when a project’s sandbox image is built, to install what the sandbox lacks and your computer has, such as a language toolchain.
.worktreeinclude
Section titled “.worktreeinclude”A new worktree contains only what git tracks, so it has no .env, no local certificates, nothing you’ve ignored. .worktreeinclude, at the top of your checkout, names the ignored files that should be copied into each new worktree. It uses .gitignore syntax, and Claude Code and Codex read the same file.
.env.env.localcerts/- Only ignored files are copied. A tracked file is already there. A file the worktree’s own branch doesn’t ignore is left out too, since it would show up there as a new file.
- Nothing is overwritten.
- Files are copied from your checkout as it is now, so an addition works for the next thread without committing anything.
- A pattern such as
.envwon’t crawl throughnode_moduleslooking for matches. A folder is copied whole only when a pattern names it.
The setup log lists what was copied.
Skills
Section titled “Skills”A skill is a folder with a SKILL.md that teaches an agent how to do a particular kind of task. Skills in .agents/skills/ in the repository are available to every thread in the project. .pi/skills/ at the top of the repository is read as well. See MCP servers and skills.
Project extensions
Section titled “Project extensions”Extensions in .endurable/extensions/ add tools, buttons and panels for this project. They run only after you turn on Run this project’s extensions on the project’s page in Settings, because they run inside endurable with your permissions and anyone who can change the repository can change what they do. See Extensions.
Kinds of file
Section titled “Kinds of file”Changes and guided reviews sort a change’s files into code, tests, docs and generated files, so that code comes first and generated files start folded. endurable works this out from each file’s path. Where it guesses wrong, say so in .gitattributes:
src/api/schema.ts review-generatedfixtures/** review-testnotes/** review-documentationtest/helpers/db.ts -review-testreview-generated, review-test, review-documentation and review-implementation set a file’s kind, and -review-test says a file isn’t a test whatever its name suggests. GitHub’s linguist-generated and linguist-documentation are read the same way.