Claude Code session

Claude Work Mode

Session work modes for Claude Code: /work-mode auto | out | wrap, with optional gates

58 stars 4 forksSessions & history Plugin marketplace Source

Install

Add the plugin marketplace
/plugin marketplace add danyuchn/claude-work-mode

Run inside Claude Code, then /plugin to pick what to install from it.

Inside Claude Code
/plugin install work-mode --marketplace danyuchn/claude-work-mode

Found in the project README. Check it for setup steps after installing.

From source
git clone https://github.com/danyuchn/claude-work-mode.git

From the README

claude-work-mode

繁體中文

Session work modes for Claude Code, switched with one slash command:

Modes are per session, combine freely (/work-mode auto wrap), and wrap wins over out when both are typed. A bare /work-mode opens a multi-select picker. The mode text reaches the model once (with the next tool result or prompt) and again only after a compaction or resume, so it does not bloat every turn.

Demo (60s Walkthrough)

Click the preview above to play the 60-second walkthrough video demonstrating behavioral changes across all three modes.

Install

Answer y to add the marketplace, then pick a scope. Optional gates:

Requirements: Claude Code with function-hook plugins (2.1.314 or later). The gates need bash, jq, git and python3.

The optional gates (work-mode-gates)

The modes are written to ~/.claude/state/tempo/ so shell hooks can read them. hooks/lib/tempo-auto.sh gives a gate two helpers: tempo_auto_on "$INPUT" and tempo_deny "". Under auto, a gate that would ask denies instead, with a reason telling the model what to do, so work continues without a prompt. The plugin ships three gates:

Use tempo-auto.sh in your own gates for anything you want converted. Keep real hard stops (secrets, force pushes, deploys) out of it: they should ask in every mode.

Configuration (optional)

Everything works with no config. Language follows, in order: WORK_MODE_LOCALE, the Claude Code language setting (anything mentioning Chinese picks Traditional Chinese), then LC_ALL / LANG; English otherwise.

To personalise, create ~/.config/work-mode/config.json (or point WORK_MODE_CONFIG at a file). See examples/config.example.json. Every field is optional:

The decision-label gate reads the same file for its heading and labels; without one it accepts both the English and the Chinese label…
Read the full README on GitHub

Details

Language
TypeScript
License
MIT
Last updated
8 November 2026

FAQ

What is Claude Work Mode?

Session work modes for Claude Code: /work-mode auto | out | wrap, with optional gates It is a session for Claude Code, from danyuchn/claude-work-mode on GitHub.

How do I install Claude Work Mode?

Run /plugin install work-mode --marketplace danyuchn/claude-work-mode inside Claude Code, then follow the setup in the README.

Is Claude Work Mode popular?

danyuchn/claude-work-mode has 58 GitHub stars and 4 forks. It was last updated on 8 November 2026.

More sessions & history

Browse the most popular Claude Code mods, all sessions & history, or the skills and MCP server directories.