The agent can watch what a background job prints
Until now a background command could only tell the agent one thing: that it had ended. Now the agent can watch its output while it runs. It hears when a dev server prints "ready" or a training run reaches its next 10%, and it keeps working in the meantime. A command that stops to ask a question, such as "Ok to proceed? (y)", is reported to the agent automatically.
How to use it
- Ask the agent to start something long, for example "start the dev server and tell me when it is ready" or "run the training and report every 10%".
- The command's row in the chat shows what is being watched, for example
watching /ready/. - When a matching line is printed, a short grey line in the chat says what it printed, and the agent can act on it.
- To stop the watching, open the Jobs panel, select the job and press Stop watching. The agent is told it was you.
Good to know
- A job waiting for input shows needs input in the Jobs panel. You can answer it there, or let the agent answer.
- By default a match that comes after the agent has finished its reply waits for your next message. The agent can ask to be woken for it instead, at most once every 10 minutes per job.
- A pattern that matches almost every line switches itself off and says so.