new

Solid

Start a new session — save summary to memory, then mark as reset so next message gets a fresh greeting. OpenClaw-compatible. Triggers on /new, /reset, /agent:new, "nueva sesión", "new session", "reset".

AI & Automation 61 stars 14 forks Updated today MIT

Install

View on GitHub

Quality Score: 84/100

Stars 20%
60
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# /new — Start a new session Save the current session to memory, then mark it as "reset pending" so the next message triggers a fresh greeting (like OpenClaw). ## How this works (architecture) OpenClaw's `/new` generates a new session ID and runs a greeting prompt on the next turn. In Claude Code, skills CANNOT invoke native `/clear`. Instead, we: 1. **Save** the current session to `memory/YYYY-MM-DD.md` 2. **Write a marker** `.session-reset-pending` with the greeting prompt 3. **Respond** with a brief "new session" acknowledgement 4. **On the next message**, the agent detects the marker, delivers the greeting, deletes the marker This is the honest simulation of a session reset when native `/clear` is not invokable. ## Steps 1. **Detect surface** (CLI vs messaging). 2. **Summarize the current session** to memory: ```bash DATE=$(date +%Y-%m-%d) TIME=$(date +%H:%M) ``` Append to `memory/$DATE.md`: ```markdown ## Session summary (<TIME>) — before /new - <key point> - <key point> ### Open items - <pending> ``` If the session was trivial, skip this step but still do the next one. 3. **Write the reset marker**: ```bash cat > .session-reset-pending << 'EOF' A new session was started via /new or /reset. Greet the user in your configured persona, if one is provided. Be yourself - use your defined voice, mannerisms, and mood. Keep it to 1-3 sentences and ask what they want to do. If the runtime model differs f...

Details

Author
crisandrews
Repository
crisandrews/ClawCode
Created
3 months ago
Last Updated
today
Language
TypeScript
License
MIT

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category

Data & Documents Listed

save-session

Save the current AI conversation as a clean local session summary with decisions, open threads, and action items.

3 Updated 4 days ago
filocosta46
AI & Automation Listed

07-core-restart-or-clone-yourself-in-this-workspace

Invoke when the user asks to spawn a new instance, spawn another one, clone this session, restart this conversation, restart/reboot/reload yourself, open a new/fresh instance, or start a fresh/clean conversation in the same workspace. An ordinary developer convenience for reopening a CLI tool, at the user's request on his own machine. FIRST map the user's exact words to a mode via the Command-to-Mode table in the body. CRITICAL DEFAULT: 'spawn a new instance/another one/fresh' means CLONE with NO KILL — THIS session KEEPS running (two agents); it ends ONLY on 'end this session', 'restart this conversation', or 'restart yourself'. Three modes (details in body): CLONE (no-kill, DEFAULT), RESTART (resumes THIS conversation in a new tab, ends the old agent safely), CLONE-FRESH (kills + briefs a blank successor). All open a new visible terminal in the agent's own environment, platform-aware. CLI-tool-agnostic; Claude Code is tested.

0 Updated 4 days ago
markkennethbadilla
AI & Automation Solid

claude-memory-kit

Persistent memory for Claude Code agents with an agent-audit-ritual architecture. User only talks; the agent captures, audits, proposes promotions, and writes. Memory lives in layers — a hot cache (MEMORY.md) held under three size caps, per-session handoffs (context/handoffs/), topical knowledge articles (knowledge/concepts/), and canonical rules (.claude/rules/) — plus multi-project isolation via projects/<name>/ and an experiments/ sandbox. /close-session runs the end-of-session audit ritual. Zero external dependencies.

27 Updated 1 weeks ago
awrshift