aedt-bias-audit
HR-AI / AEDT bias audit. Invokes hr-ai-reviewer to assess NYC LL 144, EEOC, Illinois AIVIA, Colorado SB 205, EU AI Act Annex III applicability and produce…
Save current session. Writes a session log with what was done, decisions made, and what's pending. Optional: commit & push.
> /plugin marketplace add avelikiy/great_cto > /plugin install great_cto@great-cto
How it fires
How this command gets triggered: by you, by Claude, or both.
/saveContext preview
What this command does when you run it.
Save current session. Writes a session log with what was done, decisions made, and what's pending. Optional: commit & push.
description: "Save current session. Writes a session log with what was done, decisions made, and what's pending. Optional: commit & push." argument-hint: "[description] — e.g. 'implemented auth flow' (auto-inferred if omitted)" user-invocable: true allowed-tools: Read, Write, Bash, Glob, Grep model: haiku
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.
# 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
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"`.
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">
**Concepts field rules** (enables `/recall` search):
After writing the session log, optionally promote insights to `.great_cto/brain.md`:
**EPISODIC tier** — always update with a 1-2 sentence session summary:
### <YYYY-MM-DD> — <slug> <1-2 sentence outcome> Key decisions: <brief>
Rotate: keep only the 5 most recent episodic entries. Drop the oldest when adding the 6th.
**SEMANTIC tier** — promote if a fact was confirmed for the 2nd time this session:
**PROCEDURAL tier** — promote if a workflow was repeated (not first time):
**WORKING tier** — always overwrite with current state:
Active task: <current task or "—"> Current focus: <what you're doing> Blockers: <known blockers or "—">
Skip brain.md update if the session was trivial (< 30 min, no architectural decisions).
If tasks were completed during this session, mark them done:
# Mark completed tasks sed -i 's/^- \[ \] <completed-task>/- [x] <completed-task>/' .great_cto/tasks.md 2>/dev/null || true
Only modify tasks that were explicitly completed — don't guess.
Show the CTO:
✅ Session saved → .great_cto/logs/session-<date>-<slug>.md Done: <N> items Pending: <N> items Commits: <N> this session Commit & push? (y/n)
If user says **yes** (or `/save commit`):
git add .great_cto/logs/ git commit -m "chore: session log <date> — <description>" git push
If user says **no** — done. Log stays local (that's fine).
Always end with:
Next session: run `/resume` to restore this context instantly.
---
---
Long sessions accumulate noise. Apply compression at three levels before writing the session log:
After each tool call, compress the raw output to a single insight line. Do not paste full Bash output into the session log.
When a pipeline phase completes (architect done, QA done, devops done), compress that phase to ≤3 bullets in the session log:
You already have the agent. This is everything around it. great_cto runs Claude Code as a pipeline of 70 specialist agents — an independent model checks each stage before the next builds on it, spending caps refuse rather than warn, and three decisions stay yours: what gets built, how, and whether it ships.
Repo: avelikiy/great_cto
HR-AI / AEDT bias audit. Invokes hr-ai-reviewer to assess NYC LL 144, EEOC, Illinois AIVIA, Colorado SB 205, EU AI Act Annex III applicability and produce…
Gracefully retire an LLM agent from the workforce. Archives prompt, removes from sync list, keeps verdicts for audit. Like firing a human — but reversible.
Performance review for an LLM agent (or all agents). Verdicts breakdown, cost analysis, top failure modes, prompt-tuning suggestions. Like a human '1:1' but…
API platform contract review. Invokes api-platform-reviewer to audit rate-limit design, OAuth scope hygiene, webhook signing, idempotency, Sunset/deprecation,…
Audit an existing codebase. Detects stack, finds gaps, creates tasks, generates PROJECT.md.
Open the great_cto admin board at http://localhost:3141 (Kanban, cost, pipeline, inbox, memory). Starts it in background if not running.