Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Record any agent task

Record the logs, output files and screenshots of any task an AI agent did, not only testing, and share them as one link that outlives the machine it ran on

An agent that runs on a remote machine, such as a cloud dev box, a sandbox or a CI job, leaves its results on that machine. When the machine goes away, so do the logs, the files it wrote and the screenshots it took. Have the agent save them to Currents as a session at the end of the task. You get one link to review what the agent did, and the files stay after the machine is gone.

The task does not have to be a test. For example:

  • An agent ran a data migration. The session holds the migration log, the row counts before and after, and its summary.

  • An agent updated the dependencies of a service. The session holds the build output and the list of packages it changed.

  • An agent checked a staging site after a deploy. The session holds the screenshots of each page and the console log.

What you need

The Currents CLI and a key on the machine. See Install the Currents CLI and set a key. On a CI job, the agent can use the record key the job already has.

Ask the agent

Add this to the agent's task, or to its instructions file:

When you finish, save your results as a Currents session in project
<project-id>: your log, every file you wrote, and a summary.md with what you
did and what you did not do. Use --status failed if the task did not finish.
Reply with the link.

The agent saves the files with currents session start, attach and share. These commands take any file or folder. For the options, see currents session or run npx currents session --help.

A terminal: ls shows the task's output folder, log and summary; currents session start, attach with the folder and two files, and share, which prints the session link and its Markdown link

What you get

The session page of the migration above, with the agent's summary open:

A passed session titled Migrate order items to order_line_items on staging, with four files: skipped-orders.csv, migration.log, row-counts.json and summary.md, which is open and rendered with a table of row counts before and after

The link opens without a Currents login for 1, 3 or 7 days. The files stay until you delete the session. See Share links.

Last updated

Was this helpful?