sap-session-start

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

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.

agentmods
npx agentmods add commands/boxlogodev/sapstack/sap-session-start
Clone the repo
git clone --depth 1 https://github.com/BoxLogoDev/sapstack
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. Scan, not verified.
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 $0.00040 $0.01857
Opus 5 $0.00020 $0.00928
Sonnet 5 $0.00008 $0.00371
Haiku 4.5 $0.00004 $0.00186

Measured 2d ago against content hash 05132cf5d987, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 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.

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 LoopTurn 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, .logkind: transaction_log 또는 message_text
  • .csv, .xlsxkind: table_export
  • .png, .jpgkind: screenshot
  • .htmlkind: 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. 2d 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 (18 stars, last pushed 2d ago), licensed MIT. It adds 40 tokens to every session and 1,857 once invoked, about $0.0002 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.

Related

Other commands, from other repositories

eval-author

Draft a new eval case (eval/cases/ .json) + scaffold its golden folder, goldenpending until captured on the VM.

dynamics365ninja/d365fo-mcp-server · 28 tokens

eval-improve

Work the eval-loop corpus — rank failure clusters, fix the top actionable defect, validate against held-out, open a PR.

dynamics365ninja/d365fo-mcp-server · 25 tokens

eval-run

Run an eval case end-to-end on the VM (implement → build → score → record → roll back). VM/full-mode only.

dynamics365ninja/d365fo-mcp-server · 27 tokens

research-l2

Executes Phases 1-3 of the L2 process of the abapwiki knowledge base on a slice: launches the abap-functional-researcher sub-agent (gap discovery + multi-source auto-research: wiki -> raw/docs -> MCP abap-fs on the system read-only -> standard knowledge), ingests gaps and evidence, and generates questionnaires for…

Gixsy95/abap_wiki · 111 tokens

ingest-l0

L0 bootstrap of the abapwiki knowledge base: creates stubs for all custom objects from the TADIR. Use this skill to initialize the repo from scratch or to ingest a new TADIR export. Deterministic operations (no LLM sub-agent), idempotent.

Gixsy95/abap_wiki · 59 tokens

ingest-l1

L1 analysis loop for the abapwiki knowledge base: for each batch it launches the abap-analyzer sub-agent in parallel, then the adversarial judge abap-deepcheck (separate session), applies only the analyses that pass the fail-closed gate, and commits. Resumes exactly after an interruption. Use this skill to document…

Gixsy95/abap_wiki · 86 tokens