feat(daemon): add Grok Build CLI as a supported runtime#3322
Open
luczvd wants to merge 1 commit into
Open
Conversation
Adds first-class support for the Grok Build CLI (grok agent stdio) to the Multica daemon. Grok speaks the same ACP JSON-RPC protocol as Hermes, Kimi, and Kiro, so the implementation reuses the existing hermesClient transport. Changes: - server/pkg/agent/grok.go: new Grok backend - server/pkg/agent/agent.go: register grokBackend factory + launch header - server/pkg/agent/models.go: model discovery via discoverACPModels - server/internal/daemon/config.go: MULTICA_GROK_PATH probe + defaultAgentCommandNames - server/internal/daemon/execenv/context.go: .grok/skills/ project skills dir - server/internal/daemon/execenv/runtime_config.go: AGENTS.md injection for Grok - server/internal/daemon/local_skills.go: ~/.grok/skills user-level skills root - packages/views/runtimes/components/provider-logo.tsx: Grok logo placeholder - packages/views/onboarding/steps/step-welcome.tsx: Grok provider type Tests: - server/pkg/agent/grok_test.go: tool name normalization - server/pkg/agent/agent_test.go: backend factory coverage - server/pkg/agent/models_test.go: model discovery without binary - server/internal/daemon/daemon_test.go: inline prompt policy - server/internal/daemon/local_skills_test.go: user skills discovery - server/internal/daemon/execenv/execenv_test.go: config injection neutrality - server/internal/daemon/execenv/reply_instructions_test.go: reply instructions
|
@luczvd is attempting to deploy a commit to the IndexLabs Team on Vercel. A member of the Team first needs to authorize it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds first-class support for the Grok Build CLI (
grok agent stdio) to the Multica daemon.Grok speaks the same ACP JSON-RPC protocol as Hermes, Kimi, and Kiro, so the implementation reuses the existing
hermesClienttransport.Backend (server/pkg/agent)
grok agent stdio, drives the ACP lifecycle, and normalizes Grok tool names into snake_case.grokBackendin the factory and adds the launch header.discoverACPModels(same pattern as Kimi/Kiro).Daemon detection (server/internal/daemon)
MULTICA_GROK_PATH/MULTICA_GROK_MODELenv probe +defaultAgentCommandNames..grok/skills/as the project-level skills directory.~/.grok/skillsas the user-level skills root.Frontend
grokto theProviderNametype.Tests
All new code paths are covered by tests that mirror the Kimi/Kiro patterns:
Closes #2895