crush-config
यह क्या करती है
यह स्किल आपको Crush, एक कोडिंग टूल, को उसकी कॉन्फ़िग फ़ाइलों से सेट करने में मदद करती है। इसमें प्रोवाइडर, मॉडल, MCP सर्वर, हुक और अनुमतियाँ आते हैं। यह उन उपयोगकर्ताओं के लिए है जो बदलना चाहते हैं कि Crush कैसे व्यवहार करे।
कब इस्तेमाल करें
- ✓जब आप Crush में प्रोवाइडर या मॉडल सेट करना चाहें।
- ✓जब आप Crush में MCP सर्वर, language servers या स्किल जोड़ना चाहें।
- ✓जब आप कॉन्फ़िग फ़ाइल से Crush की अनुमतियाँ या व्यवहार बदलना चाहें।
Skill का लिंक
https://github.com/charmbracelet/crush/blob/main/internal/skills/builtin/crush-config/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“Crush को मेरे API प्रोवाइडर के साथ सेट कीजिए और एक MCP सर्वर जोड़िए, मेरे प्रोजेक्ट में crushrc फ़ाइल का उपयोग करके।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट crushrc स्क्रिप्ट लिखता है, जो Bash पर आधारित है, या crush.json फ़ाइल। Crush आपके होम फ़ोल्डर और प्रोजेक्ट की कॉन्फ़िग फ़ाइलें मिलाता है। स्क्रिप्ट provider, model और mcp जैसे अंतर्निहित कमांड से सेटिंग बनाती है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Crush Configuration
Crush supports two config formats:
crushrc— a Bash script that builds config by calling Crush builtins. Preferred. Because it is real Bash you get includes, secrets, conditionals, and variables for free.crush.json— static JSON. Fully supported; see Legacy JSON format.
Both are discovered together and deep-merged. Priority (highest to lowest):
.crushrc/crushrc/.crush.json/crush.json(project-local, closer-to-cwd wins; Windows uses.\.crushrc/.\crushrc)$XDG_CONFIG_HOME/crush/crushrcor~/.config/crush/crushrc(%XDG_CONFIG_HOME%\crush\crushrcor%USERPROFILE%\.config\crush\crushrcon Windows)
Data directories (~/.local/share/crush and %LOCALAPPDATA%\crush) contain
machine-owned JSON state only; Crush does not discover or execute a crushrc
from those locations.
If a directory has both crushrc and crush.json, they merge (crushrc wins
on conflicts) and Crush logs a warning.
crushrc at a glance
A crushrc is a plain Bash script executed at load time with the same embedded
shell the bash tool uses. It builds config by calling builtins (provider,
model, mcp, lsp, hook, permissions, option). Statements run top to
bottom; later statements win, and remove/reset operate on anything defined
earlier or pulled in via source.
#!/usr/bin/env bash
# Includes and secrets are just Bash.
source ~/.config/crush/shared.sh
provider add anthropic --api-key "$ANTHROPIC_API_KEY"
model large anthropic/claude-sonnet-4-20250514 --max-tokens 16384
model small anthropic/claude-haiku-4-20250514
option skill-path ./skills
permissions allow view ls grep edit
Values are ordinary Bash — quote and expand normally ("$VAR", $(cmd),
${VAR:?required}). A failing $(command) aborts the load.
CRUSH_VERSION is exported into the script so you can feature-detect the
running Crush (it is the literal devel for local builds):
[[ "$CRUSH_VERSION" != devel ]] && lsp add gopls --command gopls
Commands
All entity commands are verb-first. remove accepts rm as an alias. Booleans
accept true/false/1/0/yes/no, case-insensitive.
providers
provider add <id> [flags] # define/update; repeated calls merge
provider remove <id> # alias: rm — removes the provider and its models
Flags: --name, --type (completions, responses, messages, or a local
type like ollama, lmstudio, llamacpp; legacy values openai, openai-compat,
anthropic are migrated automatically), --api-key, --base-url,
--disable BOOL, --flat-rate BOOL, --discover-models BOOL,
--system-prompt-prefix TEXT, --extra-header KEY VALUE (repeatable),
--extra-body JSON, --provider-options JSON.
provider add deepseek \
--type completions \
--base-url "https://api.deepseek.com/v1" \
--api-key "${DEEPSEEK_API_KEY:?set DEEPSEEK_API_KEY}"
models
model add <provider>/<id> [flags] # register a custom model (provider must exist)
model remove <provider>/<id> # alias: rm
model large [<provider>/<id>] [flags] # set the large slot; no arg prints it
model small [<provider>/<id>] [flags] # set the small slot; no arg prints it
<provider>/<id>is the same formcrush modelsprints. A missing slash is an error.model addrequires the provider to already exist.model addflags:--name,--context-window N,--default-max-tokens N,--thinking always|never|toggleable,--supports-images BOOL,--price-input F,--price-output F,--price-cache-create F,--price-cache-hit F,--reasoning-effort low|medium|high,--max-attachments N.model large/model smallflags:--think,--reasoning-effort,--max-tokens N,--temperature F,--top-p F,--top-k N,--frequency-penalty F,--presence-penalty F,--provider-options JSON.model largewith no argument prints the current selection asprovider/id, usable in$(model large).
large is the primary coding model; small is used for summarization.
mcp
mcp add <name> --type stdio|sse|http [flags] # default type is stdio
mcp remove <name> # alias: rm
Flags: --command CMD, --args ARG (repeatable), --env KEY VALUE
(repeatable), --url URL, --header KEY VALUE (repeatable), --timeout N,
--disabled BOOL, --disabled-tools TOOL (repeatable), `--enabled-t
अक्सर पूछे जाने वाले सवाल
crushrc क्या है?
यह एक Bash स्क्रिप्ट है जो अंतर्निहित कमांड बुलाकर Crush की कॉन्फ़िग बनाती है, और यही पसंदीदा फ़ॉर्मेट है।
क्या मैं अभी भी JSON इस्तेमाल कर सकता हूँ?
हाँ। crush.json पूरी तरह समर्थित है, और दोनों फ़ॉर्मेट एक साथ इस्तेमाल किए जा सकते हैं।
यह कौन सी सेटिंग कवर करती है?
यह प्रोवाइडर, मॉडल, language servers, MCP सर्वर, हुक, स्किल और अनुमतियाँ कवर करती है।
जानकारी
लेखक का मूल विवरण
Use when the user needs help configuring Crush — writing crushrc (the Bash config format) or crush.json, setting up providers, models, LSPs, MCP servers, hooks, skills, permissions, or changing Crush behavior.
repo: charmbracelet/crush
लोकप्रियता
- GitHub स्टार
- 29k
- रैंकिंग में स्थान
- #9765
- लाइसेंस
- —
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
crush-hooks
29kयह आपके एजेंट को Crush के हुक लिखने और उनकी गड़बड़ी ठीक करने में मदद करती है, जो crush.json की सेटिंग से टूल कॉल चलने से पहले उन्हें जांचते, रोकते या बदलते हैं।
jq
29kयह आपके एजेंट को JSON डेटा खंगालने और उसका रूप बदलने में मदद करती है, जैसे API जवाब, कॉन्फ़िग फ़ाइलें या लॉग, अंतर्निहित jq कमांड से।
मिलती-जुलती skills
diffs
394kयह आपके एजेंट को बदलावों का असली diff बनाने देती है, जिसे व्यूअर लिंक या इमेज फ़ाइल के रूप में साझा किया जा सकता है, हाथ से लिखे सारांश के बजाय।
coding-agent
394kयह आपके एजेंट को बड़े कोडिंग काम Codex, Claude Code या OpenCode को बैकग्राउंड वर्कर के रूप में सौंपने, फिर उसकी प्रगति जांचने में मदद करती है।
gh-issues
394kयह आपके एजेंट को GitHub issues खोजने, उनमें से काम करने लायक चुनने, और सुधार के साथ pull requests खोलने में मदद करती है, जिसमें समीक्षा टिप्पणियों का फ़ॉलो-अप भी शामिल है।