Skip to content

Commit a6da764

Browse files
committed
chore(opencode): re-enable config schema and simplify done command
Re-enable the $schema reference in opencode.jsonc now that it is valid for v2 (anomalyco/opencode#43748), and combine git status and git diff into a single command in the done command to reduce tool calls.
1 parent c0c42f7 commit a6da764

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎opencode/.config/opencode/commands/done.md‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
---
2-
description: Commit and push
2+
description: Check diffs, stage, commit and push
33
---
44

5-
# Commit and push
5+
# Check diffs, stage, commit and push
6+
7+
!`git status && git diff`
68

79
If there are no changes, stop and say the working tree is clean. Otherwise do
810
the following:

‎opencode/.config/opencode/opencode.jsonc‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
{
2-
// Disabled schema as it is not valid for v2
3-
// https://github.com/anomalyco/opencode/issues/43748
4-
// "$schema": "https://opencode.ai/config.json",
2+
"$schema": "https://opencode.ai/config.json",
53
"model": "zcat-llm/qwen3.8-27b-gsq-rco",
64
"websearch": false,
75
"permissions": [

0 commit comments

Comments
 (0)