summaryrefslogtreecommitdiff
path: root/internal/cmd/sync.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-03-18 08:50:57 +0200
committerPaul Buetow <paul@buetow.org>2026-03-18 08:50:57 +0200
commitd24a40f2f66999f36ab4d0e26cfe88c38d12e64e (patch)
treec283fab3cca9eeb7b2c8cd56abf502fc9b4215ba /internal/cmd/sync.go
parentc0064e540e07225b5ff3a208b3b1c7dbb3f10841 (diff)
feat(ai): add opencode as default AI tool for releases and showcasesv0.15.6
Replace amp with opencode (local Ollama gpt-oss:120b) as the default AI tool. Opencode is tried first in both release notes generation and showcase summaries, with amp as the first fallback in the chain: opencode → amp → hexai → claude → aichat. Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'internal/cmd/sync.go')
-rw-r--r--internal/cmd/sync.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/cmd/sync.go b/internal/cmd/sync.go
index 5681ccc..75d8c88 100644
--- a/internal/cmd/sync.go
+++ b/internal/cmd/sync.go
@@ -47,8 +47,8 @@ var syncRepoCmd = &cobra.Command{
# Sync without AI-generated release notes
gitsyncer sync repo myproject --no-ai-release-notes
- # Auto-create releases using amp for AI notes
-gitsyncer sync repo myproject --auto-create-releases --ai-tool amp`,
+ # Auto-create releases using opencode for AI notes (default)
+gitsyncer sync repo myproject --auto-create-releases --ai-tool opencode`,
Run: func(cmd *cobra.Command, args []string) {
flags := buildFlags()
flags.SyncRepo = args[0]
@@ -194,7 +194,7 @@ func init() {
syncCmd.PersistentFlags().BoolVar(&noReleases, "no-releases", false, "skip release checking after sync")
syncCmd.PersistentFlags().BoolVar(&autoCreate, "auto-create-releases", false, "automatically create releases without confirmation")
syncCmd.PersistentFlags().BoolVar(&noAIReleaseNotes, "no-ai-release-notes", false, "disable AI-generated release notes (AI notes are enabled by default)")
- syncCmd.PersistentFlags().StringVar(&syncAITool, "ai-tool", "amp", "AI tool to use for release notes when auto-creating (amp, claude, aichat, or hexai; amp is tried first if available)")
+ syncCmd.PersistentFlags().StringVar(&syncAITool, "ai-tool", "opencode", "AI tool to use for release notes when auto-creating (opencode, amp, claude, aichat, or hexai; opencode is tried first if available)")
syncCmd.PersistentFlags().BoolVarP(&syncForce, "force", "f", false, "force sync even if normal sync interval checks would skip a repository")
syncCmd.PersistentFlags().BoolVar(&throttle, "throttle", false, "throttle syncing based on local repo activity")
}