Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/zylos-ai-new-session
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: agent-building, agent-orchestration
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/new-session
What's inside
- Skill name
new-session- Description
- Start a new session when context is high. Claude uses /clear, Codex uses /exit. Use when context is high or when a fresh session is needed.
- License
- MIT
- Instructions
- 86 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# New Session Skill Start a fresh session with graceful handoff. Use runtime-specific switch commands: - Claude: `/clear` - Codex: `/exit` ## When to Use - Context usage exceeds the runtime threshold (triggered automatically by context monitoring) - User explicitly asks for a new session or context reset - When you need a clean context but don't need to reload settings/hooks (use restart-claude for that) ## Pre-Switch Checklist Before sending the session switch command, complete these steps **in order**: ### 1. Inventory running background tasks Check for running background agents using the current runtime's available agent/task listing capability. For Claude, this is `TaskList`. Runtime behavior differs here: - **Claude**: background subagents survive `/clear`, so do not stop them. - **Codex**: `/exit` terminates background tasks. Before enqueueing `/exit`, make sure required background work has finished. For each running task, note: - **Agent ID** (e.g., `a42c1aabc5b984e69`) - **What it's doing** (brief description) - **Output file path** (so the new session can check on it) This information goes into the handoff summary (step 2). ### 2. Write a session handoff summary Write a brief message covering: - **What was being worked on** (active tasks, user requests in progress) - **Current state** (what's done, what's pending, any blockers) - **Running background tasks** (from step 1 — include agent/task IDs and any output file paths or result handles so the new session can check on them with the runtime-appropriate output mechanism) - **What the next session should pick up** (if anything) ### 3. Send the handoff summary Send the full handoff summary to the internal `void` channel via C4: ```bash cat <<'EOF' | node ~/zylos/.claude/skills/comm-bridge/scripts/c4-send.js "void" "session-handoff" <handoff summary> EOF ``` The `void` channel is record-only: the message is stored in C4 conversation history (so the new session's startup hook, `c4-session-init`, includes it in startup context) but is never delivered to any real channel or display surface. Do not send the full handoff summary to the active external user channel (Telegram, Lark, Feishu, HXA, etc.). Handoff summaries are operational context for the next agent session and may contain task state from outside the current conversation. If the user is actively waiting, send only a short user-facing notice to their current `reply via` path, without internal task inventory or cross-channel context. ### 4. Enqueue Session Switch Command For Codex: ```bash node ~/zylos/.claude/skills/comm-bridge/scripts/c4-control.js enqueue --content "/exit" --priority 1 --block-queue-until-idle --no-ack-suffix ``` For Claude: ```bash node ~/zylos/.claude/skills/comm-bridge/scripts/c4-control.js enqueue --content "/clear" --priority 1 --block-queue-until-idle --no-ack-suffix ``` ## How It Works 1. **Early memory sync** (handled by context-monitor, not this skill): At 80% of the session-switch threshold, the context monitor triggers memory sync in the background. The new session's startup hook also checks for unsummarized conversations and triggers sync if needed — so memory sync is never lost, at most delayed by one session. 2. **Pre-switch checks**: Inventory background tasks, write handoff summary. 3. **Enqueue switch command**: Puts the runtime-specific command into the control queue (`/clear` for Claude, `/exit` for Codex) 4. **Deliver when idle**: Dispatcher delivers the command when idle 5. **Session switches**: - Claude: `/clear` resets conversation context, session-start hooks fire, and background subagents continue independently - Codex: `/exit` exits the current session so a fresh one can start 6. **New session**: Session-start hooks fire, including memory sync if unsummarized conversations exceed threshold.
From zylos-ai/zylos-core, MIT.
More from zylos-ai/zylos-core
- 0.828score
component-management
zylos-ai
Guidelines for managing zylos components via CLI and C4 channels.
SkillAFreshness: A★ 1.2KClaude Code +9 - 0.828score
upgrade-claude
zylos-ai
Upgrade Claude Code to the latest version with graceful shutdown and auto-restart.
SkillAFreshness: A★ 1.2KClaude Code +9 - 0.828score
scheduler
zylos-ai
Use when user wants to schedule tasks for future, recurring, or interval execution.
SkillAFreshness: A★ 1.2KClaude Code +9 - 0.828score
http
zylos-ai
Caddy-based web server providing web console hosting, file sharing, and health check endpoints.
SkillAFreshness: A★ 1.2KClaude Code +9 - 0.828score
health-check
zylos-ai
System health check dispatched by the activity monitor via Control queue.
SkillAFreshness: A★ 1.2KClaude Code +9 - 0.828score
comm-bridge
zylos-ai
C4 communication bridge — central gateway for ALL external communication (Telegram, Lark, etc.).
SkillAFreshness: A★ 1.2KClaude Code +9 - 0.828score
activity-monitor
zylos-ai
Guardian service that monitors the active runtime agent's state and automatically restarts it if stopped.
SkillAFreshness: A★ 1.2KClaude Code +9 - 0.828score
zylos-memory
zylos-ai
Core memory system.
SkillAFreshness: A★ 1.2KClaude Code +9 - 0.823score
create-skill
zylos-ai
Guide for creating effective skills.
SkillAFreshness: A★ 1.2KClaude Code +9 - 0.823score
web-console
zylos-ai
Built-in web interface for communicating with Claude without external services.
SkillAFreshness: A★ 1.2KClaude Code +9 - 0.822score
check-context
zylos-ai
Accurately check current context window and token usage.
SkillAFreshness: A★ 1.2KClaude Code +9 - 0.815score
shell
zylos-ai
CLI interactive mode channel.
SkillAFreshness: A★ 1.2KClaude Code +9
Signals
- Stars
- 1,159
- Forks
- 131
- Open issues
- 124
- Last commit (this folder)
- Jul 3, 2026 (3 months ago)
- Last release
- Oct 22, 2026 (6 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/zylos-ai/zylos-core
- Website
- zylos.ai
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from zylos-ai
- 0.828score
scheduler
zylos-ai
Use when user wants to schedule tasks for future, recurring, or interval execution.
SkillAFreshness: A★ 1.2KClaude Code +9 - 0.828score
http
zylos-ai
Caddy-based web server providing web console hosting, file sharing, and health check endpoints.
SkillAFreshness: A★ 1.2KClaude Code +9 - 0.828score
component-management
zylos-ai
Guidelines for managing zylos components via CLI and C4 channels.
SkillAFreshness: A★ 1.2KClaude Code +9 - 0.828score
upgrade-claude
zylos-ai
Upgrade Claude Code to the latest version with graceful shutdown and auto-restart.
SkillAFreshness: A★ 1.2KClaude Code +9 - 0.828score
zylos-memory
zylos-ai
Core memory system.
SkillAFreshness: A★ 1.2KClaude Code +9 - 0.828score
health-check
zylos-ai
System health check dispatched by the activity monitor via Control queue.
SkillAFreshness: A★ 1.2KClaude Code +9
Cite this page
new-session skill. Agent Mart. https://agentmart.dev/skills/zylos-ai-new-session (last updated 2026-10-24)