live-agent-lifecycle SKILL.md skillA
live-agent-lifecycle from baphuongna/pi-crew is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add baphuongna/pi-crew/live-agent-lifecycle@git:20260911.c97bc57Pins git:20260911.c97bc57 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- baphuongna/pi-crew
- Path
skills/live-agent-lifecycle/SKILL.md- Versions recorded
- 5
- Latest version
- git:20260911.c97bc57, committed Sep 11, 2026
- First version recorded
- May 14, 2026
- Size
- 8,361 bytes
- Repository stars
- 59
- License
- MIT
Live agent registration, workspace isolation, termination, and eviction workflow. When NOT to use: static extension registration patterns (use pi-extension-lifecycle); ownership disputes (use ownership-session-security).
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
# live-agent-lifecycle
Live agents are real-time, in-memory worker sessions managed by `LiveAgentManager` (`src/runtime/live-agent-manager.ts`). They are distinct from `CrewAgentRecord` files on disk — live agents provide real-time activity (tool names, response text, turn count) while agent records are durable snapshots.
## Architecture
**LiveAgentHandle** is the core data structure:
```typescript
interface LiveAgentHandle {
agentId: string; // unique per run
taskId: string; // maps to task
runId: string; // run this agent belongs to
workspaceId: string; // manifest.cwd — workspace boundary
role?: string;
agent?: string;
modelName?: string;
session: LiveSessionHandle; // steer/prompt/abort/dispose
status: CrewAgentRecord["status"];
pendingSteers: string[];
pendingFollowUps: string[];
pendingMessages: IrcMessage[];
activity: LiveAgentActivity; // real-time tracking
createdAt: string;
updatedAt: string;
}
```
The in-memory `liveAgents` Map stores all active handles. It is never persisted — on Pi restart, the Map is empty and agents are re-created from agent records.
## Registration
…Read the whole file at its exact version.
How to install
mdr add baphuongna/pi-crew/live-agent-lifecycle@sha256:251bda6aafa9e94bThe line at the top of this page pins the label git:20260911.c97bc57, 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_c4irho4dbneiarxl)
3 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 5 versions of this file, between May 14, 2026 and Sep 11, 2026, about one every 30 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20260911.c97bc57 latest | 2026-09-11 | c97bc57 | 8,361 B | A | view · diff |
| git:20260603.fa30bc0 | 2026-06-03 | fa30bc0 | 8,217 B | A | view · diff |
| git:20260529.53de3c2 | 2026-05-29 | 53de3c2 | 8,201 B | A | view · diff |
| git:20260528.67ddbec | 2026-05-28 | 67ddbec | 8,270 B | A | view · diff |
| git:20260514.81c1e55 | 2026-05-14 | 81c1e55 | 7,633 B | A | view |
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 (8361 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
baphuongna/pi-crew · 59 stars · license MIT · pushed 2026-11-01 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_c4irho4dbneiarxl GET https://markdownregistry.com/api/v1/resolve?ref=baphuongna/pi-crew/live-agent-lifecycle GET https://markdownregistry.com/api/v1/blob/251bda6aafa9e94bb6cf81e694ebfc4f4871eee37fa4e3d0bde31959a0a3193a
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.