1Password에 저장한 비밀번호와 API 키를 명령과 설정 템플릿에 사용합니다. CLI 설치와 인증부터 비밀 값 조회 및 환경 변수 전달까지 안내합니다.
- 1Password CLI 설치와 설정
- 저장된 API 키로 명령 실행
- 설정 템플릿에 비밀 값 삽입
기능 개발, 코드 정리, PR 리뷰를 Grok Build CLI에 맡깁니다. 단일 실행과 대화형 세션을 선택하고 긴 작업을 모니터링하거나 이전 작업을 재개합니다.
Delegate coding to xAI Grok Build CLI (features, PRs).
기능 개발, 버그 수정, 코드 정리, PR 리뷰를 Grok Build CLI에 맡깁니다. Hermes 터미널에서 grok을 실행하며 단일 요청에는 비대화형 -p를, 여러 차례 주고받는 작업에는 대화형 세션을 사용합니다. JSON 결과 받기, 긴 작업 모니터링, 이전 세션 재개도 지원합니다.
구현이나 리뷰를 Grok에 맡기려는 개발자에게 유용합니다. 기존 CLAUDE.md나 AGENTS.md를 활용할 수 있으며, Git 작업 디렉터리를 나눠 여러 문제를 수정하는 절차도 제공합니다. Git 저장소 밖에서 임시 작업을 처리할 때도 사용합니다.
Grok Build CLI 설치와 인증이 필요하며 Hermes 인증과는 별개입니다. grok login에는 SuperGrok 또는 X Premium+ 구독이 필요하고, 대안으로 사용량에 따라 과금되는 XAI_API_KEY를 사용할 수 있습니다. 대화형 세션 모니터링에는 tmux를 사용합니다. --always-approve는 도구 실행을 자동 승인하므로 작업 목적에 맞게 설정합니다.
이 소개문은 공개된 SKILL.md를 바탕으로 AI(OpenAI Codex)가 작성했습니다. 정확한 사양은 아래 원문을 확인하세요.
AI가 SKILL.md의 내용만을 근거로 4가지 관점에서 판정했습니다. 스타 수나 인기도는 판정에 넣지 않았습니다.
총점은 각 항목을 A=25점, B=15점, C=5점으로 더한 값입니다. 2026년 10월 19일 기준으로 AI(OpenAI Codex)가 판정했습니다. 참고용이므로 설치 전에 원문도 확인해 주세요.
설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.
Delegate coding tasks to Grok Build (xAI's
autonomous coding agent CLI, the grok command) via the Hermes terminal. Grok
can read files, write code, run shell commands, spawn subagents, and manage git
workflows. It runs three ways: an interactive TUI, headless (-p), and as
an ACP agent over JSON-RPC.
This is the third sibling to codex and claude-code. The orchestration
pattern is nearly identical — prefer headless -p for one-shots, use a PTY
for interactive sessions.
npm install -g @xai-official/grok
curl -fsSL https://x.ai/cli/install.sh | bash also
works, but the x.ai host is Cloudflare-walled in some environments. The
npm path avoids that dependency entirely.grok login once → opens a browser for OAuth → token cached in
~/.grok/auth.json. This uses your SuperGrok or X Premium+ subscription
(no per-token API billing).~/.grok/auth.json, or run a cheap
headless smoke test: grok --no-auto-update -p "Say ok."/logout signs out and /login (or relaunching) signs back in.CLAUDE.md, .claude/ (skills, agents, MCPs, hooks, rules), and the
AGENTS.md family. Existing project context just works.API-key fallback (not the default for this user): Grok also supports setting the
XAI_API_KEYenvironment variable for pay-as-you-go billing viaapi.x.ai. Only use this ifgrok login/ SuperGrok auth is unavailable. The subscription path (grok login) is the intended setup here.
-p) — Non-Interactive (PREFERRED)Runs a one-shot task, prints the result, and exits. No PTY, no interactive
dialogs to navigate. This is the cleanest integration path — the analog of
claude -p and codex exec.
terminal(command="grok --no-auto-update -p 'Add a dark mode toggle to settings'", workdir="/path/to/project", timeout=180)
Always pass --no-auto-update in automation to skip background update checks.
When to use headless:
--output-format jsonThe TUI is a fullscreen, mouse-interactive app. Drive it with pty=true. For
robust monitoring/input use tmux (same pattern as the claude-code skill).
# Launch in a tmux session for capture-pane monitoring
terminal(command="tmux new-session -d -s grok-work -x 140 -y 40")
terminal(command="tmux send-keys -t grok-work 'cd /path/to/project && grok' Enter")
# Wait for startup, then send a task
terminal(command="sleep 5 && tmux send-keys -t grok-work 'Refactor the auth module to use JWT' Enter")
# Monitor progress
terminal(command="sleep 15 && tmux capture-pane -t grok-work -p -S -50")
# Exit when done
terminal(command="tmux send-keys -t grok-work '/quit' Enter && sleep 1 && tmux kill-session -t grok-work")
Tip for headless-but-inline output: if you want TUI-style output without the
fullscreen alt-screen takeover (e.g. for cleaner logs), add --no-alt-screen.
For pure automation, headless -p is still cleaner than the TUI.
| Flag | Effect |
|---|---|
-p, --single <PROMPT> | Send one prompt, run headless, exit |
-m, --model <MODEL> | Choose a model |
-s, --session-id <UUID> | Assign a NEW valid UUID to a fresh conversation (must not already exist). Does not resume — use --resume/--continue for that. Only valid with --resume/--continue when paired with --fork-session |
-r, --resume [<UUID>] | Resume an existing session by its UUID (or the most recent if omitted) |
-c, --continue | Continue the most recent session in the current directory |
--fork-session | When resuming, create a new session ID instead of reusing the original |
--max-turns <N> | Cap the maximum number of agent turns |
--cwd <PATH> | Set the working directory |
--output-format <FMT> | plain (default), json, or streaming-json |
--always-approve | Auto-approve all tool executions (the --full-auto / --yolo equivalent) |
--no-alt-screen | Run inline, no fullscreen TUI takeover |
--no-auto-update | Skip background update checks (use in all automation; hidden from --help but still works) |
plain — human-readable text (default)json — one JSON object at the end of the run (parse the result cleanly)streaming-json — newline-delimited JSON events as they arrive# Structured result for parsing
terminal(command="grok --no-auto-update -p 'List all TODO comments in src/' --output-format json", workdir="/project", timeout=120)
# Auto-approve for autonomous building
terminal(command="grok --no-auto-update --always-approve -p 'Refactor the database layer and run the tests'", workdir="/project", timeout=300)
# Start headless in background
terminal(command="grok --no-auto-update --always-approve -p 'Refactor the auth module'", workdir="/project", background=true, notify_on_complete=true)
# Returns session_id
# Monitor
process(action="poll", session_id="<id>")
process(action="log", session_id="<id>")
# Kill if needed
process(action="kill", session_id="<id>")
For an interactive (TUI) background session, use pty=true + tmux and monitor
with tmux capture-pane, exactly like the claude-code / codex skills.
Sessions are keyed by UUID, not by name. --session-id assigns a new UUID
to a fresh run (it does not resume); --resume takes an existing session's
UUID (or omit the value to resume the most recent).
# Start a session with a self-assigned UUID (must be a valid, unused UUID)
SID=$(uuidgen)
terminal(command="grok --no-auto-update -s $SID -p 'Start refactoring the database layer' --always-approve", workdir="/project", timeout=240)
# Resume that exact session later by its UUID
terminal(command="grok --no-auto-update -r $SID -p 'Now add connection pooling' --always-approve", workdir="/project", timeout=180)
# Or just continue the most recent session in this directory (no UUID needed)
terminal(command="grok --no-auto-update -c -p 'What did you change last time?'", workdir="/project", timeout=60)
To have Grok review local artifacts and return a clean markdown note (for Obsidian or a repo) without mutating anything:
read_file,
write_file). Snapshot only the relevant context into a temp file rather
than dumping raw paths.--always-approve so it cannot auto-write, and
demand markdown only, no preamble.write_file().grok --no-auto-update -p "Read ~/.hermes/cache/scratch/current.md and ~/.hermes/cache/scratch/inventory.md. Produce markdown only, no preamble. Output a clean note titled 'Cleanup Review'." --output-format plain
Pitfall (same as Claude Code): for document rewrites, a loose "rewrite this"
prompt may return a change summary instead of the full file. Instead: pipe the
file in, and demand Return ONLY the full revised markdown document. No intro, no explanation, no code fences. Start immediately with '# Title'. Verify the
first lines with read_file() before overwriting the destination.
terminal(command="cd /path/to/repo && git diff main...feature-branch | grok --no-auto-update -p 'Review this diff for bugs, security issues, and style problems. Be thorough.'", timeout=120)
terminal(command="REVIEW=$(mktemp -d) && git clone https://github.com/user/repo.git $REVIEW && cd $REVIEW && gh pr checkout 42 && grok --no-auto-update -p 'Review the changes vs origin/main. Check bugs, security, race conditions, missing tests.'", pty=true, timeout=300)
terminal(command="gh pr comment 42 --body '<review text>'", workdir="/path/to/repo")
# Create worktrees
terminal(command="git worktree add -b fix/issue-78 ~/.hermes/cache/scratch/issue-78 main", workdir="~/project")
terminal(command="git worktree add -b fix/issue-99 ~/.hermes/cache/scratch/issue-99 main", workdir="~/project")
# Launch Grok headless in each (background)
terminal(command="grok --no-auto-update --always-approve -p 'Fix issue #78: <description>. Commit when done.'", workdir="~/.hermes/cache/scratch/issue-78", background=true, notify_on_complete=true)
terminal(command="grok --no-auto-update --always-approve -p 'Fix issue #99: <description>. Commit when done.'", workdir="~/.hermes/cache/scratch/issue-99", background=true, notify_on_complete=true)
# Monitor
process(action="list")
# After completion: push and open PRs
terminal(command="cd ~/.hermes/cache/scratch/issue-78 && git push -u origin fix/issue-78")
terminal(command="gh pr create --repo user/repo --head fix/issue-78 --title 'fix: ...' --body '...'")
# Cleanup
terminal(command="git worktree remove ~/.hermes/cache/scratch/issue-78", workdir="~/project")
| Command | Purpose |
|---|---|
grok | Start the interactive TUI |
grok -p "query" | Headless one-shot |
grok login / grok logout | Sign in / out (SuperGrok / X Premium+ OAuth) |
grok inspect | Show what Grok discovered in cwd: config sources, instructions, skills, plugins, hooks, MCP servers |
grok agent stdio | Run as an ACP agent over JSON-RPC (for IDE/tool integration) |
grok update | Update the CLI (needs the x.ai host; skip in automation) |
TUI slash commands (interactive only): /model <name>, /always-approve,
/plan, /context, /compact, /resume, /sessions, /fork, /usage,
/quit. Shift+Tab cycles session modes (including Plan mode, which blocks
write tools except the session plan file).
~/.grok/config.toml)[cli]
auto_update = false # skip background update checks persistently
[ui]
permission_mode = "ask" # or "always-approve" to skip tool prompts by default
[models]
default = "grok-build-0.1"
Put global preferences in ~/.grok/config.toml (not project-scoped
.grok/config.toml). permission_mode supersedes the legacy approval_mode /
yolo = true keys.
grok login requires a SuperGrok or X
Premium+ subscription. If login fails or there's no ~/.grok/auth.json,
confirm the subscription is active before falling back to XAI_API_KEY.grok CLI's auth. Hermes'
x_search runs on its own xAI OAuth; the standalone grok CLI has a
separate token in ~/.grok/auth.json. A working x_search does NOT mean
grok is logged in.--no-auto-update in automation — otherwise Grok phones home
for update checks (and x.ai/storage.googleapis.com may be unreachable).npm install -g @xai-official/grok avoids the Cloudflare-walled x.ai host.--always-approve is the autonomous-build switch. Without it, headless
runs may stall waiting on tool-approval prompts. Omit it deliberately for
read-only review/audit work so Grok can't mutate files.-p skips TUI dialogs; the TUI needs pty=true (+ tmux for
monitoring), just like Claude Code.--no-alt-screen if you run the TUI inline and the fullscreen
alt-screen takeover garbles captured output.mktemp -d && git init for scratch commit tasks.tmux kill-session -t <name> when done.-p for single tasks — cleanest integration, structured
output via --output-format json.workdir (or --cwd) so Grok targets the right project.--no-auto-update in every automated invocation.--always-approve only when Grok should write autonomously; omit it
for read-only reviews and audits.background=true, notify_on_complete=true and
monitor via the process tool.tmux capture-pane -t <session> -p -S -50.~/.grok/auth.json or run a
cheap grok -p "Say ok." smoke test; don't assume Hermes' xAI auth carries
over.아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.
로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.
아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.
1Password에 저장한 비밀번호와 API 키를 명령과 설정 템플릿에 사용합니다. CLI 설치와 인증부터 비밀 값 조회 및 환경 변수 전달까지 안내합니다.
손익계산서·재무상태표·현금흐름표를 수식으로 연결한 Excel 모델을 만듭니다. 실적과 예측 가정을 입력하고 시나리오를 비교하며 세 재무제표의 일관성을 단계별로 확인합니다.
기존 PyTorch 학습 코드를 적은 수정으로 여러 GPU나 컴퓨터에 맞게 구성합니다. 혼합 정밀도, 메모리 절약 설정과 학습 실행 방법을 안내합니다.
Hermes에서 Actual Computer로 자신의 기기에 AI 모델을 실행하도록 연결을 설정합니다. 중계 서비스와 로컬 연결, 모델 선택, 응답 확인 및 오류 점검을 다룹니다.
기술에 익숙하지 않고 쉽게 불만을 느끼는 사용자로 앱을 시험합니다. 혼란스러운 조작과 이탈 원인을 찾고, 개선 과제와 개인적 불만을 나눠 수정안을 정리합니다.
두 에이전트가 각각 수정한 브랜치의 Git 충돌을 양쪽 변경 내용과 의도에 따라 중립적으로 해결합니다. 충돌별 판단 이유를 기록하고 빌드나 테스트로 통합 결과를 확인합니다.