ClaudeMods
☰
KO
● 0 명 접속 중 · 조회 0 회
후원프로젝트 제출
GitHub 저장소 · 작성자 jamubc

redline

Claude 세션용 타코미터입니다. 바늘이 레드라인에 닿으면 새 세션 생성을 멈추고 진행 중인 작업을 마무리하세요.

번역 완료

이 mod 소개

redline

Claude를 한꺼번에 너무 많이 실행하고 있나요? 감당하기 벅찬가요? redline은 Claude Code 프롬프트 위에 게이지를 표시해 현재 작업 중인 세션 수를 세고 시간 계획을 돕습니다.

<img width="638" height="98" alt="image" src="https://github.com/user-attachments/assets/c7d1ae26-46c2-4222-be22-d6f85e3db13f" /> <img width="302" height="731" alt="image" src="https://github.com/user-attachments/assets/4e546a80-f59e-4ba1-a81e-f5f83e7b584f" />

새 Claude를 시작하지 말고 이미 실행 중인 작업을 끝내세요.

설치

마켓플레이스를 추가합니다.

/plugin marketplace add jamubc/toolbox

플러그인을 설치합니다.

/plugin install redline@toolbox

사용법

| 명령 | 기능 | | --- | --- | | UI Mod | 게이지와 레이블. | | /redline | 상세 보기를 전환합니다. | | /redline <0-25> | 데모: 활성화. | | /redline live | 데모: 비활성화 | | /config → Show the count at the bottom of the terminal | 레이블 전환 | | /config → Show the fuel gauges | 5H / 7D / CTX 다이얼 전환 |

연료 게이지

<details> <summary>전환하기 전에는 꺼져 있는 세 다이얼</summary> <br>

Show the fuel gauges를 켜면 다이얼이 3개 더 표시됩니다. 프롬프트 위 타코미터 옆과 패널 안 타코미터 아래에 표시됩니다.

| 다이얼 | 읽는 값 | | --- | --- | | 5H | 플랜의 5시간 속도 제한 창. | | 7D | 플랜의 7일 속도 제한 창. | | CTX | 대화가 커질수록 채워지는 이 세션의 컨텍스트. |

모든 다이얼에서 탱크가 사용될수록 바늘이 오른쪽, 레드존으로 움직입니다. 플랜 창은 줄어들므로 5H와 7D는 F(가득 참)에서 E(비어 있음)로 표시되고, 컨텍스트는 채워지므로 CTX는 E에서 F로 표시됩니다. 플랜 다이얼에는 구독이 필요하지만 CTX는 누구나 사용할 수 있습니다. 엔진에 읽을 값이 없는 다이얼은 어둡게 남습니다.

</details>

단계

<details> <summary>작업 중인 세션 수에 따른 단계</summary> <br>

| 작업 중 | 단계 | | --- | --- | | 0 | 휴식 | | 1–2 | 공회전 | | 3–5 | 순항 | | 6–8 | 바쁨 | | 9–12 | 매우 바쁨 | | 13–17 | 압박 상태 | | 18–20 | 레드라인 | | 21–24 | 과급 | | 25+ | 엔진 파손 |

</details>

실행하고 읽고 보내는 내용

redline은 컴퓨터에서 읽기 전용 프로그램 2개를 실행하며 어디에도 아무것도 보내지 않습니다. 네트워크 요청도 하지 않습니다.

| 프로그램 | 정확히 실행하는 내용 | 이유 | | --- | --- | --- | | ps | ps -x -o pid=,ppid=,tty=,args=를 2초마다 | 자신의 프로세스를 나열해 터미널의 claude 세션과 현재 턴 중인 세션을 찾습니다. | | ps | ps -x -o pid=,ppid=,tty=,command=를 세션마다 성공할 때까지 한 번 | 같은 표를 다른 형식으로 가져와 redline이 현재 세션을 구분하고 패널에 (this one)으로 표시하게 합니다. | | lsof | ps가 방금 찾은 claude 세션인 <pids>에 대해 lsof -a -d cwd -Fn -p <pids>를 2초마다 | 각 세션의 작업 디렉터리를 읽어 패널 옆에 표시합니다. |

  • 세션은 터미널에 연결된 claude 프로세스입니다. Claude Code가 caffeinate 자식 프로세스를 보유하는 동안 작업 중으로 계산되며, macOS에서는 턴 중에 이런 상태가 됩니다. Linux에서는 모든 세션이 유휴 상태로 읽힙니다.
  • 연료 게이지를 켜면 이 세션의 사용량(session.usage와 각 턴 뒤의 session.measure 이벤트)을 읽습니다. 컨텍스트 채움과 플랜 속도 제한 비율이며 상태 줄에 표시되는 값과 같습니다. 다이얼에 그려지고 이 세션의 플러그인 상태에 보관되며, redline이 디스크에 쓰거나 어디에도 보내지 않습니다.
  • 다른 프로세스를 시작, 중지하거나 변경하지 않습니다. 프로세스 표를 읽고 메모리에서 파싱한 뒤 버립니다.
  • 자체 /redline 명령에만 command.run을 연결해 패널을 열고 닫으며 데모 수를 설정합니다. 다른 명령은 보거나 변경하지 않습니다.
  • ui.close를 연결해 패널을 닫았는지 확인하고, session.start, session.end, session.measure도 연결해 /clear를 지나도 게이지가 올바르게 유지되게 합니다.

