独立运营 · 不出售排名位置  · 我们怎么评估工具 →
Anclum 提交收录
A

ankurhalder/codebase-snapshot

本站为独立目录,非该工具官网;下方信息取自其公开仓库。

Local CLI and MCP server that packs a repository into budgeted Markdown parts, writes a manifest of every…

2 ★ 本站实测 · 核对 2026-11-19

装之前:命令归属未核实,仅作参考展示 · 许可证 MIT

第一步(仅参考,归属未核实):npx codebase-snapshot generate # no install: straight to the snapshot

★ 2·更新 2026-11-19
在 GitHub 查看 ↗直链 · 无中转页

装完之后怎么算装好了

  1. 装完该看到什么 — 命令正常结束时退出码为 0,终端里没有 "command not found" 或 "permission denied"。
  2. 一行自检 — 按该仓库 README 里给出的最小用法跑一次;能按 README 的描述输出就是通了。
  3. 答不出来怎么办 — 这个项目没有写排错说明,去仓库的 Issues 搜 install。

安装命令取自该仓库;以上判据只描述可观察到的结果,不替代项目自己的文档。

★ 数取值
2 ★ · ankurhalder/codebase-snapshot · 取自 GitHub 搜索 API · (2026-11-19 20:00:48 核对)
来源明细
从该仓库的 GitHub 页面直接读取 · 条目类型:开源项目
收录与活跃
收录于 2026-11-18 · 最近见到 2026-11-20 · 共见到 3 次 · 被 1 个来源列出
评分构成
综合分 103 · 2 ★ · 1 个来源 · repo
安装
安装命令见上方「安装与配置」。
常见问题(答案都来自我们的记录)
它适合谁 / 用来做什么?
我们把它归在这些标签下: 开源项目。标签来自条目自身,不是我们强加的分类。
谁维护它、还在更新吗?
仓库 ankurhalder/codebase-snapshot;我们收录于 2026-11-18;最近见到 2026-11-20。这里没有"官方认证"或"质量评级"——我们只记录来源与时间。
README 原文(英文,未翻译) · 在 GitHub 读完整 README →

codebase-snapshot

以下摘录自该仓库的 README(片段)

A snapshot you can prove is current.
Plain-text parts under a hard byte budget, an index of every file and every skipped
file with the reason, and a validate command that fails when the code moves.
bash
npx codebase-snapshot generate # no install: straight to the snapshot
snapshot # once installed: detects the project, sets it up, generates
That writes ./snapshot/ — a directory you can drop into a chat, a prompt, a RAG pipeline or a
repository review. TypeScript and JavaScript first, but also Python, Go, Rust, Java/Kotlin,
C#/.NET, PHP, Ruby, C/C++, Vue, Svelte and Astro, without configuration.
Install ·
Quick start ·
Trust ·
AI agents ·
Docs ·
Site
## Why
Feeding a real repository to a model is awkward: files are too big, context windows are too small,
and choosing what matters by hand neither scales nor repeats. This does it deterministically.
A hard ceiling, not a target. maxPartBytes is a limit, and nothing overflows it silently:
a file too big for a part becomes a head/tail excerpt with an omission marker, and manifest.json
records it in incomplete[] with the line ranges it lost.
An index, not just text. manifest.json lists every included file with its layer, kind,
language, part, hash and a structural summary, every excluded file with the reason, and an
incomplete[] list of every file it could only emit in part, with the line ranges it lost.
Provably current. validate re-hashes the repository against the snapshot and exits non-zero
on any drift, so a pipeline can gate on the context being fresh.
Repeatable. Two runs over unchanged input give byte-identical parts and the same
manifest.fingerprint; only the artifacts that carry a timestamp, run id or pid differ.
## Install
bash
npm install -g codebase-snapshot # puts snapshot on your PATH
npx codebase-snapshot generate # or no install at all, one-off
npm install -D codebase-snapshot # or add it to a project
codebase-snapshot is the canonical name to script against; snapshot is the short command a
global install provides, and from a project dependency the same binary is npx snapshot or the
npm run snapshot script init writes.
Requires Node.js 18+. Any npm client works — npm, yarn (classic and Berry with strict PnP), pnpm
and bun. Published from GitHub Actions with build
provenance, so npm audit signatures
verifies the tarball came from this repository at a tagged commit.
This is a 0 .x release: the CLI surface may still change in a minor
release until 1.0.0, so pin an exact version if you need a fixed surface today.
→ Installation guide
## Quick start
Type it. That is the whole first run.
bash
snapshot
It recognises the project and says what it keyed on — Detected nextjs / Because next.config.ts
— then offers the recommended setup in one keystroke, or a walk through every setting with each
question starting on its default. Either way it writes the config, adds the npm scripts and the
devDependency, installs with your package manager, and generates. A project that already has a
config just generates.
Nothing to press — CI, a container, an agent:
bash
npx codebase-snapshot --autopilot
A first run never guesses. With no terminal and no --autopilot it exits 2 and names the
收录徽章(可选)
想把收录标记放进 README 就复制这行,可选,不影响收录。
[![Listed on Anclum](https://anclum.com/badge/listed.svg)](https://anclum.com/zh/s/ankurhalder-codebase-snapshot/)
来源
github · https://github.com/ankurhalder/codebase-snapshot
按领域浏览
开源项目
Traction
2 ★
收录于
今天

更多条目

全部 1,875 →

所属领域与标签

每个标签都能点进去看同类的全部条目。数字是当前库里的真实条数。

浏览全部领域 →

← 返回索引