Copilot integrations
The preferred agent path is kast install copilot. It installs
repository-local files that let Copilot start Kast through LSP, load
Kotlin-specific instructions, and expose Kast reader and writer agents.
Install into this repository
Run the command from the repository root. The global kast binary stays on
the machine; this command writes files only for the repository you are in.
The default target is $PWD/.github. Pass --target-dir when installing into
another repository's .github directory, and --force when replacing a stale
managed copy.
kast install copilot --target-dir=/absolute/path/to/repo/.github --force
What gets installed
The installed tree is managed by the running CLI version:
lsp.jsoninstructions/kast-kotlin.instructions.mdagents/kast-reader.agent.mdagents/kast-writer.agent.mdextensions/kast/extension.mjsextensions/kast/_shared/kast-tools.mjsextensions/kast/_shared/kast-agents.mjsextensions/kast/_shared/commands.json.kast-copilot-version
These paths live under the target .github directory. Restart the IDE
after installing or refreshing them.
How Copilot finds the binary
The repository package starts kast lsp --stdio from .github/lsp.json.
The packaged extension resolves the active CLI from the install manifest,
the stable $HOME/.local/bin/kast shim, then PATH. Use kast paths or
the install guide if the binary is missing.
Use installable instructions
Use kast install instructions for agent hosts that can load Markdown
instruction files but do not load the Copilot package or a full skill. The
installed files cover direct CLI usage, the kast agent pipe workflow, raw RPC
fallback, and LSP startup.
The command picks the default target from whichever of these directories already exists in your repo:
.agents/instructions/kast.github/instructions/kast.claude/instructions/kast
If none of those directories exist, it installs globally at
~/.local/share/kast/current/lib/instructions/kast. Look for .kast-version
in the target directory to confirm the install.
kast install instructions --target-dir=/absolute/path/to/instructions --force
What's in the instruction directory
The installed tree is lightweight Markdown:
README.mdexplains when to use each file.cli.mdcovers non-interactive CLI usage.rpc.mdcoverskast agent, raw RPC fallback, and catalog-backed request workflows.lsp.mdcoverskast lsp --stdioand customkast/*method discovery.
Use the packaged skill fallback
Use kast install skill for hosts that do not load the Copilot package but do
understand repo-local or global agent skills. This is not the primary Copilot
path.
The command picks the default target from whichever of these directories already exists in your repo:
.agents/skills/kast.github/skills/kast.claude/skills/kast
If none of those directories exist, it installs globally at
~/.local/share/kast/current/lib/skills/kast. Look for .kast-version in the
target directory to confirm the install. If the same CLI version was already
installed, JSON output shows skipped: true.
kast install skill --target-dir=/absolute/path/to/skills --force
What's in the skill directory
The installed tree is the same manifest embedded in the CLI:
SKILL.mdfor workflow, triggers, and routing rulesAGENTS.mdfor package-local maintenance guidancereferences/commands.json,references/quickstart.md, andreferences/routing-improvement.md
Keep transient benchmark outputs outside the installed skill tree.
Validate package changes from this checkout
Contributors can validate the authored source package under
cli-rs/resources/plugin/. Project installs expose agents as kast-reader
and kast-writer; source-plugin validation exposes them under the plugin
namespace, such as kast-copilot-lsp:kast-reader.
For live Copilot CLI validation of the SDK extension tools, load the source
package explicitly with --plugin-dir cli-rs/resources/plugin.
copilot -C /path/to/repo --plugin-dir cli-rs/resources/plugin \
--agent kast-copilot-lsp:kast-reader \
--model gpt-5-mini --effort low \
-p 'Validation only. Reply exactly: KAST_READER_LOADED'
Next steps
After the repository files exist, use the agent prompt guide or the CLI fallback depending on the host.
- Talk to your agent shows resolve-first prompt patterns.
- Direct CLI usage explains
kast agentfor hosts without native tools.