Skip to content

feat(grok): drive Grok over ACP with plan mode off - #36

Closed
pathscale wants to merge 2 commits into
masterfrom
feat/grok-acp-no-plan-and-usage
Closed

pathscale wants to merge 2 commits into
masterfrom
feat/grok-acp-no-plan-and-usage

Conversation

@pathscale

Copy link
Copy Markdown
Owner

What

Grok over the ACP transport, with two fixes the transport forces.

--no-plan. ACP has no TUI, so enter_plan_mode / exit_plan_mode never get an answer. The turn hangs until the host's liveness ping aborts it (session 01a09bd5). With the flag the model writes plans as ordinary assistant text.

RateLimit::used_percent. Grok reports weekly window fill through x.ai/session/usage. Claude's in-run rate-limit object has no equivalent, so the field is Option<f64>, defaulted to None everywhere else and skipped when serializing. No other provider changes shape.

Why it matters here

AgencyZero needs both to drive Grok as a project agent. That work is in pathscale/agencyzero and depends on this.

Testing

cargo test --lib: 228 passed, 0 failed.

The live suite probes installed CLIs. Three tests fail on this machine and all three are environmental, not code:

  • installed_agents_match_the_versions_the_flags_were_verified_against and the_codex_catalogue_still_matches_what_codex_reports fail on master too (Codex drifted from the pinned catalogue).
  • installed_agents_report_their_login_state passes when run alone (grok: logged in as grok.com, default grok-4.6); it only fails under parallel execution against real CLIs.

meh added 2 commits September 13, 2026 20:57
Fourth agent, ACP JSON-RPC, no new crates. Steer is _x.ai/interject.
Interrupt is session/cancel. Auto is native permission-mode auto.
/compact maps; /clear is refused.
The ACP transport has no TUI, so `enter_plan_mode` and `exit_plan_mode`
hang until the host's liveness ping aborts the turn (session 01a09bd5).
Pass `--no-plan` so the model writes plans as ordinary assistant text.

Also carries `used_percent` on `RateLimit`: Grok reports weekly window
fill through `x.ai/session/usage`, which Claude's in-run rate limit
object does not have. Defaulted to None everywhere else, so no provider
changes shape.
@pathscale

Copy link
Copy Markdown
Owner Author

Consolidated into #35, which is the same Grok feature branch. Cherry-picked feat(grok): drive Grok over ACP with plan mode off onto feat/grok-headless and added release: 0.4.21, so one repo has one PR.

@pathscale pathscale closed this Sep 14, 2026
@pathscale
pathscale deleted the feat/grok-acp-no-plan-and-usage branch September 14, 2026 19:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant