Concepts

Configuration

Intent reads consumer configuration from the intent object in package.json. Two keys control which discovered skills Intent surfaces: skills (the allowlist) and exclude (the blocklist).

json
{
  "intent": {
    "skills": ["@tanstack/query", "@acme/*", "@tanstack/start#routing", "workspace:@scope/internal"],
    "exclude": ["@tanstack/router#experimental-*"]
  }
}

Configuration inheritance

  • intent.skills: Intent uses the nearest non-null declaration between the current working directory and the workspace or project root. A nearer declaration replaces its parent. An omitted or null value inherits the nearest parent declaration.

  • intent.exclude: Intent combines arrays from the root through the current working directory, then adds excludes passed by the caller.

intent.skills

intent.skills is a package-source and skill allowlist. A permitted package or skill can:

  • Appear in list and stale.

  • Resolve through load.

  • Contribute mappings to install --map.

    The default install command writes generic loading guidance without scanning packages. See Trust model for the reasoning and lifecycle boundaries.

    Package selectors permit every skill in the package. Exact selectors use <package>#<skill> and permit only the named skill. If the same package matches both forms, the package selector takes precedence and permits every skill. intent.exclude is applied afterward and can still remove a permitted package or skill.

Source entries

Each array entry names one source:

EntryKindMeaning
@scope/pkg or pkgnpmAn npm package reachable through the dependency tree, direct or transitive.
@scope/pkg#skillnpmOne exact skill in an npm package.
workspace:@scope/pkgworkspaceA package in the current workspace.
workspace:@scope/pkg#skillworkspaceOne exact skill in a workspace package.
@scope/*npmEvery discovered npm package whose name matches the pattern.
workspace:@scope/*workspaceEvery discovered workspace package whose name matches the pattern.
git:<host>/<repo>#<ref>gitReserved. Not yet supported, and rejected until a future version adds it.

A malformed entry fails the whole command, and every bad entry is reported at once. Exact selectors require one non-empty package name and one non-empty, non-wildcard skill name. Package patterns support * wildcards, including scoped patterns such as @tanstack/*, but cannot be combined with an exact skill selector.

Intent matches both the package name and source kind: a bare package or exact selector permits only an npm source, and a workspace: selector permits only a workspace source. git: entries remain unsupported and are rejected, including entries that contain # for a Git ref.

Special forms

FormResultNotice
Absent: no intent.skills keySurfaces every discovered package as an upgrade path for existing projects. A future version will require an explicit allowlist.Deprecation notice on stderr on each run until you set intent.skills.
Empty: "skills": []Surfaces no packages.Info notice on stderr.
Wildcard: "skills": ["*"]Surfaces every discovered package across package scopes and source kinds. This is broader than a pattern such as @tanstack/*.Acknowledged-risk notice on stderr because unvetted skills may reach your agent.

A package that ships skills but is not listed is dropped. In human output, Intent adds one policy notice naming packages dropped this way so you can opt in. Agent sessions receive only the hidden package and skill counts. A listed package that was not discovered is reported as a notice as well.

Existing projects

Run intent list to see which packages the current policy surfaces.

A project without intent.skills uses the absent form: Intent surfaces every discovered package and prints its deprecation notice. Add an allowlist to permit specific sources before a future version requires one.

Suppressing notices temporarily

Use --no-notices to suppress non-critical notices on stderr for one run:

shell
npx @tanstack/intent@latest list --no-notices
npx @tanstack/intent@latest install --map --no-notices

For CI or wrapper scripts, set INTENT_NO_NOTICES=1 to suppress notices without changing command arguments.

Discovery and resolution warnings are separate from policy notices and are not suppressed by these options. The acknowledged-risk notice for "skills": ["*"] also remains visible when other notices are suppressed.

intent.exclude

intent.exclude removes packages or individual skills after the allowlist resolves.

Use intent exclude to manage this list from the CLI:

shell
npx @tanstack/intent@latest exclude add @tanstack/router#experimental-*
npx @tanstack/intent@latest exclude remove @tanstack/router#experimental-*
npx @tanstack/intent@latest exclude list
json
{
  "intent": {
    "exclude": ["@tanstack/*devtools*", "@tanstack/router#experimental-*"]
  }
}

Pattern grammar:

  • A pattern without # excludes a whole package: @scope/pkg.

  • A pattern with # excludes a single skill: @scope/pkg#search-params.

  • The skill segment may be a glob: @scope/pkg#experimental-*.

  • A pattern may cross package boundaries at skill granularity: *#experimental-*.

  • The #* shortcut excludes the whole package: @scope/pkg#*.

    Only exact names and * wildcards are supported on each segment. Excludes are source-kind agnostic, so a package pattern excludes matching npm and workspace sources. An excluded package does not trigger the unlisted-source notice, because an exclude is an explicit decision.