Monorepo Guide#
ackit workspaces detects the workspace layout with zero extra
dependencies:
pnpm-workspace.yamlpackages globs (highest precedence)- root
package.json"workspaces"(npm/yarn style) - fallback: nested directories with their own
package.json(depth ≤ 2)
nx.json / turbo.json presence is reported as an advisory label only —
task-graph execution stays out of scope.
What workspaces change#
- Instructions stay path-scoped, not workspace-scoped. A nested
packages/web/AGENTS.mdapplies to files underpackages/web/and to nothing else — even in a sibling workspace. This distinction is tested. - Policy layers target paths. Root policy inherits everywhere; scope
suppressions/overrides with
pathGlobssuch aspackages/web/**. - Packs partition. Per-workspace token budgets can be applied by running
ackit packwith different--max-tokensper partition; output remains deterministic for identical inputs.
Example layout: