codebase-snapshot 0.22.2 → 0.22.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/README.md +7 -5
- package/dist/bin.js +1 -1
- package/dist/{chunk-OVH6B3GV.js → chunk-7QUBMV3X.js} +1 -1
- package/dist/cli.cjs +1 -1
- package/dist/cli.js +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/mcp.cjs +1 -1
- package/dist/mcp.js +1 -1
- package/docs/cli.md +5 -5
- package/docs/codebase-prompt.md +97 -0
- package/docs/codebase-to-markdown.md +80 -0
- package/docs/contents.md +5 -0
- package/docs/deploy.md +2 -2
- package/docs/guard.md +4 -4
- package/docs/how-to-feed-a-repo-to-claude.md +3 -0
- package/docs/llm-codebase-context.md +3 -0
- package/docs/mcp.md +4 -4
- package/docs/repo-to-llm.md +72 -0
- package/package.json +6 -3
package/CHANGELOG.md
CHANGED
|
@@ -30,6 +30,18 @@ deprecated with an explanatory message instead. `latest` has pointed at 0.9.0 si
|
|
|
30
30
|
|
|
31
31
|
---
|
|
32
32
|
|
|
33
|
+
## 0.22.3
|
|
34
|
+
|
|
35
|
+
**SEO and discovery patch: query-owned guides, clearer titles and package metadata.**
|
|
36
|
+
|
|
37
|
+
- New guides for [repo to LLM](repo-to-llm.md), [codebase to Markdown](codebase-to-markdown.md) and [codebase prompt](codebase-prompt.md). Each covers the query intent, the trade-offs and the commands, rather than restating the homepage.
|
|
38
|
+
- The site title and description now lead with “Codebase snapshot for AI agents”; the new pages are in the site navigation, sitemap, llms.txt and docs index.
|
|
39
|
+
- The README H1, npm description/keywords and GitHub repository description now name the target queries directly.
|
|
40
|
+
- `seo-rank` tracks the new query set for npm and GitHub; the weekly workflow keeps the trend.
|
|
41
|
+
- No runtime behavior changed.
|
|
42
|
+
|
|
43
|
+
---
|
|
44
|
+
|
|
33
45
|
## 0.22.2
|
|
34
46
|
|
|
35
47
|
**Line-targeted context, hidden-instruction filtering and verifiable receipts.**
|
package/README.md
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
<div align="center">
|
|
2
2
|
<img src="https://raw.githubusercontent.com/ankurhalder/codebase-snapshot/main/docs/assets/favicon.svg" width="64" height="64" alt="codebase-snapshot">
|
|
3
3
|
|
|
4
|
-
<h1>
|
|
4
|
+
<h1>Codebase snapshot for AI agents</h1>
|
|
5
5
|
|
|
6
|
-
<p><b>
|
|
7
|
-
Bounded, redacted snapshots with a manifest, plus live impact and review briefs
|
|
8
|
-
local, deterministic, and no native binary. A snapshot is still there when you need it.</p>
|
|
6
|
+
<p><b>codebase-snapshot</b> turns a repository into LLM-ready context you can verify.<br>
|
|
7
|
+
Bounded, redacted snapshots with a manifest, plus live impact and review briefs.</p>
|
|
9
8
|
|
|
10
9
|
<p>
|
|
11
10
|
<a href="https://www.npmjs.com/package/codebase-snapshot"><img alt="npm version" src="https://img.shields.io/npm/v/codebase-snapshot.svg"></a>
|
|
@@ -238,7 +237,7 @@ Everything an agent needs is available as data, and the tool can install its own
|
|
|
238
237
|
```bash
|
|
239
238
|
npx codebase-snapshot describe --format json # contract: workflow, options, exit codes
|
|
240
239
|
npx codebase-snapshot skill --install # into .agents, .claude and .cursor
|
|
241
|
-
npx -y codebase-snapshot@0.22.
|
|
240
|
+
npx -y codebase-snapshot@0.22.3 mcp # or serve it over MCP
|
|
242
241
|
```
|
|
243
242
|
|
|
244
243
|
An agent told only "use `npx codebase-snapshot`" can read the contract, follow its ordered
|
|
@@ -322,6 +321,9 @@ others.
|
|
|
322
321
|
| [MCP server](https://github.com/ankurhalder/codebase-snapshot/blob/main/docs/mcp.md) | 7 tools, resources, both protocol eras, modern HTTP conformance |
|
|
323
322
|
| [MCP tools](https://github.com/ankurhalder/codebase-snapshot/blob/main/docs/tools.md) | Every tool schema and an example call |
|
|
324
323
|
| [snapshot_context](https://github.com/ankurhalder/codebase-snapshot/blob/main/docs/answer.md) | One question, declaration spans or ranges, a hard token budget, hidden-text filtering and a verifiable receipt |
|
|
324
|
+
| [Repo to LLM](https://github.com/ankurhalder/codebase-snapshot/blob/main/docs/repo-to-llm.md) | Five ways to give a model a repo |
|
|
325
|
+
| [Codebase to Markdown](https://github.com/ankurhalder/codebase-snapshot/blob/main/docs/codebase-to-markdown.md) | Convert a repo without silent truncation |
|
|
326
|
+
| [Codebase prompt](https://github.com/ankurhalder/codebase-snapshot/blob/main/docs/codebase-prompt.md) | Task, evidence and verification |
|
|
325
327
|
| [Glossary](https://github.com/ankurhalder/codebase-snapshot/blob/main/docs/glossary.md) | Codebase snapshot, token budget, manifest, drift, MCP and agent experience |
|
|
326
328
|
| [FAQ](https://github.com/ankurhalder/codebase-snapshot/blob/main/docs/faq.md) | Direct answers about MCP, tokens, secrets, CI and comparisons |
|
|
327
329
|
| [All documentation](https://github.com/ankurhalder/codebase-snapshot/blob/main/docs/contents.md) | Every page, grouped by the job you are doing |
|
package/dist/bin.js
CHANGED
|
@@ -2895,7 +2895,7 @@ function verifySnapshotSignature(snapshotDir) {
|
|
|
2895
2895
|
|
|
2896
2896
|
// src/version.ts
|
|
2897
2897
|
var GENERATOR_NAME = "codebase-snapshot";
|
|
2898
|
-
var GENERATOR_VERSION = "0.22.
|
|
2898
|
+
var GENERATOR_VERSION = "0.22.3";
|
|
2899
2899
|
var SCHEMA_VERSION = "3.0.0";
|
|
2900
2900
|
var LEGACY_GENERATOR_NAMES = ["@ankurhalder/codebase-snapshot"];
|
|
2901
2901
|
function isOurGeneratorName(name) {
|
|
@@ -4684,7 +4684,7 @@ function verifySnapshotSignature(snapshotDir) {
|
|
|
4684
4684
|
|
|
4685
4685
|
// src/version.ts
|
|
4686
4686
|
var GENERATOR_NAME = "codebase-snapshot";
|
|
4687
|
-
var GENERATOR_VERSION = "0.22.
|
|
4687
|
+
var GENERATOR_VERSION = "0.22.3";
|
|
4688
4688
|
var SCHEMA_VERSION = "3.0.0";
|
|
4689
4689
|
var LEGACY_GENERATOR_NAMES = ["@ankurhalder/codebase-snapshot"];
|
|
4690
4690
|
function isOurGeneratorName(name) {
|
package/dist/cli.cjs
CHANGED
|
@@ -2913,7 +2913,7 @@ function verifySnapshotSignature(snapshotDir) {
|
|
|
2913
2913
|
|
|
2914
2914
|
// src/version.ts
|
|
2915
2915
|
var GENERATOR_NAME = "codebase-snapshot";
|
|
2916
|
-
var GENERATOR_VERSION = "0.22.
|
|
2916
|
+
var GENERATOR_VERSION = "0.22.3";
|
|
2917
2917
|
var SCHEMA_VERSION = "3.0.0";
|
|
2918
2918
|
var LEGACY_GENERATOR_NAMES = ["@ankurhalder/codebase-snapshot"];
|
|
2919
2919
|
function isOurGeneratorName(name) {
|
package/dist/cli.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './chunk-WMEZFLUT.js';
|
|
2
|
-
import { shouldCheck, checkForUpdate, GENERATOR_VERSION, cacheFilePath, formatUpdateNotice, installKind, buildAgentContract, startWebServer, startHttpTransport, buildTools, runStdioServer, parseRemoteSource, assertPublicHost, cloneRepository, makeCloneDirectory, loadConfigFileDetailed, assertServerSafeConfig, resolveConfig, validateSnapshot, readConfinedText, auditSnapshot, describeManifestShapeProblem, loadManifest, buildLiveIndex, resolveImpactChanges, computeImpact, DEFAULT_MAX_PROGRAM_FILES, findMultipleSymbolReferences, planTestRun, renderImpactText, runTestPlan, briefFromPaths, resolveDiffBase, filterAndRedactDiff, matchesExclude, defaultIgnoreReason, isSensitivePath, findSection, parsePartSections, buildBrief, explainPath, compareManifests, renderDiffText, generateSnapshot, getGitInfo, loadSigningKey, SIGNATURE_FILE, formatNumber, isDiscoveryMode, ARTIFACT_NAMES, COMMAND_OPTION_SCOPE, commandsForOption, getPreset, unknownPresetMessage, GENERATOR_NAME, runInit, installPreCommitHook, PromptCancelled, SKILL_NAME, renderSkill, resolveLatest, isNewer, updateCommand, findConfigFile, planFirstRun, isEffectivelyEmpty, isInteractive, defaultIO, hasPriorSnapshot, DEFAULT_ANSWERS, firstRunMessage, escapeControls, stripJsonComments, parseByteSize, gitignorePath, appendGitignoreEntries, runWithStdoutCapture, inlineCode, findSecretInPath, MIN_MAX_PART_TOKENS, MIN_MAX_PART_BYTES, renderContractText, renderExplainText } from './chunk-
|
|
3
|
-
export { buildAgentContract } from './chunk-
|
|
2
|
+
import { shouldCheck, checkForUpdate, GENERATOR_VERSION, cacheFilePath, formatUpdateNotice, installKind, buildAgentContract, startWebServer, startHttpTransport, buildTools, runStdioServer, parseRemoteSource, assertPublicHost, cloneRepository, makeCloneDirectory, loadConfigFileDetailed, assertServerSafeConfig, resolveConfig, validateSnapshot, readConfinedText, auditSnapshot, describeManifestShapeProblem, loadManifest, buildLiveIndex, resolveImpactChanges, computeImpact, DEFAULT_MAX_PROGRAM_FILES, findMultipleSymbolReferences, planTestRun, renderImpactText, runTestPlan, briefFromPaths, resolveDiffBase, filterAndRedactDiff, matchesExclude, defaultIgnoreReason, isSensitivePath, findSection, parsePartSections, buildBrief, explainPath, compareManifests, renderDiffText, generateSnapshot, getGitInfo, loadSigningKey, SIGNATURE_FILE, formatNumber, isDiscoveryMode, ARTIFACT_NAMES, COMMAND_OPTION_SCOPE, commandsForOption, getPreset, unknownPresetMessage, GENERATOR_NAME, runInit, installPreCommitHook, PromptCancelled, SKILL_NAME, renderSkill, resolveLatest, isNewer, updateCommand, findConfigFile, planFirstRun, isEffectivelyEmpty, isInteractive, defaultIO, hasPriorSnapshot, DEFAULT_ANSWERS, firstRunMessage, escapeControls, stripJsonComments, parseByteSize, gitignorePath, appendGitignoreEntries, runWithStdoutCapture, inlineCode, findSecretInPath, MIN_MAX_PART_TOKENS, MIN_MAX_PART_BYTES, renderContractText, renderExplainText } from './chunk-7QUBMV3X.js';
|
|
3
|
+
export { buildAgentContract } from './chunk-7QUBMV3X.js';
|
|
4
4
|
import { spawnSync } from 'child_process';
|
|
5
5
|
import * as fs4 from 'fs';
|
|
6
6
|
import * as path4 from 'path';
|
package/dist/index.cjs
CHANGED
|
@@ -4702,7 +4702,7 @@ function verifySnapshotSignature(snapshotDir) {
|
|
|
4702
4702
|
|
|
4703
4703
|
// src/version.ts
|
|
4704
4704
|
var GENERATOR_NAME = "codebase-snapshot";
|
|
4705
|
-
var GENERATOR_VERSION = "0.22.
|
|
4705
|
+
var GENERATOR_VERSION = "0.22.3";
|
|
4706
4706
|
var SCHEMA_VERSION = "3.0.0";
|
|
4707
4707
|
var LEGACY_GENERATOR_NAMES = ["@ankurhalder/codebase-snapshot"];
|
|
4708
4708
|
function isOurGeneratorName(name) {
|
package/dist/index.d.cts
CHANGED
|
@@ -742,7 +742,7 @@ declare function validateSnapshot(configInput: ResolvedSnapshotConfig | Snapshot
|
|
|
742
742
|
* `package.json` carries the same version; `npm run verify` compares the two.
|
|
743
743
|
*/
|
|
744
744
|
declare const GENERATOR_NAME = "codebase-snapshot";
|
|
745
|
-
declare const GENERATOR_VERSION = "0.22.
|
|
745
|
+
declare const GENERATOR_VERSION = "0.22.3";
|
|
746
746
|
/**
|
|
747
747
|
* The manifest and ownership-marker schema this build writes and understands.
|
|
748
748
|
*
|
package/dist/index.d.ts
CHANGED
|
@@ -742,7 +742,7 @@ declare function validateSnapshot(configInput: ResolvedSnapshotConfig | Snapshot
|
|
|
742
742
|
* `package.json` carries the same version; `npm run verify` compares the two.
|
|
743
743
|
*/
|
|
744
744
|
declare const GENERATOR_NAME = "codebase-snapshot";
|
|
745
|
-
declare const GENERATOR_VERSION = "0.22.
|
|
745
|
+
declare const GENERATOR_VERSION = "0.22.3";
|
|
746
746
|
/**
|
|
747
747
|
* The manifest and ownership-marker schema this build writes and understands.
|
|
748
748
|
*
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { ARTIFACT_NAMES, CHECK_INTERVAL_MS, CONFIG_KEYS, DEFAULT_ANSWERS, DEFAULT_MAX_PROGRAM_FILES, DEFAULT_SECRET_PATTERNS, FAILURE_INTERVAL_MS, GENERATOR_NAME, GENERATOR_VERSION, HOOK_MARKER, LANGUAGE_PROFILES, MIN_MAX_PART_BYTES, MIN_MAX_PART_TOKENS, PACKAGE_LATEST_URL, PRESETS, PromptBack, PromptCancelled, REQUEST_TIMEOUT_MS, SCHEMA_VERSION, UP_TO_DATE_INTERVAL_MS, anchorForPath, appendGitignoreEntries, assertPublicHost, assertReplaceable, assertServerSafeConfig, assertUsableConfigInput, assertUsableRef, auditSnapshot, buildBrief, buildImportResolver, bytesForTokens, cacheDirectory, cacheFilePath, checkForUpdate, classifyKind, classifyLayer, cloneRepository, collectFiles, compareManifests, computeImpact, configDigest, countInvalidUtf8Bytes, countLines, crc32, createScopedProgram, decodeText, defineConfig, detectLanguage, detectPreset, displayPath, displayWidth, enforceBudget, estimateTokens, explainPath, fenceForContent, fenceForText, fetchLatestVersion, findMultipleSymbolReferences, findSecretInPath, findSymbolReferences, firstRunMessage, formatTokens, formatUpdateNotice, generateProjectTree, generateSarifReport, generateSnapshot, generateSnapshotAsync, getGitInfo, getPreset, gitignorePath, globToRegExp, hasPriorSnapshot, importsChangedFile, importsOfFile, importsOfText, installKind, installPreCommitHook, isBinaryBuffer, isBinaryExtension, isBinaryFile, isEffectivelyEmpty, isInteractive, isNewer, isPrivateHost, isResolvedConfig, isSensitivePath, isSkeletonizable, isTsxFileName, listPresetNames, loadConfigFile, loadConfigFileDetailed, loadManifest, lockPathFor, makeCloneDirectory, markResolvedConfig, matchRule, matchesExclude, normalizeResolvedConfig, parseByteSize, parseRemoteSource, partitionFiles, planFirstRun, planTestRun, profileForPath, releaseAbandonedRun, renderConfig, renderDiffText, renderExplainText, renderImpactText, renumberParts, resolveChangedScope, resolveConfig, resolveDiffBase, resolveDiffChangedLines, resolveImpactChanges, resolveLatest, resolvePreciseChangedCallers, resolveSafeOutputDirs, resolveSpecifier, resolveSpecifierDetailed, runInit, runTestPlan, scanAndRedactSecrets, shouldCheck, skeletonizeTypeScript, startWebServer, stripJsonComments, summarizeJson, summarizeMarkdown, summarizeTypeScriptSource, summarizeWithProfile, supportsTypeScriptImports, tokenAllowedForHost, treeTruncationWarnings, truncatePreview, truncateToBytes, tsconfigFromWorkspace, tsconfigPathsFor, updateCommand, validateSnapshot, walkFiles, workerEntry, workspaceResolutionFor, wrapLines, writeZip } from './chunk-
|
|
1
|
+
export { ARTIFACT_NAMES, CHECK_INTERVAL_MS, CONFIG_KEYS, DEFAULT_ANSWERS, DEFAULT_MAX_PROGRAM_FILES, DEFAULT_SECRET_PATTERNS, FAILURE_INTERVAL_MS, GENERATOR_NAME, GENERATOR_VERSION, HOOK_MARKER, LANGUAGE_PROFILES, MIN_MAX_PART_BYTES, MIN_MAX_PART_TOKENS, PACKAGE_LATEST_URL, PRESETS, PromptBack, PromptCancelled, REQUEST_TIMEOUT_MS, SCHEMA_VERSION, UP_TO_DATE_INTERVAL_MS, anchorForPath, appendGitignoreEntries, assertPublicHost, assertReplaceable, assertServerSafeConfig, assertUsableConfigInput, assertUsableRef, auditSnapshot, buildBrief, buildImportResolver, bytesForTokens, cacheDirectory, cacheFilePath, checkForUpdate, classifyKind, classifyLayer, cloneRepository, collectFiles, compareManifests, computeImpact, configDigest, countInvalidUtf8Bytes, countLines, crc32, createScopedProgram, decodeText, defineConfig, detectLanguage, detectPreset, displayPath, displayWidth, enforceBudget, estimateTokens, explainPath, fenceForContent, fenceForText, fetchLatestVersion, findMultipleSymbolReferences, findSecretInPath, findSymbolReferences, firstRunMessage, formatTokens, formatUpdateNotice, generateProjectTree, generateSarifReport, generateSnapshot, generateSnapshotAsync, getGitInfo, getPreset, gitignorePath, globToRegExp, hasPriorSnapshot, importsChangedFile, importsOfFile, importsOfText, installKind, installPreCommitHook, isBinaryBuffer, isBinaryExtension, isBinaryFile, isEffectivelyEmpty, isInteractive, isNewer, isPrivateHost, isResolvedConfig, isSensitivePath, isSkeletonizable, isTsxFileName, listPresetNames, loadConfigFile, loadConfigFileDetailed, loadManifest, lockPathFor, makeCloneDirectory, markResolvedConfig, matchRule, matchesExclude, normalizeResolvedConfig, parseByteSize, parseRemoteSource, partitionFiles, planFirstRun, planTestRun, profileForPath, releaseAbandonedRun, renderConfig, renderDiffText, renderExplainText, renderImpactText, renumberParts, resolveChangedScope, resolveConfig, resolveDiffBase, resolveDiffChangedLines, resolveImpactChanges, resolveLatest, resolvePreciseChangedCallers, resolveSafeOutputDirs, resolveSpecifier, resolveSpecifierDetailed, runInit, runTestPlan, scanAndRedactSecrets, shouldCheck, skeletonizeTypeScript, startWebServer, stripJsonComments, summarizeJson, summarizeMarkdown, summarizeTypeScriptSource, summarizeWithProfile, supportsTypeScriptImports, tokenAllowedForHost, treeTruncationWarnings, truncatePreview, truncateToBytes, tsconfigFromWorkspace, tsconfigPathsFor, updateCommand, validateSnapshot, walkFiles, workerEntry, workspaceResolutionFor, wrapLines, writeZip } from './chunk-7QUBMV3X.js';
|
package/dist/mcp.cjs
CHANGED
|
@@ -3157,7 +3157,7 @@ function verifySnapshotSignature(snapshotDir) {
|
|
|
3157
3157
|
|
|
3158
3158
|
// src/version.ts
|
|
3159
3159
|
var GENERATOR_NAME = "codebase-snapshot";
|
|
3160
|
-
var GENERATOR_VERSION = "0.22.
|
|
3160
|
+
var GENERATOR_VERSION = "0.22.3";
|
|
3161
3161
|
var SCHEMA_VERSION = "3.0.0";
|
|
3162
3162
|
var LEGACY_GENERATOR_NAMES = ["@ankurhalder/codebase-snapshot"];
|
|
3163
3163
|
function isOurGeneratorName(name) {
|
package/dist/mcp.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import './chunk-WMEZFLUT.js';
|
|
2
|
-
export { ERROR_CODES, LEGACY_PROTOCOL_VERSIONS, MAX_LINE_BYTES, METHOD, MODERN_PROTOCOL_VERSIONS, REPORT_RESOURCE_URIS, RESOURCE_TEMPLATE_URIS, SERVER_INSTRUCTIONS, STATIC_RESOURCE_URIS, SUPPORTED_PROTOCOL_VERSIONS, buildPrompts, buildResourceProvider, buildTools, classifyRequest, coerceNumericStrings, createLineReader, createMcpServer, createServer, createSession, createWriter, findSection, generateInWorker, generateToken, inspectModernMeta, isCommentStrippable, negotiateLegacyVersion, parsePartSections, runStdioServer, startHttpTransport, stripComments, validateArguments, windowText } from './chunk-
|
|
2
|
+
export { ERROR_CODES, LEGACY_PROTOCOL_VERSIONS, MAX_LINE_BYTES, METHOD, MODERN_PROTOCOL_VERSIONS, REPORT_RESOURCE_URIS, RESOURCE_TEMPLATE_URIS, SERVER_INSTRUCTIONS, STATIC_RESOURCE_URIS, SUPPORTED_PROTOCOL_VERSIONS, buildPrompts, buildResourceProvider, buildTools, classifyRequest, coerceNumericStrings, createLineReader, createMcpServer, createServer, createSession, createWriter, findSection, generateInWorker, generateToken, inspectModernMeta, isCommentStrippable, negotiateLegacyVersion, parsePartSections, runStdioServer, startHttpTransport, stripComments, validateArguments, windowText } from './chunk-7QUBMV3X.js';
|
package/docs/cli.md
CHANGED
|
@@ -104,7 +104,7 @@ Exit `0` when the snapshot passes its own integrity check, `1` when it does not.
|
|
|
104
104
|
|
|
105
105
|
```
|
|
106
106
|
📸 Generating snapshot for: /path/to/repo
|
|
107
|
-
Branch: main (fallback) | Part budget: 300 KB | Generator: 0.22.
|
|
107
|
+
Branch: main (fallback) | Part budget: 300 KB | Generator: 0.22.3 (project dependency ^0.22.3)
|
|
108
108
|
|
|
109
109
|
✅ Snapshot generated in 0.14s:
|
|
110
110
|
- Tracked files: 121 included of 128 paths found — 7 skipped (default-ignore 5, binary 1, sensitive-file 1); every one is listed in snapshot/reports/audit.md
|
|
@@ -302,7 +302,7 @@ The whole first run in one command, with defaults and no prompts. This is the sa
|
|
|
302
302
|
🚀 Setup for: /path/to/repo
|
|
303
303
|
✅ Created snapshot.config.json (preset: nextjs)
|
|
304
304
|
Added npm scripts: snapshot, snapshot:validate
|
|
305
|
-
Added devDependency: codebase-snapshot ^0.22.
|
|
305
|
+
Added devDependency: codebase-snapshot ^0.22.3
|
|
306
306
|
Added to .gitignore: /snapshot/, /snapshot.tmp/
|
|
307
307
|
⏳ Installing dependencies…
|
|
308
308
|
✅ Installed dependencies (npm install, 2.1s)
|
|
@@ -354,7 +354,7 @@ It also has three side effects on files you own, and it says so when it does the
|
|
|
354
354
|
```
|
|
355
355
|
✅ Created snapshot.config.json (preset: node-lib)
|
|
356
356
|
Added npm scripts: snapshot, snapshot:validate
|
|
357
|
-
Added devDependency: codebase-snapshot ^0.22.
|
|
357
|
+
Added devDependency: codebase-snapshot ^0.22.3
|
|
358
358
|
Added to .gitignore: /snapshot/, /snapshot.tmp/
|
|
359
359
|
```
|
|
360
360
|
|
|
@@ -504,8 +504,8 @@ agent](agent.md).
|
|
|
504
504
|
Ask the npm registry whether a newer release exists, and print the version it compared against:
|
|
505
505
|
|
|
506
506
|
```bash
|
|
507
|
-
npx codebase-snapshot@0.22.
|
|
508
|
-
npx codebase-snapshot@0.22.
|
|
507
|
+
npx codebase-snapshot@0.22.3 update # is this build current? print the answer
|
|
508
|
+
npx codebase-snapshot@0.22.3 update --format json
|
|
509
509
|
```
|
|
510
510
|
|
|
511
511
|
```text
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
# Codebase prompt
|
|
2
|
+
|
|
3
|
+
A **codebase prompt** is the instruction and evidence you give a model about a repository. Most “bad model answers” are bad codebase prompts: the task is vague, the evidence is missing, or the context is so large that the important lines lose attention.
|
|
4
|
+
|
|
5
|
+
A good codebase prompt has four parts:
|
|
6
|
+
|
|
7
|
+
1. **Task** — what to change, answer or review.
|
|
8
|
+
2. **Constraints** — compatibility, style, files to avoid, acceptance criteria.
|
|
9
|
+
3. **Evidence** — the smallest set of code, tests, routes and docs that answers the task.
|
|
10
|
+
4. **Output contract** — what the answer must contain and how it will be checked.
|
|
11
|
+
|
|
12
|
+
The repository dump is not the prompt. It is one input to it.
|
|
13
|
+
|
|
14
|
+
## A skeleton that works
|
|
15
|
+
|
|
16
|
+
```text
|
|
17
|
+
Task
|
|
18
|
+
Add rate limiting to the login endpoint.
|
|
19
|
+
|
|
20
|
+
Constraints
|
|
21
|
+
- Keep the existing response shape.
|
|
22
|
+
- Do not change the public auth API.
|
|
23
|
+
- Add a regression test.
|
|
24
|
+
|
|
25
|
+
Evidence
|
|
26
|
+
- src/auth/login.ts:40-96
|
|
27
|
+
- src/middleware/rate-limit.ts:1-120
|
|
28
|
+
- tests/auth/login.test.ts:1-80
|
|
29
|
+
- docs/auth.md (status codes and retry headers)
|
|
30
|
+
|
|
31
|
+
Acceptance
|
|
32
|
+
- 429 after the configured limit.
|
|
33
|
+
- Retry-After is present.
|
|
34
|
+
- Existing tests pass.
|
|
35
|
+
|
|
36
|
+
Output
|
|
37
|
+
- Patch or exact changes.
|
|
38
|
+
- Tests to run.
|
|
39
|
+
- Anything you could not verify.
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
The evidence section is where a snapshot or context tool earns its place. It should name **files and line ranges**, not “the auth code.”
|
|
43
|
+
|
|
44
|
+
## Build the evidence
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
# A task-scoped snapshot
|
|
48
|
+
npx codebase-snapshot generate --slice "add rate limiting to login" --slice-tokens 12000
|
|
49
|
+
|
|
50
|
+
# A portable brief with the change, callers and tests
|
|
51
|
+
npx codebase-snapshot brief "add rate limiting to login" --out notes/task.md
|
|
52
|
+
|
|
53
|
+
# Inside an MCP client
|
|
54
|
+
snapshot_context { "question": "add rate limiting to login", "maxTokens": 8000 }
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
The brief and `snapshot_context` return bounded, numbered windows. If a file does not fit, the response names it; add that file deliberately or narrow the task. Do not silently grow the prompt.
|
|
58
|
+
|
|
59
|
+
## Keep the prompt small enough to use
|
|
60
|
+
|
|
61
|
+
Three budgets matter:
|
|
62
|
+
|
|
63
|
+
- **Repository budget** — how much of the repo enters the prompt.
|
|
64
|
+
- **Task budget** — how much of the prompt is instructions versus evidence.
|
|
65
|
+
- **Output budget** — how much room the model has to answer.
|
|
66
|
+
|
|
67
|
+
A 100k-token repository prompt leaves little room for reasoning and often performs worse than a 6k-token evidence pack. See [token budgets](budget.md) and [how to size a context budget](how-to-context-budget.md).
|
|
68
|
+
|
|
69
|
+
## What to leave out
|
|
70
|
+
|
|
71
|
+
- Generated files and lockfiles.
|
|
72
|
+
- Vendored dependencies.
|
|
73
|
+
- Unrelated modules “for context.”
|
|
74
|
+
- Full files when a range answers the question.
|
|
75
|
+
- Secrets and credential-bearing files. Sensitive names are excluded by default; redaction is not a substitute for exclusion.
|
|
76
|
+
|
|
77
|
+
## Make it checkable
|
|
78
|
+
|
|
79
|
+
A codebase prompt should end with verification:
|
|
80
|
+
|
|
81
|
+
- the tests that should pass;
|
|
82
|
+
- the type check or build command;
|
|
83
|
+
- the callers or routes that must not change;
|
|
84
|
+
- the files the answer must cite;
|
|
85
|
+
- what the model should say if the evidence is insufficient.
|
|
86
|
+
|
|
87
|
+
That last point matters. A model that says “I did not see the route definition” is more useful than one that invents it.
|
|
88
|
+
|
|
89
|
+
## Common mistakes
|
|
90
|
+
|
|
91
|
+
1. **Task ambiguity.** “Fix auth” is not a task.
|
|
92
|
+
2. **Evidence by filename.** The answer is often in a caller or test.
|
|
93
|
+
3. **No line ranges.** The model cannot cite what it used.
|
|
94
|
+
4. **No acceptance criteria.** “Done” is not defined.
|
|
95
|
+
5. **No verification step.** The change is plausible, not checked.
|
|
96
|
+
|
|
97
|
+
→ [Repo to LLM](repo-to-llm.md) · [Codebase to Markdown](codebase-to-markdown.md) · [Briefs](brief.md) · [snapshot_context](answer.md) · [How to feed a repo to Claude](how-to-feed-a-repo-to-claude.md)
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
# Codebase to Markdown
|
|
2
|
+
|
|
3
|
+
**Codebase to Markdown** means turning a repository into one or more Markdown files a language model can read without cloning the repo. The hard part is not the conversion. It is deciding what to include, what to leave out, and how to keep line numbers and file boundaries truthful.
|
|
4
|
+
|
|
5
|
+
A raw `tree` piped into a `.md` file is not enough. Large repositories overflow the context window, irrelevant files crowd out the files that matter, and a truncated file can look complete. A useful conversion is **bounded, indexed and checkable**.
|
|
6
|
+
|
|
7
|
+
## Three useful formats
|
|
8
|
+
|
|
9
|
+
| Format | Best for | Trade-off |
|
|
10
|
+
| :-- | :-- | :-- |
|
|
11
|
+
| One Markdown file | Small repos, a single chat, a quick review | No budget; the model may silently lose the middle |
|
|
12
|
+
| Budgeted parts + manifest | Whole-repo handoff, RAG ingestion, offline review | More files; the reader must respect the manifest |
|
|
13
|
+
| Task slice | One question or change | Narrow by design; not a repository archive |
|
|
14
|
+
|
|
15
|
+
`codebase-snapshot` supports all three.
|
|
16
|
+
|
|
17
|
+
## Convert a repository
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
# One snapshot, split into parts under a byte budget
|
|
21
|
+
npx codebase-snapshot generate
|
|
22
|
+
|
|
23
|
+
# Fit a token budget, choosing the highest-value files first
|
|
24
|
+
npx codebase-snapshot generate --budget-tokens 60000
|
|
25
|
+
|
|
26
|
+
# Only what a question needs
|
|
27
|
+
npx codebase-snapshot generate --slice "how does authentication work?" --slice-tokens 12000
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
The default output is a directory:
|
|
31
|
+
|
|
32
|
+
```text
|
|
33
|
+
snapshot/
|
|
34
|
+
README.md orientation and manifest summary
|
|
35
|
+
PROMPT.md instructions for the model reading the snapshot
|
|
36
|
+
manifest.json every file, skip and truncation
|
|
37
|
+
parts/*.md the code, under the part budget
|
|
38
|
+
reports/ project tree, navigation and audit
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
The manifest is the difference between a dump and a context artefact. It records the files that were included, the ones that were skipped and why, and the exact ranges missing from any previewed file. If a file did not fit, it is named in `incomplete[]`; nothing is silently dropped.
|
|
42
|
+
|
|
43
|
+
## What to include
|
|
44
|
+
|
|
45
|
+
- Source files that implement the task.
|
|
46
|
+
- Tests that exercise the changed behaviour.
|
|
47
|
+
- Routes, configuration and entry points that connect them.
|
|
48
|
+
- A small amount of documentation for conventions the code does not state.
|
|
49
|
+
|
|
50
|
+
## What to leave out
|
|
51
|
+
|
|
52
|
+
- Generated output, lockfiles, vendored dependencies and build caches.
|
|
53
|
+
- Binary and credential-bearing files; sensitive names are excluded by default.
|
|
54
|
+
- Files that do not fit the budget — but they must be recorded, not forgotten.
|
|
55
|
+
|
|
56
|
+
## Token budgets are not byte budgets
|
|
57
|
+
|
|
58
|
+
A 300 KB part is not a safe context window. `--max-part-bytes` controls the artefact; `--budget-tokens` controls how much repository fits a model. The two are related but not interchangeable, and models tokenize differently. Read [token budgets](budget.md) before choosing a number.
|
|
59
|
+
|
|
60
|
+
For a single question, prefer [a slice](slice.md) or the live [snapshot_context](answer.md) over the whole snapshot. For a whole-repo handoff, the parts and manifest are the point.
|
|
61
|
+
|
|
62
|
+
## Common mistakes
|
|
63
|
+
|
|
64
|
+
1. **No budget.** The output fits the disk, not the model.
|
|
65
|
+
2. **No manifest.** A reader cannot tell a complete file from a preview.
|
|
66
|
+
3. **No task.** The model gets everything and still has to find the answer.
|
|
67
|
+
4. **No line numbers.** A citation cannot be checked.
|
|
68
|
+
5. **Stale output.** The tree moved; the Markdown did not.
|
|
69
|
+
|
|
70
|
+
`validate` checks the last one: it re-hashes the tree and fails when the snapshot no longer matches.
|
|
71
|
+
|
|
72
|
+
## Checklist
|
|
73
|
+
|
|
74
|
+
- [ ] Choose one file, budgeted parts, or a task slice.
|
|
75
|
+
- [ ] Set a token budget, not only a byte budget.
|
|
76
|
+
- [ ] Keep the manifest with the Markdown.
|
|
77
|
+
- [ ] Read `incomplete[]` before trusting a file.
|
|
78
|
+
- [ ] Validate before handing the snapshot to another model.
|
|
79
|
+
|
|
80
|
+
→ [Generate a snapshot](cli.md) · [Token budgets](budget.md) · [Slices](slice.md) · [Compare with repomix](vs-repomix.md) · [Repo to LLM](repo-to-llm.md)
|
package/docs/contents.md
CHANGED
|
@@ -36,6 +36,11 @@ Every page on this site, grouped by the job you are doing. If you are new, start
|
|
|
36
36
|
|
|
37
37
|
## Guides and concepts
|
|
38
38
|
|
|
39
|
+
- [Repo to LLM](repo-to-llm.md) — five ways to give a model a repository, and when each one fits.
|
|
40
|
+
- [Codebase to Markdown](codebase-to-markdown.md) — convert a repo without silent truncation or a
|
|
41
|
+
missing manifest.
|
|
42
|
+
- [Codebase prompt](codebase-prompt.md) — task, constraints, line-numbered evidence and a
|
|
43
|
+
verification contract.
|
|
39
44
|
- [LLM codebase context](llm-codebase-context.md) — what it is, why raw dumps fail, and the four
|
|
40
45
|
practical approaches.
|
|
41
46
|
- [How to feed a repository to Claude or ChatGPT](how-to-feed-a-repo-to-claude.md) — the end-to-end
|
package/docs/deploy.md
CHANGED
|
@@ -67,8 +67,8 @@ After=network.target
|
|
|
67
67
|
Type=oneshot
|
|
68
68
|
User=deploy
|
|
69
69
|
WorkingDirectory=/srv/app
|
|
70
|
-
ExecStart=/usr/bin/npx -y codebase-snapshot@0.22.
|
|
71
|
-
ExecStartPost=/usr/bin/npx -y codebase-snapshot@0.22.
|
|
70
|
+
ExecStart=/usr/bin/npx -y codebase-snapshot@0.22.3 generate --cwd /srv/app
|
|
71
|
+
ExecStartPost=/usr/bin/npx -y codebase-snapshot@0.22.3 validate --cwd /srv/app
|
|
72
72
|
```
|
|
73
73
|
|
|
74
74
|
```ini
|
package/docs/guard.md
CHANGED
|
@@ -44,7 +44,7 @@ and use the hook block below.
|
|
|
44
44
|
The hook runs a pinned CLI, so the machine needs Node.js 18+ and `npx`:
|
|
45
45
|
|
|
46
46
|
~~~bash
|
|
47
|
-
npx -y codebase-snapshot@0.22.
|
|
47
|
+
npx -y codebase-snapshot@0.22.3 --version
|
|
48
48
|
~~~
|
|
49
49
|
|
|
50
50
|
## Run it
|
|
@@ -101,7 +101,7 @@ The plugin install above already wires this hook. Use this block only for a manu
|
|
|
101
101
|
"hooks": [
|
|
102
102
|
{
|
|
103
103
|
"type": "command",
|
|
104
|
-
"command": "npx -y codebase-snapshot@0.22.
|
|
104
|
+
"command": "npx -y codebase-snapshot@0.22.3 guard --hook claude",
|
|
105
105
|
"timeout": 10
|
|
106
106
|
}
|
|
107
107
|
]
|
|
@@ -120,7 +120,7 @@ The plugin install above already wires this hook. Use this block only for a manu
|
|
|
120
120
|
"postToolUse": [
|
|
121
121
|
{
|
|
122
122
|
"type": "command",
|
|
123
|
-
"command": "npx -y codebase-snapshot@0.22.
|
|
123
|
+
"command": "npx -y codebase-snapshot@0.22.3 guard --hook copilot",
|
|
124
124
|
"timeoutSec": 10
|
|
125
125
|
}
|
|
126
126
|
]
|
|
@@ -139,7 +139,7 @@ The plugin install above already wires this hook. Use this block only for a manu
|
|
|
139
139
|
"hooks": [
|
|
140
140
|
{
|
|
141
141
|
"type": "command",
|
|
142
|
-
"command": "npx -y codebase-snapshot@0.22.
|
|
142
|
+
"command": "npx -y codebase-snapshot@0.22.3 guard --hook codex",
|
|
143
143
|
"timeout": 10
|
|
144
144
|
}
|
|
145
145
|
]
|
|
@@ -217,6 +217,9 @@ context for the code that is being asked about.
|
|
|
217
217
|
|
|
218
218
|
## Related
|
|
219
219
|
|
|
220
|
+
- [Repo to LLM](repo-to-llm.md) — the approach comparison behind this recipe.
|
|
221
|
+
- [Codebase to Markdown](codebase-to-markdown.md) — the conversion and budget choices.
|
|
222
|
+
- [Codebase prompt](codebase-prompt.md) — how to phrase the task and evidence.
|
|
220
223
|
- [LLM codebase context](llm-codebase-context.md) — what context is and why a raw dump fails.
|
|
221
224
|
- [MCP server for a codebase](mcp-server-for-codebase.md) — the live alternative when the client supports MCP.
|
|
222
225
|
- [All documentation](contents.md) — every guide and reference.
|
|
@@ -160,6 +160,9 @@ same questions honestly.
|
|
|
160
160
|
|
|
161
161
|
## Related
|
|
162
162
|
|
|
163
|
+
- [Repo to LLM](repo-to-llm.md) — five approaches and when each fits.
|
|
164
|
+
- [Codebase to Markdown](codebase-to-markdown.md) — conversion without silent truncation.
|
|
165
|
+
- [Codebase prompt](codebase-prompt.md) — the instruction and evidence contract.
|
|
163
166
|
- [How to feed a repository to Claude or ChatGPT](how-to-feed-a-repo-to-claude.md)
|
|
164
167
|
- [How many tokens is a codebase?](codebase-token-budget.md)
|
|
165
168
|
- [Budgeting LLM context](how-to-context-budget.md)
|
package/docs/mcp.md
CHANGED
|
@@ -10,7 +10,7 @@ walk — that the client sees.
|
|
|
10
10
|
## Start it
|
|
11
11
|
|
|
12
12
|
```bash
|
|
13
|
-
npx -y codebase-snapshot@0.22.
|
|
13
|
+
npx -y codebase-snapshot@0.22.3 mcp
|
|
14
14
|
```
|
|
15
15
|
|
|
16
16
|
The server serves the directory it was started in. `--cwd <path>` points it elsewhere, and that
|
|
@@ -25,7 +25,7 @@ Claude Desktop and Cursor:
|
|
|
25
25
|
"mcpServers": {
|
|
26
26
|
"codebase-snapshot": {
|
|
27
27
|
"command": "npx",
|
|
28
|
-
"args": ["-y", "codebase-snapshot@0.22.
|
|
28
|
+
"args": ["-y", "codebase-snapshot@0.22.3", "mcp", "--cwd", "/absolute/path/to/repo"]
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
}
|
|
@@ -34,7 +34,7 @@ Claude Desktop and Cursor:
|
|
|
34
34
|
Claude Code registers the same thing from a shell:
|
|
35
35
|
|
|
36
36
|
```bash
|
|
37
|
-
claude mcp add codebase-snapshot -- npx -y codebase-snapshot@0.22.
|
|
37
|
+
claude mcp add codebase-snapshot -- npx -y codebase-snapshot@0.22.3 mcp --cwd /absolute/path/to/repo
|
|
38
38
|
```
|
|
39
39
|
|
|
40
40
|
On Windows, wrap the command as `cmd /c npx` with the same arguments — `npx` is a `.cmd` shim
|
|
@@ -43,7 +43,7 @@ there, and clients that spawn without a shell cannot execute it directly.
|
|
|
43
43
|
## Over HTTP, for clients that cannot spawn a process
|
|
44
44
|
|
|
45
45
|
```bash
|
|
46
|
-
npx -y codebase-snapshot@0.22.
|
|
46
|
+
npx -y codebase-snapshot@0.22.3 mcp --http --port 4789
|
|
47
47
|
```
|
|
48
48
|
|
|
49
49
|
This is the Streamable HTTP shape: POST one JSON-RPC message to `/mcp` and read the JSON-RPC
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
# Repo to LLM
|
|
2
|
+
|
|
3
|
+
**Repo to LLM** means giving a language model enough of a repository to answer a question or make a change — without pasting the entire checkout into the prompt.
|
|
4
|
+
|
|
5
|
+
There are five common approaches. They are not interchangeable.
|
|
6
|
+
|
|
7
|
+
| Approach | What the model gets | Good for | Weakness |
|
|
8
|
+
| :-- | :-- | :-- | :-- |
|
|
9
|
+
| Raw paste | The files someone remembered to select | A tiny repo or one file | Incomplete; no budget; no citation |
|
|
10
|
+
| Repository dump | Every file, usually one Markdown file | Small repos, offline reading | Overflows; irrelevant files; silent truncation |
|
|
11
|
+
| RAG / embeddings | Chunks chosen by similarity | Large corpora, fuzzy questions | Chunk boundaries; stale index; weak structure |
|
|
12
|
+
| Repo map | Symbols, imports and call paths | Orientation and navigation | Usually no full code evidence |
|
|
13
|
+
| Snapshot + live reads | Budgeted parts, manifest, line ranges | Whole-repo handoff and agent work | Requires discipline about budgets and freshness |
|
|
14
|
+
|
|
15
|
+
`codebase-snapshot` is the last category: a **portable snapshot** for whole-repo context, and a live MCP server for line-level follow-up.
|
|
16
|
+
|
|
17
|
+
## The token question comes first
|
|
18
|
+
|
|
19
|
+
A repository that is 40 MB on disk is not 40 MB of prompt. The practical question is:
|
|
20
|
+
|
|
21
|
+
1. How many tokens does the destination model accept?
|
|
22
|
+
2. How much of that window should the repository take?
|
|
23
|
+
3. Which files earn their tokens?
|
|
24
|
+
|
|
25
|
+
For arithmetic and a budget table, see [how many tokens is a codebase](codebase-token-budget.md). For choosing the budget, see [how to size an LLM context budget](how-to-context-budget.md).
|
|
26
|
+
|
|
27
|
+
## Start with a snapshot when the task is “understand this repo”
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
npx codebase-snapshot setup # config, install, generate
|
|
31
|
+
npx codebase-snapshot generate # or regenerate
|
|
32
|
+
npx codebase-snapshot validate # has the tree moved?
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
The snapshot contains budgeted Markdown parts and a manifest. The manifest is what makes it usable as evidence: every included file, every skipped file and every missing range has a record.
|
|
36
|
+
|
|
37
|
+
## Start with a slice or live context when the task is “answer this question”
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
npx codebase-snapshot generate --slice "where is the theme switcher?" --slice-tokens 8000
|
|
41
|
+
npx codebase-snapshot brief "where is the theme switcher?" --copy
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Inside an MCP client, `snapshot_context` returns line-numbered evidence and `snapshot_read` lets the agent ask for the next range. That is usually better than handing over a 60k-token dump for one question.
|
|
45
|
+
|
|
46
|
+
## What makes repo-to-LLM context useful
|
|
47
|
+
|
|
48
|
+
- **A task.** “Explain the repository” and “add rate limiting to login” need different evidence.
|
|
49
|
+
- **A budget.** The output should fit the model, not the disk.
|
|
50
|
+
- **Line evidence.** The model should be able to cite a file and a range.
|
|
51
|
+
- **Completeness accounting.** Omitted files must be named.
|
|
52
|
+
- **Freshness.** A snapshot from three commits ago is a different repository.
|
|
53
|
+
- **A verification path.** Tests, type checks and a change guard turn context into a checked change.
|
|
54
|
+
|
|
55
|
+
## Common failure modes
|
|
56
|
+
|
|
57
|
+
1. **Dumping everything and hoping.** The model reads the first and last parts and loses the middle.
|
|
58
|
+
2. **Selecting by filename only.** The answer is often in a caller, a route or a test.
|
|
59
|
+
3. **No omission list.** Nobody can tell whether the answer was possible from the context provided.
|
|
60
|
+
4. **No line numbers.** Citations cannot be verified.
|
|
61
|
+
5. **No follow-up tool.** When the model needs one more function, it has to ask for the whole file.
|
|
62
|
+
|
|
63
|
+
## A practical sequence
|
|
64
|
+
|
|
65
|
+
1. Generate a budgeted snapshot for orientation.
|
|
66
|
+
2. Ask a narrow question.
|
|
67
|
+
3. Use a slice, brief or `snapshot_context` for the task.
|
|
68
|
+
4. Read exact ranges with `snapshot_read`.
|
|
69
|
+
5. Run the tests the impact report names.
|
|
70
|
+
6. Validate or regenerate before the next task.
|
|
71
|
+
|
|
72
|
+
→ [Codebase to Markdown](codebase-to-markdown.md) · [Codebase prompt](codebase-prompt.md) · [LLM codebase context](llm-codebase-context.md) · [MCP server for a codebase](mcp-server-for-codebase.md) · [Briefs](brief.md)
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "codebase-snapshot",
|
|
3
|
-
"version": "0.22.
|
|
3
|
+
"version": "0.22.3",
|
|
4
4
|
"mcpName": "io.github.ankurhalder/codebase-snapshot",
|
|
5
|
-
"description": "
|
|
5
|
+
"description": "Codebase snapshot for AI agents: turn a repo into token-budgeted Markdown, a manifest and line-numbered context; 7 MCP tools for Claude, ChatGPT, Cursor and CI.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"codebase-snapshot",
|
|
8
8
|
"codebase",
|
|
@@ -30,7 +30,10 @@
|
|
|
30
30
|
"cursor",
|
|
31
31
|
"chatgpt",
|
|
32
32
|
"secret-redaction",
|
|
33
|
-
"drift-detection"
|
|
33
|
+
"drift-detection",
|
|
34
|
+
"codebase-prompt",
|
|
35
|
+
"codebase-snapshot-for-ai-agents",
|
|
36
|
+
"mcp-codebase-context"
|
|
34
37
|
],
|
|
35
38
|
"author": "Ankur Halder <ankur.halder12345@gmail.com>",
|
|
36
39
|
"license": "MIT",
|