بنقرة واحدة
session
Session lifecycle — checkpoint, restore, handoff, sleep/wake
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Session lifecycle — checkpoint, restore, handoff, sleep/wake
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Review pull requests for code quality, security, and correctness
Review pull requests for code quality, security, and correctness
End-to-end shipping workflow — tests, PR creation, review request. Unified pr-create + pr-complete.
Periodic cross-agent learning consolidation — review what worked, what didn't, propagate insights
Break down complex problems through structured analytical frameworks
Persist and recall context across sessions — critical for continuity
| name | session |
| version | 1.0.0 |
| description | Session lifecycle — checkpoint, restore, handoff, sleep/wake |
| uses | ["core/memory","core/bus"] |
| requires | {"tools":[],"env":[]} |
| security | {"risk_level":"write","capabilities":["session:read","session:write","session:checkpoint","session:restore"],"requires_approval":false} |
Manage the agent session lifecycle — starting, checkpointing, restoring, handing off work, and shutting down cleanly. Sessions are the boundary of an agent's active work period.
This is a builtin skill (handler: type: builtin). When session_status is invoked, the executor returns current session state from the session directory (.os/sessions/{agent}/{session-id}/). The tool schema in tool.yaml defines the external contract; the executor handles session state management directly.
On session start, execute in order:
identity.yamlsession_start to the system channelCheckpoints save session state for recovery. They happen:
Checkpoint content:
On restore, load the checkpoint and resume:
.os/sessions/{agent}/{session-id}/checkpoint.jsonWhen passing work to another agent:
handoff message to the work channel with:
On graceful shutdown:
session_end to the system channel## Session Status
- Session ID: [ID]
- Agent: [agent name]
- Status: [active/sleeping/shutting-down]
- Duration: [time since start]
- Messages processed: [count]
- Last checkpoint: [timestamp]
- Current task: [description or none]
Sessions automatically restart when context is exhausted (up to max_restarts times). The recovery system:
stop_reason=max_tokens) or process exit without a result event--resume <session-id> to restore full conversation history.os/skills/core/session/prompts/restart.md telling the agent to read its memory and continueAgents can influence recovery:
.os/agents/{name}/memory/ so context survivesend_turn prevents unnecessary restartConfiguration: wrapper.max_restarts (default 3), wrapper.restart_cooldown (default 5s), wrapper.restart_backoff (default 2x for error exits).
Session management is complete when: