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.

Install it, pinned
mdr add phnx-labs/agi-cli/packages/session-tracker/AGENTS.md@git:20261019.ce854b6

Pins 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

The exact contents, by fingerprint
mdr add phnx-labs/agi-cli/packages/session-tracker/AGENTS.md@sha256:b9f4c48865686993

The 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.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_bmk4jbatdjgcm4v3.svg)](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.

versioncommittedcommitsizeaudit
git:20261019.ce854b6 latest2026-10-19 ce854b6 3,961 BA view · diff
git:20261012.084dfac2026-10-12 084dfac 3,443 BA view · diff
git:20260913.c8d1b402026-09-13 c8d1b40 3,363 BA view · diff
git:20260825.474e0252026-08-25 474e025 3,201 BA view · diff
git:20260825.121f6882026-08-25 121f688 3,221 BA view · diff
git:20260810.73e01bb2026-08-10 73e01bb 3,222 BA view · diff
git:20260805.a2a79272026-08-05 a2a7927 3,226 BA view · diff
git:20260731.4f8412f2026-07-31 4f8412f 3,194 BA view

Audit of the latest version

A  14 of 14 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • 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

GitHub

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.

More from phnx-labs/agi-cli

DESIGN.md@.agents/artifacts/2026-08-21 DESIGN.md file
phnx-labs/agi-cli · .agents/artifacts/2026-08-21/DESIGN.md
git:20260822.0edb90f · audit A · 26 stars
DESIGN.md@.agents/artifacts/2026-08-25 DESIGN.md file
phnx-labs/agi-cli · .agents/artifacts/2026-08-25/DESIGN.md
git:20260825.b3c3383 · audit A · 26 stars
DESIGN.md@.agents/artifacts/2026-09-05 DESIGN.md file
phnx-labs/agi-cli · .agents/artifacts/2026-09-05/DESIGN.md
git:20260906.5d705eb · audit B · 26 stars
DESIGN.md@.agents/artifacts/2026-09-06/account-model-v2 DESIGN.md file
phnx-labs/agi-cli · .agents/artifacts/2026-09-06/account-model-v2/DESIGN.md · The meta harness engineering system for agents. A Phoenix Labs source-available product (FSL-1.1-Apache-2.0)…
alpha · audit A · 26 stars
DESIGN.md@.agents/artifacts/2026-09-06/secrets-extraction DESIGN.md file
phnx-labs/agi-cli · .agents/artifacts/2026-09-06/secrets-extraction/DESIGN.md
git:20260906.a8060ea · audit A · 26 stars
DESIGN.md@.agents/artifacts/2026-09-06/share-extraction DESIGN.md file
phnx-labs/agi-cli · .agents/artifacts/2026-09-06/share-extraction/DESIGN.md
git:20260913.851b11f · audit A · 26 stars
AGENTS.md AGENTS.md file
phnx-labs/agi-cli · AGENTS.md
git:20261020.4f00dc6 · audit A · 26 stars
CLAUDE.md CLAUDE.md file
phnx-labs/agi-cli · CLAUDE.md
git:20260208.4be496d · audit B · 26 stars
DESIGN.md DESIGN.md file
phnx-labs/agi-cli · DESIGN.md · The meta harness engineering system for agents. A Phoenix Labs source-available product (FSL-1.1-Apache-2.0)…
alpha · audit A · 26 stars
AGENTS.md@cli AGENTS.md file
phnx-labs/agi-cli · cli/AGENTS.md
git:20261107.17d6c49 · audit B · 26 stars
CLAUDE.md@cli CLAUDE.md file
phnx-labs/agi-cli · cli/CLAUDE.md
git:20260825.72ebbe6 · audit B · 26 stars
image SKILL.md skill
phnx-labs/agi-cli · cli/src/commands/__tests__/testdata/stats-plugin-names/agents/plugins/create/skills/image/SKILL.md · Generate an image.
git:20261006.5fb8d40 · audit B · 26 stars

Every file in phnx-labs/agi-cli

Browse by kind, by grade A, or by owner.