opensrc

opensrc is a skill for Claude Code from remorses/kimaki. It costs 180 tokens per session (1,208 once invoked), scanned A, a copy of opensrc, MIT.

A tool that downloads the source code of a software package so an AI agent can inspect how it works internally. It supports packages from npm, PyPI, crates.io, and Git repositories.

In plain words
What is it for?
Use it to inspect library internals, find relevant source files or tests, and examine the exact code behind a package version.
Why use it?
It gives the agent implementation details that type definitions alone may not show, making it easier to understand unfamiliar dependencies.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to inspect library internals, find relevant source files or tests, and examine the exact code behind a package version.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/remorses/kimaki/opensrc
About the project

Kimaki is a Discord-based orchestrator for OpenCode, an AI coding agent that edits files on a user's machine. It maps each project to a Discord channel and each coding session to a thread, allowing users to start, resume, search, and fork work through conversations. Catalogue add-ons provide Kimaki-related workflows for coding agents.

remorses/kimaki · 1,457 stars · on GitHub · kimaki.dev

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add remorses/kimaki --skill opensrc
Clone the repo
git clone --depth 1 https://github.com/remorses/kimaki

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for opensrc

README.md
[![agentmods](https://agentmods.dev/badge/skills/remorses/kimaki/opensrc/github.svg)](https://agentmods.dev/skills/remorses/kimaki/opensrc)
Your own site
<a href="https://agentmods.dev/skills/remorses/kimaki/opensrc"><img src="https://agentmods.dev/badge/skills/remorses/kimaki/opensrc/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for opensrc

Your own site · 80×15
<a href="https://agentmods.dev/skills/remorses/kimaki/opensrc"><img src="https://agentmods.dev/badge/skills/remorses/kimaki/opensrc.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 180 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,208 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00180 $0.01208
Opus 5.5 $0.00072 $0.00483
Sonnet 5.5 $0.00036 $0.00242
Haiku 4.5 $0.00018 $0.00121

Measured 2mo ago against content hash 50ac2307285f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

opensrc scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

100% identical to opensrc — 34 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/opensrc/SKILL.md · 103 lines

How it starts

The opening of the file, as written. The whole thing — 103 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Source Code Fetching with opensrc

Fetches dependency source code so agents can read implementations, not just types. Clones repositories at the correct version tag and caches them globally at ~/.opensrc/.

Required: fresh clone first

Never read a cached clone older than 2 days. opensrc has no TTL. A plain opensrc path can return a clone that is months old, and you will describe code that no longer exists. Always get the path with this check, never with a bare opensrc path:

SPEC=owner/repo   # or zod, pypi:requests, crates:serde, owner/repo#main
SRC=$(opensrc path "$SPEC")
if find "$SRC" -maxdepth 0 -mtime +2 | grep -q .; then
  opensrc remove "$SPEC"
  SRC=$(opensrc path "$SPEC")
fi
echo "$SRC"

When you report findings from a repo, say which version or date you read (for example the version in package.json or the fetch date), so the user can see if it is current.

Core Pattern

rg "parse" $(opensrc path zod)
cat $(opensrc path zod)/src/types.ts
find $(opensrc path zod) -name "*.test.ts"

opensrc path <pkg> prints the absolute path to cached source. If not cached, it fetches automatically. Progress goes to stderr, path to stdout, so $(opensrc path ...) works in subshells. The one-liners above are for sources you already refreshed with the freshness check in this session.

Fetching Source Code

opensrc path zod
opensrc path pypi:requests
opensrc path crates:serde
opensrc path facebook/react

# Multiple packages at once
opensrc path zod react next
opensrc path pypi:requests pypi:flask
opensrc path crates:serde crates:tokio

# Specific versions
opensrc path [email protected]
opensrc path pypi:[email protected]
opensrc path owner/[email protected]
opensrc path owner/repo#main

Version Resolution

For npm packages, opensrc auto-detects the installed version from lockfiles (package-lock.json, pnpm-lock.yaml, yarn.lock). Use --cwd to resolve from a different project:

opensrc path zod --cwd /path/to/project

Read the full file on GitHub · 103 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago Changed · +7 lines · +77 tokens per session 50ac2307285f
  2. 2mo ago Changed · +17 lines e770ddb91f9d
  3. 3mo ago First seen · 79 lines · 103 tokens per session scan A 2c4d873a423e

Subscribe to this mod's changes

opensrc is a skill published in the GitHub repository remorses/kimaki (1,457 stars, last pushed today), licensed MIT. It adds 180 tokens to every session and 1,208 once invoked, about $0.0007 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to opensrc, differing in 34 lines, and is treated as a copy.

Related

opensrc compared with skills from other repositories

opensrc next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
opensrcremorses/kimakiSkill1.5ktodayMITA180Claude Code
browser-usewanikua/danghuangshangSkill2.7k6mo agoMITA53Claude Code
self-improvementwanikua/danghuangshangSkill2.7k6mo agoMITA102Claude Code
novel-prosewanikua/danghuangshangSkill2.7k6mo agoMITA40Claude Code, Codex
novel-openvikingwanikua/danghuangshangSkill2.7k6mo agoMITA63Claude Code, Codex
novel-archivingwanikua/danghuangshangSkill2.7k6mo agoMITA44Claude Code, Codex
novel-memorywanikua/danghuangshangSkill2.7k6mo agoMITA51Claude Code, Codex