Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add commands/baek-labs/hames/savegit clone --depth 1 https://github.com/baek-labs/hamesWhat it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00024 | $0.01158 |
| Opus 5 | $0.00012 | $0.00579 |
| Sonnet 5 | $0.00005 | $0.00232 |
| Haiku 4.5 | $0.00002 | $0.00116 |
Grade A, and why
save scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 117 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/save
Hames 루트의 모든 변경분(.gitignore 제외)을 한 번에 커밋하고 main에 push한다. 서브모듈이 이미 push된 상태라는 전제 위에서, 어떤 서브모듈이라도 unpushed/dirty 상태이면 즉시 멈춰 경고한다.
사용법
/save
인자 없음. 커밋 메시지는 자동 생성.
사전 조건
- CWD가 Hames 루트(
{{HAMES_ROOT}})여야 한다. - 현재 브랜치가
main이어야 한다.
실행 순서
Step 1 — 환경 검증
git rev-parse --show-toplevel
git branch --show-current
- 루트가 Hames 루트가 아니면 중단.
- 브랜치가
main이 아니면 "main 브랜치에서만 실행 가능" 출력 후 중단.
Step 2 — 서브모듈 안전 검증 (블로킹)
.gitmodules에 등록된 모든 서브모듈을 순회하며 두 항목을 확인한다. 하나라도 걸리면 즉시 중단하고 문제 서브모듈을 모두 모아 한 번에 보고한다.
git config --file .gitmodules --get-regexp path
각 서브모듈에 대해:
cd <submodule_path>
git status --porcelain # 출력이 있으면 더티
git rev-list --left-right --count '@{u}...HEAD' # 우측이 ahead
차단 조건:
git status --porcelain출력이 비어있지 않다 → "더티 워킹트리"- ahead > 0 → "unpushed commit 있음"
- upstream 미설정(
fatal: no upstream) → "upstream 미설정"
차단 시 출력 형식:
서브모듈 안전 검증 실패. push 중단.
- <path1>: 더티 워킹트리
- <path2>: unpushed commit 3개
이후 사용자에게 /subpush <path> 또는 직접 정리 후 재실행 안내.
Step 3 — 루트 변경 유무 확인
부정형 결론 안전장치: 아래 명령의 raw 출력을 화면에 그대로 박은 뒤에만 결론을 낸다. "변경사항 없음"이라는 부정형 결론을 raw 출력 표시 없이 내릴 수 없다.
cd {{HAMES_ROOT}}
git status --porcelain --untracked-files=all
- raw 출력을 그대로(요약·재해석 금지) 사용자에게 표시.
- raw 출력이 진짜로 0줄일 때만 "변경사항 없음" 후 종료.
- 1줄이라도 있으면 Step 4로 (gitlink 변경이 있든 없든 무관 — 루트 변경만 있어도 진행).
Step 4 — 일괄 스테이징
git add -A
Step 5 — 자동 커밋 메시지 생성
git diff --cached --name-only로 스테이지 목록을 받아 다음 규칙으로 메시지 결정:
- 변경이 서브모듈 gitlink 1개뿐:
chore: bump <path> gitlink - 변경이 서브모듈 gitlink 2개 이상이고 루트 파일 변경 없음:
chore: bump gitlinks (<path1>, <path2>, ...) - 그 외 (루트 파일 변경 포함 / 혼합 / 루트만):
chore: snapshot YYYY-MM-DD HH:MM(현지 시간)
git commit -m "<message>"
Step 6 — push
git push origin main
Step 7 — 검증 보고
git rev-list --left-right --count origin/main...HEAD
0 0이면 "save 완료 — " 한 줄.- 그 외엔 ahead/behind 숫자 + 다음 액션.
안전 규칙
- Step 2에서 서브모듈 하나라도 더티/unpushed/upstream 미설정이면 어떤 스테이징도 하지 않는다.
--force,--no-verify등 destructive 옵션 금지.- main 외 브랜치에서 호출되면 즉시 중단. 자동 브랜치 전환 금지.
- 자동으로
git pull/git stash시도하지 않는다. - 커밋 메시지에
Co-Authored-By추가하지 않는다.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2d ago First seen · 117 lines · 24 tokens per session scan A 9a4f99b24348
save is a command published in the GitHub repository baek-labs/hames (5 stars, last pushed 1mo ago), licensed MIT. It adds 24 tokens to every session and 1,158 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other commands, from other repositories
cost-tracker
Track session costs, understand token spend, and get optimization tips.
dispatcher
Pick the next-best repo to work on across the portfolio — rank free repos, recommend one, claim its lease atomically, and route to the entry command.
tldr
Re-apply TLDR rules for this turn (verdict first, no filler).
audit-plugin
Audit plugin skills, commands, and agents for structure, size, and naming issues.
tdd
TDD workflow - red-green-refactor per docs/methodology/tdd.md. Use when asked to '/tdd', 'TDD workflow', 'red-green-refactor', 'test-first development', 'write the failing test first'.
task
Delegate a task to Gemini CLI as a background or foreground job.