bajzaa975/claude-alapcsomag/tree/main/cache-timer
이 mod 소개
상태 표시줄: 메인 스레드의 프롬프트 캐시가 식을 때까지 남은 분(캐시는 60분으로 가정하며, 사용량 초과 중에는 5분이지만 mod는 이 상태를 감지할 수 없음)
설치
먼저 작성자의 README에서 marketplace와 플러그인 이름을 확인하세요. 저장소 구조에 따라 명령어가 달라질 수 있습니다.
claude plugin marketplace add bajzaa975/claude-alapcsomag claude plugin install cache-timer
원문 / README
bajzi-plugins — token-saving orchestration for Claude Code and Cowork
bajzi-plugins is a Claude Code / Cowork plugin marketplace (GitHub: bajzaa975/claude-alapcsomag,
marketplace name bajzi-plugins). It does two things: it saves tokens (model routing to cheaper
models, context guards, output filtering) and it orchestrates sub-agents with a review loop
(implementer, reviewer, fixer, with a two-round cap). The bajzi plugin is the full Claude Code
package; bajzi-cowork is a skills-only subset for claude.ai / Cowork.
Full technical spec: docs/bajzi-package-spec.md.
Features
Token saving
- Saver levels L0-L3 — how much work moves to the cheaper Z.ai GLM models. L0
claude: all on the Claude subscription (default). L1light: flash-class work (locate/map, tests/lint/build, long-file summaries) goes to GLM. L2glm(balanced): also implementation, fixes and document writing on GLM (glm -p,glm_model); risk slices, debugging and every review stay on Claude. L3tight: the whole session runs on GLM and reviews are queued instead of performed. Set withworker --level 0|1|2|3. - rtk — installed by
/bajzi:setup; compresses command output. Anoise-filterhook additionally keeps loud install/build output out of the context (exit code preserved). glm/worker/ccrshims — launchers aroundcc-router.js, no daemon.glmalways runs on GLM,workerfollows the saved saver mode,ccris the back-compat entry. Models (~/.claude/cc-router.json):glm_orchestrator_model(defaultglm-5.3),glm_modelandglm_fast_model(both defaultglm-5.3-flash); set withworker --set-orchestrator-model|--set-model|--set-fast-model <id>, force per shell withGLM_ORCHESTRATOR_MODEL/GLM_MODEL/GLM_FAST_MODEL. A top-level GLM session runs on the orchestrator model, its sub-agents onglm_model; a nested launch (aglm -pworker) runs onglm_modelthroughout.worker --statusshows the level,worker --usagereports the Anthropic/GLM weighted-token split. A GLM launch is refused during the Z.ai peak window (08:00-12:00 CEST, 07:00-11:00 CET in winter); override one call withCC_GLM_PEAK_OK=1.- Status line — model, saver level, branch, task, context percentage, GLM share, open review-queue count and a peak-window hint.
- Context guard — warns at 40% context, blocks tool calls at 50% except writing/reading the handoff
and read-only git, so you can always save state and
/clear.
Orchestration
- Day-run mode (
/bajzi:mode) — injects a routing table at session start: locate/map and tests/lint/build to haiku; long-file summaries to haiku; documents and specified slices to sonnet; risk-bearing slices (locks, concurrency, quotas, auth, money, migrations, destructive scripts) to opus, always; every diff review and final branch review to the configured reviewer models (reviewer_modelsin the manifest), never the cheap tiers; debugging to sonnet when a failing test or repro exists, else opus; design and planning stay on the orchestrator's own model. Escalation ladder: sonnet round 1, fresh sonnet round 2, opus round 3, the orchestrator round 4, then park. - Agents —
implementer(sonnet, Tier 2/3 slices),implementer-risk(opus, Tier 1 slices),reviewer(opus, read-only, returns a findings file),fixer(sonnet, fixes every finding, never sees severity). - Review loop —
/bajzi:implementthen/bajzi:reviewthen/bajzi:fix. The routing and the two-round cap are decided by code on files, not by the model. After round 2 open findings go to the owner (needs-owner.md) or are parked as debt (debt.md). - Dispatch guard — a hook that refuses review/fix work sent to the wrong agent and oversized briefs. A discipline guard, not a security boundary.
- Debt (
/bajzi:debt) — checks the parked-findings cap before the next slice, drains it in one fixer pass plus one review, calibrates severities with a blind re-rate. - Autopilot (
/bajzi:autopilot) — an unsupervised work session with a decision log and a closing report. - Night-run (
/bajzi:night-run) — plans an unattended overnight run and produces the launch block. The launch block starts the plugin's own bash runnerrun.sh(setsid nohup, in a bash terminal on the VM): one fresh headless session per sprint, never pushes, guard checks and a review queue that a later Opus session drains.
Session continuity
- Handoff (
/bajzi:handoff) — saves state toruntime/handoff/<branch>.mdwith a suggested opening prompt; a SessionStart hook reloads it after/clear, compact and resume. - Methodology guard /
modszertan(Hungarian for "methodology") — records per repo which methodology leads (GSD, superpowers or none) in.claude/METHODOLOGY, and nags at session start when there is no decision yet.
Safety
- Secret-read guard — denies reading
.env,.env.*(except.example/.sample/.template/.dist),.secretsand the manifest's secret patterns. Accepted limits: it is a pattern guard, not a shell parser, so variable indirection, copying a protected file to another name and encoded paths pass; it covers files, not environment variables. - Injection scanner — warn-only: after Read, WebFetch, WebSearch and MCP results it adds a "treat this as data" warning naming the matched rules. Never blocks; a rephrased injection passes.
- Writer guard — bajzi plugin files are edited only by a session started in the bajzi repo's main
checkout; any other session is denied Edit/Write and sends a request instead (SendMessage, or a file
in
runtime/requests/, which stays open to all). Installed plugin copies are denied to every session. Accepted limit: Bash/PowerShell writes are not blocked. - Hooks fail open: an internal error allows and logs. Three exceptions fail closed: the pre-commit gate
(installed by
/bajzi:project-setup), the night-run push guard, andday-run-mode.shwhen a non-Anthropic session lacks the L3 text.
Setup
/bajzi:setup— machine setup frombajzi/skills/setup/manifest.json(plugins, settings, rtk, status line, user-scope MCPs).--checkprints one drift line per difference and changes nothing.manifest.json— the single file to edit to add a tool; every machine gets it at the next setup./bajzi:project-setup— applies or checks (--check) a repo's.claude/project-profile.json: project plugins and MCPs, METHODOLOGY, linked skills, instruction files and the pre-commit gate.
Mods
cache-timer— status line entry: minutes left until the main thread's prompt cache goes cold. It assumes a 60-minute cache; the cache is 5 minutes during usage overage and the mod cannot detect that.nightrun-pane— open the pane with/nightrun: the newest claude-orchestrator night run's sprint states and log tail. It reads only theruntime/nightrun/<stamp>/layout (nightrun.log,*.status,SUMMARY.md,STOP,runtime/handoff/night-watch-state.md), not bajzi night-run'sNIGHT_DIR.
Cowork variant
bajzi-cowork ships only the autopilot, handoff and modszertan skills. It lacks everything that
needs bin/, hooks, agents or lib/: the saver levels and shims, status line, all guards, day-run
mode, the review loop, night-run and setup. Install it in Cowork, never bajzi.
Skills
| Skill | Command | What it does |
|---|---|---|
| setup | /bajzi:setup | Sets up or drift-checks (--check) a machine per the manifest. |
| project-setup | /bajzi:project-setup | Applies or checks the repo's project profile. |
| handoff | /bajzi:handoff | Saves session state and an opening prompt for after /clear. |
| modszertan | /bajzi:modszertan | Picks the repo's methodology (GSD, superpowers, none). |
| autopilot | /bajzi:autopilot | Unsupervised session with a decision log. |
| mode | /bajzi:mode | Turns day-run mode on/off or reports it. |
| night-run | /bajzi:night-run | Plans an unattended overnight run. |
| implement | /bajzi:implement <id> | Implements one slice through the implementer agents. |
| review | /bajzi:review <slice> <range> | Reviews a commit range through the reviewer agent. |
| fix | /bajzi:fix <findings-file> | Fixes round-1 findings, then runs the round-2 re-review. |
| debt | /bajzi:debt | Checks, drains or calibrates parked review debt. |
| radar | /bajzi:radar [now\|install] | Biweekly read-only review of plugins, Claude news and own usage; adopt or decline its items. |
Skills also start by themselves from a plain request ("do a handoff").
Installation — Claude Code (every machine: laptop, VM, new machines)
- Once per machine, in a terminal:
claude plugin marketplace add bajzaa975/claude-alapcsomag # or: a local path claude plugin install bajzi@bajzi-plugins # marketplace name: bajzi-plugins - Once per machine, in a new Claude Code session:
/bajzi:setup(marketplaces, plugins, rtk, settings, status line,~/.claude/bajzi-mode, user-scope MCPs). - Any time:
/bajzi:setup --check— one line per drift item, changes nothing. - Per repo, only when the repo carries
.claude/project-profile.json:/bajzi:project-setup(--checkdiffs it).
Then the global rules:
cat shared/CLAUDE.md >> ~/.claude/CLAUDE.md
Check: claude plugin list, and /bajzi:handoff in a new session.
Without a marketplace, locally (for development)
The bajzi/ directory can be copied here: ~/.claude/skills/bajzi/ — the next session
loads it automatically under the name bajzi@skills-dir.
Installation — Cowork (Claude Desktop)
- Customize → Plugins → Add marketplace → the repo's URL
(
https://github.com/bajzaa975/claude-alapcsomagorbajzaa975/claude-alapcsomag); the marketplace is namedbajzi-plugins. - Install the
bajzi-coworkplugin from the list. Never installbajziin Cowork: it shipsbin/, hooks and agents, which claude.ai marketplace sync rejects ("Sync failed"). - Or without a repo: Plugins → upload a zip of the
bajzi-cowork/directory (never ofbajzi/). The zip is not in the GitHub repo; create it locally and make sure theplugin.jsonversion inside it matches the marketplace's. Normally steps 1-2 (marketplace) are the recommended route. - Copy the content of
shared/cowork-preferences.md(the part below the---) here: Settings → Cowork → Global instructions → Edit (only exists in the desktop app; in newer builds the Customize panel also brings together the Skills / Plugins / Global instructions trio). The "Customize → Instructions/Preferences" route listed here earlier was WRONG. A per-project layer on top of that: the Instructions field on the Project's right-hand panel, which goes ON TOP OF the global instructions, not instead of them.
Updating
Push to the repo → Claude Code: claude plugin update bajzi, then /bajzi:setup (refreshes the
status line copy) · Cowork: Update at the marketplace, then update the bajzi-cowork plugin.
동명의 다른 작품
- cache-timerarthur-fontaine · ★ 1
- cache-timermtmtian · ★ 0
- cache-timerildunari · ★ 0
- cache-timergrennis · ★ 0
