save

save is a command for coding agents from avelikiy/great_cto. It costs 26 tokens per session (1,854 once invoked), scanned A, original, MIT.

A command that records the current development session in a compact Markdown log. It captures recent work, decisions, open tasks, and useful project context so another session can resume quickly.

In plain words
What is it for?
Use it at the end of a session to save a short summary under the project's session logs, based on the conversation, git history, and open tasks.
Why use it?
It reduces the need to reconstruct what happened from conversation history and git changes. An optional mode can also commit and push the work.

Command

Part of the great-cto plugin — 39 skills, 44 commands, 72 agents shipped together

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/avelikiy/great_cto/save
Clone the repo
git clone --depth 1 https://github.com/avelikiy/great_cto

Or install great-cto, the plugin that ships this one along with the rest of its 39 skills, 44 commands, 72 agents.

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 save

README.md
[![agentmods](https://agentmods.dev/badge/commands/avelikiy/great_cto/save.svg)](https://agentmods.dev/commands/avelikiy/great_cto/save)
Your own site
<a href="https://agentmods.dev/commands/avelikiy/great_cto/save"><img src="https://agentmods.dev/badge/commands/avelikiy/great_cto/save.svg" alt="Measured on agentmods" height="20"></a>
Per session 26 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,854 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.00026 $0.01854
Opus 5 $0.00013 $0.00927
Sonnet 5 $0.00005 $0.00371
Haiku 4.5 $0.00003 $0.00185

Measured yesterday against content hash 1321455f5813, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

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

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/save.md · 213 lines

How it starts

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

You are the great_cto /save command. Your job is to create a compact, useful session log that makes /resume fast next time. Write, don't ask — infer everything from the conversation and git.

Step 1 — Gather session data (run all in parallel)

# What changed in git during this session
git diff --stat HEAD 2>/dev/null | head -20
git log --oneline --since="8 hours ago" 2>/dev/null | head -10

# Current open tasks
cat .great_cto/tasks.md 2>/dev/null | grep -E "^\- \[.\]" | head -20

# Existing logs (to auto-number)
ls .great_cto/logs/session-*.md 2>/dev/null | wc -l

# Project name + phase
grep -E "^# |^phase:|^primary:" .great_cto/PROJECT.md 2>/dev/null | head -3

Step 2 — Infer session description

If the user provided $ARGUMENTS — use that as the session description.

Otherwise infer from:

  1. Git commits made during this session (last 8 hours)
  2. What was discussed/built in this conversation
  3. File changes visible in git diff --stat

Keep the description to 3–5 words: "implemented auth flow", "fixed streaming archetype", "added regulated auto-detect".

Step 3 — Write session log

mkdir -p .great_cto/logs
DATE=$(date +%Y-%m-%d)
TIME=$(date +%H:%M)
SLUG=$(echo "<session-description>" | tr ' ' '-' | tr '[:upper:]' '[:lower:]' | sed 's/[^a-z0-9-]//g' | cut -c1-40)
LOG_FILE=".great_cto/logs/session-${DATE}-${SLUG}.md"

Write $LOG_FILE:

---
date: <YYYY-MM-DD>
time: <HH:MM>
duration: <estimated from conversation length — "~30 min" / "~2 h">
concepts: [<keyword1>, <keyword2>, <keyword3>]
---

# Session: <description>

## Done

- <bullet: what was actually implemented / fixed / decided>
- <bullet: second thing>
- <bullet: third thing if applicable>

## Decisions

- <any explicit decisions made — e.g. "decided to use X over Y because Z">
  *(none)* — if nothing was explicitly decided

## Pending

- <what was left unfinished or is the clear next step>
- <second pending item if any>

## Files changed

<output of git diff --stat HEAD or "no git changes">

## Commits

<git log --oneline --since="8 hours ago" output, or "no commits this session">

Read the full file on GitHub · 213 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. yesterday First seen · 213 lines · 26 tokens per session scan A 1321455f5813

Subscribe to this mod's changes

save is a command published in the GitHub repository avelikiy/great_cto (89 stars, last pushed today), licensed MIT. It adds 26 tokens to every session and 1,854 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-09-03.