Agent stack guide
Best CLI Tools for Gemini CLI
Build a local inspection stack around search and structured data, then add HTTP and GitHub access with explicit scopes.
Gemini CLI command policy preview
Start with one recommended CLI and a read-only policy. Review command prefixes, the target environment, and approval boundaries before saving it.
# Gemini CLI policy for GitHub CLI
# Install as a .toml file under ~/.gemini/policies/ (or an administrator policy directory).
# Generated mode: read-only
# Mode boundary: R0 exact commands may be used; R1, R2, and R3 commands are forbidden.
# Evidence: verified; checked 2026-07-10; tested version: 2.86.0.
# Review generated command prefixes before loading this policy.
[[rule]]
toolName = "run_shell_command"
commandPrefix = "gh pr list --state open --json number,title,reviewDecision,url"
decision = "ask_user"
priority = 200
[[rule]]
toolName = "run_shell_command"
commandPrefix = "gh pr merge"
decision = "deny"
priority = 300
[[rule]]
toolName = "run_shell_command"
commandPrefix = "gh repo delete"
decision = "deny"
priority = 300
Evidence boundary
Compatibility is not a test result: current data does not attribute independent CLI execution to a particular agent.
Treat generated content as a reviewable starting point. Remote writes, deletion, production actions, and any confirmation-marked command must still stop for explicit approval.
Outcome, inputs, and outputs
Define the result and evidence before the agent selects a command.
Best CLI Tools for Gemini CLI: safe workflow
Run each step inside its stated boundary and verify the output before continuing.
Approval points and rollback
Pause at the listed decision points and keep recovery instructions beside the action.
CLI, MCP, or API?
Choose the interface by execution location, identity, output contract, and permission boundary.
Recommended approach
Keep the base local and add one narrow remote interface per task.
Official evidence and references
Use these primary or upstream sources to verify current command behavior before acting.