AGENTS.md@packages/session-trackerA
AGENTS.md@packages/session-tracker from phnx-labs/agi-cli is an AGENTS.md file: the standing instructions coding agents read in that repo.
mdr add phnx-labs/agi-cli/packages/session-tracker/AGENTS.md@git:20261019.ce854b6Pins git:20261019.ce854b6 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 14 of 14 checks passed
- Kind
- AGENTS.md file
- Repository
- phnx-labs/agi-cli
- Path
packages/session-tracker/AGENTS.md- Versions recorded
- 8
- Latest version
- git:20261019.ce854b6, committed Oct 19, 2026
- First version recorded
- Jul 31, 2026
- Size
- 3,961 bytes
- Repository stars
- 26
- License
- a license file GitHub does not identify
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
# @agents/session-tracker
Polyglot `SessionStart` hook + descendant-pid lookup. The **writer** side of
live-session tracking. See [README.md](README.md) for the full picture.
This file is a **map**. Read the code for current detail.
## The one thing to understand first
There are **two unrelated "session" surfaces** in this repo — do not conflate:
| | This package | `cli/src/lib/session/` |
|---|---|---|
| Role | **Writes** live-session state | **Reads** agent transcripts |
| Trigger | `SessionStart` hook (`hook.sh`) | the session indexer, `agents ps`, and resume (people read transcripts with the standalone `sessions` CLI) |
| Data | `~/.agents/.cache/terminals/sessions/<pid>.json` | `~/.claude/projects/*.jsonl`, Codex rollouts, … |
| `SessionState` type | `{session_id, agent, cwd, pid, terminal_id, launch_id, ts, method}` | different type (`activity`, `pr`, `worktree`, `ticket`, …) |
| Consumer | VS Code ext (agi-ext `src/core/liveSession.ts`) | the CLI itself |
They share the word "session" and nothing else. The CLI does **not** import this
package.
## Layout
```
src/hook.sh Polyglot SessionStart hook — parses each harness's payload, writes the state file
…Read the whole file at its exact version.
How to install
mdr add phnx-labs/agi-cli/packages/session-tracker/AGENTS.md@sha256:b9f4c48865686993The line at the top of this page pins the label git:20261019.ce854b6, 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_bmk4jbatdjgcm4v3)
3 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 8 versions of this file, between Jul 31, 2026 and Oct 19, 2026, about one every 11 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20261019.ce854b6 latest | 2026-10-19 | ce854b6 | 3,961 B | A | view · diff |
| git:20261012.084dfac | 2026-10-12 | 084dfac | 3,443 B | A | view · diff |
| git:20260913.c8d1b40 | 2026-09-13 | c8d1b40 | 3,363 B | A | view · diff |
| git:20260825.474e025 | 2026-08-25 | 474e025 | 3,201 B | A | view · diff |
| git:20260825.121f688 | 2026-08-25 | 121f688 | 3,221 B | A | view · diff |
| git:20260810.73e01bb | 2026-08-10 | 73e01bb | 3,222 B | A | view · diff |
| git:20260805.a2a7927 | 2026-08-05 | a2a7927 | 3,226 B | A | view · diff |
| git:20260731.4f8412f | 2026-07-31 | 4f8412f | 3,194 B | A | view |
Audit of the latest version
- pass: Size between 200 bytes and 200 KB (3961 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
phnx-labs/agi-cli · 26 stars · license a license file GitHub does not identify · pushed 2026-11-07 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_bmk4jbatdjgcm4v3 GET https://markdownregistry.com/api/v1/resolve?ref=phnx-labs/agi-cli/packages/session-tracker/AGENTS.md GET https://markdownregistry.com/api/v1/blob/b9f4c488656869935ec89725be7a5441f63db2d41729931e7803327bae7227bd
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: how to write a good AGENTS.md · AGENTS.md vs CLAUDE.md · which agent file does what.