[FEATURE] Expose current session config changes for model/effort without transcript scraping

Resolved 💬 1 comment Opened May 10, 2026 by itssosunny Closed Jun 8, 2026

Preflight Checklist

  • [x] I have searched existing requests and this feature hasn't been requested yet
  • [x] This is a single feature request (not multiple features)

Problem Statement

Problem

Tools that coordinate multi-agent CLI sessions need to know when
current runtime config changes — model, effort, thinking budget. Today
the safe options are launch-time labels or agent self-report; both
drift after native slash commands like /model and /effort. We
want to avoid transcript scraping, raw prompt parsing, account
metadata, or provider API calls just to know current local session
config.

### Current limitations observed

  • Built-in slash commands do not appear to expose a documented hook event.
  • PostToolUse is not relevant because /model and /effort are not tools.
  • ~/.claude.json may contain runtime state, but the schema is undocumented

and therefore unsafe for automation.

  • claude --help exposes launch flags, but no current-session introspection

command (e.g., claude session info --json).

### Request — any one would unblock

  1. A ConfigChange hook event for built-in /model and /effort changes,

with old/new values and source command.

  1. A CLI command such as claude session info --json returning current

model and effort/thinking-budget for the active session.

  1. A documented stable session-state schema for the same fields.

### Privacy / safety requirement

Payload should be only structured config fields — no prompt bodies,
transcript text, account identifiers, local paths, or API keys.

### Use case

Local bridge/monitoring tooling for multi-agent session coordination
needs honest telemetry provenance (declared vs actual). Currently
relies on manual agent self-report; auto-capture via hook or CLI

### Related issues

  • #57111 — same root family (built-in slash commands have observability

gaps). That issue requests model-side awareness; this issue requests
external-tooling-side observability for the same commands. Both could
be unblocked by some of the same primitives (e.g., enumerating built-in
commands in a structured surface).

Proposed Solution

Any one of the following would resolve the gap. They are listed in order
of preference but Anthropic should choose the surface that fits Claude
Code's architecture best.

  1. ConfigChange hook event for built-in /model and /effort changes, with

payload exposing old value, new value, and source command.

  1. CLI introspection command such as claude session info --json that

prints the active session's current model and effort/thinking_budget
as structured fields.

  1. Documented stable session-state schema for ~/.claude.json (or another

well-known file) covering model, effort, and thinking_budget for the
active session, so external tools can read it safely.

Privacy requirement for any solution: payload should expose only structured
config fields. No prompt bodies, transcript text, account identifiers,
local paths, or API keys.

Alternative Solutions

_No response_

Priority

High - Significant impact on productivity

Feature Category

CLI commands and flags

Use Case Example

_No response_

Additional Context

_No response_

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