Open Harness Server subcommands#1853
Conversation
| func Agents() *Command { | ||
| cmd := &Command{ | ||
| Command: &cobra.Command{ | ||
| Use: "agents", |
There was a problem hiding this comment.
Should we keep this under separate heading like we did for inference?
| if err != nil { | ||
| return err | ||
| } | ||
| fmt.Fprintf(c.Out, "Session created: %s\n", sess.SessionID) |
There was a problem hiding this comment.
Show the response using displayers not by fmt.Fprintf() where required
logwolvy
left a comment
There was a problem hiding this comment.
Assuming, relevant godo changes for sending agent spec yaml are done.
Please address the comments and we should be good to merge.
| "Start a new agent session", | ||
| `Creates a new agent session and prints its session id and status. | ||
|
|
||
| The `+"`"+`--agent`+"`"+` flag selects the agent kind (`+"`"+`claude-code`+"`"+` or `+"`"+`opencode`+"`"+`). The optional `+"`"+`--repo`+"`"+` flag passes a repo hint to the agent's initial environment. |
There was a problem hiding this comment.
Separate flags are not required for v0, everything will be in the agent spec yaml.
Our backend will parse and use the fields, as required. You only have to ship the agent yaml.
| "Replays the full server-side event history for a session, then exits.", | ||
| Writer) | ||
|
|
||
| CmdBuilder(cmd, RunAgentsApprove, "approve <session-id> <request-id> <approve|reject|defer>", |
There was a problem hiding this comment.
I am assuming the approval could also be processed from the TUI (in attached session), as shown in POC demo, right?
| }, | ||
| } | ||
|
|
||
| cmdGitHub := CmdBuilder(cmd, RunAgentsAuthGitHub, "github", |
There was a problem hiding this comment.
We don't need to this for v0. Github token will be provided by the user in the agent spec/yaml.
No description provided.