Skip to content
Skillpedia
Agents5.2k Ā· #15023

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.md

Copy 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

Use this skill to help me: https://github.com/shareAI-lab/Kode-CLI/blob/main/packages/builtin-skills/skills/permissions-debug/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

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 dontAsk contexts, treat ā€œwould promptā€ as deny (fail-closed). Do not try to bypass.

Fast triage (what to check first)

  1. 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.
  2. Inspect approved tools / project allowlist

    • Use SlashCommand to run /approved-tools list and 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>.
  3. Check per-command constraints

    • Some flows apply commandAllowedTools constraints (slash command / skill execution contexts). Confirm the command’s allowed-tools frontmatter and whether it should be restrictive.

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 corresponding bashId.
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

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills