Talk to your agent about Kast
The packaged Kast skill lets you describe Kotlin symbols the way you'd describe them to another engineer. You don't need to know file offsets, absolute paths, or JSON-RPC payloads. Name the symbol naturally, say what you want done, and the skill bridges your request into the semantic lookup Kast needs.
Start with a conversational reference
Name the target the way you naturally know it — a class name, a function name, a property on a containing type. Then say what the agent should do and what the answer should include.
Three things to include in your prompt:
- The symbol — name it naturally, for example "the
processOrderfunction onOrderService." - The action — what should the agent do? Resolve, find references, show callers, plan a rename.
- The answer shape — what should the result include? Fully qualified name, declaration location, caller summary, truncation status.
Use the kast skill to resolve the retryDelay property on RetryConfig.
Tell me where it's declared and what type Kast reports.
Use the kast skill to find references to HealthCheckService in this
workspace. Confirm the declaration first, then summarize the callers.
Use the kast skill to show the incoming call hierarchy for
HealthCheckService.runChecks. Resolve the symbol first, then summarize
the top callers and any truncation.
Follow the golden path
The most reliable flow keeps the agent narrow at each stage. Resolve first, confirm identity, then expand. This avoids the common failure mode where the agent guesses which symbol you mean and gets it wrong.
sequenceDiagram
participant User
participant Agent as "LLM Agent"
participant Skill as "Kast Skill"
participant Daemon as "Analysis Daemon"
User->>Agent: "Find references to HealthCheckService"
Agent->>Skill: Search workspace for declaration
Skill-->>Skill: Search candidate files + compute offset
Skill->>Daemon: resolve (file, offset)
Daemon-->>Skill: symbol identity (fqName, kind, location)
Skill-->>Agent: Confirm: io.example.HealthCheckService
Agent->>Skill: Find references for confirmed symbol
Skill->>Daemon: references (file, offset)
Daemon-->>Skill: structured reference list (JSON)
Skill-->>Agent: 12 references across 4 files
Agent->>User: Summary with file locations and previews
The key steps in this flow:
- Name the target in conversational terms.
- Ask the agent to resolve the symbol before it gathers references.
- Confirm the reported symbol kind, fully qualified name, and declaration match what you meant.
- Ask for references, call hierarchy, rename impact, or diagnostics only after the identity is confirmed.
Add context when the name is ambiguous
Some workspaces have repeated names. When the skill finds multiple candidates, add context to narrow the match.
- Name the containing type: "
retryDelayonRetryConfig." - Name the module or package: "
loadUserin the API module." - Mention a nearby caller: "the
processOrdercalled byCheckoutController." - Specify the kind: "the
Configclass, not theconfigproperty."
Find references to the timeoutMillis property on HttpClientConfig,
not the local variable with the same name.
Ask for a result you can act on
A good answer isn't just "found it." Ask the agent to summarize the parts that help you decide what to do next.
Useful fields to ask about:
fqName— the stable, fully qualified identity of the symbol- Symbol kind — CLASS, FUNCTION, PROPERTY, INTERFACE
- Declaration location — file, line, and column
- References grouped by file — see usage patterns at a glance
- Truncation status — whether the call hierarchy was cut short
searchScope.exhaustive— whether all candidate files were searched
Let the skill bridge the mechanics
The packaged skill handles the low-level work so you don't have to. When your request is clear enough, the skill:
- Discovers the correct
kastexecutable through its resolver script - Ensures the workspace daemon is ready before running analysis
- Searches for likely declaration sites from your human reference
- Translates the selected declaration into the file and offset Kast needs
- Verifies the target with
resolvebefore expanding intoreferences,call-hierarchy, orrename
Next steps
- Install the skill — get the packaged Kast skill into your workspace
- Direct CLI usage — when agents call the CLI directly instead of through the skill