Add Quick Fix: a bar chat that hands quick fixes to Claude, Codex or a local model
Each request runs in its own systemd user unit and survives the shell restarting; the chat reopens on a running job or an unseen result. Auto picks the subscription with the most usage left (ai-usagebar). Runs are snapshotted so Undo can restore files and revert commits. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
30e98bac63
commit
3d976b5961
8 files changed
+1693
No files matched your search
@@ -0,0 +1,92 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"id": "mx-quickfix",
|
||||
"name": "Quick Fix",
|
||||
"version": "0.1.0",
|
||||
"author": "mx",
|
||||
"license": "MIT",
|
||||
"description": "A small chat box in the bar that hands quick fixes to Claude Code, Codex or a local model. It works on its own and replies with one line. Needs claude, codex or opencode; ai-usagebar picks the subscription with the most usage left.",
|
||||
"kinds": [
|
||||
"bar-widget",
|
||||
"service"
|
||||
],
|
||||
"entryPoints": {
|
||||
"barWidget": "BarWidget.qml",
|
||||
"service": "Service.qml"
|
||||
},
|
||||
"barWidget": {
|
||||
"displayName": "Quick Fix",
|
||||
"description": "Click to type a quick fix; the agent does it and answers in a line.",
|
||||
"category": "AI",
|
||||
"allowMultiple": false,
|
||||
"defaultSection": "right",
|
||||
"defaults": {
|
||||
"provider": "auto",
|
||||
"claudeModel": "",
|
||||
"gptModel": "",
|
||||
"localUrl": "http://127.0.0.1:11434/v1",
|
||||
"localModel": "",
|
||||
"repositories": "",
|
||||
"allow": "",
|
||||
"applyCommand": ""
|
||||
},
|
||||
"schema": [
|
||||
{
|
||||
"key": "provider",
|
||||
"label": "Default agent",
|
||||
"description": "Auto picks Claude or GPT by the usage left on each (from ai-usagebar), then a local model.",
|
||||
"choices": ["auto", "claude", "gpt", "local"],
|
||||
"defaultValue": "auto"
|
||||
},
|
||||
{
|
||||
"key": "repositories",
|
||||
"type": "string",
|
||||
"label": "Repositories to snapshot",
|
||||
"description": "Comma-separated git folders, e.g. ~/zaneyos, ~/glassMxrph. Each run is snapshotted first so Undo can put files back and revert its commits.",
|
||||
"defaultValue": ""
|
||||
},
|
||||
{
|
||||
"key": "applyCommand",
|
||||
"type": "string",
|
||||
"label": "Apply after Undo",
|
||||
"description": "Shell command run after Undo restores files, e.g. your rebuild command. Blank: nothing.",
|
||||
"defaultValue": ""
|
||||
},
|
||||
{
|
||||
"key": "allow",
|
||||
"type": "string",
|
||||
"label": "Always allowed (Claude)",
|
||||
"description": "Comma-separated Claude Code permission rules the run may use without its safety check, e.g. Bash(zcli rebuild:*), Bash(git push:*).",
|
||||
"defaultValue": ""
|
||||
},
|
||||
{
|
||||
"key": "claudeModel",
|
||||
"type": "string",
|
||||
"label": "Claude model",
|
||||
"description": "Blank: Claude Code's default.",
|
||||
"defaultValue": ""
|
||||
},
|
||||
{
|
||||
"key": "gptModel",
|
||||
"type": "string",
|
||||
"label": "GPT model",
|
||||
"description": "Blank: Codex's default.",
|
||||
"defaultValue": ""
|
||||
},
|
||||
{
|
||||
"key": "localUrl",
|
||||
"type": "string",
|
||||
"label": "Local server",
|
||||
"description": "OpenAI-compatible endpoint (Ollama, llama.cpp, LM Studio), run through OpenCode.",
|
||||
"defaultValue": "http://127.0.0.1:11434/v1"
|
||||
},
|
||||
{
|
||||
"key": "localModel",
|
||||
"type": "string",
|
||||
"label": "Local model",
|
||||
"description": "Blank: the first model the server lists.",
|
||||
"defaultValue": ""
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user