docs: add turbo_tasks development guidance for agents (#100581)
### What? Add agent instructions for developing with turbo_tasks across `crates/` and `turbopack/`. ### Why? Preserve fine-grained caching and invalidation by guiding cell creation, task inputs, task boundaries, and access to build-wide maps. Discourage unnecessary interning tasks and copying existing cell usage without checking its assumptions. ### How? Keep the generic turbo_tasks guidance in `turbopack/AGENTS.md` and reference that section from `crates/AGENTS.md`. This preserves the dependency direction from Next.js-specific crates to Turbopack, avoids duplicating the rules, and leaves the root instructions and existing Turbopack-specific boundaries unchanged. ### Verification - Checked the shared-guide link resolves and the root instructions are unchanged. - Reviewed the guidance against existing turbo_tasks APIs. - Formatting checked manually; Prettier is unavailable in the checkout. No runtime tests were run for this instructions-only change. <!-- NEXT_JS_LLM --> <!-- fleet 0c8ecb28-308d-4b94-b67e-439012814b85 --> --------- Co-authored-by:vercel-fleet-prod[bot] <318278635+vercel-fleet-prod[bot]@users.noreply.github.com> Co-authored-by:
Tobias Koppers <1365881+sokra@users.noreply.github.com>
Showing
crates/AGENTS.md
0 → 100644
Please
register
or
sign in
to comment