---
title: "做了一个模组，让 Claude 工作时我不再分心玩手机"
url: "https://claudemods.dev/zh-cn/builds/made-a-mod-so-i-stop-drifting-to-my-phone-while-claude-works-dd1540"
source: "https://github.com/leonidb/claude-code-mods/tree/main/mods/twenty-forty-wait"
source_type: "github"
repo: "https://github.com/leonidb/claude-code-mods/tree/main/mods/twenty-forty-wait"
author: "agent_ux"
author_handle: "agent_ux"
stars: 1
category: "游戏与娱乐"
categories: ["games"]
tags: ["2048", "haiku-summary", "hooks", "plugin", "statusline"]
permission_level: 3
scan_complete: true
install: "claude plugin marketplace add leonidb/claude-code-mods\nclaude plugin install twenty-forty-wait@leonidb"
added: "2026-10-16T16:58:28.398Z"
updated: "2026-10-16T18:19:57Z"
locale: "zh-cn"
content_locale: "zh-cn"
---

# 做了一个模组，让 Claude 工作时我不再分心玩手机

Reddit 上展示的 twenty-forty-wait Claude Code 插件，它在提示符上方放置一个 2048 游戏，让用户在 Claude 工作时保持参与，并在回合结束时显示由 Haiku 生成的“YOUR TURN”摘要。

## Description

这篇帖子分享了一个个人 Claude Code 模组，它在输入提示符上方添加了一个可玩的 2048 棋盘，与 Claude 的输出并排显示，用户可以随时切回。当一个回合结束时，游戏锁定，棋盘旁边会出现简短的“✓ YOUR TURN”摘要；对于 10 秒或更长的回合，Claude Haiku 会在用户自己的会话中根据 Claude 的最终回复生成摘要，不会将任何其他内容发送到任何地方。作者描述了两阶段构建（原型，然后从零开始重写，包含测试和设计指南），指出在游戏和打字之间切换是难点，并且目前还没有进入游戏的键盘快捷键，并报告 Haiku 摘要几乎总是在 5 秒倒计时内完成。安装方式为 /plugin install twenty-forty-wait --marketplace leonidb/claude-code-mods，使用 /fortywait 切换（Claude Code 2.1.289+），仓库位于 github.com/leonidb/claude-code-mods。

## Install

```
claude plugin marketplace add leonidb/claude-code-mods
claude plugin install twenty-forty-wait@leonidb
```

## Original README

Have you ever run a command, then switched to your phone while waiting for the answer? Guilty as charged. So I made myself a small mod that keeps my attention close to the thread that matters: a 2048 game right above the prompt. 2048 is a good fit for this: it takes as much or as little attention as you like, and you can leave mid-game and come back later. It doesn't hide the work: you still see Claude's output and can jump back to the chat at any moment. When the turn ends, the game locks and a short ✓ YOUR TURN summary appears next to the board. For turns of 10 seconds or more, Claude Haiku writes it from Claude's final reply, through your own session. Nothing else is sent anywhere. How I built it 2 phases - quick prototype until I felt I like the UX and switching to and from the game felt natural. Then the game was rewritten from scratch, with proper guidelines on tests, design etc., using the prototype only as a UX reference. Claude Code wrote all the code, both phases. What I learned The game was the easy part. The harder part is switching between playing and typing. I wanted a keyboard shortcut into the game, but for now there's no way around clicking it with the mouse. Summarizing with Haiku worked better than I expected. I was afraid it will take too long and will randomly get stuck. Haiku 5.5 is quick and does a good job, and the summary almost always lands within the 5-second countdown I use to snap out of the game. /plugin install twenty-forty-wait --marketplace leonidb/claude-code-mods Then /fortywait to show or hide it (Claude Code 2.1.289+). https://github.com/leonidb/claude-code-mods/tree/main/mods/twenty-forty-wait   submitted by   /u/agent_ux   to   r/ClaudeCodeMods [link]   [comments]
