find-session SKILL.md skillA
find-session from ooooooooooooooooooop/agent-tools is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add ooooooooooooooooooop/agent-tools/find-session@git:20260827.4167ef3Pins git:20260827.4167ef3 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- ooooooooooooooooooop/agent-tools
- Path
skills/find-session/SKILL.md- Versions recorded
- 1
- Latest version
- git:20260827.4167ef3, committed Aug 27, 2026
- Size
- 3,397 bytes
- Repository stars
- 4
- License
- MIT
按对话标题或正文关键词快速定位 DSH 历史会话并读取内容/统计;用于“根据对话名跟踪对话”“查找之前的会话”“查看某会话 token 消耗”等请求。.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# 快速定位与跟踪 DSH 会话 用于用户要求"按对话名/标题找会话""跟踪某个对话""查看某次会话内容或 token 消耗"时。统一入口是本 Skill 包内脚本 `scripts/find_session.py`(相对本 Skill 目录),不临场另写遍历逻辑。 > 路径提示:Skill 包在 `~/.dsh/skills/find-session/`(仓库源在 `skills/find-session/`)。以下命令均假设当前目录为本 Skill 目录,或把 `scripts/find_session.py` 换成绝对路径 `~/.dsh/skills/find-session/scripts/find_session.py`。 ## 触发边界 - 适用:按标题关键词搜索会话、按正文关键词搜索会话、读取某会话消息内容、查看会话 token/时间统计、按项目或时间范围过滤。 - 不适用:修改/删除会话、DSH 内部状态变更、跨设备同步。这些不得套用本 Skill。 ## 数据源与固定事实 - 索引:`~/.dsh/storages/session_projcache.json`(title/cwd/createdAt/sessionStats/tokenUsage)。 - 内容:`~/.dsh/sessions/<项目>/<session>/session.jsonl.zstd`(多帧 zstd,必须流式解压,单帧 decompress 只解第一帧)。 - 正文搜索默认只扫最近 30 个会话(全量解压 200+ 会话慢),需要全量时加 `--full`。 ## 固定执行 1. 标题搜索(快,走索引): ```bash python scripts/find_session.py <关键词> # 列出匹配会话(按时间倒序) python scripts/find_session.py <关键词> --content # 搜索后直接读最新匹配会话内容 ``` 2. 正文全文搜索(慢,需解压): ```bash python scripts/find_session.py --grep <关键词> # 默认最近 30 个会话 python scripts/find_session.py --grep <关键词> --full # 全量扫描 ``` 3. 按会话 id 操作: ```bash python scripts/find_session.py --id <session-id> # 读取消息内容 …
Read the whole file at its exact version.
How to install
mdr add ooooooooooooooooooop/agent-tools/find-session@sha256:c55006e128189767The line at the top of this page pins the label git:20260827.4167ef3, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_eeicu37oyx4ofr6s)
3 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 1 version of this file, committed on Aug 27, 2026.
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (3397 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
ooooooooooooooooooop/agent-tools · 4 stars · license MIT · pushed 2026-10-23 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_eeicu37oyx4ofr6s GET https://markdownregistry.com/api/v1/resolve?ref=ooooooooooooooooooop/agent-tools/find-session GET https://markdownregistry.com/api/v1/blob/c55006e1281897678d288cddf41955ded07429d3372f186f98f32bbe8be3f477
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.
More from ooooooooooooooooooop/agent-tools
Every file in ooooooooooooooooooop/agent-tools