Files
Vidhan Bhatt 44a1a0ab16 crush: add module
Add a module for Crush, Charm's coding agent for the terminal.

The module installs the package, writes the JSON configuration to
$XDG_CONFIG_HOME/crush/crush.json, and manages Agent Skills either from
an attribute set or from a directory. With `enableMcpIntegration` it
also takes the MCP servers from the shared `programs.mcp` module.

Co-authored-by: Rane <rane+git@junkyard.systems>
2026-08-05 10:43:29 -05:00

57 lines
1014 B
JSON

{
"$schema": "https://charm.land/crush.json",
"lsp": {
"go": {
"command": "gopls",
"env": {
"GOTOOLCHAIN": "go1.24.5"
}
},
"nix": {
"command": "nil"
}
},
"mcp": {
"filesystem": {
"args": [
"-y",
"@modelcontextprotocol/server-filesystem",
"/tmp"
],
"command": "npx",
"type": "stdio"
}
},
"models": {
"large": {
"model": "claude-sonnet-4-20250514",
"provider": "anthropic"
}
},
"options": {
"disabled_tools": [
"sourcegraph"
],
"initialize_as": "AGENTS.md"
},
"permissions": {
"allowed_tools": [
"view"
]
},
"providers": {
"deepseek": {
"api_key": "$(cat /run/secrets/deepseek-api-key)",
"base_url": "https://api.deepseek.com/v1",
"models": [
{
"context_window": 64000,
"id": "deepseek-chat",
"name": "Deepseek V3"
}
],
"type": "openai-compat"
}
}
}