permissions-debug
What it does
It explains how to check Kode's approved tools and command limits, then makes the smallest permission change needed. It is for Kode users whose tools are blocked unexpectedly.
When to use it
- āWhen Kode blocks a tool that you expected to work.
- āWhen Kode keeps asking for the same permission again and again.
- āWhen a helper agent behaves differently from the main Kode agent.
Skill link
https://github.com/shareAI-lab/Kode-CLI/blob/main/packages/builtin-skills/skills/permissions-debug/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentās skills folder.
Example of what to ask your AI
āKode keeps blocking my file search tool even though I approved it. Why, and how do I fix it?ā
5 new skills a week. 1 minute to read.
How it works
The agent checks the exact blocked action, lists the approved tools, and looks for command limits. It makes the smallest reversible change and then repeats the action to test it.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Permissions Debug (Kode-first, fail-closed)
Non-negotiables
- Do not auto-escalate permissions. If an action would normally require user approval, keep it interactive and explain why.
- Prefer minimal, reversible permission changes and verify immediately.
- In
dontAskcontexts, treat āwould promptā as deny (fail-closed). Do not try to bypass.
Fast triage (what to check first)
Confirm what is blocked
- Look for the exact tool name and the rejection message.
- If the failure is from a subagent, confirm whether the parent context was more restricted.
Inspect approved tools / project allowlist
- Use
SlashCommandto run/approved-tools listand confirm whether the tool (or its rule category) is present. - If the list is unexpectedly long or contains stale entries, remove only the minimum needed with
/approved-tools remove <tool>.
- Use
Check per-command constraints
- Some flows apply
commandAllowedToolsconstraints (slash command / skill execution contexts). Confirm the commandāsallowed-toolsfrontmatter and whether it should be restrictive.
- Some flows apply
Verification loop (keep it tight)
- Re-run the exact action that was blocked and confirm:
- whether the prompt appears (interactive modes), or
- whether the tool is allowed/denied deterministically (headless /
dontAsk).
Forensics (when āit should have workedā)
- Inspect the latest session artifacts under
~/.kode/(messages + errors) to confirm what tool call was attempted and why it was denied. - If a background shell was involved, cross-check task output files in
~/.kode/**/tasks/for the correspondingbashId.
FAQ
Will the agent turn on permissions automatically?
No. The skill does not auto-approve actions that would normally need your approval.
What happens in a run where no prompts are shown?
Any action that would need a prompt is treated as denied, which keeps things safe.
How does the agent confirm the fix?
It repeats the blocked action to see whether it is now allowed or still denied.
Details
Original description by the author
Troubleshoot Kode permission prompts/denials (tool allowlists, commandAllowedTools, dontAsk fail-closed, subagent inheritance). Use when tools are unexpectedly blocked, permission prompts repeat, or behavior differs between main agent and subagents.
repo: shareAI-lab/Kode-CLI
Popularity
- GitHub stars
- 5.2k
- Ranking position
- #15023
- License
- Apache-2.0
- Updated
- 11/2/2026
Comments
- ā¦
More skills from this repository
capabilities-manage
5.2kHelps your agent turn Kode CLI features such as language servers, the status line, and plugins on, off, or into working order from a plain request.
doc-coauthoring
5.2kGuides your agent through writing a clear proposal, spec, or decision doc from your rough notes, then checks it with a fresh reader.
lsp-maintain
5.2kHelps your agent find out why code suggestions are missing in Kode and set up the plugin that provides the language server.
mcp-builder
5.2kGuides your agent in building an MCP server that gives an AI clear, well-named actions for an outside service, in TypeScript or Python.
Similar skills
add-model-provider
394kLets your agent connect a new AI model provider to OpenClaw using safe setup commands, keep API keys out of plain text, and run a live test.
acp-router
394kHelps your agent send a task to a coding assistant such as Claude Code or Cursor through OpenClaw, so the work runs in that tool.
browser-automation
394kTeaches your agent to control web pages step by step, including logins, tabs, and recovery when a page stops responding.