/session-flow:step-away [until <time>|<trip>|fresh session] [scope ...]from session-flow
Puts the session in AFK mode: refuses prompts, parks decisions, and generates a return report. Use before stepping away from an active session.
Ships in session-flow. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Arguments. [until <time>|<trip>|fresh session] [scope ...]. e.g., /step-away, /step-away until 7am, /step-away driving all day, /step-away fresh session finish the parser plan
The person is leaving and wants to come back to finished safe work and a short report that shows first what needs them. When the two conflict, never choosing at a fork without the person beats getting more done. Everything below the launch is governed by reference/rules.md; read it before the first piece of work and again whenever a hook note names it.
The away script is python3 "${CLAUDE_PLUGIN_ROOT}/scripts/away.py", called away.py below;
every call carries --session ${CLAUDE_SESSION_ID} --data-root "${CLAUDE_PLUGIN_DATA}", the data
root always passed as a literal argument in double quotes, so the script writes where the hooks
read. Pointer: when checking which variables a Bash command gets, fetch
https://code.claude.com/docs/en/plugins-reference#where-each-variable-resolves. Its --help
lists the commands.
Do these in order. No work in scope starts until start has succeeded, because a session with no away
state has silent hooks: prompts would wait all night and no report would exist.
Read the absence from the words and the clock. Run date for the local time and weekday.
--kind until --until <ISO local time>.--kind trip; with a return time it is until.--kind bed. The script decides the rest from the settings: inside the night
window the report is due at the next report-by time; outside it the absence lasts until a
message reads as the person being back. Relay the report_by= value it prints rather than
computing your own.--kind break, which the
script treats as bed.start. This is the last question the person gets
until they are back.true or false, passed in step 3.mcp__context-usage__status tool. When it reads heavy and
the words did not ask for a fresh session, offer a fresh session (step 6) or arming here, in
the same one question when the absence also needs one. When the tool is absent, ask nothing
and say in step 4 that the zone check was skipped.Write the task file. A checklist, one - [ ] item per piece of work in scope, taken from
the approved plan, agent-ready items or the task in the conversation (rules.md "What counts as a
plan"). Put it at <launch checkout>/.work/away/tasks-<session id first 8>.md when
git check-ignore confirms that path is ignored; otherwise run start first and put it beside
the report path it prints, then run start again with --task-file (a second start
reconciles with the first). The hooks are live after the first start, so if that write is
refused, say so in step 4: the run has no task file, and launching from a checkout whose
.work/ is ignored avoids it.
Start. Run, with the kind from step 1:
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/away.py" start --session ${CLAUDE_SESSION_ID} --data-root "${CLAUDE_PLUGIN_DATA}" --kind <kind> [--until <ISO>] [--scope "<scope words>"] --task-file <task file> --setting 'away_night_start=${user_config.away_night_start}' --setting 'away_report_by_workday=${user_config.away_report_by_workday}' --setting 'away_report_by_day_off=${user_config.away_report_by_day_off}' --setting 'away_days_off=${user_config.away_days_off}' --setting 'away_watched_folders=${user_config.away_watched_folders}' --setting 'away_orchestrate=${user_config.away_orchestrate}'
When the words set the posture for this run (step 1), pass --setting away_orchestrate=true
or false in place of the option's token.
Keep the settings in single quotes; the script treats an unexpanded ${user_config.…} token as
unset. Before running it, check each filled-in value: one that holds a single quote is an
invalid setting, so stop the launch and name the option instead of running the command.
Pointer: when checking how plugin options are substituted, fetch
https://code.claude.com/docs/en/plugins-reference#user-configuration.
A non-zero exit stops the launch: tell the person it failed, quote the error, and say the
session is not armed. Do not start the work. After every start that exits 0, run
away.py status in a separate call: any status other than "active" means the state did not
persist where the hooks read it (a Bash sandbox can do this), which is the same failure.
Then record the task file and the posture in the session's focus file, so every compaction
during the absence keeps them in the summary, <posture> being the posture= value start
printed:
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/focus.py" set --session ${CLAUDE_SESSION_ID} --data-root "${CLAUDE_PLUGIN_DATA}" --task-file <task file> --posture <posture> --enabled '${user_config.compact_focus_enabled}'
A non-zero exit does not stop the launch; quote its error in step 4. focus=skipped is no
failure: the absence runs the same without the focus file.
End the launch turn with one message to the person, doing no work in scope this turn: the
Stop hook blocks the turn's end while task items are open and brings the run straight back to
work, so this message is the last thing they read before leaving. It holds: the report path; the report-by time, or "until you are
back"; every warning= line start printed, each in full; the context zone word read in step
1, with a warning when it is heavy (when the tool is absent, one line says the zone check was
skipped); when the posture is on, one line saying so; and that the first turn's end may add one more warning,
that the permission mode is not auto. Never hand off later because of the context level: the
run continues in this session through compaction unless the person asked for a fresh session.
Propose the goal line in that same message, for the person to submit before leaving, filled in with the real task file path, session id and data root:
/goal every item in <task file> is ticked done or, when unticked, has the word "parked" in its text, and `python3 "${CLAUDE_PLUGIN_ROOT}/scripts/away.py" check --session ${CLAUDE_SESSION_ID} --data-root "${CLAUDE_PLUGIN_DATA}"` exits 0
Without it the Stop hook holds the same condition. The person typing this line, or a last instruction before leaving, is part of the launch and never reads as being back.
Fresh session. When the words ask for a fresh session, launch it and arm it from here while
the person is present; claude --bg picks the new session's id, so start runs after the
launch:
.work/ path, since start cannot run first;
without one, offer to arm this session instead. Above the checklist, write a header line:
this session runs in away mode; read <rules> before the first item, <rules> being the
absolute path ${CLAUDE_PLUGIN_ROOT}/skills/step-away/reference/rules.md resolves to. When
the posture is on, the same line says the orchestrator posture is on. No hook gives the
background session the rules or the report path, so this line does./session-flow:continue-in-background through the Skill tool with the scope words
and done when every item in <task file> is ticked done or, when unticked, has the word "parked" in its text, a done condition stated in the invocation, which its gate's case 1
arms as the goal with no draft or confirmation. It hands back the background session's
full sessionId.start at once with --session <that sessionId> in place of
${CLAUDE_SESSION_ID}, its away_orchestrate setting included, then status and the focus file set for that id,
failures handled as step 3 says. Append
the report path start prints to the task file's header line.claude attach <short id>,
and saying that what it did between its launch and start is outside the report.
Skip step 5 and step 7 here; the background session does the work.No sessionId back (no launch, or no listing) → the background session is not armed: say so
and offer to arm this session instead. Pointer: probe 4 in
continue-in-background's goal-probe.md.
Work, from the turn after the launch message (the Stop hook's note or the person's /goal
line starts it): read reference/rules.md, then work the task file.
When a message reads as the person being back, run away.py end, show the report once leading
with Needs you, then run away.py deliver, then
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/focus.py" clear --session ${CLAUDE_SESSION_ID} --data-root "${CLAUDE_PLUGIN_DATA}" --task-file --posture.
Who counts as the person is in rules.md "Coming back".
deliver removes the absence's state and prints report=<path>, where the report stays: a report
kept beside the state moves to the plugin data's away-reports/ folder, so give the person that
path when it differs from the one shown.
A parked Needs-you item runs only once the person accepts it, by naming it or through
/session-flow:go-with-recommendations; until then, answer the person and wait, ending each
answer with the open Needs-you items and their Recommendation: lines, so that skill finds them in
your latest message.
/session-flow:go-with-recommendations on return, to accept the parked recommendations once the evidence is checked.
hooks/hooks.json, not in this skill's frontmatter, and each does nothing unless this
session's absence is active. Pointers: when checking what skill hooks are limited to, fetch
https://code.claude.com/docs/en/hooks#limits-on-skill-hooks; for which hooks get the plugin
data directory, https://code.claude.com/docs/en/plugins-reference#where-each-variable-resolves;
the live run behind the choice is in this skill's pull request, melodic-software/claude-code-plugins#17337.start, end and deliver outside it while the person is here;
during the absence the Stop hook keeps the report's script-owned blocks current.
Pointer: when checking where sandboxed commands may write, fetch
https://code.claude.com/docs/en/sandboxing#filesystem-isolation./session-flow:step-away during an active absence reconciles with it and keeps its
report; one after the absence ended starts a new absence with a new report.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub melodic-software/claude-code-plugins --plugin session-flow20 skills in this plugin
/audit-frictionAudit frictionAudit Claude Code sessions for permission and autonomy friction (denials, approval prompts, hook blocks, hand-offs), traced to cause in one decision brief. Use when the agent keeps asking or handing off, auto mode denies, or re-measuring after permission fixes./audit-sessionsAudit sessionsAudit every Claude Code session on this machine or behind a pull request for wasted time and tokens against a baseline, routing findings to fixes, plus score trends over time. Use when: 'audit my sessions', 'which sessions burned the most tokens', 'retro this PR', trends, or repeating corrections. Not for one session: /session-flow:retro./clean-stopOther plugins' skills for the same job