Skip to content

Comments

Fix: Local reviews no longer trigger git clone operations#14

Closed
pranavsriram8 wants to merge 1 commit intokhezen:mainfrom
pranavsriram8:fix/local-git-detached-state
Closed

Fix: Local reviews no longer trigger git clone operations#14
pranavsriram8 wants to merge 1 commit intokhezen:mainfrom
pranavsriram8:fix/local-git-detached-state

Conversation

@pranavsriram8
Copy link
Contributor

Problem

When running codespy review-local or codespy review-uncommitted, the scope identifier still attempted to clone the repository via git tools — even though the repo was already present locally. This could cause failures in detached HEAD states or environments without git remote access.

Solution

Introduced an is_local mode that skips git operations during scope identification when the repository is already on disk.

- Add ScopeIdentifierLocalSignature for local review scope detection
- Thread is_local flag through ScopeIdentifier and ReviewPipeline
- Skip git MCP server initialization when repo already present
- Extract shared scope docstring into reusable constants (DRY)
- Update README DSPy Signatures table with local variant
@khezen
Copy link
Owner

khezen commented Feb 21, 2026

fixed in #15

changes to _create_mcp_tools are good but I prefer a more agentic approach to the DSPy signature.

@khezen khezen closed this Feb 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants