AI Agent Use Cases

Added today

10All 261

1–20 of 261

Dev

A Tool That Shows a Closed Session's Title and Summary

A small modification prints the session title and last summary just above the resume command when a Claude Code session closes.

How it works

  1. The author had so many Claude Code sessions open that closing one made it difficult to remember what it had been working on.
  2. The author therefore made a small modification that prints the session title and last summary immediately above the resume command line (claude --resume) on exit.

Results

The author shared a screenshot of the tool running. Specific figures such as time saved were not disclosed.

Notes

The post does not explain how the change was implemented, such as through a configuration feature or wrapper script, or whether the code is public.

Source

X Original post ↗

Example prompt · Claude Code

Build a small tool that leaves a terminal record of what a coding-agent session was working on when its window closes.

Inputs: the coding agent and version [e.g., Claude Code version], operating system and shell [e.g., macOS, zsh], and information to retain [session title, last summary, command to reopen it]. First check whether the agent officially supports running a script on exit, such as through hooks, and where session titles and summaries are stored. If no official method exists, explain whether a small wrapper around the launch command could do this.

Implementation: 1) Read the current session's information on exit. 2) Neatly print the title and a few lines of the last summary above the resume command. 3) If information is unavailable, exit silently without printing anything. Do not modify the agent's original files. Before changing settings, back them up and explain how to restore them.

Deliverables: installation instructions, the script, and removal instructions. First open and close 2 sessions and verify that each prints the correct title and summary.