PromptReports
Agent policy

Claude Code: managed-settings.json

PromptReports ID makes Claude Code's managed-settings.json from your org's agent policy. Your device management puts it on each machine, where Claude Code reads it.

State: Planned: built behind AGENT_POLICY, which is off

PromptCompute built the policy and these files behind the AGENT_POLICY switch, which is off in production. Until it is on, the Agent policy page and the downloads are not served.

What it holds

allowedMcpServers names each server by serverUrl or serverCommand, and allowManagedMcpServersOnly makes Claude Code ignore allowlists outside managed settings.

permissions.allow lets each listed tool that no approval names run without asking, as mcp__<server>__<tool>. permissions.ask holds a rule for each approval: Bash(<pattern>) for a shell command, Edit(<pattern>) for a file path, Bash(git commit *) for a commit, and mcp__<server>__<tool> for an MCP tool.

How device management pushes it

  1. An owner or admin sets the org's agent policy on the Agent policy page at PromptReports ID, or through set_agent_policy on the family MCP. Each change is an approval in the credentials class: an owner or admin other than the person who asked decides it, never an agent, and the applied change is an agent_policy.applied entry in the org's signed ledger.
  2. Download claude-code-managed-settings.json from the Agent policy page. Any member of the org may download it, from an address the org allows. The ID serves it at GET /v1/agent-policy/files/claude-code-settings?org_id=<org id>.
  3. In your device management, put it at /Library/Application Support/ClaudeCode/managed-settings.json on macOS, /etc/claude-code/managed-settings.json on Linux and C:\Program Files\ClaudeCode\managed-settings.json on Windows.
  4. Download it again after each change to the policy and push the new copy. The X-Agent-Policy-Version header names the policy version the file was made from, and the ETag changes whenever the file's bytes do.

What Claude Code cannot enforce from it

Deploy it with managed-mcp.json: tool rules name a server, and only that file fixes which server a name means. Claude Code asks, rather than refuses, before a tool that is not on a server's list. A commit rule asks for every commit, since a rule cannot name a branch; the hook package narrows it. A file rule is read from the session's folder, and a shell pattern with a parenthesis or a file pattern starting with ! or # or holding [ ] ? is left to the hook package.

From the example policy

{
  "allowedMcpServers": [
    {
      "serverUrl": "https://api.githubcopilot.com/mcp/"
    },
    {
      "serverCommand": [
        "npx",
        "-y",
        "@modelcontextprotocol/server-filesystem",
        "."
      ]
    }
  ],
  "allowManagedMcpServersOnly": true,
  "permissions": {
    "allow": [
      "mcp__files__list_directory",
      "mcp__files__read_file"
    ],
    "ask": [
      "Bash(npm run migrate*)",
      "Edit(infra/**)",
      "Bash(git commit *)",
      "mcp__github__merge_*"
    ]
  }
}

The example policy is on the agent policy page.

Docs: https://code.claude.com/docs/en/managed-settings, https://code.claude.com/docs/en/permissions, https://code.claude.com/docs/en/settings