Read agent steps from code while a trial runs

Open
#4,442 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
22/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
python
Domain
devtools

Research direction

Start with the existing --stream feed behind harbor view and the ATIF step writer for Claude Code and Codex, then trace how trial lifecycle hooks are dispatched. Related issues #4134 and #3344 likely cover the streaming and hook design and should be read first. Done would mean a per-step hook event and a machine-readable feed outside the process, both tested against one agent.

Written by the indexing model from the issue text.

Description

TLDR: a way to read an agent's steps on our end during a trial

Today --stream only feeds harbor view, and only for Claude Code and Codex. Trial hooks fire on lifecycle events with nothing per step, and the server API has no documented way to read steps mid-rollout, so we connect to the sandbox and tail the agent's logs. This is not ideal for a variety of reasons, not the least of which is different provider requirements.

Why?: we want to watch tool calls live, mainly to catch a stuck run and be able to stop it early.

What would help:

  • a per-step hook event carrying the new ATIF step
  • the same feed outside the process (JSON lines from the CLI, or a server endpoint)
  • support for any agent that writes ATIF steps as it goes, custom agents included

related issues: #4134, #3344

Dominant language
Python
Stars
5.6k
Forks
1.9k
Avg merge
1d 17h
Merged PRs (30d)
156

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from harbor-framework/harbor

All issues in harbor-framework/harbor

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.