sap-session-start

sap-session-start is a command for Claude Code from BoxLogoDev/sapstack. It costs 40 tokens per session (1,857 once invoked), scanned A, original, MIT.

A command guide for starting an evidence-based SAP troubleshooting session. It records an initial symptom, creates a session ID, and prepares folders for evidence, hypotheses, requests, and conclusions.

In plain words
What is it for?
Use it to begin a SAP incident investigation from supplied files and symptoms, with optional country, release, deployment, language, and reporter details.
Why use it?
It gives a support investigation a consistent starting point and preserves the information needed to trace how a diagnosis was reached.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: mentions CLAUDE.md.

Good fit Use it to begin a SAP incident investigation from supplied files and symptoms, with optional country, release, deployment, language, and reporter details.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/boxlogodev/sapstack/sap-session-start
Install

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.

Clone the repo
git clone --depth 1 https://github.com/BoxLogoDev/sapstack

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for sap-session-start

README.md
[![agentmods](https://agentmods.dev/badge/commands/boxlogodev/sapstack/sap-session-start/github.svg)](https://agentmods.dev/commands/boxlogodev/sapstack/sap-session-start)
Your own site
<a href="https://agentmods.dev/commands/boxlogodev/sapstack/sap-session-start"><img src="https://agentmods.dev/badge/commands/boxlogodev/sapstack/sap-session-start/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for sap-session-start

Your own site · 80×15
<a href="https://agentmods.dev/commands/boxlogodev/sapstack/sap-session-start"><img src="https://agentmods.dev/badge/commands/boxlogodev/sapstack/sap-session-start.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,857 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What 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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00040 $0.01857
Opus 5.5 $0.00016 $0.00743
Sonnet 5.5 $0.00008 $0.00371
Haiku 4.5 $0.00004 $0.00186

Measured 1mo ago against content hash 05132cf5d987, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

sap-session-start 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 1mo 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.

commands/sap-session-start.md · 161 lines

How it starts

The opening of the file, as written. The whole thing — 161 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/sap-session-start — 새 Evidence Loop 세션 시작

입력: $ARGUMENTS

이 커맨드는 Evidence Loop의 Turn 1 INTAKE를 수행합니다. 라이브 SAP 접근 없이 운영자가 가져온 증거를 기반으로 진단을 시작하는 엔트리 포인트입니다.

🧭 동작 단계

1. 인자 파싱

  • 포지셔널 인자: 증상 설명 (최대 2000자). 자유 텍스트.
  • 옵션 플래그:
    • --country {iso} — ISO 3166-1 alpha-2 (kr, de, us, jp, ...). config.yaml에 기본값 있으면 생략 가능.
    • --release {code} — ECC6_EhP7, S4_2022 등. 스키마의 enum 참조.
    • --deployment {on_premise|private_cloud|public_cloud}
    • --language {ko|en|...} — 세션 전체 언어
    • --intake-files <path>... — 초기 Evidence Bundle 파일들 (선택적)
    • --reporter-role {end_user|operator|consultant}

2. 세션 ID 생성

sess-{YYYYMMDD}-{6자리 영숫자}

예: sess-20260412-m2p9xt

3. 파일 시스템 준비

.sapstack/sessions/{session_id}/
├── state.yaml           ← 새로 생성
├── bundles/             ← 빈 디렉토리
├── hypotheses/          ← 빈 디렉토리
├── requests/            ← 빈 디렉토리
├── verdicts/            ← 빈 디렉토리
└── files/               ← 빈 디렉토리

4. state.yaml 초기화

schemas/session-state.schema.yaml에 따라 다음 필드를 채워 새 파일 작성:

  • session_id, schema_version: "1.0.0", created_at, last_updated_at
  • created_by.role (기본값: operator)
  • originating_surface: cli
  • status: intake
  • initial_symptom:
    • description: 파싱된 포지셔널 인자
    • reporter_role: 플래그 or 기본값
    • language: 플래그 or 기본값 (config.yaml → ko)
    • country_iso: 플래그 or config.yaml 기본값
    • matched_symptom_index_entry: data/symptom-index.yaml과 fuzzy 매칭된 ID (매칭 없으면 null)
  • sap_context: 플래그와 config.yaml 병합
  • turns:
    • 첫 엔트리: turn_number: 1, turn_type: intake, status: active, surface: cli
  • current_turn_number: 1
  • audit_trail:
    • 첫 엔트리: session_created

5. 초기 Bundle 처리 (선택적)

--intake-files가 제공되면 즉시 Bundle 1개를 생성해 bundles/evb-*.yaml로 저장하고, 각 파일을 files/ 아래로 복사하며 SHA-256 해시를 계산해 evidence-bundle.schema.yaml에 맞는 메타데이터를 작성합니다.

자동 감지:

  • .txt, .log → kind: transaction_log 또는 message_text
  • .csv, .xlsx → kind: table_export
  • .png, .jpg → kind: screenshot
  • .html → kind: fiori_page_html

Read the full file on GitHub · 161 lines

Changes

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.

  1. 1mo ago First seen · 161 lines · 40 tokens per session scan A 05132cf5d987

Subscribe to this mod's changes

sap-session-start is a command published in the GitHub repository BoxLogoDev/sapstack (20 stars, last pushed 19d ago), licensed MIT. It adds 40 tokens to every session and 1,857 once invoked, about $0.0002 per session on Opus 5.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.