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/ramsbaby/jarvis/codexgit clone --depth 1 https://github.com/Ramsbaby/jarvisWhat 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.00061 | $0.03425 |
| Opus 5 | $0.00030 | $0.01713 |
| Sonnet 5 | $0.00012 | $0.00685 |
| Haiku 4.5 | $0.00006 | $0.00343 |
Grade A, and why
codex 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 — 318 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/codex — 코드 작업 표준 프로토콜
정체성과 목적
주인님께서 코드 작업(기능 추가, 리팩터링, 버그 수정)을 요청하셨을 때, 즉흥적으로 파일을 고치지 않고 탐색 → 계획 → 수정 → 검증 → 보고의 일관된 6단계 프로토콜을 따르는 스킬입니다.
/codex는 "어떻게 작업하느냐"의 규율을 담보합니다. 산출물은 변경된 코드와 검증 증거, 그리고 학습 기록입니다.
기존 스킬과의 경계 (중요)
혼동을 막기 위해 명시합니다.
| 스킬 | 역할 | /codex와의 차이 |
|---|---|---|
/review |
이미 완료된 코드를 Dev+Reviewer 에이전트로 리뷰 | /codex는 진행 중 작업의 표준 절차 |
/sdd |
Task→Dev→Feature→인수테스트의 스펙부터 시작하는 프로세스 | /codex는 스펙이 이미 확정된 코드 작업의 절차 |
/investigate |
5 Why로 근본 원인을 파고드는 디버깅 | /codex는 원인이 파악된 뒤 수정 실행 절차 |
/simplify |
이미 작성된 코드의 단순화·재사용성 점검 | /codex는 신규·수정 작업 전체 사이클 |
판단 기준:
- 완성된 PR을 리뷰하고 싶다 →
/review - 새 기능을 스펙부터 만든다 →
/sdd - 원인을 모르는 장애를 추적한다 →
/investigate - 기능 추가·리팩터·버그 수정 코드 작업을 한다 →
/codex
Phase 0 — 사전 점검 (Jarvis 특화 3종 통합)
작업 시작 전 반드시 다음 3가지를 조회합니다.
0-1. 오답노트 스캔
LEARNED=$HOME/jarvis/runtime/wiki/meta/learned-mistakes.md
if [ -f "$LEARNED" ]; then
grep -i -E "<작업 도메인 키워드>" "$LEARNED" | head -10
fi
- 유사 실수 패턴이 있으면 Phase 3 수정 단계에 가드 체크리스트로 삽입
- 대표적 패턴 예: "3단계 파이프라인 부분 실행", "Virtual Thread + HikariCP 고갈", "좀비 캐시"
0-2. Eureka 재사용 패턴 검색
EUREKA=$HOME/jarvis/runtime/wiki/meta/eureka.jsonl
if [ -f "$EUREKA" ]; then
grep -i -E "<도메인 키워드>" "$EUREKA" | tail -5
fi
- 과거에 성공한 접근법이 있으면 우선 재사용 후보
- 없으면 신규 학습 수확 대상으로 표시
0-3. 조직도 포지셔닝
- 단순 국소 수정(파일 1~2개): 비서실장(Sonnet) 자율 진행 → L1 또는 L2
- 파이프라인·스키마·보안 영향: 비서실장 승인 필요 → L3
- 프로덕션 배포·데이터 삭제·결제 로직: 주인님 결재 필요 → L4
작업 범위가 L3~L4에 해당하면 Phase 2 계획 단계에서 승인 경로를 명시합니다.
Phase 1 — 탐색 (Glob → Grep → Read, 효율 우선)
원칙
- 전체 파일 Read 금지(최후 수단). 심볼 단위로 접근합니다.
- Serena 우선:
get_symbols_overview → find_symbol(include_body=true) → find_referencing_symbols순서. - Serena가 부적절한 파일 유형(MD, JSON, shell)이면 Glob → Grep으로 좁힌 뒤 필요한 부분만 Read.
기본 순서
1. Glob으로 대상 파일/디렉토리 후보 좁히기
예: Glob("src/**/*.service.ts")
2. Grep으로 키워드·심볼 위치 특정
예: Grep("deductBalance", type="ts", output_mode="content", -n=true)
3. Serena find_symbol로 의미 단위 조회
예: find_symbol("PaymentService/deductBalance", include_body=true)
4. 참조 관계 확인
예: find_referencing_symbols("PaymentService/deductBalance")
5. 필요한 부분만 Read (offset/limit 활용)
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 · 318 lines · 61 tokens per session scan A e5cd16ca0371
codex is a command published in the GitHub repository Ramsbaby/jarvis (15 stars, last pushed 9d ago), licensed MIT. It adds 61 tokens to every session and 3,425 once invoked, about $0.0003 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-30.
Other commands, from other repositories
bm-scan
Build or refresh the basemind index by running basemind scan via the CLI — works without the MCP server (use it when basemind reports "no index" / "no indexed files").
bm
Ask basemind anything about the current codebase — outlines, refs, callers, git history, blame, diffs, docs, memory.
harden
Run the real-OSS harden harness against the 8 canary repos.
serve
Start the basemind MCP stdio server.
bm-doctor
Diagnose and recover basemind when it isn't working (MCP tools missing/erroring, "no index", dead server) — runs CLI checks and gives the client-specific way to reconnect the server.
dream
Memory dream pass — judge undreamed days, promote durable signal to long-term, then sweep.