Skip to content

pantoken / ai/pantoken-ai/src / installAgentAssets

Function: installAgentAssets()

installAgentAssets(tool, dir?): string[]

Alpha

Write pantoken's agent assets for a tool into a consumer repo.

Parameters

tool

AgentTool | "all"

A specific AgentTool, or "all" for every asset.

dir?

string = "."

The target directory (default ".").

Returns

string[]

The paths written.

Examples

Install one tool's assets into a repo

ts
import { installAgentAssets } from "@pantoken/ai";

const written = installAgentAssets("cursor", "./my-app");
// → ["my-app/.cursor/rules/pantoken.mdc"]

Install every asset into the current directory

ts
import { installAgentAssets } from "@pantoken/ai";

installAgentAssets("all");
// writes AGENTS.md, llms.txt, and the Cursor/Copilot/Windsurf/Claude assets