<!-- llms-explorer concept facts · https://llms-explorer.com/tree/router-session-keying-when-subagents-reuse-metad/ · pack 2026-10-05 · ~278 tokens -->

# Router session keying when subagents reuse metadata.user_id

> Covered: local-router-policy-keyed-on-x-claude-code-reque.md holds the claims that subagents and auto-mode classifier requests reuse the parent's `metadata.user_id`, that routers keyed on session id replay history and queue them on one lease, and the inferred `(session id, agent id)` key; neither...

Parent: [Mac local LLMs: Agent clients, context and compaction](https://llms-explorer.com/tree/mac-local-llms-agent-clients-context-and-compaction/) · 1 facets · 1 facts · page: https://llms-explorer.com/tree/router-session-keying-when-subagents-reuse-metad/

## Facts

- Covered: local-router-policy-keyed-on-x-claude-code-reque.md holds the claims that subagents and auto-mode classifier requests reuse the parent's `metadata.user_id`, that routers keyed on session id replay history and queue them on one lease, and the inferred `(session id, agent id)` key; neither the env-vars page nor the sub-agents page on code.claude.com documents that field, so nothing was added or contradicted. — [source](https://code.claude.com/docs/en/sub-agents)
