You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add a CLI interface for Grok AI code backend
* Fix: Add missing declare-function for claude-code--do-send-command
Add missing function declarations to suppress byte-compiler warnings
for claude-code--do-send-command which is called in all three CLI files.
---------
Co-authored-by: Richard Thomra <richard.thomra@integrio.se>
- I switch across different CLI based AI tool in emacs: Claude Code / Gemini CLI / Aider / OpenAI Codex. If you also use different AI tools inside emacs, but want to keep same user interface and experience, this package is for you.
15
16
@@ -74,6 +75,14 @@ An Emacs interface for AI-assisted software development. *The purpose is to prov
Install [[https://github.com/xai-org/grok-cli][grok-cli]] and ensure the `grok` executable is on your PATH.
82
+
Customize `grok-cli-program` or `grok-cli-program-switches` if you want to
83
+
point at a different binary or pass additional flags (for example,
84
+
selecting a profile). After that, select the backend through
85
+
`ai-code-select-backend` or bind a helper in your config.
77
86
78
87
You can add other backends by customizing the `ai-code-backends` variable.
79
88
@@ -93,9 +102,9 @@ An Emacs interface for AI-assisted software development. *The purpose is to prov
93
102
- *Implementing a TODO*: Write a comment in your code, like `;; TODO: Implement caching for this function`. Place your cursor on that line and press `C-c a`, then `i` (`ai-code-implement-todo`). The AI will generate the implementation based on the comment.
94
103
- *Asking a Question*: Place your cursor within a function, press `C-c a`, then `q` (`ai-code-ask-question`), type your question, and press Enter. The question, along with context, will be sent to the AI.
95
104
- *Refactoring a Function*: With the cursor in a function, press `C-c a`, then `r` (`ai-code-refactor-book-method`). Select a refactoring technique from the list, provide any required input (e.g., a new method name), and the prompt will be generated.
96
-
- *Reviewing a Pull Request*: Press `C-c a`, then `v` (`ai-code-pull-or-review-diff-file`). Choose to generate a diff between two branches. The diff will be created in a new buffer, and you'll be prompted to start a review.
105
+
- *Reviewing a Pull Request*: Press `C-c a`, then `v` (`ai-code-pull-or-review-diff-file`). Choose to generate a diff between two branches. The diff will be created in a new buffer, and you'll be prompted to start a review.
97
106
98
-
** Add a new AI coding CLI backend
107
+
** Add a new AI coding CLI backend
99
108
100
109
- [[https://github.com/tninja/ai-code-interface.el/pull/2][This PR]] add the github-copilot-cli (require claude-code.el). It can be an example to add basic support for other AI coding CLI.
101
110
@@ -111,7 +120,7 @@ An Emacs interface for AI-assisted software development. *The purpose is to prov
0 commit comments