App structure
Patties discovers framework features from a small set of conventional app directories, so the layout you write is the layout it understands.
Typical layout
app/
routes/
index.tsx
api/
islands/
agents/
tools/
jobs/
middleware.ts
server.ts
Directory roles
app/routes/contains pages and API handlersapp/islands/contains client-hydrated interactive componentsapp/agents/contains AI agent definitionsapp/tools/contains tool definitions for agentsapp/jobs/contains scheduled jobsapp/middleware.tsadds request middlewareapp/server.tsis the optional app entry used bypatties dev
Discovery rules
Patties ignores:
- files starting with
_ - test files such as
*.test.tsand*.test.tsx
Missing directories are treated as empty rather than as hard failures, which keeps the default app shape minimal.