Go from npx getshrike report to a reviewed cleanup plan in a TypeScript repository without changing project source.
This walkthrough starts read-only. It produces the dead-weight report, the branch delta, and a deletion plan. Nothing here changes project source files.
Prerequisites
Node.js 22 or newer.
A git repository with a base ref available locally, such as origin/main. Fetch it first if needed: git fetch origin main.
A clean working tree if you plan to continue to Verified pruning.
1. Run the report
npx getshrike report
Expected: the dead-weight report for the current tree. On a terminal it is interactive; in CI, a pipe, or an agent session it is plain text. Exit 1 means it found removable files or symbols; exit 0 means it found none. Both are normal results.See Cleanup report for the metric, groups, protected reasons, and the interactive keys.
2. Install locally and initialize
npm install -D getshrikenpx shrike init
Expected: Created shrike.config.ts and added .shrike/ to .gitignore. The generated file is a typed partial config with the defaults; see Configuration. Pass --force to replace an existing config.The npm package installs the shrike and getshrike commands. A native engine is resolved for your platform; see Installation.
3. See current-state evidence
npx shrike scan
Expected: a count of deletion candidates in the current tree, plus unused files, advisory diagnostics, and dependency evidence. Exit 1 means it found something; 0 means clean. Add --json for the full report.
4. Find what this branch orphaned
npx shrike report --base origin/main
This is the branch report: it counts only code this branch orphaned and lists pre-existing dead code separately. For the raw delta:
npx shrike delta --base origin/main
Expected output:
$ npx shrike delta --base origin/mainShrike delta: 1 newly dead symbol in 1 file src/format.ts#formatInvoice -3 lines [src/format.ts] src/format.ts (file)Cascade: 1 symbols, 1 files, 3 lines
The base ref must resolve to a commit Shrike can diff against. Shrike uses git merge-base <base> HEAD and falls back to git rev-parse <base>. If neither works, it reports that it could not resolve the base ref and exits 4. When --base is omitted, Shrike tries origin/main, main, origin/master, then master.
5. Build a deletion plan
npx shrike plan --base origin/main
Expected: Plan <id>: N symbols, N files, N lines, one line per batch, and a Blocked count when applicable. The plan is saved under .shrike/ so clean, prune, and verify can reuse it. Exit 1 means the plan contains symbols; 0 means it is empty.
6. Preview the cleanup
npx shrike clean --base origin/main --dry-run
Expected: the plan without source changes. Exit 1 means batches are ready; 0 means there is nothing to remove. When the plan looks right, apply it with the command in Branch cleanup or Verified pruning.
clean (without --dry-run) changes repository files and creates commits on a new branch. It runs the project’s checks before and after each batch and never commits to the base branch. Review the plan first.
What changed on disk
report, scan, delta, plan, and clean --dry-run do not edit project source or config. Branch-scope commands create and remove a temporary worktree under .shrike/worktrees/.
They may write content-addressed snapshots to .shrike/cache/; plan also writes .shrike/last-plan.json and a stored plan.
init writes shrike.config.ts and adds .shrike/ to .gitignore.
A real clean creates commits on a cleanup branch, writes receipts under .shrike/receipts/, and removes its temporary worktree after the run.
Decide whether to continue
If the report, delta, and plan are empty, there is nothing to remove.
If the batches look right and the blocked items are acceptable, continue to Branch cleanup.
If the report shows dead code that predates this branch and you explicitly want to remove it, use Current-state cleanup with clean --all.
If a symbol is blocked or you want to understand why it is live, run npx shrike why <path#Name>. Blocked items are never deleted automatically.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Shrike","colors":{"primary":"#0A0A0A","light":"#525252","dark":"#D4D4D4"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"shrike","hasAudioNarration":false,"actualSubdomain":"shrike","customDomains":["docs.getshrike.dev"],"gitSource":{"type":"github","owner":"getshrike","repo":"shrike","deployBranch":"main","contentDirectory":"apps/docs","isPrivate":false,"mountPath":"","label":"","_id":"6b0966dbce19148ce1764259"},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b0967a9ce19148ce1764b18","clientVersion":"0.0.4340","searchFilterCounts":[{"language":"default","tag":"Get started","count":3},{"language":"default","tag":"The report","count":3},{"language":"default","tag":"Reference","count":3},{"language":"default","tag":"Integrations","count":2},{"language":"default","tag":"Core workflow","count":2},{"language":"default","tag":"Troubleshooting","count":1}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"getting-started/quickstart","slug":"/getting-started/quickstart","pageMetadata":{"title":"Quickstart","description":"Go from npx getshrike report to a reviewed cleanup plan in a TypeScript repository without changing project source.","href":"/getting-started/quickstart"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Go from npx getshrike report to a reviewed cleanup plan in a TypeScript repository without changing project source.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`This walkthrough starts read-only. It produces the dead-weight report, the branch delta, and a deletion plan. Nothing here changes project source files.`}),`\n`,_jsx(Heading,{level:`2`,id:`prerequisites`,children:`Prerequisites`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Node.js 22 or newer.`}),`\n`,_jsxs(_components.li,{children:[`A git repository with a base ref available locally, such as `,_jsx(_components.code,{children:`origin/main`}),`. Fetch it first if needed: `,_jsx(_components.code,{children:`git fetch origin main`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`A clean working tree if you plan to continue to `,_jsx(_components.a,{href:`/guides/verified-pruning`,children:`Verified pruning`}),`.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`1-run-the-report`,children:`1. Run the report`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`npx`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` getshrike`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` report`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Expected: the dead-weight report for the current tree. On a terminal it is interactive; in CI, a pipe, or an agent session it is plain text. Exit `,_jsx(_components.code,{children:`1`}),` means it found removable files or symbols; exit `,_jsx(_components.code,{children:`0`}),` means it found none. Both are normal results.`]}),`\n`,_jsxs(_components.p,{children:[`See `,_jsx(_components.a,{href:`/guides/cleanup-report`,children:`Cleanup report`}),` for the metric, groups, protected reasons, and the interactive keys.`]}),`\n`,_jsx(Heading,{level:`2`,id:`2-install-locally-and-initialize`,children:`2. Install locally and initialize`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`npm`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` install`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -D`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` getshrike`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`npx`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` shrike`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` init`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Expected: `,_jsx(_components.code,{children:`Created shrike.config.ts and added .shrike/ to .gitignore.`}),` The generated file is a typed partial config with the defaults; see `,_jsx(_components.a,{href:`/reference/configuration`,children:`Configuration`}),`. Pass `,_jsx(_components.code,{children:`--force`}),` to replace an existing config.`]}),`\n`,_jsxs(_components.p,{children:[`The npm package installs the `,_jsx(_components.code,{children:`shrike`}),` and `,_jsx(_components.code,{children:`getshrike`}),` commands. A native engine is resolved for your platform; see `,_jsx(_components.a,{href:`/getting-started/installation`,children:`Installation`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`3-see-current-state-evidence`,children:`3. See current-state evidence`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`npx`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` shrike`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` scan`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Expected: a count of deletion candidates in the current tree, plus unused files, advisory diagnostics, and dependency evidence. Exit `,_jsx(_components.code,{children:`1`}),` means it found something; `,_jsx(_components.code,{children:`0`}),` means clean. Add `,_jsx(_components.code,{children:`--json`}),` for the full report.`]}),`\n`,_jsx(Heading,{level:`2`,id:`4-find-what-this-branch-orphaned`,children:`4. Find what this branch orphaned`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`npx`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` shrike`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` report`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --base`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` origin/main`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`This is the branch report: it counts only code this branch orphaned and lists pre-existing dead code separately. For the raw delta:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`npx`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` shrike`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` delta`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --base`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` origin/main`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Expected output:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`shellsession`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellsession`,children:_jsxs(_components.code,{language:`shellsession`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`$ npx shrike delta --base origin/main`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`Shrike delta: 1 newly dead symbol in 1 file`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:` src/format.ts#formatInvoice -3 lines [src/format.ts]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:` src/format.ts (file)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`Cascade: 1 symbols, 1 files, 3 lines`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`The base ref must resolve to a commit Shrike can diff against. Shrike uses `,_jsx(_components.code,{children:`git merge-base \u003cbase> HEAD`}),` and falls back to `,_jsx(_components.code,{children:`git rev-parse \u003cbase>`}),`. If neither works, it reports that it could not resolve the base ref and exits `,_jsx(_components.code,{children:`4`}),`. When `,_jsx(_components.code,{children:`--base`}),` is omitted, Shrike tries `,_jsx(_components.code,{children:`origin/main`}),`, `,_jsx(_components.code,{children:`main`}),`, `,_jsx(_components.code,{children:`origin/master`}),`, then `,_jsx(_components.code,{children:`master`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`5-build-a-deletion-plan`,children:`5. Build a deletion plan`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`npx`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` shrike`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` plan`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --base`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` origin/main`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Expected: `,_jsx(_components.code,{children:`Plan \u003cid>: N symbols, N files, N lines`}),`, one line per batch, and a `,_jsx(_components.code,{children:`Blocked`}),` count when applicable. The plan is saved under `,_jsx(_components.code,{children:`.shrike/`}),` so `,_jsx(_components.code,{children:`clean`}),`, `,_jsx(_components.code,{children:`prune`}),`, and `,_jsx(_components.code,{children:`verify`}),` can reuse it. Exit `,_jsx(_components.code,{children:`1`}),` means the plan contains symbols; `,_jsx(_components.code,{children:`0`}),` means it is empty.`]}),`\n`,_jsx(Heading,{level:`2`,id:`6-preview-the-cleanup`,children:`6. Preview the cleanup`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`npx`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` shrike`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` clean`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --base`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` origin/main`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --dry-run`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Expected: the plan without source changes. Exit `,_jsx(_components.code,{children:`1`}),` means batches are ready; `,_jsx(_components.code,{children:`0`}),` means there is nothing to remove. When the plan looks right, apply it with the command in `,_jsx(_components.a,{href:`/guides/branch-cleanup`,children:`Branch cleanup`}),` or `,_jsx(_components.a,{href:`/guides/verified-pruning`,children:`Verified pruning`}),`.`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`clean`}),` (without `,_jsx(_components.code,{children:`--dry-run`}),`) changes repository files and creates commits on a new branch. It runs the project’s checks before and after each batch and never commits to the base branch. Review the plan first.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`what-changed-on-disk`,children:`What changed on disk`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`report`}),`, `,_jsx(_components.code,{children:`scan`}),`, `,_jsx(_components.code,{children:`delta`}),`, `,_jsx(_components.code,{children:`plan`}),`, and `,_jsx(_components.code,{children:`clean --dry-run`}),` do not edit project source or config. Branch-scope commands create and remove a temporary worktree under `,_jsx(_components.code,{children:`.shrike/worktrees/`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`They may write content-addressed snapshots to `,_jsx(_components.code,{children:`.shrike/cache/`}),`; `,_jsx(_components.code,{children:`plan`}),` also writes `,_jsx(_components.code,{children:`.shrike/last-plan.json`}),` and a stored plan.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`init`}),` writes `,_jsx(_components.code,{children:`shrike.config.ts`}),` and adds `,_jsx(_components.code,{children:`.shrike/`}),` to `,_jsx(_components.code,{children:`.gitignore`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`A real `,_jsx(_components.code,{children:`clean`}),` creates commits on a cleanup branch, writes receipts under `,_jsx(_components.code,{children:`.shrike/receipts/`}),`, and removes its temporary worktree after the run.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`decide-whether-to-continue`,children:`Decide whether to continue`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`If the report, delta, and plan are empty, there is nothing to remove.`}),`\n`,_jsxs(_components.li,{children:[`If the batches look right and the blocked items are acceptable, continue to `,_jsx(_components.a,{href:`/guides/branch-cleanup`,children:`Branch cleanup`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`If the report shows dead code that predates this branch and you explicitly want to remove it, use `,_jsx(_components.a,{href:`/guides/current-state-cleanup`,children:`Current-state cleanup`}),` with `,_jsx(_components.code,{children:`clean --all`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`If a symbol is blocked or you want to understand why it is live, run `,_jsx(_components.code,{children:`npx shrike why \u003cpath#Name>`}),`. Blocked items are never deleted automatically.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`next`,children:`Next`}),`\n`,_jsxs(_components.p,{children:[`Set up `,_jsx(_components.a,{href:`/guides/github-action`,children:`GitHub Actions`}),` or `,_jsx(_components.a,{href:`/guides/agent-integrations`,children:`coding-agent integrations`}),`.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Quickstart","description":"Go from npx getshrike report to a reviewed cleanup plan in a TypeScript repository without changing project source.","href":"/getting-started/quickstart"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Prerequisites","slug":"prerequisites","depth":2,"children":[]},{"title":"1. Run the report","slug":"1-run-the-report","depth":2,"children":[]},{"title":"2. Install locally and initialize","slug":"2-install-locally-and-initialize","depth":2,"children":[]},{"title":"3. See current-state evidence","slug":"3-see-current-state-evidence","depth":2,"children":[]},{"title":"4. Find what this branch orphaned","slug":"4-find-what-this-branch-orphaned","depth":2,"children":[]},{"title":"5. Build a deletion plan","slug":"5-build-a-deletion-plan","depth":2,"children":[]},{"title":"6. Preview the cleanup","slug":"6-preview-the-cleanup","depth":2,"children":[]},{"title":"What changed on disk","slug":"what-changed-on-disk","depth":2,"children":[]},{"title":"Decide whether to continue","slug":"decide-whether-to-continue","depth":2,"children":[]},{"title":"Next","slug":"next","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"shrike","siteName":"Shrike","title":"Quickstart - Shrike","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-27T11:20:53.830Z","originalFileLocation":"getting-started/quickstart.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Go from npx getshrike report to a reviewed cleanup plan in a TypeScript repository without changing project source.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Shrike\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/shrike/_generated/favicon/apple-touch-icon.png?v=3\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/shrike/_generated/favicon/favicon-32x32.png?v=3\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/shrike/_generated/favicon/favicon-16x16.png?v=3\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/shrike/_generated/favicon/favicon.ico?v=3\">\u003cmeta data-mint-head property=\"og:title\" content=\"Quickstart - Shrike\">\u003cmeta data-mint-head property=\"og:description\" content=\"Go from npx getshrike report to a reviewed cleanup plan in a TypeScript repository without changing project source.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Shrike\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.getshrike.dev/getting-started/quickstart\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://shrike.mintlify.site/_mintlify/api/og/v2?division=Get+started\u0026amp;title=Quickstart\u0026amp;description=Go+from+npx+getshrike+report+to+a+reviewed+cleanup+plan+in+a+TypeScript+repository+without+changing+project+source.\u0026amp;theme=85668ada0bf8e9165575f848\u0026amp;signature=21d477e9979e65a33c5e2db97ec48e9f2870601c8e8994200097f1ffa215a7e9\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Quickstart - Shrike\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Go from npx getshrike report to a reviewed cleanup plan in a TypeScript repository without changing project source.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://shrike.mintlify.site/_mintlify/api/og/v2?division=Get+started\u0026amp;title=Quickstart\u0026amp;description=Go+from+npx+getshrike+report+to+a+reviewed+cleanup+plan+in+a+TypeScript+repository+without+changing+project+source.\u0026amp;theme=85668ada0bf8e9165575f848\u0026amp;signature=21d477e9979e65a33c5e2db97ec48e9f2870601c8e8994200097f1ffa215a7e9\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"https://mintlify.s3.us-west-1.amazonaws.com/shrike/_generated/favicon/browserconfig.xml?v=3\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Shrike\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0A0A0A\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.getshrike.dev/getting-started/quickstart\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/getting-started/quickstart.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.getshrike.dev/#organization\",\"name\":\"Shrike\",\"url\":\"https://docs.getshrike.dev\"},{\"@type\":\"WebSite\",\"@id\":\"https://docs.getshrike.dev#website\",\"name\":\"Shrike\",\"url\":\"https://docs.getshrike.dev\",\"publisher\":{\"@id\":\"https://docs.getshrike.dev/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.getshrike.dev/getting-started/quickstart#webpage\",\"url\":\"https://docs.getshrike.dev/getting-started/quickstart\",\"name\":\"Quickstart\",\"description\":\"Go from npx getshrike report to a reviewed cleanup plan in a TypeScript repository without changing project source.\",\"dateModified\":\"2026-11-27T11:20:53.830Z\",\"isPartOf\":{\"@id\":\"https://docs.getshrike.dev#website\"},\"breadcrumb\":{\"@id\":\"https://docs.getshrike.dev/getting-started/quickstart#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.getshrike.dev/getting-started/quickstart#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Get started\",\"item\":\"https://docs.getshrike.dev\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Quickstart\",\"item\":\"https://docs.getshrike.dev/getting-started/quickstart\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.getshrike.dev/getting-started/quickstart#article\",\"headline\":\"Quickstart\",\"name\":\"Quickstart\",\"description\":\"Go from npx getshrike report to a reviewed cleanup plan in a TypeScript repository without changing project source.\",\"url\":\"https://docs.getshrike.dev/getting-started/quickstart\",\"mainEntityOfPage\":{\"@id\":\"https://docs.getshrike.dev/getting-started/quickstart#webpage\"},\"dateModified\":\"2026-11-27T11:20:53.830Z\",\"publisher\":{\"@id\":\"https://docs.getshrike.dev/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.getshrike.dev#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Shrike\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Shrike\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/getting-started/quickstart.md","siteName":"Shrike","nav":{"global":null,"groups":[{"group":"Get started","pages":[{"title":"Shrike","href":"/index"},{"title":"Installation","description":"Install the getshrike npm package, verify the CLI, and resolve the native engine on a supported platform.","href":"/getting-started/installation"},{"title":"Quickstart","href":"/getting-started/quickstart"}]},{"group":"The report","pages":[{"title":"Cleanup report","description":"Read the dead-weight report: the metric, groups, branch scope, protected items, diagnostics, advisory dependencies, and the interactive view.","href":"/guides/cleanup-report"},{"title":"Current-state cleanup","href":"/guides/current-state-cleanup"},{"title":"Report format","href":"/reference/report-format"}]},{"group":"Core workflow","pages":[{"title":"Verified pruning","href":"/guides/verified-pruning"},{"title":"Branch cleanup","href":"/guides/branch-cleanup"}]},{"group":"Integrations","pages":[{"title":"Agent integrations","href":"/guides/agent-integrations"},{"title":"GitHub Action","href":"/guides/github-action"}]},{"group":"Reference","pages":[{"title":"Commands","href":"/reference/commands"},{"title":"Configuration","href":"/reference/configuration"},{"title":"Exit codes","href":"/reference/exit-codes"}]},{"group":"Troubleshooting","pages":[{"title":"Troubleshooting","href":"/troubleshooting"}]}]},"basePath":"","title":"Quickstart - Shrike","deploymentId":"dpl_EtLmMeZHkKGqAjV1DiX4ZXCriDj3","buildId":"dpl_EtLmMeZHkKGqAjV1DiX4ZXCriDj3","dynamics":[],"chunks":[]}