Load focused context for a project or area to continue work. If the user omits the slug, infer the most likely target from conversation and workspace context.
Named
/renewinstead of/resumebecause/resumeis a built-in command in Claude Code (and other tools) for resuming previous conversations.
Resolve the journal path:
JORNAL="${JORNAL:-$HOME/para/areas/dev/gh/ak/journal}"Identify the target.
If the user provided a slug or name
(/renew <slug>, pick up <project>,
etc.), match it against:
$JORNAL/projects/<slug>.md$JORNAL/areas/<slug>.mdIf the user omitted the target (/renew,
continue, pick this back up), infer it from
context using these signals, in order:
$JORNAL/workqueue.md: the most recent queued
/next entry if it is unambiguous.Treat exact slug/name matches as strong evidence. Treat multiple plausible matches as ambiguous.
If exactly one strong candidate is found, proceed and mention the
inference source in the output (for example:
Inferred from current directory). If no candidate or
multiple candidates are plausible, list the top candidates with their
evidence and ask the user to choose instead of guessing.
Read the matched project or area file.
Read today's log
($JORNAL/areas/log/YYYY/YYYY-MM/YYYY-MM-DD.md). If it
doesn't exist, create it with the daily log template. Scan for any
earlier session entries related to this project/area today.
4a. Check $JORNAL/workqueue.md for any queued
/next entries matching this slug (any date). Match lines of
the form ^## \d{4}-\d{2}-\d{2} \d{2}:\d{2} — <slug>$
(line-end anchor). If entries exist, display them in the output under a
Queued sessions section so the user has the full prior
context before continuing.
Search recent logs for context (last 3 days):
grep -rl "<slug>" "$JORNAL/areas/log/" 2>/dev/null | sort -r | head -3Read any matches to understand recent session history.
Search inbox for related items:
grep -i "<slug>" "$JORNAL/inbox.md"If in a git repo, gather workspace context:
git branch --show-currentgit log --oneline -5git status --shortResuming: Project/Area Name
Target inference: explicit
<slug>, or inferred from cwd/git/workqueue/logs
Status: one-line summary of where things stand
Queued sessions (from workqueue.md — unprocessed /next entries for this slug)
Last session (from most recent log entry)
Open tasks
Waiting
Related inbox items (if any)
Workspace (if in a relevant git repo)
Suggested next step
Then ask: "Ready to continue, or want to adjust the plan?"