feat(ai): Add opencode integration and reorganize AI tools

This commit is contained in:
User
2026-07-11 19:01:59 +08:00
parent 03fa5bbfd4
commit c2af33247a
6 changed files with 84 additions and 12 deletions

View File

@@ -272,6 +272,12 @@ argument)."
(let ((current-prefix-arg '-))
(call-interactively 'gptel-agent)))
(defun my-opencode ()
"Run `opencode' in project root."
(interactive)
(let ((default-directory (project-root (project-current t))))
(opencode)))
(defun my-consult-ripgrep-project ()
"Run `consult-ripgrep' in current project's root."
(interactive)