Feature Request: Expose permissions mode in status line JSON input

Status Fixed / completed
Maintainer reply None cached
Activity 4 comments · opened Jan 6, 2026 · closed Jan 6, 2026

Summary

Add the current permissions mode to the JSON payload passed to custom status line scripts, allowing users to consolidate the permissions indicator into their custom status line.

Current Behavior

The status line JSON input includes:

  • model - current model info
  • workspace - directory info
  • cost - session cost/lines changed
  • context_window - token usage

The permissions mode (>> bypass / > normal / etc.) is displayed as a separate built-in UI line below the custom status line:

✨ ███░░░░░░░  ·  repo/main  ·  +208/-19  ·  💰 $2.69  ·  Opus 4.5
>> bypass permissions on (shift+tab to cycle)

Requested Behavior

Add a permissions field to the status line JSON input:

{
  "permissions": {
    "mode": "bypassPermissions",
    "display_name": "bypass",
    "icon": ">>"
  },
  "model": {...},
  "workspace": {...},
  ...
}

This would allow users to integrate the permissions indicator into their custom status line:

✨ ███░░░░░░░  ·  >> repo/main  ·  +208/-19  ·  💰 $2.69  ·  Opus 4.5

Benefits

  1. Cleaner UI - Consolidate two lines into one, reducing vertical space
  2. Customization - Users can style/position the permissions indicator as they prefer
  3. Consistency - All session info in one customizable line

Implementation Suggestion

When a custom statusLine is configured in settings.json, hide the built-in permissions line to avoid duplication. Users who want the permissions indicator can include it in their custom status line using the new JSON field.

This keeps backward compatibility:

  • No custom status line → show built-in permissions line (current behavior)
  • Custom status line configured → hide built-in line, expose permissions in JSON

Additional Context

The permissions mode already exists internally and is displayed in the UI - this would just expose it to the status line script input.

Possible modes to expose:

  • bypassPermissions / >>
  • normal / >
  • plan mode indicator if applicable

Environment

  • Claude Code version: 1.0.x
  • OS: macOS / Linux / Windows

---
🤖 Generated with Claude Code

View original on GitHub ↗

4 Comments

scttbnsn · 9 months ago

Related to #8832 (Full Customizable Status Bar) - this is a smaller, focused subset of that request specifically for exposing permissions mode in the existing status line JSON input.

github-actions[bot] · 9 months ago

Found 2 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/6227
  2. https://github.com/anthropics/claude-code/issues/10406

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

scttbnsn · 9 months ago

Closing as duplicate. This request is covered by:

  • #6227 - Expose activePermissionMode in JSON payload for hooks and statusline
  • #10406 - Add setting to hide built-in mode indicator when using custom statusline

Adding my 👍 to both issues instead.

github-actions[bot] · 9 months ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.