Install
$ agentstack add skill-amadeus-dlc-amadeus-amadeus-session-cost ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
AI-DLC Session Cost
Purpose
Give the team a transparent, deterministic view of what the current workflow has consumed: how long it has run, how many stages have cleared their gates, how much the orchestrator wrote to its observation diaries, how often sensors fired, and how many learnings were captured.
Every number this skill prints comes from bun .codex/tools/amadeus-runtime.ts summary --json — the materialised, event-sourced view over runtime-graph.json. This skill does no counting of its own. It does not estimate tokens, does not walk the artefact tree, and does not read audit.md. If a number isn't in the tool's output, this skill does not invent it.
Classification
Read-only. This skill never advances the workflow stage pointer, never emits an audit event, and never writes a file. It is safe to run at any point in a workflow, including mid-stage.
Steps
Step 1: Read the aggregates
Run:
bun .codex/tools/amadeus-runtime.ts summary --json
If the command exits non-zero (no runtime-graph.json yet — the workflow hasn't compiled a graph), print:
No session data yet.
Session cost becomes available once a workflow has started and its
first stage transition has compiled runtime-graph.json. Run /amadeus to
begin, then re-run /amadeus-session-cost.
and STOP.
Otherwise parse the JSON. The shape is:
{
"workflow_id": "...", // ISO timestamp of the live workflow
"scope": "...",
"started_at": "...",
"duration_minutes": 40, // null when nothing has completed yet
"stages": { "total": N, "approved": N, "failed": N, "pending": N },
"by_phase": { "": { "total": N, "approved": N, "failed": N, "pending": N }, ... },
"memory": { "total": N, "interpretations": N, "deviations": N, "tradeoffs": N, "open_questions": N },
"sensors": { "total": N, "passed": N, "failed": N, "budget_override": N, "incomplete": N },
"learnings":{ "from_orchestrator": N, "from_user_addition": N }
}
Step 2: Render the report
Print the fields verbatim — do not recompute, round, or re-estimate any value. Use in progress when duration_minutes is null.
Session Cost
============
Workflow: {workflow_id}
Scope: {scope}
Duration: {duration_minutes} min (or "in progress")
Stages
Total: {stages.total}
Approved: {stages.approved}
Failed: {stages.failed}
Pending: {stages.pending}
By phase
{phase} {approved}/{total} approved[, {failed} failed][, {pending} pending]
...
Memory entries
Total: {memory.total}
Interpretations: {memory.interpretations}
Deviations: {memory.deviations}
Trade-offs: {memory.tradeoffs}
Open questions: {memory.open_questions}
Sensors
Fired: {sensors.total}
Passed: {sensors.passed}
Failed: {sensors.failed}
Budget-override: {sensors.budget_override}
Incomplete: {sensors.incomplete}
Learnings captured
From orchestrator: {learnings.from_orchestrator}
From user additions: {learnings.from_user_addition}
Step 3: Surface advisory notes (optional, narrative only)
You may add a short narrative note after the table — for example, flagging that many stages are still pending, or that sensors are firing incomplete often. Keep it to one or two sentences and base it only on the numbers above. Do not invent metrics the tool did not report.
> Note on tokens: this skill deliberately does not print a token > estimate. The retired file-size-to-token heuristic was guesswork > dressed as data. If you need real token accounting, read it from your > Claude Code session, not from a file-size approximation.
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: amadeus-dlc
- Source: amadeus-dlc/amadeus
- License: Apache-2.0
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.