Skip to content
Back to skills

T3 Session Check

ASecurity

Explains why recent T3 Code threads left the list or their sessions stopped. Use when the user asks why a T3 Code thread disappeared, why a session stopped, or where a thread is now.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 2, 2026
ai-agentspythonbashsqltestingdatabase

Works with

  • cli

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned December 2, 2026

npx -y skills add cardene777/agent-shuriken --skill t3-session-check --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of T3 Session Check?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for T3 Session Check
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/cardene777-t3-session-check/badge)](https://www.skillsdirectory.com/skills/cardene777-t3-session-check)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: t3-session-check
description: Explains why recent T3 Code threads left the list or their sessions stopped. Use when the user asks why a T3 Code thread disappeared, why a session stopped, or where a thread is now.
---

# T3 session check

This skill reads T3 Code's durable event records and reports why each recent thread was settled, deleted, archived, or stopped.
It is read-only and changes nothing in T3 Code.

Talk to the user in the language they write in.
The script prints stable English column names and causes.
Translate those columns and causes in the answer when the user writes in another language.

All commands live in `scripts/` next to this `SKILL.md`.
Below, `S` stands for the absolute path of that folder.

```bash
S=<skill folder>/scripts; python3 "$S/t3_session_check.py"
```

Use `--hours <n>` to replace the default 24-hour window.
Use `--userdata <dir>` only when the user names another T3 Code userdata folder, or when testing with a throwaway fixture.
`T3_USERDATA_DIR` provides the same folder when `--userdata` is absent.

## What it reads

The script opens `<userdata>/statev2.sqlite` in SQLite read-only mode.
It reads thread events, current thread and project projections, and linked pull request states.
For an unknown stop only, it reads `session.exited` records from `logs/provider/events.<thread id>.log` and its rotated files, and takes only `payload.exitKind`.

It never reads conversations, `logs/*.trace.ndjson`, or `secrets/`.
It never prints any other provider-log text.
It writes no file, stores no state, sends nothing, and changes nothing in T3 Code.

## How to read the causes

| Cause | Meaning |
|---|---|
| `auto-settle (merged PR)` | T3 Code automatically settled the thread and a visible linked pull request is merged or closed |
| `auto-settle (inactive)` | T3 Code automatically settled the thread and it has no visible linked pull request |
| `settled from the screen` | A client action settled the thread |
| `deleted` | The thread was deleted |
| `archived` | The thread was archived |
| `idle stop (30 min)` | The last session update was at least 29 minutes earlier and no nearby stop, interrupt, delete, or archive request explains the stop |
| `interrupted` | An interrupt was requested in the preceding 10 seconds |
| `unknown` | No stop rule matched; `exitKind` is the provider's exit value when it can be matched |
| `unknown (settle)` | A settle event did not match a known automatic or client form |

The 29-minute threshold leaves one minute for the provider activity time that is not present in the durable event table.
Measure it from the previous `thread.session-set`, not task activity, because T3 Code updates the session timestamp only from session-set events.
Do not classify from `exitKind`; observed idle and interrupted stops can both be `graceful`.

Ignore threads whose IDs start with `import:` because they are imported earlier sessions.
Ignore pull requests whose source is `stack-dismissed` because T3 Code hides them from its settle decision.
Fold a stop into a settle, delete, or archive within 10 seconds on either side.
When the same thread has two stop events within 10 seconds, count the first once because server and provider records can describe the same stop.

For an unknown stop, match a provider `session.exited` record by the event ID in `provider:<eventId>:...` first, then by its time.
If neither match exists, report `unknown` as the `exitKind`.

The `where now` column is `list`, `settled`, `archived`, or `deleted`.
The `exitKind` column is filled only for an `unknown` stop and is `-` for every other cause.

Report the table, the total and cause counts, and how many events were scanned.
If the database cannot be read, explain the one-line error instead of treating it as an empty result.

Files in this skill

  • SKILL.md3.7 KB
  • agents/openai.yaml274 B
  • scripts/t3_session_check.py13.8 KB
  • tests/test-t3-session-check.sh15 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.