session-mode

Switch Claude Code session modes between strict, normal, and fast guardrails.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/DaichiHoshina/ai-tools --skill session-mode-daichihoshina
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: session-mode
Source: https://github.com/DaichiHoshina/ai-tools/tree/main/claude-code/skills/session-mode
Command: npx skills add https://github.com/DaichiHoshina/ai-tools --skill session-mode-daichihoshina

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Claude Code often needs different levels of guardrails within a single working session. This skill allows you to switch between strict, normal, and fast modes and keeps the chosen mode in Serena Memory for consistent behavior.

Core Features & Use Cases

  • Mode switching: transition between strict, normal, and fast modes with corresponding guardrails.
  • State persistence: Serena Memory stores the selected mode across actions within a session.
  • Controlled workflows: adjusts verification and prompts to balance safety and speed in development tasks.

Quick Start

Use the /protection-mode command to switch the current session mode to strict, normal, or fast.

Frequently Asked Questions about session-mode

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I switch guardrail levels within a single Claude Code session?

Switch guardrail levels within a Claude Code session by using the /protection-mode command to transition between strict, normal, and fast modes. This adjusts verification rules and execution prompts to balance safety and speed.

What is session mode switching for Claude Code?

Session mode switching is a mechanism for Claude Code that transitions between strict, normal, and fast execution modes. It adjusts guardrails, verification prompts, and execution flow while keeping the selected state in memory.

Does Claude Code keep the selected guard mode persistent across actions?

Yes, Claude Code keeps the selected guard mode persistent across actions by storing the state in Serena Memory. This ensures consistent guardrail enforcement and memory persistence throughout the working session.

When do I need different guardrails during code automation?

You need different guardrails during code automation when balancing safety and speed across varying development tasks. Transitioning to strict mode enforces heavy verification, while fast mode reduces prompts for rapid execution.

What do I need to set up mode transitions for Claude Code guardrails?

To set up mode transitions for Claude Code guardrails, you need a Serena Memory schema and mode transition definitions. These prerequisites govern guard behavior, execution flow, and file boundary checks.