deepagents-thread-inspector
/deepagents-thread-inspector
Przegląda i wyjaśnia rozmowy w lokalnym magazynie sesji SQLite Deep Agents Code: tytuł bieżącego wątku, metadane checkpointów, lista ostatnich wątków i parsowanie pliku sessions.db.
- Autor
- langchain-ai ↗
- Repozytorium
- deepagents ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 25.10.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 2
- Skrypty
- 1
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 25.10.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
- 1 skrypt w paczce. Przejrzyj je przed instalacją, bo Claude może je uruchomić.
Skrypty: scripts/inspect_sessions.py
Co robi i kiedy
Przegląda i wyjaśnia rozmowy w lokalnym magazynie sesji SQLite Deep Agents Code: tytuł bieżącego wątku, metadane checkpointów, lista ostatnich wątków i parsowanie pliku sessions.db.
Oryginalny opis (EN)
Inspect and explain conversations in the local Deep Agents Code SQLite session store. Use to look up the current thread's title or name, as a fallback when LangSmith trace tooling is unavailable, for offline or untraced sessions, or when asked to identify or summarize a local dcode thread, inspect checkpoint metadata, list recent local threads, or parse $DEEPAGENTS_HOME/.state/sessions.db and a thread UUID or prefix.
Jak działa
- Look up the current thread's title
- Inspect local state
- Explain the result
- Safety
Podgląd SKILL.md
--- name: deepagents-thread-inspector description: Inspect and explain conversations in the local Deep Agents Code SQLite session store. Use to look up the current thread's title or name, as a fallback when LangSmith trace tooling is unavailable, for offline or untraced sessions, or when asked to identify or summarize a local dcode thread, inspect checkpoint metadata, list recent local threads, or parse $DEEPAGENTS_HOME/.state/sessions.db and a thread UUID or prefix. license: MIT compatibility: designed for deepagents-code --- # Deep Agents Thread Inspector For conversation inspection, prefer LangSmith tooling when available for a traced thread. For saved thread titles, use the local store. Use `scripts/inspect_sessions.py` instead of manually decoding database blobs. It opens the database read-only and deserializes the root message channel with LangGraph's strict MsgPack loader — reading the materialized messages from the latest checkpoint, or replaying writes in checkpoint order when that fast path is unavailable — and emits JSON. ## Look up the current thread's title Call `get_current_thread_id` to identify this conversation, then run the script with that ID and `--mode summary` as shown below. Read `thread.thread_name`: it contains the saved title, including manual renames, with a fallback to the latest root checkpoint's name for older stores. If it is `null`, report that the thread has no saved title. If the current ID is unavailable, ask for it; do not infer the current thread from the most recent entry in the thread list. ## Inspect local state Resolve `SKILL_DIR` to the directory containing this `SKILL.md`; do not assume a user, project, or installation-specific location. Start with the smallest useful view: ```bash python3 "$SKILL_DIR/scripts/inspect_sessions.py" THREAD_ID --mode latest-turn ``` A unique thread-ID prefix is accepted. Select another view when needed: ```bash python3 "$SKILL_DIR/scripts/inspect_sessions.py" THREAD_ID --mode summary python3 "$SKILL_DIR/scripts/inspect_sessions.py" THREAD_ID --mode transcript ``` Use `--include-metadata` only when run, repository, model, checkpoint, or LangGraph metadata matters. Use `--max-content N` to raise or lower the default 4,000-character limit per message, tool result, or tool-call argument. If the user does not know the ID, list recent threads first: ```bash python3 "$SKILL_DIR/scripts/inspect_sessions.py" --list 20 ``` Pass `--db PATH` only for a non-default session store. The default is `$DEEPAGENTS_HOME/.state/sessions.db`, or `~/.deepagents/.state/sessions.db` when that variable is unset. `DEEPAGENTS_SESSIONS_DB` overrides both. The script applies the same rules dcode does, so a relative or `~user` value is rejected rather than resolved to a database dcode never writes. ## Explain the result Synthesize the JSON rather than pasting it verbatim. - State the user's request, the assistant's conclusion, and significant tool actions or failures. - Distinguish stored facts from your interpretation. - For the latest turn, describe only the final user message and subsequent activity unless earlier context is required to make it understandable. - Mention truncation when a relevant record has `content_truncated` or `args_truncated` set. - Surface reconstruction problems when the result includes a top-level `warnings` array (for example, a corrupt checkpoint, a skipped write, or malformed metadata) so conclusions are appropriately hedged. - Do not expose unrelated credentials, tokens, personal data, or hidden reasoning that may appear in local records. ## Safety Keep inspection read-only. Do not deserialize an untrusted database: checkpoint deserialization is intended for trusted local Deep Agents state. Do not mutate or delete session rows unless the user separately and explicitly requests it.
Pliki w paczce (2)
- SKILL.md 4 KB
- scripts/inspect_sessions.py 24 KB
Wersje
W bazie nie ma innych skilli o nazwie deepagents-thread-inspector.
Migawka bazy z 13.11.2026 · wersja paczki b28c2c860ce3 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 1 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100new-dcode-agent
Tworzy szkielet nowego agenta Deep Agents (LangChain) lub agenta CLI dcode po krótkim wywiadzie o celu, narzędziach i modelu, działającego z dowolnym API zgodnym z OpenAI. - 96gsd-thread
Prowadzi lekkie wątki kontekstu w .planning/threads/ dla pracy obejmującej wiele sesji i niepasującej do żadnej fazy: tworzenie, lista i wznawianie wątków. - 86deep
Ładuje referencję Deep Agents przed pracą nad agentami opartymi na deepagents, LangChain lub LangGraph, w tym nad pamięcią i middleware. - 100deepagents-architecture
Doradza w decyzjach architektonicznych dla aplikacji Deep Agents: wybór między Deep Agents a alternatywami, strategie backendów, projekt systemów subagentów i dobór middleware. - 100deepagents-implementation
Implementuje agenty w Deep Agents: create_deep_agent, konfiguracja backendów, definiowanie subagentów, dodawanie middleware i przepływy z człowiekiem w pętli. - 100opencode-session-db
Czyta sesje, wiadomości i wyniki narzędzi OpenCode bezpośrednio z bazy SQLite, do wyszukiwania historii, eksportu sesji i inspekcji starych rozmów.