By respawn-app
Search and read source code from third-party Gradle dependencies in Kotlin and Java projects using ripgrep-style globs and cat commands to inspect API shapes and implementations directly in the terminal.
npx claudepluginhub respawn-app/ksrcOne‑liner search and read for Gradle 3rd-party dependency sources for AI agents.
Your AI agents take ~10 steps just to see a single function signature in a third-party library. ksrc turns that into two commands and ~4x less tokens.
It's a CLI utility to enable efficient dependency source search for AI agents working with Gradle projects.
Ever saw an AI agent find a function's signature in TypeScript/Python? Simple rg over node_modules and a sed call is all it needs to discover APIs and signatures.
With Gradle ecosystems, agents have to take a 15-step journey to download, locate, unpack and ripgrep source jars.
ksrc turns 16k tokens wasted on that into 2 CLI commands.
Start by installing the command itself.
brew tap respawn-app/tap
brew install ksrc
ksrc installed manually does NOT auto-update, unlike ksrc skills and plugins. Please keep the binary up to date too.
Install script (macOS/Linux):
curl -fsSL https://raw.githubusercontent.com/respawn-app/ksrc/main/scripts/install.sh | sh
Next up, install the claude code plugin/skill, to let your agents know they can use ksrc and how to use it.
Add the Respawn marketplace, then install the plugin:
/plugin marketplace add respawn-app/claude-plugin-marketplace
/plugin install ksrc@respawn-tools
Install from the public GitHub path:
$skill-installer install https://github.com/respawn-app/ksrc/tree/main/skills/ksrc
Use when your agent doesn't have bash tool. Configure your MCP client to spawn the stdio server:
{
"mcpServers": {
"ksrc": {
"command": "ksrc",
"args": ["mcp"]
}
}
}
Default tools: search, cat, deps. Enable more via --tools=<list> (e.g., --tools=search,cat,deps,resolve or --tools=all).
You shouldn't need the skill if you use mcp, but if your agent has access to bash tool, prefer CLI+bash instead of the mcp.
Avoid directly accessing
.gradle; instead, proactively useksrccli to inspect source code of dependencies to learn API shapes or implementations. Start withksrc --help.
Give this tool larger timeouts - it can take a minute to download sources (if needed) and resolve gradle projects.
$ ksrc search "updateState<"
pro.respawn.flowmvi:core:3.3.0-alpha03!/commonMain/pro/respawn/flowmvi/api/StateReceiver.kt 19:8: updateState<State.Subtype, _> { }
The tool returns one chainable record per hit in this format: <file-id> <line>:<col>:<line-text>. The text segment is the raw source line with its trailing newline stripped, so it may contain literal : characters.
If you enable --show-extracted-path, each hit uses a debug-oriented tab-delimited shape instead:
<file-id>\t<quoted-extracted-path>\t<line>\t<col>\t<quoted-line-text>
ksrc persists the backing jar path for emitted file-ids, so follow-up cat/open calls usually do not need repeated --project or scope/config flags on the same machine.
If you want faster execution & less noise, specify:
--artifact to limit search to one artifact, (or --module to also limit by version)--subproject to help discovery for monorepos/large modular apps--targets to limit to specific KMP targets.$ ksrc cat 'pro.respawn.flowmvi:core:3.3.0-alpha03!/commonMain/pro/respawn/flowmvi/api/StateReceiver.kt' --lines 10,25
where to recover the reusable file-id and backing jar path:$ ksrc where kotlinx/datetime/LocalDate.kt --group org.jetbrains.kotlinx --artifact kotlinx-datetime
org.jetbrains.kotlinx:kotlinx-datetime:0.7.1!/kotlinx/datetime/LocalDate.kt|/path/to/kotlinx-datetime-0.7.1-sources.jar
For path lookups, text before | uses same <file-id> contract as search, so you can pass it directly to ksrc cat or ksrc open.
This program is licensed under the Apache License, Version 2.0.
See LICENSE.txt.
Copyright 2026 Respawn LLC
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Fast code search for Android/Kotlin/Java, iOS/Swift/ObjC, Dart/Flutter, TypeScript/JavaScript, Rust, Ruby, C#, PHP, Python, Go, Perl, C++, Protocol Buffers, and WSDL/XSD projects
Look up the public API of any JVM dependency (Scala 3, Scala 2, Java) from the terminal
Scala code intelligence for coding agents — fast symbol search, find definitions, and find references
Semantic code search for Claude Code. Automatically indexes your project and provides intelligent search capabilities.
Clone repos, crawl docs, search locally. Fast, authoritative answers for AI coding agents.
Share bugs, ideas, or general feedback.
AI-powered codebase understanding assistant. Learn design patterns, analyze impact, trace code flows, and understand any codebase through information theory principles. Includes 6 Agent Skills for automatic analysis triggering.
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge.
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge.
Sign in to claim