Skip to content

feat: experimental --output-last-message flag to exec subcommand - #1037

Merged
bolinfest merged 1 commit into
mainfrom
pr1037
May 19, 2025
Merged

bolinfest merged 1 commit into
mainfrom
pr1037

Conversation

@bolinfest

@bolinfest bolinfest commented May 19, 2025 •

Copy link
Copy Markdown
Collaborator

This introduces an experimental --output-last-message flag that can be used to identify a file where the final message from the agent will be written. Two use cases:

  • Ultimately, we will likely add a --quiet option to exec, but even if the user does not want any output written to the terminal, they probably want to know what the agent did. Writing the output to a file makes it possible to get that information in a clean way.
  • Relatedly, when using exec in CI, it is easier to review the transcript written "normally," (i.e., not as JSON or something with extra escapes), but getting programmatic access to the last message is likely helpful, so writing the last message to a file gets the best of both worlds.

I am calling this "experimental" because it is possible that we are overfitting and will want a more general solution to this problem that would justify removing this flag.

@bolinfest bolinfest changed the title feat: add --output-last-message flag to exec subcommand feat: experimental --output-last-message flag to exec subcommand May 19, 2025
@bolinfest
bolinfest merged commit d766e84 into main May 19, 2025
@bolinfest
bolinfest deleted the pr1037 branch May 19, 2025 23:08
@github-actions github-actions Bot locked and limited conversation to collaborators May 19, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant