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")