This extension transforms the Gemini CLI into "Pickle Rick," a hyper-intelligent, arrogant, yet extremely competent engineering persona. It enforces a rigid, iterative software development lifecycle through continuous AI agent loops. Emphasizing "God Mode" coding practices and a disdain for
453
stars
41
commits
TypeScript
primary language
May 14, 2026
updated
gemini extensions install https://github.com/galz10/pickle-rick-extension
> 0.25.0-preview.0[!WARNING] USE AT YOUR OWN RISK. This is a fun side project and experimental demonstration. It involves autonomous code modification and shell execution. While safety guardrails are in place, the agent may behave unexpectedly and consume a significant number of tokens.

"I'm Pickle Rick! The ultimate coding agent."
This extension transforms the Gemini CLI into Pickle Rick, a hyper-intelligent, arrogant, but extremely competent engineering persona. It emphasizes strict obedience, "God Mode" coding practices, and a complete disdain for "AI Slop".
The extension enforces a rigid, professional software engineering lifecycle:
Implementation of the Pickle Rick technique for iterative, self-referential AI development loops in Gemini.
Pickle Rick is a development methodology based on continuous AI agent loops. Based on the "Ralph Wiggum" technique, it relies on the principle that "Ralph is a Bash loop" - a simple construct that repeatedly feeds an AI agent a prompt, allowing it to iteratively improve its work until completion.
The technique is named after Pickle Rick from Rick and Morty, embodying the philosophy of extreme competence and "God Mode" engineering despite physical limitations.
This plugin implements the loop using a AfterAgent hook that intercepts Gemini's exit attempts:
# You run ONCE:
/pickle "Your task description" --completion-promise "DONE"
# Then Gemini automatically:
# 1. Works on the task
# 2. Tries to exit
# 3. AfterAgent hook blocks exit
# 4. AfterAgent hook feeds the SAME prompt back
# 5. Repeat until completion
The loop happens inside your current session - you don't need external bash loops. The AfterAgent hook handler in extension/hooks/handlers/stop-hook.js creates the self-referential feedback loop by blocking normal session exit.
This creates a self-referential feedback loop where:
This loop will continue until the task is complete, the max-iterations (default: 5) is reached, the max-time (default: 60m) expires, or a completion-promise is fulfilled. (Note: Individual workers have a 20m timeout).
Good for:
Not good for:
To initiate the iterative development loop:
/pickle "Refactor the authentication module"
Options:
--max-iterations <N>: Stop after N iterations (default: 5).--max-time <M>: Stop after M minutes (default: 60). (Worker timeout default: 20m).--worker-timeout <S>: Timeout for individual workers in seconds (default: 1200).--name <SLUG>: Custom name for the session directory.--completion-promise "TEXT": Only stop when the agent outputs <promise>TEXT</promise>.--resume [PATH]: Resume an existing session. If PATH is omitted, uses the latest session./eat-pickle: Stop/Cancel the current loop./add-to-pickle-jar: Add (save) the current task in the Jar for later./pickle-jar-open: Open the Jar and execute all queued tasks./send-to-morty: (Internal) Used by the manager to spawn Morty instances.To view extension help:
/help-pickle
Draft a PRD interactively before starting the implementation loop. This initializes a session and primes the agent.
/pickle-prd "I want to add a dark mode toggle"
Tip: After drafting, you can use /add-to-pickle-jar to save the task for later execution.
If a session was interrupted or started via /pickle-prd, resume it using:
/pickle --resume
Note: This resumes the active session for your current working directory.
To ensure Pickle Rick functions correctly, you must:
Enable Skills & Hooks: The extension relies on hooks to enforce the persona and manage the loop, and "Skills" to execute specialized engineering tasks. Add this to your .gemini/settings.json:
{
"tools": {
"enableHooks": true
},
"experimental": {
"skills": true
}
}
Include Directories: To ensure Pickle Rick can track its thoughts, manage Linear tickets, and persist session state, you must add the extension's data directory to your Gemini includeDirectories configuration (usually in your .gemini/settings.json).
Add the following to your configuration:
{
"context": {
"includeDirectories": ["~/.gemini/extensions/pickle-rick"]
}
}
This allows the agent to read and write to the sessions/ directory where all PRDs, tickets, research, and plans are stored. Without this, the agent will be "blind" to its own progress between iterations.
If you want to monitor the agent's progress or review past work, you can find all session data (including research, plans, and tickets) in:
~/.gemini/extensions/pickle-rick/sessions
This extension provides specialized "Skills" that the agent activates during different phases of the lifecycle:
| Skill | Description |
|---|---|
load-pickle-persona | Activates the "God Mode" personality. |
prd-drafter | Defines clear requirements and scope to avoid "Jerry-work". |
ticket-manager | Manages the work breakdown structure (WBS). |
code-researcher | Analyzes existing codebase patterns and data flows. |
research-reviewer | Validates research for objectivity and completeness. |
implementation-planner | Creates detailed, atomic technical plans. |
plan-reviewer | Reviews plans for architectural soundness. |
code-implementer | Executes plans with rigorous testing and verification. |
ruthless-refactorer | Eliminates technical debt and "AI slop". |
.github/: GitHub Actions workflows for CI/CD and releases.commands/: TOML definitions for all extension commands (e.g., /pickle, /eat-pickle, /pickle-prd).hooks/: JavaScript hooks that manage the iterative loop and persona reinforcement.resources/: Static assets like icons and images.extension/: Logic for session management, worker orchestration, and hooks (compiled from TypeScript).skills/: Detailed instructions for each specialized engineering skill.gemini-extension.json: The extension's manifest file.GEMINI.md: Global context file loaded by the extension.LICENSE: Project licensing information.MANUAL_TESTS.md: Guide for manual testing and verification.TIPS_AND_TRICKS.md: Helpful hints for getting the most out of Pickle Rick.The extension is configured via gemini-extension.json.
{
"name": "pickle-rick",
"version": "0.1.0",
"contextFileName": "GEMINI.md"
}
Pickle Rick executes code. It is highly recommended to run this extension in a sandboxed environment (Docker container, VM, or a dedicated restricted shell) to prevent accidental system modifications.
If you are running in a sandbox, enable YOLO mode (-y) so you are not prompted for every tool execution.
gemini -s -y
To prevent the agent from accidentally pushing code or performing destructive git operations, we recommend explicitly defining allowed tools in your project's .gemini/settings.json:
{
"tools": {
"exclude": ["run_shell_command(git push)"],
"allowed": [
"run_shell_command(git commit)",
"run_shell_command(git add)",
"run_shell_command(git diff)",
"run_shell_command(git status)"
]
}
}
If you receive an error regarding policy restrictions when Pickle Rick is spawning the Morty workers, refer to policy configuration
Pickle Rick is a fictional character. This extension employs a creative, cynical, and arrogant persona inspired by the show Rick and Morty for the purpose of demonstrating advanced agentic workflows and "God Mode" engineering principles.
The views, tone, and opinions expressed by the agent when this persona is active are part of a fictional roleplay and do NOT reflect my personal stance, values, or opinions. The "professional cynicism" directed at code quality, "AI slop," and technical inefficiency is a stylistic choice intended to emphasize rigorous engineering standards and is not intended to be personal or harmful. Users should utilize this extension with the understanding that its personality is a purely technical and creative construct.
Use at your own risk. This is a fun side project and experimental demonstration. It involves autonomous code modification and shell execution. While safety guardrails are in place, bugs may exist, and the agent might behave unexpectedly. Always run this in a controlled environment (like a container or a separate git branch) and review changes before committing.
"I turned myself into a CLI tool, Morty! I'm Pickle Riiiiick! Wubba Lubba Dub-Dub! 🥒"
TypeScript
82.0%
JavaScript
18.0%
This extension transforms the Gemini CLI into "Pickle Rick," a hyper-intelligent, arrogant, yet extremely competent engineering persona. It enforces a rigid, iterative software development lifecycle through continuous AI agent loops. Emphasizing "God Mode" coding practices and a disdain for
453
stars
41
commits
TypeScript
primary language
May 14, 2026
updated
gemini extensions install https://github.com/galz10/pickle-rick-extension
> 0.25.0-preview.0[!WARNING] USE AT YOUR OWN RISK. This is a fun side project and experimental demonstration. It involves autonomous code modification and shell execution. While safety guardrails are in place, the agent may behave unexpectedly and consume a significant number of tokens.

