Skip to content

feat(agent): add Grok Build support - #135

Merged
geekgonecrazy merged 4 commits into
devfrom
feat/grok-agent-support
Jul 28, 2026
Merged

geekgonecrazy merged 4 commits into
devfrom
feat/grok-agent-support

Conversation

@geekgonecrazy

Copy link
Copy Markdown
Contributor

Summary

  • Add GrokHook adapter for Grok Build lifecycle events (SessionStart, UserPromptSubmit, PreToolUse, PostToolUse, Stop, SessionEnd) with camelCase JSON parsing and repo-root hints from workspaceRoot/cwd
  • Introduce AIVendor::XAI and wire vendor/author/display maps so Grok-authored changes classify and pretty-print correctly
  • Register grok in AgentRegistry and integrations/registry.toml for atomic agent enable --agent grok (package: atomic-grok, requires CLI >= 0.12.0)

Test plan

  • cargo test -p atomic-agent --lib hooks::grok (14 tests)
  • cargo test -p atomic-core change::provenance::tests
  • cargo test -p atomic-agent --lib record::tests::test_vendor_from_agent_name_grok
  • cargo build -p atomic-cli
  • Manual: atomic agent enable --agent grok --from ~/code/work/atomic-grok installs hooks/skills/rules; disable removes them
  • After atomic-grok is published public on storage: install_integration harness for grok

Teach Atomic to parse Grok Build lifecycle hooks (camelCase payloads,
all six events) and classify provenance under AIVendor::XAI. Register
the adapter and integrations registry entry for atomic-grok packages.
The package is published on Atomic storage under view main; release
view tip updates are incomplete for this project. enable clones main.
Fix formatting so the Format CI job passes.
Grok's UserPromptSubmit delivers the human message wrapped in
<user_query> tags. That raw string was recorded as the change message,
so atomic log showed the harness markup. Extract the inner text in the
adapter so provenance and log messages carry the real user intent.
@geekgonecrazy

Copy link
Copy Markdown
Contributor Author

Docs PR for Grok Build in the agent install matrix / command ref: atomicdotdev/atomic-docs#9

@geekgonecrazy

Copy link
Copy Markdown
Contributor Author

Also linked: harness PR atomicdotdev/atomic-agents#6 ↔ docs atomicdotdev/atomic-docs#9

@geekgonecrazy
geekgonecrazy merged commit 2c87fff into dev Jul 28, 2026
8 checks passed
@geekgonecrazy
geekgonecrazy deleted the feat/grok-agent-support branch July 28, 2026 21:45
geekgonecrazy added a commit to atomicdotdev/atomic-docs that referenced this pull request Jul 28, 2026
Document atomic-grok in the install matrix, per-agent notes, overview,
workflows, and agent command reference. Ships with Atomic 0.12.0 and
atomicdotdev/atomic#135.
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.

2 participants