gemini-delegate
Skill2 starsChanged 7 months agoApache-2.0View on GitHub
Use when [large codebase >200 lines], [web search current info], [adversarial review/critique].
1 other project uses a version of this.
Adopted by
Most recently taken up by
- AnastasiyaW/codex-claude-code-configtheir own version, first seen Apr 23, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- AnastasiyaW/codex-claude-code-config★ 153same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 0 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 14
Safe I/O: Use --prompt-stdin to prevent deadlocks.
- Very specific: line 15
Persistence: Use --output-file AUTO for unique result files.
- Very specific: line 22
Fallback: If bridge fails (timeout/crash), use built-in WebSearch.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Gemini Delegate (ACP)
Delegate tasks to Gemini via ACP bridge. Verification MANDATORY.
Bridge Mandates
- MANDATORY:
scripts/gemini_bridge.pyonly. NEVER callgeminidirectly. - Safe I/O: Use
--prompt-stdinto prevent deadlocks. - Persistence: Use
--output-file AUTOfor unique result files. - Sessions: Capture/reuse
SESSION_IDfrom JSON for follow-ups. - Timeout: Total 600s (10m). First chunk 300s.
Grounding & Web Search
- Prefix: Queries MUST start with
WebSearch:(e.g.,WebSearch: API news 2026). - Grounding: Prefix forces web grounding. No prefix = fabrication risk.
- Fallback: If bridge fails (timeout/crash), use built-in
WebSearch. Report in one line.
Routing & Tasking
| Task | Model | Template |
| Review (<200 lines) | gemini-3-flash-preview | Focused review |
| Bug/Arch (>3 files) | gemini-3.1-pro-preview | Tool-assisted |
| Search/Info | gemini-3-flash-preview | Web search |
| Adversarial/Plan | gemini-3.1-pro-preview | Critique |
CLI Flags
| Flag | Description | Default | |||
--prompt | Prompt text | ||||
--prompt-file | Read prompt from file | ||||
--prompt-stdin | Read from stdin (MANDATORY for automation) | ||||
--session-id | Resume specific session | ||||
--new-session | Force fresh session | ||||
--sessions-dir | Override session storage dir | ||||
--cd | Workspace root directory | . | |||
--timeout | Total max wall-clock seconds | 600 | |||
--idle-timeout | Max seconds between chunks | 120 | |||
--first-chunk-timeout | Max seconds for first chunk | 300 | |||
--verbose | Print heartbeat markers to stderr | ||||
--output-file | Write JSON to file (AUTO for unique temp) | ||||
--approve-edits | Allow file writes within --cd scope | ||||
--cache | Content-addressed git-based caching | off | |||
--cache-ttl | Cache TTL in seconds (1-2592000) | 86400 | |||
--clear-cache | Clear result cache and exit | ||||
--parallel-models | Comma-separated models for parallel runs | ||||
--log-feedback | Append feedback entry `VERDICT | TASK | TOKENS | NOTE` | |
--model | Gemini model to use |
Output Schema
{
"success": true,
"SESSION_ID": "...",
"agent_messages": "...",
"read_file_count": N,
"fallback_occurred": boolean,
"requested_model": "...",
"actual_model_selection": "specified"|"automatic",
"tool_calls": [...],
"token_estimate": { "estimated_cost_usd": 0.00 }
}STOP & VERIFY (Red Flags)
Violating the letter of these rules violates the spirit. STOP if:
read_file_countis 0 for code analysis (Gemini is guessing).- Response contains functions not present in source files.
- Web search response lacks specific source URLs.
- Requested Pro failed (
fallback_occurred: true). Alert user immediately. - Calling
geminidirectly. Revert and use bridge. - Omitted
WebSearch:prefix. Re-run with prefix.
Rationalization Table
| Excuse | Reality |
| "I know this code already." | Code changes. RE-VERIFY key logic via read_file. |
| "File names explain it." | Guessing = fabrication. READ content. |
| "I'll skip WebSearch: prefix." | Internal 2026 knowledge is fabrication. GROUND every claim. |
| "Pro failed, Flash is fine." | pro-preview is the tier for logic. Fallback must be reported. |
Permissions & Logs
- Write:
--approve-editsrequired for file writes. - Feedback: Log outcome via
--log-feedbackafter every task. - Escalation: Rejection rate >50% -> escalate model tier.
References
assets/prompt-template.md: Task templates.assets/reference.md: Logs, parallel runs, capsules.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

