ccgate: Delegate Claude/Codex permission prompts to an LLM (~97% automated for me)
ccgate is an open-source CLI tool created by Takuya Takahashi that automates permission prompts in AI coding tools like Claude Code and Codex CLI by delegating decisions to a separate LLM, typically Claude Haiku. It evaluates each prompt using configurable rules and context such as git state and conversation history, returning allow, deny, or fallthrough outcomes. The tool reduces manual approvals by ~97% in the author's usage, preserving human oversight for ambiguous or high-risk actions.
- ▪ccgate delegates permission prompts from AI coding agents to an LLM to reduce manual user intervention.
- ▪It supports Claude Code and Codex CLI, using a configuration file to define allow/deny rules.
- ▪The LLM decision includes a deny message that agents can act on, improving iterative behavior.
- ▪Ambiguous or high-risk prompts are escalated to the user via the 'fallthrough' option.
- ▪The tool processes around 2,000 prompts per month with ~97% automation rate for the author.
Opening excerpt (first ~120 words) tap to expand
try { if(localStorage) { let currentUser = localStorage.getItem('current_user'); if (currentUser) { currentUser = JSON.parse(currentUser); if (currentUser.id === 3887307) { document.getElementById('article-show-container').classList.add('current-user-is-article-author'); } } } } catch (e) { console.error(e); } Takuya Takahashi Posted on May 1 ccgate: Delegate Claude/Codex permission prompts to an LLM (~97% automated for me) #claudecode #ai #opensource #claude TL;DR ccgate is an OSS CLI that delegates permission prompts in Claude Code and Codex CLI to a separate LLM (Haiku by default). Outcomes are allow / deny / fallthrough. deny returns a reason the agent can act on. Genuinely ambiguous calls bubble back to the user.
…
Excerpt limited to ~120 words for fair-use compliance. The full article is at DEV.to (Top).