{
  "_README": "LEGACY MIRROR of the gateway routing index (the primary copy lives in the gateway_routing table in ~/.hermes/state.db). Maps messaging session keys (agent:main:<platform>:...) to active session IDs. This is NOT the session list. ALL sessions (CLI, TUI, and gateway) live in ~/.hermes/state.db and are shown by `hermes sessions list` and `/sessions`. Disable this file with `gateway.write_sessions_json: false` in config.yaml.",
  "agent:main:telegram:dm:1344779884": {
    "session_key": "agent:main:telegram:dm:1344779884",
    "session_id": "20260703_113006_d6505b77",
    "created_at": "2026-07-03T11:30:06.920161",
    "updated_at": "2026-07-03T11:30:25.576830",
    "display_name": "M G",
    "platform": "telegram",
    "chat_type": "dm",
    "metadata": {},
    "input_tokens": 0,
    "output_tokens": 0,
    "cache_read_tokens": 0,
    "cache_write_tokens": 0,
    "total_tokens": 0,
    "last_prompt_tokens": 35669,
    "estimated_cost_usd": 0.0,
    "cost_status": "unknown",
    "expiry_finalized": true,
    "suspended": false,
    "resume_pending": false,
    "resume_reason": null,
    "last_resume_marked_at": null,
    "active_turn_token": null,
    "active_turn_started_at": null,
    "is_fresh_reset": false,
    "was_auto_reset": false,
    "auto_reset_reason": null,
    "reset_had_activity": false,
    "prev_session_id": null,
    "origin": {
      "platform": "telegram",
      "chat_id": "1344779884",
      "chat_name": "M G",
      "chat_type": "dm",
      "user_id": "1344779884",
      "user_name": "M G",
      "thread_id": null,
      "chat_topic": null,
      "message_id": "2162"
    }
  },
  "agent:main:telegram:group:-1003907117629:11": {
    "session_key": "agent:main:telegram:group:-1003907117629:11",
    "session_id": "20260625_191211_a7076dc3",
    "created_at": "2026-06-25T19:12:11.639353",
    "updated_at": "2026-06-25T19:24:30.720351",
    "display_name": "JARVIS Command Center",
    "platform": "telegram",
    "chat_type": "group",
    "metadata": {},
    "input_tokens": 0,
    "output_tokens": 0,
    "cache_read_tokens": 0,
    "cache_write_tokens": 0,
    "total_tokens": 0,
    "last_prompt_tokens": 81025,
    "estimated_cost_usd": 0.0,
    "cost_status": "unknown",
    "expiry_finalized": true,
    "suspended": false,
    "resume_pending": false,
    "resume_reason": null,
    "last_resume_marked_at": null,
    "active_turn_token": null,
    "active_turn_started_at": null,
    "is_fresh_reset": false,
    "was_auto_reset": false,
    "auto_reset_reason": null,
    "reset_had_activity": false,
    "prev_session_id": null,
    "origin": {
      "platform": "telegram",
      "chat_id": "-1003907117629",
      "chat_name": "JARVIS Command Center",
      "chat_type": "group",
      "user_id": "1344779884",
      "user_name": "M G",
      "thread_id": "11",
      "chat_topic": null,
      "message_id": "16893"
    }
  },
  "agent:main:telegram:group:-1003907117629:16": {
    "session_key": "agent:main:telegram:group:-1003907117629:16",
    "session_id": "20260704_204210_21b3f054",
    "created_at": "2026-07-04T20:42:10.069235",
    "updated_at": "2026-07-04T22:05:49.198089",
    "display_name": "JARVIS Command Center",
    "platform": "telegram",
    "chat_type": "group",
    "metadata": {},
    "input_tokens": 0,
    "output_tokens": 0,
    "cache_read_tokens": 0,
    "cache_write_tokens": 0,
    "total_tokens": 0,
    "last_prompt_tokens": 36423,
    "estimated_cost_usd": 0.0,
    "cost_status": "unknown",
    "expiry_finalized": true,
    "suspended": false,
    "resume_pending": false,
    "resume_reason": null,
    "last_resume_marked_at": null,
    "active_turn_token": null,
    "active_turn_started_at": null,
    "is_fresh_reset": false,
    "was_auto_reset": false,
    "auto_reset_reason": null,
    "reset_had_activity": true,
    "prev_session_id": null,
    "origin": {
      "platform": "telegram",
      "chat_id": "-1003907117629",
      "chat_name": "JARVIS Command Center",
      "chat_type": "group",
      "user_id": "1344779884",
      "user_name": "M G",
      "thread_id": "16",
      "chat_topic": null,
      "message_id": "19050"
    }
  },
  "agent:main:telegram:group:-1003907117629:4850": {
    "session_key": "agent:main:telegram:group:-1003907117629:4850",
    "session_id": "20260613_124751_9d278f",
    "created_at": "2026-06-11T13:12:35.851920",
    "updated_at": "2026-06-13T12:59:30.101360",
    "display_name": "JARVIS Command Center",
    "platform": "telegram",
    "chat_type": "group",
    "metadata": {},
    "input_tokens": 0,
    "output_tokens": 0,
    "cache_read_tokens": 0,
    "cache_write_tokens": 0,
    "total_tokens": 0,
    "last_prompt_tokens": 124139,
    "estimated_cost_usd": 0.0,
    "cost_status": "unknown",
    "expiry_finalized": true,
    "suspended": false,
    "resume_pending": false,
    "resume_reason": null,
    "last_resume_marked_at": null,
    "active_turn_token": null,
    "active_turn_started_at": null,
    "is_fresh_reset": false,
    "was_auto_reset": false,
    "auto_reset_reason": null,
    "reset_had_activity": false,
    "prev_session_id": null,
    "origin": {
      "platform": "telegram",
      "chat_id": "-1003907117629",
      "chat_name": "JARVIS Command Center",
      "chat_type": "group",
      "user_id": "1344779884",
      "user_name": "M G",
      "thread_id": "4850",
      "chat_topic": null,
      "message_id": "13958"
    }
  },
  "agent:main:telegram:group:-1003907117629:20": {
    "session_key": "agent:main:telegram:group:-1003907117629:20",
    "session_id": "20260514_125322_4f06b385",
    "created_at": "2026-05-14T12:53:22.246007",
    "updated_at": "2026-08-20T12:07:30.115802",
    "display_name": "JARVIS Command Center",
    "platform": "telegram",
    "chat_type": "group",
    "metadata": {},
    "input_tokens": 0,
    "output_tokens": 0,
    "cache_read_tokens": 0,
    "cache_write_tokens": 0,
    "total_tokens": 0,
    "last_prompt_tokens": 68664,
    "estimated_cost_usd": 0.0,
    "cost_status": "unknown",
    "expiry_finalized": true,
    "suspended": false,
    "resume_pending": false,
    "resume_reason": null,
    "last_resume_marked_at": null,
    "active_turn_token": null,
    "active_turn_started_at": null,
    "is_fresh_reset": false,
    "was_auto_reset": false,
    "auto_reset_reason": null,
    "reset_had_activity": false,
    "prev_session_id": null,
    "origin": {
      "platform": "telegram",
      "chat_id": "-1003907117629",
      "chat_name": "JARVIS Command Center",
      "chat_type": "group",
      "user_id": "1344779884",
      "user_name": "M G",
      "thread_id": "20",
      "chat_topic": null,
      "message_id": "23624"
    }
  },
  "agent:main:telegram:group:-1003907117629:23429": {
    "session_key": "agent:main:telegram:group:-1003907117629:23429",
    "session_id": "20260821_160950_45abe868",
    "created_at": "2026-08-21T16:09:50.203939",
    "updated_at": "2026-08-21T16:16:30.735338",
    "display_name": "JARVIS Command Center",
    "platform": "telegram",
    "chat_type": "group",
    "metadata": {},
    "input_tokens": 0,
    "output_tokens": 0,
    "cache_read_tokens": 0,
    "cache_write_tokens": 0,
    "total_tokens": 0,
    "last_prompt_tokens": 91505,
    "estimated_cost_usd": 0.0,
    "cost_status": "unknown",
    "expiry_finalized": true,
    "suspended": false,
    "resume_pending": false,
    "resume_reason": null,
    "last_resume_marked_at": null,
    "active_turn_token": null,
    "active_turn_started_at": null,
    "is_fresh_reset": false,
    "was_auto_reset": false,
    "auto_reset_reason": null,
    "reset_had_activity": true,
    "prev_session_id": "20260820_183909_b0729b06",
    "origin": {
      "platform": "telegram",
      "chat_id": "-1003907117629",
      "chat_name": "JARVIS Command Center",
      "chat_type": "group",
      "user_id": "1344779884",
      "user_name": "M G",
      "thread_id": "23429",
      "chat_topic": null,
      "message_id": "23659"
    }
  },
  "agent:main:telegram:group:-1003907117629:80": {
    "session_key": "agent:main:telegram:group:-1003907117629:80",
    "session_id": "20260821_174932_459dd9de",
    "created_at": "2026-08-21T17:49:32.179466",
    "updated_at": "2026-08-21T17:52:46.282170",
    "display_name": "JARVIS Command Center",
    "platform": "telegram",
    "chat_type": "group",
    "metadata": {},
    "input_tokens": 0,
    "output_tokens": 0,
    "cache_read_tokens": 0,
    "cache_write_tokens": 0,
    "total_tokens": 0,
    "last_prompt_tokens": 44533,
    "estimated_cost_usd": 0.0,
    "cost_status": "unknown",
    "expiry_finalized": true,
    "suspended": false,
    "resume_pending": false,
    "resume_reason": null,
    "last_resume_marked_at": null,
    "active_turn_token": null,
    "active_turn_started_at": null,
    "is_fresh_reset": false,
    "was_auto_reset": false,
    "auto_reset_reason": null,
    "reset_had_activity": true,
    "prev_session_id": "20260820_094110_ae2ef214",
    "origin": {
      "platform": "telegram",
      "chat_id": "-1003907117629",
      "chat_name": "JARVIS Command Center",
      "chat_type": "group",
      "user_id": "1344779884",
      "user_name": "M G",
      "thread_id": "80",
      "chat_topic": null,
      "message_id": "23667"
    }
  },
  "agent:main:telegram:group:-1003907117629:4": {
    "session_key": "agent:main:telegram:group:-1003907117629:4",
    "session_id": "20260825_072318_643d5b48",
    "created_at": "2026-08-25T07:23:18.896020",
    "updated_at": "2026-08-25T19:48:35.041214",
    "display_name": "JARVIS Command Center",
    "platform": "telegram",
    "chat_type": "group",
    "metadata": {},
    "input_tokens": 0,
    "output_tokens": 0,
    "cache_read_tokens": 0,
    "cache_write_tokens": 0,
    "total_tokens": 0,
    "last_prompt_tokens": 151801,
    "estimated_cost_usd": 0.0,
    "cost_status": "unknown",
    "expiry_finalized": true,
    "suspended": false,
    "resume_pending": false,
    "resume_reason": null,
    "last_resume_marked_at": null,
    "active_turn_token": null,
    "active_turn_started_at": null,
    "is_fresh_reset": false,
    "was_auto_reset": false,
    "auto_reset_reason": null,
    "reset_had_activity": false,
    "prev_session_id": null,
    "origin": {
      "platform": "telegram",
      "chat_id": "-1003907117629",
      "chat_name": "JARVIS Command Center",
      "chat_type": "group",
      "user_id": "1344779884",
      "user_name": "M G",
      "thread_id": "4",
      "chat_topic": null,
      "message_id": "23779"
    }
  },
  "agent:main:telegram:group:-1003907117629:6": {
    "session_key": "agent:main:telegram:group:-1003907117629:6",
    "session_id": "20260825_181408_cccd1205",
    "created_at": "2026-08-25T18:14:08.632207",
    "updated_at": "2026-08-25T18:18:59.959545",
    "display_name": "JARVIS Command Center",
    "platform": "telegram",
    "chat_type": "group",
    "metadata": {},
    "input_tokens": 0,
    "output_tokens": 0,
    "cache_read_tokens": 0,
    "cache_write_tokens": 0,
    "total_tokens": 0,
    "last_prompt_tokens": 54343,
    "estimated_cost_usd": 0.0,
    "cost_status": "unknown",
    "expiry_finalized": true,
    "suspended": false,
    "resume_pending": false,
    "resume_reason": null,
    "last_resume_marked_at": null,
    "active_turn_token": null,
    "active_turn_started_at": null,
    "is_fresh_reset": false,
    "was_auto_reset": false,
    "auto_reset_reason": null,
    "reset_had_activity": false,
    "prev_session_id": null,
    "origin": {
      "platform": "telegram",
      "chat_id": "-1003907117629",
      "chat_name": "JARVIS Command Center",
      "chat_type": "group",
      "user_id": "1344779884",
      "user_name": "M G",
      "thread_id": "6",
      "chat_topic": null,
      "message_id": "23790"
    }
  },
  "agent:main:telegram:group:-1003907117629:8": {
    "session_key": "agent:main:telegram:group:-1003907117629:8",
    "session_id": "20260825_200758_bb9115ed",
    "created_at": "2026-08-25T20:07:58.861231",
    "updated_at": "2026-08-26T00:14:24.564707",
    "display_name": "JARVIS Command Center",
    "platform": "telegram",
    "chat_type": "group",
    "metadata": {},
    "input_tokens": 0,
    "output_tokens": 0,
    "cache_read_tokens": 0,
    "cache_write_tokens": 0,
    "total_tokens": 0,
    "last_prompt_tokens": 207230,
    "estimated_cost_usd": 0.0,
    "cost_status": "unknown",
    "expiry_finalized": true,
    "suspended": false,
    "resume_pending": false,
    "resume_reason": null,
    "last_resume_marked_at": null,
    "active_turn_token": null,
    "active_turn_started_at": null,
    "is_fresh_reset": false,
    "was_auto_reset": false,
    "auto_reset_reason": null,
    "reset_had_activity": true,
    "prev_session_id": "20260821_223149_eb25ca7a",
    "origin": {
      "platform": "telegram",
      "chat_id": "-1003907117629",
      "chat_name": "JARVIS Command Center",
      "chat_type": "group",
      "user_id": "1344779884",
      "user_name": "M G",
      "thread_id": "8",
      "chat_topic": null,
      "message_id": "23814"
    }
  },
  "agent:main:telegram:group:-1003907117629:13748": {
    "session_key": "agent:main:telegram:group:-1003907117629:13748",
    "session_id": "20260828_110532_8af0b86e",
    "created_at": "2026-08-28T11:05:32.740701",
    "updated_at": "2026-08-28T11:21:52.812831",
    "display_name": "JARVIS Command Center",
    "platform": "telegram",
    "chat_type": "group",
    "metadata": {},
    "input_tokens": 0,
    "output_tokens": 0,
    "cache_read_tokens": 0,
    "cache_write_tokens": 0,
    "total_tokens": 0,
    "last_prompt_tokens": 172573,
    "estimated_cost_usd": 0.0,
    "cost_status": "unknown",
    "expiry_finalized": false,
    "suspended": false,
    "resume_pending": false,
    "resume_reason": null,
    "last_resume_marked_at": null,
    "active_turn_token": null,
    "active_turn_started_at": null,
    "is_fresh_reset": false,
    "was_auto_reset": false,
    "auto_reset_reason": null,
    "reset_had_activity": true,
    "prev_session_id": "20260820_091733_de447903",
    "origin": {
      "platform": "telegram",
      "chat_id": "-1003907117629",
      "chat_name": "JARVIS Command Center",
      "chat_type": "group",
      "user_id": "1344779884",
      "user_name": "M G",
      "thread_id": "13748",
      "chat_topic": null,
      "message_id": "23974"
    }
  },
  "agent:main:telegram:group:-1003907117629:10": {
    "session_key": "agent:main:telegram:group:-1003907117629:10",
    "session_id": "20260828_162539_c5f89a27",
    "created_at": "2026-08-28T16:25:39.983717",
    "updated_at": "2026-08-28T16:25:39.983717",
    "display_name": "JARVIS Command Center",
    "platform": "telegram",
    "chat_type": "group",
    "metadata": {},
    "input_tokens": 0,
    "output_tokens": 0,
    "cache_read_tokens": 0,
    "cache_write_tokens": 0,
    "total_tokens": 0,
    "last_prompt_tokens": 0,
    "estimated_cost_usd": 0.0,
    "cost_status": "unknown",
    "expiry_finalized": false,
    "suspended": false,
    "resume_pending": false,
    "resume_reason": null,
    "last_resume_marked_at": null,
    "active_turn_token": null,
    "active_turn_started_at": null,
    "is_fresh_reset": false,
    "was_auto_reset": true,
    "auto_reset_reason": "daily",
    "reset_had_activity": true,
    "prev_session_id": "20260827_104929_e21363bd",
    "origin": {
      "platform": "telegram",
      "chat_id": "-1003907117629",
      "chat_name": "JARVIS Command Center",
      "chat_type": "group",
      "user_id": "1344779884",
      "user_name": "M G",
      "thread_id": "10",
      "chat_topic": null,
      "message_id": "23982"
    }
  }
}