From ab505fd39c3ee6fbf1d377d6c08d04e57f598368 Mon Sep 17 00:00:00 2001 From: Jiayuan Date: Thu, 2 Apr 2026 03:34:25 +0800 Subject: [PATCH] docs: add issue runs and run-messages to CLI documentation Update the dynamic agent instructions (runtime_config.go) and the CLI reference (CLI_AND_DAEMON.md) to document the new execution history commands. --- CLI_AND_DAEMON.md | 17 +++++++++++++++++ .../internal/daemon/execenv/runtime_config.go | 4 +++- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/CLI_AND_DAEMON.md b/CLI_AND_DAEMON.md index f2a0df8f..5d59c10b 100644 --- a/CLI_AND_DAEMON.md +++ b/CLI_AND_DAEMON.md @@ -289,6 +289,23 @@ multica issue comment add --parent --content "Thanks!" multica issue comment delete ``` +### Execution History + +```bash +# List all execution runs for an issue +multica issue runs +multica issue runs --output json + +# View messages for a specific execution run +multica issue run-messages +multica issue run-messages --output json + +# Incremental fetch (only messages after a given sequence number) +multica issue run-messages --since 42 --output json +``` + +The `runs` command shows all past and current executions for an issue, including running tasks. The `run-messages` command shows the detailed message log (tool calls, thinking, text, errors) for a single run. Use `--since` for efficient polling of in-progress runs. + ## Configuration ### View Config diff --git a/server/internal/daemon/execenv/runtime_config.go b/server/internal/daemon/execenv/runtime_config.go index df7a51ef..e334a9c0 100644 --- a/server/internal/daemon/execenv/runtime_config.go +++ b/server/internal/daemon/execenv/runtime_config.go @@ -48,7 +48,9 @@ func buildMetaSkillContent(provider string, ctx TaskContextForEnv) string { b.WriteString("- `multica issue list [--status X] [--priority X] [--assignee X] --output json` — List issues in workspace\n") b.WriteString("- `multica issue comment list --output json` — List all comments on an issue (includes id, parent_id for threading)\n") b.WriteString("- `multica workspace get --output json` — Get workspace details and context\n") - b.WriteString("- `multica agent list --output json` — List agents in workspace\n\n") + b.WriteString("- `multica agent list --output json` — List agents in workspace\n") + b.WriteString("- `multica issue runs --output json` — List all execution runs for an issue (status, timestamps, errors)\n") + b.WriteString("- `multica issue run-messages [--since ] --output json` — List messages for a specific execution run (supports incremental fetch)\n\n") b.WriteString("### Write\n") b.WriteString("- `multica issue comment add --content \"...\" [--parent ]` — Post a comment (use --parent to reply to a specific comment)\n")