feat: rename retrofit command to liberate#10
Conversation
Renames the CLI command, MCP tool, service classes, interfaces, errors, file names, source type, tags, and all documentation from "retrofit" to "liberate" to better reflect the tool's purpose of freeing knowledge locked in git history. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
📝 WalkthroughWalkthroughRenames "Retrofit" to "Liberate" across the codebase (services, interfaces, CLI, MCP tools, domain types, docs, and tests), replaces README content with a Getting Started link, and adds comprehensive docs/getting-started.md. No behavioral changes. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 5
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
docs/mcp-setup.md (1)
87-96:⚠️ Potential issue | 🟡 MinorDocumentation update: Consider adding the
enrichparameter.The
git_mem_liberatesection documentsdry_run,since,max_commits, andthreshold, but omits theenrichparameter that's available in the tool implementation (seesrc/mcp/tools/liberate.tsline 25).📝 Proposed documentation addition
- `dry_run` — Preview without writing (default: false) - `since` — Start date (ISO 8601) - `max_commits` — Maximum commits to process - `threshold` — Interest score threshold (default: 3) +- `enrich` — Enable LLM enrichment (requires ANTHROPIC_API_KEY)
🤖 Fix all issues with AI agents
In `@docs/getting-started.md`:
- Around line 319-323: Add a single trailing newline character at the end of the
file so the file ends with a newline (i.e., ensure the last line containing the
code block with "./scripts/reinstall-global.sh" is followed by a newline
character); update the file so the final byte is a newline without changing any
other content.
- Around line 159-162: Update the three/ four fenced ASCII diagram code blocks
(the blocks that show "refs/notes/mem └── <commit-sha> → { \"memories\": [ ...
] }" and the other two/three similar ASCII diagrams) to include a language
specifier (e.g., use ```text or ```plaintext) so markdownlint warnings are
resolved; locate the fenced blocks surrounding the ASCII diagrams and prefix the
opening backticks with "text" (apply the same change to the other ASCII diagram
blocks referenced in the review).
- Around line 1-3: Remove the trailing space at the end of the markdown heading
"Getting Started" on the first line (i.e., change "# Getting Started " to "#
Getting Started") so the heading has no trailing whitespace.
In `@README.md`:
- Line 7: Remove the trailing space at the end of the README.md line "Every
commit message, every PR description — it's all there." (the text in the diff)
to resolve markdownlint MD009; either trim the trailing whitespace to zero
characters or intentionally add two spaces if you want a hard line break, and
commit the updated README.md.
In `@src/domain/types/IMemoryQuality.ts`:
- Line 18: Fix the typo in the documentation comment for IMemoryQuality: replace
the word "liberateting" with the correct spelling "liberating" in the comment
that defines the "liberate" entry so the description reads "Generated by
liberating existing history"; update the doc block near the IMemoryQuality
definition to reflect this change.
- Fix trailing whitespace in README.md and docs/getting-started.md - Fix typo "liberateting" → "liberating" in IMemoryQuality.ts - Add language specifiers to ASCII diagram code blocks - Add trailing newline to docs/getting-started.md - Add missing enrich parameter to mcp-setup.md docs Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
All 5 CodeRabbit review comments addressed in 9f5bcec:
Also addressed the outside-diff suggestion: added missing |
There was a problem hiding this comment.
Actionable comments posted: 1
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
docs/mcp-setup.md (1)
98-104: 🧹 Nitpick | 🔵 TrivialConsider adding a liberate-specific verification example.
The verification section provides good general examples for testing the MCP tools. Since this PR introduces the renamed
liberatetool as a key feature, consider adding a specific verification step for it.📝 Suggested addition
2. Recall memories: *"What do you remember about the database?"* 3. Check context: *"What memories are relevant to my staged changes?"* +4. Liberate history: *"Scan the last 50 commits and liberate interesting patterns"*
🤖 Fix all issues with AI agents
In `@docs/getting-started.md`:
- Around line 289-293: Remove the misleading OPEN_API_KEY row from the
environment variables table in the docs: locate the table entry that defines
`OPEN_API_KEY` (adjacent to `ANTHROPIC_API_KEY`) and delete that entire row so
only `ANTHROPIC_API_KEY` remains as the documented enrichment key; ensure table
formatting (pipes and separators) remains valid after removal.
Summary
retrofitCLI command, MCP tool, service classes, interfaces, errors, file names, source type, tags, and all documentation toliberateTest plan
npm run build— compiles cleanlynpm test— all 135 tests passgrep -ri retrofit— zero remaining referencesCloses GIT-31
🤖 Generated with Claude Code
Summary by CodeRabbit
Refactor
Documentation
Tests