new

new is a skill for Claude Code from crisandrews/ClawCode. It costs 54 tokens per session (866 once invoked), scanned A, original, MIT.

A session-reset command that saves a short summary of the current conversation and prepares the next message to start fresh.

In plain words
What is it for?
It is for starting over with commands such as /new or /reset while keeping session notes for later reference.
Why use it?
It lets you begin a new working session without losing a record of the previous one, even when the agent cannot use its built-in clear command.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: mentions Claude Code; built for openclaw.

Part of the agent plugin — 21 skills, 10 hooks, 1 MCP server shipped together

Good fit It is for starting over with commands such as /new or /reset while keeping session notes for later reference.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/crisandrews/clawcode/new
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add crisandrews/ClawCode --skill new
Clone the repo
git clone --depth 1 https://github.com/crisandrews/ClawCode

Made for: Claude Code.

Or install agent, the plugin that ships this one along with the rest of its 21 skills, 10 hooks, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for new

README.md
[![agentmods](https://agentmods.dev/badge/skills/crisandrews/clawcode/new/github.svg)](https://agentmods.dev/skills/crisandrews/clawcode/new)
Your own site
<a href="https://agentmods.dev/skills/crisandrews/clawcode/new"><img src="https://agentmods.dev/badge/skills/crisandrews/clawcode/new/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for new

Your own site · 80×15
<a href="https://agentmods.dev/skills/crisandrews/clawcode/new"><img src="https://agentmods.dev/badge/skills/crisandrews/clawcode/new.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 866 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00054 $0.00866
Opus 5.5 $0.00022 $0.00346
Sonnet 5.5 $0.00011 $0.00173
Haiku 4.5 $0.00005 $0.00087

Measured 3mo ago against content hash 93151f54f960, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

new scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/new/SKILL.md · 96 lines

How it starts

The opening of the file, as written. The whole thing — 96 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/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:

    DATE=$(date +%Y-%m-%d)
    TIME=$(date +%H:%M)
    

    Append to memory/$DATE.md:

    
    ## 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:

    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 from default_model in the system prompt, mention the default model. Do not mention internal steps, files, tools, or reasoning.
    EOF
    

    (This is the EXACT prompt from OpenClaw's session-reset-prompt.ts)

  4. Respond briefly per surface:

CLI

🔄 New session started. Summary saved to memory/<DATE>.md.

Send a message to receive the welcome greeting.
(Or if you also want to clear the REPL context, run /clear afterward.)

WhatsApp

🔄 *Session reset*. Send a message and I'll greet you again 👋

Read the full file on GitHub · 96 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 96 lines · 54 tokens per session scan A 93151f54f960

Subscribe to this mod's changes

new is a skill published in the GitHub repository crisandrews/ClawCode (64 stars, last pushed yesterday), licensed MIT. It adds 54 tokens to every session and 866 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

new compared with skills from other repositories

new next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
newcrisandrews/ClawCodeSkill64yesterdayMITA54Claude Code
compact-adviserkunchenguid/compact-adviserSkill2363d agoMITA77Claude Code, Codex
alive-morningalivecontext/aliveSkill13216d agoMITA24Claude Code, Codex
fresh-startegorfedorov/claude-context-optimizerSkill1442d agoMITA60Claude Code
token-checkegorfedorov/claude-context-optimizerSkill1442d agoMITA66Claude Code
promotewrg32786/aigent-osSkill26todayMITA33Claude Code, Codex
openwrg32786/aigent-osSkill26todayMITA29Claude Code, Codex