<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Tobias Zander</title>
    <description>The latest articles on DEV Community by Tobias Zander (@airbone42).</description>
    <link>https://dev.to/airbone42</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4253369%2F4cf7f5c4-36f9-48b6-8d2c-def0922b9f11.jpg</url>
      <title>DEV Community: Tobias Zander</title>
      <link>https://dev.to/airbone42</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/airbone42"/>
    <language>en</language>
    <item>
      <title>I linted my own Claude Code setup. The permissions were fine, the tokens weren't</title>
      <dc:creator>Tobias Zander</dc:creator>
      <pubDate>Thu, 19 Nov 2026 08:38:38 +0000</pubDate>
      <link>https://dev.to/airbone42/i-linted-my-own-claude-code-setup-the-permissions-were-fine-the-tokens-werent-1bl9</link>
      <guid>https://dev.to/airbone42/i-linted-my-own-claude-code-setup-the-permissions-were-fine-the-tokens-werent-1bl9</guid>
      <description>&lt;p&gt;I run a few AI agents on my homelab. They can’t change network, VMs or cloud directly. Every change goes through an approval gate outside the agent, and an approval is tied to one specific plan. So I assumed my agent config was in decent shape.&lt;/p&gt;

&lt;p&gt;I wrote a small linter to check that and ran it on my own machine. The permissions were tight. But ~/.claude.json held 6 access tokens for MCP servers in plain text. The permissions were fine, the file next to them wasn’t.&lt;/p&gt;

&lt;p&gt;It reads Claude Code (settings.json, ~/.claude.json), .mcp.json, Cursor, VS Code and Claude Desktop configs. 14 rules, for example:&lt;/p&gt;

&lt;p&gt;Bash(python3:&lt;em&gt;) looks narrow, but it’s basically Bash(&lt;/em&gt;). Same for sudo:* and npx:*.&lt;br&gt;
Allowing a whole MCP server also allows the write tools it gets later.&lt;br&gt;
Unpinned npx/uvx packages pull the latest version on every start.&lt;br&gt;
Plaintext tokens (masked in the output), bypass mode, shell plus open WebFetch, missing deny rules, --privileged/Docker socket, remote servers over http://.&lt;/p&gt;

&lt;p&gt;A finding is a question, not a vulnerability. My first version flagged exact commands like Bash(bash script.sh). That was noise, so now only wildcards trigger. It only reads local config, it doesn’t query servers or look at tool descriptions.&lt;/p&gt;

&lt;p&gt;Try it &lt;code&gt;python3 agentlint.py&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;One file, standard library only, read-only, no network, MIT: &lt;a href="https://github.com/airbone42/agent-permission-linter" rel="noopener noreferrer"&gt;https://github.com/airbone42/agent-permission-linter&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Disclosure: the output ends with a link to my write-up on approval gates for agents. AGENTLINT_GUIDE_URL= turns it off. Most of the code was written with Claude Code.&lt;/p&gt;

&lt;p&gt;Which rule is missing, and which one gives you false alarms?&lt;/p&gt;

</description>
      <category>agents</category>
      <category>cybersecurity</category>
      <category>mcp</category>
      <category>security</category>
    </item>
  </channel>
</rss>