설치

먼저 작성자의 README에서 marketplace와 플러그인 이름을 확인하세요. 저장소 구조에 따라 명령어가 달라질 수 있습니다.

claude plugin marketplace add jamubc/toolbox
claude plugin install redline
원문 / README

redline

Too many Claudes going at once? Feeling overwhelmed? redline puts a gauge above your Claude Code prompt that counts how many of your sessions are working, so you can plan your time better.

<img width="638" height="98" alt="image" src="https://github.com/user-attachments/assets/c7d1ae26-46c2-4222-be22-d6f85e3db13f" /> <img width="302" height="731" alt="image" src="https://github.com/user-attachments/assets/4e546a80-f59e-4ba1-a81e-f5f83e7b584f" />

stop starting new Claudes and finish the ones already running.

Install

Add the marketplace:

/plugin marketplace add jamubc/toolbox

Install the plugin:

/plugin install redline@toolbox

Usage

| Command | What it does | | --- | --- | | UI Mod | gauge & labels. | | /redline | Toggles detailed view. | | /redline <0-25> | demo: enable. | | /redline live | demo: disable | | /config → Show the count at the bottom of the terminal | toggle labels | | /config → Show the fuel gauges | toggle the 5H / 7D / CTX dials |

Fuel gauges

<details> <summary>The three dials, off until switched on</summary> <br>

With Show the fuel gauges on, three more dials ride along: beside the tachometer above your prompt, and under it in the pane.

| Dial | What it reads | | --- | --- | | 5H | Your plan's five-hour rate-limit window. | | 7D | Your plan's seven-day rate-limit window. | | CTX | This session's context, filling as the conversation grows. |

On every dial the needle swings right, into the red, as its tank is used. The plan windows drain, so 5H and 7D read F (full) to E (empty); the context fills, so CTX reads E to F. The plan dials need a subscription; CTX works for everyone. A dial the engine has no reading for stays dim.

</details>

Stages

<details> <summary>Stages by sessions working</summary> <br>

| Working | Stage | | --- | --- | | 0 | Napping | | 1–2 | Idling | | 3–5 | Cruising | | 6–8 | Busy | | 9–12 | Very Busy | | 13–17 | Under Pressure | | 18–20 | Redline | | 21–24 | Overboost | | 25+ | Blown |

</details>

What it runs, reads and sends

redline runs two read-only programs on your machine and sends nothing anywhere. It makes no network requests.

| Program | Exactly what it runs | Why | | --- | --- | --- | | ps | ps -x -o pid=,ppid=,tty=,args=, every two seconds | Lists your own processes, to find the claude sessions in your terminals and which are mid-turn. | | ps | ps -x -o pid=,ppid=,tty=,command=, once a session until it succeeds | The same table in a second format, so redline can tell which session is this one and mark it (this one) in the pane. | | lsof | lsof -a -d cwd -Fn -p <pids>, every two seconds, where <pids> are the claude sessions ps just found | Reads each session's working directory, shown beside it in the pane. |

  • A session is a claude process attached to a terminal. It counts as working while Claude Code holds a caffeinate child process, which happens on macOS during a turn. On Linux every session reads as idle.
  • With the fuel gauges on, it reads this session's usage (session.usage, and the session.measure event after each turn): the context fill and your plan's rate-limit percentages, the same figures the status line has. They are drawn on the dials and kept in this session's plugin state; they are never written to disk by redline or sent anywhere.
  • It never starts, stops or changes another process. The process tables are read, parsed in memory and dropped.
  • It hooks command.run only for its own /redline command, which opens and closes the pane and sets the demo count. It does not see or change any other command.
  • It hooks ui.close to notice when you close its pane, and session.start, session.end and session.measure to keep the gauge right across /clear.

비슷한 프로젝트