Jules GitPatch Local CLI
SkillDev toolsLets your agent download a code patch from a Jules session and apply it to a local git repository.
Available today. Use it from your connected AI after setup.
No other account needed.
Add ahel to your AI once: Claude, ChatGPT, Cursor, Claude Code or Codex. Then ask it to use this.
Then ask your AI: use the Jules GitPatch Local CLI skill
About this skill
A CLI tool to securely download and apply a git patch from a Jules session.
What this skill tells your AI
The instructions your AI receives, as published by google-labs-code/jules-sdk in packages/core/examples/gitpatch-local/SKILL.md and read by ahel’s review.
This CLI is frequently invoked by AI/LLM agents. It is designed with safety rails, strict validation, and structured output to prevent errors caused by hallucinated parameters.
Always assume your inputs can be adversarial or malformed.
Agent Usage Guidelines
-
Introspection First: If you are unsure about the input or output schemas for this CLI, execute it with the
--describeflag to dump the JSON schema.bun run index.ts "" --describe -
Dry Run Safety Rails: This tool performs mutating operations on the local file system and git repository (
git checkout,git apply,git commit). When instructed to "test" or "verify" changes, always append the--dry-runflag to ensure the changes are safely fetched and simulated without modifying the host.bun run index.ts <session-id> --dry-run -
Structured Outputs: By default, this CLI prints human-friendly logs. As an agent, you must ALWAYS use the
--jsonflag when invoking the command to receive a deterministic, machine-readableResultobject.bun run index.ts <session-id> --json -
Input Hardening:
- The
<session-id>parameter must not contain query parameters (?) or hash fragments (#). - The
--branchparameter must not contain directory traversal characters (..) or control characters.
- The
Result Schema
The --json output will always follow the ApplyPatchResult discriminated union pattern:
{
success: true,
data: { branchName: string, commitMessage?: string }
}
or
{
success: false,
error: { code: string, message: string, recoverable: boolean }
}
Signals
- GitHub stars
- 134
- Forks
- 32
- Last commit
- Jul 2026
ahel review
K6low
bundled executables the agent is told to run
Automated review, not a security audit. Ruleset v1+k2.
Advanced
- Catalog kind
- skill
- Key
jules-gitpatch-local- Source
- github.com/google-labs-code/jules-sdk