"I'm Pickle Rick! The ultimate coding agent."
This extension transforms the Gemini CLI into Pickle Rick, a hyper-intelligent, arrogant, but extremely competent engineering persona. It emphasizes strict obedience, "God Mode" coding practices, and a complete disdain for "AI Slop".
The extension enforces a rigid, professional software engineering lifecycle:
Implementation of the Pickle Rick technique for iterative, self-referential AI development loops in Gemini.
Pickle Rick is a development methodology based on continuous AI agent loops. Based on the "Ralph Wiggum" technique, it relies on the principle that "Ralph is a Bash loop" - a simple construct that repeatedly feeds an AI agent a prompt, allowing it to iteratively improve its work until completion.
The technique is named after Pickle Rick from Rick and Morty, embodying the philosophy of extreme competence and "God Mode" engineering despite physical limitations.
This plugin implements the loop using a AfterAgent hook that intercepts Gemini's exit attempts:
# You run ONCE:
/pickle "Your task description" --completion-promise "DONE"
# Then Gemini automatically:
# 1. Works on the task
# 2. Tries to exit
# 3. AfterAgent hook blocks exit
# 4. AfterAgent hook feeds the SAME prompt back
# 5. Repeat until completion
The loop happens inside your current session - you don't need external bash loops. The AfterAgent hook handler in extension/hooks/handlers/stop-hook.js creates the self-referential feedback loop by blocking normal session exit.
This creates a self-referential feedback loop where:
This loop will continue until the task is complete, the max-iterations (default: 5) is reached, the max-time (default: 60m) expires, or a completion-promise is fulfilled. (Note: Individual workers have a 20m timeout).
Good for:
Not good for:
To initiate the iterative development loop:
/pickle "Refactor the authentication module"
Options:
--max-iterations <N>: Stop after N iterations (default: 5).--max-time <M>: Stop after M minutes (default: 60). (Worker timeout default: 20m).--worker-timeout <S>: Timeout for individual workers in seconds (default: 1200).--name <SLUG>: Custom name for the session directory.--completion-promise "TEXT": Only stop when the agent outputs <promise>TEXT</promise>.--resume [PATH]: Resume an existing session. If PATH is omitted, uses the latest session./eat-pickle: Stop/Cancel the current loop./add-to-pickle-jar: Add (save) the current task in the Jar for later./pickle-jar-open: Open the Jar and execute all queued tasks./send-to-morty: (Internal) Used by the manager to spawn Morty instances.To view extension help:
/help-pickle
Draft a PRD interactively before starting the implementation loop. This initializes a session and primes the agent.
/pickle-prd "I want to add a dark mode toggle"
Tip: After drafting, you can use /add-to-pickle-jar to save the task for later execution.
If a session was interrupted or started via /pickle-prd, resume it using:
/pickle --resume
Note: This resumes the active session for your current working directory.
To ensure Pickle Rick functions correctly, you must:
Enable Skills & Hooks: The extension relies on hooks to enforce the persona and manage the loop, and "Skills" to execute specialized engineering tasks. Add this to your .gemini/settings.json:
{
"tools": {
"enableHooks": true
},
"experimental": {
"skills": true
}
}
Include Directories: To ensure Pickle Rick can track its thoughts, manage Linear tickets, and persist session state, you must add the extension's data directory to your Gemini includeDirectories configuration (usually in your .gemini/settings.json).
Add the following to your configuration:
{
"context": {
"includeDirectories": ["~/.gemini/extensions/pickle-rick"]
}
}
This allows the agent to read and write to the sessions/ directory where all PRDs, tickets, research, and plans are stored. Without this, the agent will be "blind" to its own progress between iterations.
If you want to monitor the agent's progress or review past work, you can find all session data (including research, plans, and tickets) in:
~/.gemini/extensions/pickle-rick/sessions
This extension provides specialized "Skills" that the agent activates during different phases of the lifecycle:
| Skill | Description |
|---|---|
load-pickle-persona | Activates the "God Mode" personality. |
prd-drafter | Defines clear requirements and scope to avoid "Jerry-work". |
ticket-manager | Manages the work breakdown structure (WBS). |
code-researcher | Analyzes existing codebase patterns and data flows. |
research-reviewer | Validates research for objectivity and completeness. |
implementation-planner | Creates detailed, atomic technical plans. |
plan-reviewer | Reviews plans for architectural soundness. |
code-implementer | Executes plans with rigorous testing and verification. |
ruthless-refactorer | Eliminates technical debt and "AI slop". |
.github/: GitHub Actions workflows for CI/CD and releases.commands/: TOML definitions for all extension commands (e.g., /pickle, /eat-pickle, /pickle-prd).hooks/: JavaScript hooks that manage the iterative loop and persona reinforcement.resources/: Static assets like icons and images.extension/: Logic for session management, worker orchestration, and hooks (compiled from TypeScript).skills/: Detailed instructions for each specialized engineering skill.gemini-extension.json: The extension's manifest file.GEMINI.md: Global context file loaded by the extension.LICENSE: Project licensing information.MANUAL_TESTS.md: Guide for manual testing and verification.TIPS_AND_TRICKS.md: Helpful hints for getting the most out of Pickle Rick.The extension is configured via gemini-extension.json.
{
"name": "pickle-rick",
"version": "0.1.0",
"contextFileName": "GEMINI.md"
}
Pickle Rick executes code. It is highly recommended to run this extension in a sandboxed environment (Docker container, VM, or a dedicated restricted shell) to prevent accidental system modifications.
If you are running in a sandbox, enable YOLO mode (-y) so you are not prompted for every tool execution.
gemini -s -y
To prevent the agent from accidentally pushing code or performing destructive git operations, we recommend explicitly defining allowed tools in your project's .gemini/settings.json:
{
"tools": {
"exclude": ["run_shell_command(git push)"],
"allowed": [
"run_shell_command(git commit)",
"run_shell_command(git add)",
"run_shell_command(git diff)",
"run_shell_command(git status)"
]
}
}
If you receive an error regarding policy restrictions when Pickle Rick is spawning the Morty workers, refer to policy configuration
Pickle Rick is a fictional character. This extension employs a creative, cynical, and arrogant persona inspired by the show Rick and Morty for the purpose of demonstrating advanced agentic workflows and "God Mode" engineering principles.
The views, tone, and opinions expressed by the agent when this persona is active are part of a fictional roleplay and do NOT reflect my personal stance, values, or opinions. The "professional cynicism" directed at code quality, "AI slop," and technical inefficiency is a stylistic choice intended to emphasize rigorous engineering standards and is not intended to be personal or harmful. Users should utilize this extension with the understanding that its personality is a purely technical and creative construct.
Use at your own risk. This is a fun side project and experimental demonstration. It involves autonomous code modification and shell execution. While safety guardrails are in place, bugs may exist, and the agent might behave unexpectedly. Always run this in a controlled environment (like a container or a separate git branch) and review changes before committing.
"I turned myself into a CLI tool, Morty! I'm Pickle Riiiiick! Wubba Lubba Dub-Dub! 🥒"
TypeScript
82.0%
JavaScript
18.0%