opensrc

opensrc is a skill for Claude Code, Codex from remorses/kimaki. It costs 103 tokens per session (697 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 CodeCodex

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,395 stars · on GitHub

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.

agentmods
npx agentmods add skills/remorses/kimaki/opensrc
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, Codex.

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.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.svg" alt="Measured on agentmods" height="20"></a>
Per session 103 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 697 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00103 $0.00697
Opus 5 $0.00051 $0.00349
Sonnet 5 $0.00021 $0.00139
Haiku 4.5 $0.00010 $0.00070

Measured 5d ago against content hash 2c4d873a423e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 5d 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 — 0 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 · 79 lines

How it starts

The opening of the file, as written. The whole thing — 79 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/.

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.

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

For PyPI and crates.io, explicit versions or latest are used. For repos, use @ref or #ref to pin a branch, tag, or commit.

Managing the Cache

Source is cached globally at ~/.opensrc/ (override with OPENSRC_HOME).

opensrc list                     # show all cached sources
opensrc list --json              # JSON output

opensrc remove zod               # remove a package
opensrc remove facebook/react    # remove a repo

opensrc clean                    # remove everything
opensrc clean --npm              # only npm packages
opensrc clean --pypi             # only PyPI packages
opensrc clean --crates           # only crates.io packages
opensrc clean --packages         # all packages, keep repos
opensrc clean --repos            # all repos, keep packages

When to Fetch Source

Read the full file on GitHub · 79 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. 5d 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,395 stars, last pushed 2d ago), licensed MIT. It adds 103 tokens to every session and 697 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to opensrc, differing in 0 lines, and is treated as a copy.

Related

Other skills, from other repositories

browser-use

Automates browser interactions for social media management across Instagram, LinkedIn, and X. Handles posting, DMs, connection requests, lead scraping, and monitoring. Use when the user needs to navigate, interact with, or extract data from approved websites.

wanikua/danghuangshang · 53 tokens

self-improvement

Captures learnings, errors, and corrections to enable continuous improvement. Use when: (1) A command or operation fails unexpectedly, (2) User corrects Claude ('No, that's wrong...', 'Actually...'), (3) User requests a capability that doesn't exist, (4) An external API or tool fails, (5) Claude realizes its knowledge…

wanikua/danghuangshang · 102 tokens

novel-archiving

章节归档 - 每章写完后的持久化操作,包括摘要生成、记忆更新和状态报告。关键词:归档、摘要、持久化、章节完成。.

wanikua/danghuangshang · 44 tokens

novel-memory

小说记忆系统 - 基于工作区文件的持久化记忆,管理角色设定、章节摘要、伏笔追踪等。关键词:记忆、存储、查询、设定、知识管理。.

wanikua/danghuangshang · 51 tokens

novel-prose

小说写作技法 - 当需要逐章执笔创作小说正文时触发。关键词:写作、执笔、章节、正文、创作。.

wanikua/danghuangshang · 40 tokens

novel-openviking

翰林院 OpenViking 记忆增强 — 将小说写作 pipeline 的设定、摘要、伏笔接入 OpenViking 语义记忆。若你从属于翰林院,当你看到这个skill时,务必加载这个skill。.

wanikua/danghuangshang · 63 tokens