Agent Executor (AX) is Google's open agentic orchestration runtime
Go
refactor: promote eventlog subcommands to top-level CLI commands (#267)
Jaana Doganae9be6985413
diff --git a/README.md b/README.mdindex af70565..efa0516 100644--- a/README.md+++ b/README.md@@ -248,7 +248,7 @@ Fork an existing agentic event log from a specific checkpoint (or the latest stainto a new event log.```bash-ax eventlog fork \+ax fork \--src-conversation <id> \[--src-seq <number>] \[--dest-conversation <id>] \@@ -265,13 +265,13 @@ Options:```bash# Fork from the latest state-ax eventlog fork --src-conversation 38460323-9a78-41cb-8991-022b0ff2c19c+ax fork --src-conversation 38460323-9a78-41cb-8991-022b0ff2c19c# Fork from a specific checkpoint-ax eventlog fork --src-conversation 38460323-9a78-41cb-8991-022b0ff2c19c --src-seq 12+ax fork --src-conversation 38460323-9a78-41cb-8991-022b0ff2c19c --src-seq 12# Fork from a specific checkpoint to a new event log with a specific new ID-ax eventlog fork --src-conversation 38460323-9a78-41cb-8991-022b0ff2c19c --src-seq 12 --dest-conversation e5e26e38-53a2-4f22-b1cb-ae867357df83+ax fork --src-conversation 38460323-9a78-41cb-8991-022b0ff2c19c --src-seq 12 --dest-conversation e5e26e38-53a2-4f22-b1cb-ae867357df83```### Trace@@ -279,7 +279,7 @@ ax eventlog fork --src-conversation 38460323-9a78-41cb-8991-022b0ff2c19c --src-sVisualize the trace of an agentic execution in a Web UI, directly fetching from the event log.```bash-ax eventlog trace --conversation <id> [--addr <address>] [--config <file>]+ax trace --conversation <id> [--addr <address>] [--config <file>]```This will parse the execution logs and spin up a local web server, automatically opening it in your browser.@@ -292,10 +292,10 @@ Options:```bash# Trace on default server localhost:8080-ax eventlog trace --conversation 1a6e0b29-87c2-4af0-81ac-0c73bf8fa293+ax trace --conversation 1a6e0b29-87c2-4af0-81ac-0c73bf8fa293# Trace on a custom server address and port-ax eventlog trace --conversation 1a6e0b29-87c2-4af0-81ac-0c73bf8fa293 --addr 0.0.0.0:9090+ax trace --conversation 1a6e0b29-87c2-4af0-81ac-0c73bf8fa293 --addr 0.0.0.0:9090```### Registerdiff --git a/cmd/ax/eventlog.go b/cmd/ax/eventlog.godeleted file mode 100644index 6aec8e3..0000000--- a/cmd/ax/eventlog.go+++ /dev/null@@ -1,25 +0,0 @@-// Copyright 2026 Google LLC-//-// Licensed under the Apache License, Version 2.0 (the "License");-// you may not use this file except in compliance with the License.-// You may obtain a copy of the License at-//-// http://www.apache.org/licenses/LICENSE-2.0-//-// Unless required by applicable law or agreed to in writing, software-// distributed under the License is distributed on an "AS IS" BASIS,-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.-// See the License for the specific language governing permissions and-// limitations under the License.--package main--import (- "github.com/spf13/cobra"-)--var eventlogCmd = &cobra.Command{- Use: "eventlog",- Short: "Manage event logs",- Long: `Commands for managing agentic event logs, including forking and tracing.`,-}diff --git a/cmd/ax/main.go b/cmd/ax/main.goindex e35e583..fdca11f 100644--- a/cmd/ax/main.go+++ b/cmd/ax/main.go@@ -48,9 +48,8 @@ func init() {rootCmd.AddCommand(registerCmd)rootCmd.AddCommand(serveCmd)- rootCmd.AddCommand(eventlogCmd)rootCmd.AddCommand(forkCmd)- eventlogCmd.AddCommand(traceCmd)+ rootCmd.AddCommand(traceCmd)}func connect(server string) (*grpc.ClientConn, error) {