Skip to main content

Init-deep

Generate scoped AGENTS.md files for key directories in the project. Each generated file describes the directory’s purpose, key files, exports, conventions, and subdirectory links, giving AI agents focused context for the code they are working with.

Generate context files

Traverse the project directory tree and generate AGENTS.md files for directories that need them.
This endpoint requires an authenticated admin session. The caller’s email must appear in the server’s ADMIN_EMAILS allowlist; ordinary authenticated users receive 403 Forbidden.
Init-deep walks the project tree and writes AGENTS.md files into arbitrary subdirectories. Admin-only access is enforced to prevent ordinary users from triggering filesystem writes.

Request body

All fields are optional. An empty body or omitted Content-Type header is accepted.

Response

Errors

Check generation status

Check which priority directories already have an AGENTS.md file.
This endpoint requires an authenticated admin session. The caller’s email must appear in the server’s ADMIN_EMAILS allowlist; ordinary authenticated users receive 403 Forbidden.

Query parameters

Priority directories

The endpoint checks these directories by default:
  • web/app/api
  • web/app/lib
  • web/components
  • agentbot-backend/src
  • skills

Response

Errors