{"version":"2.1.318","anchor":"new-internal-subcommand-work-look-for-the-self-hosted-runn","canonical_anchor":"new-internal-subcommand-work-look-for-the-self-hosted-runn","heading":"Self-hosted runner gains a work-look check for unsaved work in checkouts","tier":"use","area":"Self-Hosted Runner","scope":"org","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.318\/e\/new-internal-subcommand-work-look-for-the-self-hosted-runn","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.318","markdown":"### Self-hosted runner gains a work-look check for unsaved work in checkouts\n\nA new self-hosted-runner work-look subcommand checks session checkouts for uncommitted, unpushed or stashed work before a session is released\n\n**Unclear.** What `work-look` does and whether it can be run directly is not stated.\n\n**What**\n\nA self-hosted runner is a machine you operate yourself that runs Claude Code sessions. It now has a `work-look` subcommand, a command run under the main Claude Code command. The dispatcher loads it from a part of the program that provides `selfHostedRunnerWorkLookMain`, next to the existing `decode-token` subcommand.\n\nClaude Code runs `self-hosted-runner work-look` as a separate process. It inspects a session's checkouts, meaning the folders holding a copy of a code repository, and looks for work that would be lost if the session were released:\n\n- uncommitted changes\n\n- unfinished merges or rebases\n\n- unpushed commits\n\n- stashes, which are changes set aside with Git\n\n- entries in the session folder that are not accounted for\n\nIt reports reasons starting with `kept_` along with plain-language explanations. The check is also used when `--exec-path` or a command hook starts the session. A hook is a command you configure to run automatically at certain points.\n\n**Why**\n\nA runner can now find out that a checkout still holds unsaved work before it releases the session. That makes it possible to avoid losing changes nobody has saved or pushed.\n\n- Area: Self-Hosted Runner\n- Names: `work-look`\n- Tier: Use it now\n- Useful: 4\/5\n- Signal: 3\/5\n- Scope: org\n- Heads-up: no"}