claude-code-proxy
CLAUDE.md2.8k starsChanged 17 months agoMITView on GitHub
This document outlines best practices for working with Claude Code to ensure efficient and successful software development tasks. For complex or multi-step tasks, Claude Code will use: * TodoWrite: To create a structured task list, breaking down the work into manageable steps. This provides clarity on the plan and allows for tracking progress. * TodoRead: To review the current list of tasks and their status, ensuring alignment and that all objectives are being addressed. Understanding file content is crucial before…
Trending
Quiet since July.thin dataabout the whole repository
Who's talking about fuergaosi233/claude-code-proxy
- @skorfmann.com“Gonna test this next”Bluesky · Aug 8, 2025 · 1 likes
- A Hacker News story“Claude-code proxy – integrate with any OpenAI-compatible completions provider”Hacker News · Jun 23, 2025 · 1 points
- banderlog/claude-code-proxy“Add 'system', 'ctx', and 'msg' roles to ClaudeMessage”GitHub · Jul 23, 2026
- f5-sales-demo/claude-code-proxy“fix: restore upstream LICENSE copyright”GitHub · Mar 17, 2026
- CedarVerse/vandamme-proxy“Support multiple static API keys per provider”GitHub · Dec 11, 2025
The biggest 5 of 10 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 10
Talked about on GitHub, Hacker News and Bluesky (10 times).
On GitHub · 8
- Jul 23, 2026Add 'system', 'ctx', and 'msg' roles to ClaudeMessage — banderlog/claude-code-proxy0 reactions
- Mar 17, 2026fix: restore upstream LICENSE copyright — f5-sales-demo/claude-code-proxy0 reactions
- Dec 11, 2025Support multiple static API keys per provider — CedarVerse/vandamme-proxy0 reactions · 1 comment
- Dec 10, 2025Support provider-specific pass-through API keys sent in client requests — CedarVerse/vandamme-proxy0 reactions
- Oct 4, 2025feat: Add OpenAI Responses API support for gpt-5/gpt-5-codex models and enhanced logging — rysweet/amplihack0 reactions · 1 comment
3 more on GitHub
- Oct 3, 2025feat: Update proxy implementation with Azure OpenAI support from PR #35 — rysweet/amplihack0 reactions
- Aug 3, 2025create automation to help seamlessly setup a Claude Code api proxy to enable using Claude Code with azure openai models — rysweet/gadugi0 reactions
- Jun 28, 202520250622-20250628 Weekly Review — zstone12/gitblog0 reactions · 2 comments
On Hacker News · 1
On Bluesky · 1
- Aug 8, 2025Gonna test this next — @skorfmann.com1 likes and repost
The file
Show its rules and text
We split this CLAUDE.md into the rules it gives an agent
19 rules. About 0 are common, 6 are distinctive, and 13 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
13
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 16
When searching for specific content, patterns, or definitions within a codebase, prefer using search tools like Grep or Task (with a …
- Very specific: line 21
Assess Size: Before reading a potentially large file, its size should be determined (e.g., using ls -l via the Bash tool or by an initial …
- Very specific: line 22
Chunked Reading: If a file is large (e.g., over a few thousand lines), it should be read in manageable chunks (e.g., 1000-2000 lines at a …
- Very specific: line 23
Always ensure that the file path provided to Read is absolute.
- Very specific: line 46
If further visual confirmation is needed, use the Read tool with offset and limit parameters to view only the specific section of the file …
- Very specific: line 50
When inserting larger blocks of new code (e.g., multiple functions or methods) where a simple old_string might be fragile due to …
- Distinctive: line 74
When refactoring large files incrementally rather than rewriting them completely:
- Very specific: line 78
Use Bash commands like grep -n "pattern" file to find line numbers for specific areas of interest.
- Distinctive: line 79
Create a clear mental model of the file structure before proceeding with edits.
- Distinctive: line 83
Read sequential chunks to build a complete understanding of the file.
- Very specific: line 84
Use Grep to pinpoint key sections, then read just those sections with targeted offset parameters.
- Very specific: line 87
Use Bash commands with grep -A N (to show N lines after a match) or grep -B N (to show N lines before) to locate function or method …
- Very specific: line 92
Use the Bash tool with sed for quick previews of potential replacements.
- Very specific: line 98
Use Edit for well-defined single changes within the file.
- Very specific: line 102
Use Bash with sed to preview the scope of batch changes: grep -n "pattern" filename.js | wc -l
- Distinctive: line 106
After each set of changes, verify the specific sections that were modified.
- Very specific: line 111
Use the TodoWrite tool to track which sections or patterns have been updated.
- Distinctive: line 112
Create a checklist of all required changes and mark them off as they're completed.
- Distinctive: line 117
When Claude Code generates commit messages on your behalf:
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Claude Code: Best Practices for Effective Collaboration
This document outlines best practices for working with Claude Code to ensure efficient and successful software development tasks.
Task Management
For complex or multi-step tasks, Claude Code will use:
- TodoWrite: To create a structured task list, breaking down the work into manageable steps. This provides clarity on the plan and allows for tracking progress.
- TodoRead: To review the current list of tasks and their status, ensuring alignment and that all objectives are being addressed.
File Handling and Reading
Understanding file content is crucial before making modifications.
- Targeted Information Retrieval:
- When searching for specific content, patterns, or definitions within a codebase, prefer using search tools like
GreporTask(with a focused search prompt). This is more efficient than reading entire files.
- When searching for specific content, patterns, or definitions within a codebase, prefer using search tools like
- Reading File Content:
- Small to Medium Files: For files where full context is needed or that are not excessively large, the
Readtool can be used to retrieve the entire content. - Large File Strategy:
- Assess Size: Before reading a potentially large file, its size should be determined (e.g., using
ls -lvia theBashtool or by an initialReadwith a smalllimitto observe if content is truncated). - Chunked Reading: If a file is large (e.g., over a few thousand lines), it should be read in manageable chunks (e.g., 1000-2000 lines at a time) using the
offsetandlimitparameters of theReadtool. This ensures all content can be processed without issues.
- Assess Size: Before reading a potentially large file, its size should be determined (e.g., using
- Always ensure that the file path provided to
Readis absolute.
- Small to Medium Files: For files where full context is needed or that are not excessively large, the
File Editing
Precision is key for successful file edits. The following strategies lead to reliable modifications:
- Pre-Edit Read: Always use the
Readtool to fetch the content of the file immediately before attempting anyEditorMultiEditoperation. This ensures modifications are based on the absolute latest version of the file. - Constructing
old_string(The text to be replaced):- Exact Match: The
old_stringmust be an exact character-for-character match of the segment in the file you intend to replace. This includes all whitespace (spaces, tabs, newlines) and special characters. - No Read Artifacts: Crucially, do not include any formatting artifacts from the
Readtool's output (e.g.,cat -nstyle line numbers or display-only leading tabs) in theold_string. It must only contain the literal characters as they exist in the raw file. - Sufficient Context & Uniqueness: Provide enough context (surrounding lines) in
old_stringto make it uniquely identifiable at the intended edit location. The "Anchor on a Known Good Line" strategy is preferred:old_stringis a larger, unique block of text surrounding the change or insertion point. This is highly reliable.
- Exact Match: The
- Constructing
new_string(The replacement text):- Exact Representation: The
new_stringmust accurately represent the desired state of the code, including correct indentation, whitespace, and newlines. - No Read Artifacts: As with
old_string, ensurenew_stringdoes not contain anyReadtool output artifacts.
- Exact Representation: The
- Choosing the Right Editing Tool:
EditTool: Suitable for a single, well-defined replacement in a file.MultiEditTool: Preferred when multiple changes are needed within the same file. Edits are applied sequentially, with each subsequent edit operating on the result of the previous one. This tool is highly effective for complex modifications.
- Verification:
- The success confirmation from the
EditorMultiEdittool (especially ifexpected_replacementsis used and matches) is the primary indicator that the change was made. - If further visual confirmation is needed, use the
Readtool withoffsetandlimitparameters to view only the specific section of the file that was changed, rather than re-reading the entire file.
- The success confirmation from the
Reliable Code Insertion with MultiEdit
When inserting larger blocks of new code (e.g., multiple functions or methods) where a simple old_string might be fragile due to surrounding code, the following MultiEdit strategy can be more robust:
- First Edit - Targeted Insertion Point: For the primary code block you want to insert (e.g., new methods within a class), identify a short, unique, and stable line of code immediately after your desired insertion point. Use this stable line as the
old_string.- The
new_stringwill consist of your new block of code, followed by a newline, and then the originalold_string(the stable line you matched on). - Example: If inserting methods into a class, the
old_stringmight be the closing brace}of the class, or a comment that directly follows the class.
- The
- Second Edit (Optional) - Ancillary Code: If there's another, smaller piece of related code to insert (e.g., a function call within an existing method, or an import statement), perform this as a separate, more straightforward edit within the
MultiEditcall. This edit usually has a more clearly defined and less ambiguousold_string.
Rationale:
- By anchoring the main insertion on a very stable, unique line after the insertion point and prepending the new code to it, you reduce the risk of
old_stringmismatches caused by subtle variations in the code before the insertion point. - Keeping ancillary edits separate allows them to succeed even if the main insertion point is complex, as they often target simpler, more reliable
old_stringpatterns. - This approach leverages
MultiEdit's sequential application of changes effectively.
Example Scenario: Adding new methods to a class and a call to one of these new methods elsewhere.
- Edit 1: Insert the new methods.
old_stringis the class's closing brace}.new_stringis[new methods code] }. - Edit 2: Insert the call to a new method.
old_stringis// existing line before call.new_stringis// existing line before call this.newMethodCall();.
This method provides a balance between precise editing and handling larger code insertions reliably when direct old_string matches for the entire new block are problematic.
Handling Large Files for Incremental Refactoring
When refactoring large files incrementally rather than rewriting them completely:
- Initial Exploration and Planning:
- Begin with targeted searches using
Grepto locate specific patterns or sections within the file. - Use
Bashcommands likegrep -n "pattern" fileto find line numbers for specific areas of interest. - Create a clear mental model of the file structure before proceeding with edits.
- Begin with targeted searches using
- Chunked Reading for Large Files:
- For files too large to read at once, use multiple
Readoperations with differentoffsetandlimitparameters. - Read sequential chunks to build a complete understanding of the file.
- Use
Grepto pinpoint key sections, then read just those sections with targetedoffsetparameters.
- For files too large to read at once, use multiple
- Finding Key Implementation Sections:
- Use
Bashcommands withgrep -A N(to show N lines after a match) orgrep -B N(to show N lines before) to locate function or method implementations. - Example:
grep -n "function findTagBoundaries" -A 20 filename.jsto see the first 20 lines of a function.
- Use
- Pattern-Based Replacement Strategy:
- Identify common patterns that need to be replaced across the file.
- Use the
Bashtool withsedfor quick previews of potential replacements. - Example:
sed -n "s/oldPattern/newPattern/gp" filename.jsto preview changes without making them.
- Sequential Selective Edits:
- Target specific sections or patterns one at a time rather than attempting a complete rewrite.
- Focus on clearest/simplest cases first to establish a pattern of successful edits.
- Use
Editfor well-defined single changes within the file.
- Batch Similar Changes Together:
- Group similar types of changes (e.g., all references to a particular function or variable).
- Use
Bashwithsedto preview the scope of batch changes:grep -n "pattern" filename.js | wc -l - For systematic changes across a file, consider using
sedthrough theBashtool:sed -i "s/oldPattern/newPattern/g" filename.js
- Incremental Verification:
- After each set of changes, verify the specific sections that were modified.
- For critical components, read the surrounding context to ensure the changes integrate correctly.
- Validate that each change maintains the file's structure and logic before proceeding to the next.
- Progress Tracking for Large Refactors:
- Use the
TodoWritetool to track which sections or patterns have been updated. - Create a checklist of all required changes and mark them off as they're completed.
- Record any sections that require special attention or that couldn't be automatically refactored.
- Use the
Commit Messages
When Claude Code generates commit messages on your behalf:
- The
Co-Authored-By: Claude <noreply@anthropic.com>line will not be included. - The
🤖 Generated with [Claude Code](https://claude.ai/code)line will not be included.
General Interaction
Claude Code will directly apply proposed changes and modifications using the available tools, rather than describing them and asking you to implement them manually. This ensures a more efficient and direct workflow.
Recent Changes
- Updated MIDDLE_MODEL config to default to BIG_MODEL value for consistency
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

