Self-hosted workflows for coding-agent delivery. Orchestrate CodeBuddy, Codex and Claude Code with scripts and human approval gates. Includes Local workflows for coding assistants.
JavaScript agent-orchestrationagentic-workflowai-agentsai-codingclaude-codecode-reviewcodebuddycodexcoding-agentscursordeveloper-toolshuman-on-the-loopllmmcpmulti-agentsdlcself-hostedsopworkflow-automationworkflow-engine
{"eventId": "cc24e15b-e783-4380-b848-8cec0cd07b38", "payload": {"previousTitle": "", "source": "first_input", "title": "hi"}, "seq": 1, "sessionId": "sess_812ea610-e20f-4004-ab93-c1659c2fc2e1", "timestamp": 1794278005208, "traceId": "864e141b-aa26-4c64-9d32-759185219185", "turnId": "turn_10a9bc95-77c9-48af-a184-c5e435744214", "type": "session.titleUpdated"}
{"eventId": "7adc2ac0-c223-4b00-ac01-79189c5db65c", "payload": {"executionStartedAt": 1794278005191.1123, "turnNumber": 0, "input": "hi", "messageId": "msg_mwa2spg9_e7b0ebe1-2c34-4ef2-9d4c-2fb081901d9f", "inputId": "query_4107c808-bf9b-4102-8ae1-c89256ef65a0", "foregroundExecutionId": "runtime_command_1", "queryId": "query_4107c808-bf9b-4102-8ae1-c89256ef65a0", "intent": {"sourceCommandId": "query_4107c808-bf9b-4102-8ae1-c89256ef65a0", "queueItemId": "query_4107c808-bf9b-4102-8ae1-c89256ef65a0", "clientId": "cli", "kind": "sendText", "admissionSeq": 1, "admittedAt": 1794278005188, "requestedDelivery": "auto", "admittedDelivery": "startNow", "modelSelection": {"providerId": "agentflow", "modelId": "mock-model", "options": {"reasoningLevel": "enabled"}}}}, "seq": 2, "sessionId": "sess_812ea610-e20f-4004-ab93-c1659c2fc2e1", "timestamp": 1794278005209, "traceId": "864e141b-aa26-4c64-9d32-759185219185", "turnId": "turn_10a9bc95-77c9-48af-a184-c5e435744214", "type": "turn.started"}
{"eventId": "3a43709e-4de1-4be0-81d0-a332545038f5", "payload": {"pendingInputId": "query_4107c808-bf9b-4102-8ae1-c89256ef65a0", "sourceCommandId": "query_4107c808-bf9b-4102-8ae1-c89256ef65a0", "messageId": "msg_mwa2spg9_e7b0ebe1-2c34-4ef2-9d4c-2fb081901d9f"}, "seq": 3, "sessionId": "sess_812ea610-e20f-4004-ab93-c1659c2fc2e1", "timestamp": 1794278005213, "traceId": "864e141b-aa26-4c64-9d32-759185219185", "turnId": "turn_10a9bc95-77c9-48af-a184-c5e435744214", "type": "session.updated"}
{"eventId": "d1aa689f-71c5-43ec-a0aa-ac98b42b0222", "payload": {"messageCount": 9, "providerId": "agentflow", "modelId": "mock-model", "toolCount": 17, "iteration": 0}, "seq": 4, "sessionId": "sess_812ea610-e20f-4004-ab93-c1659c2fc2e1", "timestamp": 1794278005893, "traceId": "864e141b-aa26-4c64-9d32-759185219185", "turnId": "turn_10a9bc95-77c9-48af-a184-c5e435744214", "type": "session.updated"}
{"eventId": "f20f27ba-f94c-4148-bd06-c7a516c83641", "payload": {"baseURL": "http://127.0.0.1:18765/v1", "maxAttempts": 11, "providerId": "agentflow", "modelId": "mock-model", "modelRequestSessionType": "main", "requestId": "ece088ae-92ca-43a2-ae2d-d8ef1ac86680", "sessionId": "sess_812ea610-e20f-4004-ab93-c1659c2fc2e1", "spanId": "7adae4a4-210a-44", "parentSpanId": "5dc6519f-af8d-46", "querySource": "main_turn", "queryId": "query_4107c808-bf9b-4102-8ae1-c89256ef65a0", "traceId": "864e141b-aa26-4c64-9d32-759185219185", "providerKind": "openai-compatible", "transport": "sse", "turnId": "turn_10a9bc95-77c9-48af-a184-c5e435744214", "modelCall": {"operation": "agent_step", "actorKind": "main", "operationId": "7adae4a4-210a-44", "reasoning": {"capability": "unknown", "requestedControl": "provider_default", "requestedState": "provider_default", "requestedLevel": "enabled", "effectiveControl": "unknown", "effectiveState": "unknown", "effectiveLevel": "unknown"}, "logicalCallId": "ee51ad73-38e3-46a5-b085-61960ae76915", "stepIndex": 0}, "attempt": 1, "requestHeaderCount": 17, "requestHeaders": {"http-referer": "https://zcode.z.ai", "user-agent": "ZCode/0.17.1", "x-zcode-app-version": "0.17.1", "x-title": "Z Code@cli", "x-release-channel": "production", "x-client-language": "en-US", "x-client-timezone": "America/Los_Angeles", "x-zcode-agent": "glm", "x-platform": "darwin-arm64", "x-os-category": "macos", "x-os-version": "25.4.0", "x-request-id": "ece088ae-92ca-43a2-ae2d-d8ef1ac86680", "x-zcode-session-type": "main", "x-zcode-trace-id": "864e141b-aa26-4c64-9d32-759185219185", "x-query-id": "4107c808-bf9b-4102-8ae1-c89256ef65a0", "x-zcode-query-source": "main_turn", "x-session-id": "812ea610-e20f-4004-ab93-c1659c2fc2e1"}, "timestamp": "2026-11-10T02:33:25.896Z", "type": "model_request_started", "_meta": {"zcode": {"apiRetry": null}}}, "seq": 5, "sessionId": "sess_812ea610-e20f-4004-ab93-c1659c2fc2e1", "timestamp": 1794278005898, "traceId": "864e141b-aa26-4c64-9d32-759185219185", "turnId": "turn_10a9bc95-77c9-48af-a184-c5e435744214", "type": "session.updated"}
{"eventId": "526b4666-2105-4188-b04c-21fe2c976cff", "payload": {"baseURL": "http://127.0.0.1:18765/v1", "maxAttempts": 11, "providerId": "agentflow", "modelId": "mock-model", "modelRequestSessionType": "main", "requestId": "ece088ae-92ca-43a2-ae2d-d8ef1ac86680", "sessionId": "sess_812ea610-e20f-4004-ab93-c1659c2fc2e1", "spanId": "7adae4a4-210a-44", "parentSpanId": "5dc6519f-af8d-46", "querySource": "main_turn", "queryId": "query_4107c808-bf9b-4102-8ae1-c89256ef65a0", "traceId": "864e141b-aa26-4c64-9d32-759185219185", "providerKind": "openai-compatible", "transport": "sse", "turnId": "turn_10a9bc95-77c9-48af-a184-c5e435744214", "modelCall": {"operation": "agent_step", "actorKind": "main", "operationId": "7adae4a4-210a-44", "reasoning": {"capability": "unknown", "requestedControl": "provider_default", "requestedState": "provider_default", "requestedLevel": "enabled", "effectiveControl": "unknown", "effectiveState": "unknown", "effectiveLevel": "unknown"}, "logicalCallId": "ee51ad73-38e3-46a5-b085-61960ae76915", "stepIndex": 0}, "attempt": 1, "durationMs": 38, "message": "Invalid API key", "reason": "auth_failed", "requestHeaderCount": 17, "requestHeaders": {"http-referer": "https://zcode.z.ai", "user-agent": "ZCode/0.17.1", "x-zcode-app-version": "0.17.1", "x-title": "Z Code@cli", "x-release-channel": "production", "x-client-language": "en-US", "x-client-timezone": "America/Los_Angeles", "x-zcode-agent": "glm", "x-platform": "darwin-arm64", "x-os-category": "macos", "x-os-version": "25.4.0", "x-request-id": "ece088ae-92ca-43a2-ae2d-d8ef1ac86680", "x-zcode-session-type": "main", "x-zcode-trace-id": "864e141b-aa26-4c64-9d32-759185219185", "x-query-id": "4107c808-bf9b-4102-8ae1-c89256ef65a0", "x-zcode-query-source": "main_turn", "x-session-id": "812ea610-e20f-4004-ab93-c1659c2fc2e1"}, "responseHeaderCount": 3, "responseHeaders": {"content-type": "application/json", "date": "Tue, 10 Nov 2026 02:33:25 GMT", "server": "BaseHTTP/0.6 Python/3.14.7"}, "retryable": false, "statusCode": 401, "streamOutputCommitted": false, "errorCode": "provider_not_configured", "errorPhase": "stream", "exceptionType": "ProviderBusinessError", "providerErrorCode": "invalid_api_key", "providerErrorMessage": "Invalid API key", "timestamp": "2026-11-10T02:33:25.934Z", "type": "model_request_failed", "_meta": {"zcode": {"apiRetry": null}}}, "seq": 6, "sessionId": "sess_812ea610-e20f-4004-ab93-c1659c2fc2e1", "timestamp": 1794278005935, "traceId": "864e141b-aa26-4c64-9d32-759185219185", "turnId": "turn_10a9bc95-77c9-48af-a184-c5e435744214", "type": "session.updated"}
{"eventId": "cd838e91-ae8c-49d3-9d86-1bc766c56987", "payload": {"error": {"type": "unknown_error", "attribution": {"source": "provider", "reason": "auth_failed", "errorPhase": "stream", "exceptionKind": "provider_business", "providerId": "agentflow", "modelId": "mock-model", "providerKind": "openai-compatible", "transport": "sse", "statusCode": 401, "providerErrorCode": "invalid_api_key", "retryable": false, "highspeedCardId": null}, "code": "invalid_api_key", "message": "Invalid API key", "detail": "Turn execution failed\nprovider=agentflow provider_code=invalid_api_key model=mock-model request=ece088ae-92ca-43a2-ae2d-d8ef1ac86680 reason=auth_failed status=401 retryable=false", "underlyingErrorMessage": "Invalid API key", "stack": "<stack 已省略>"}, "turnPhase": "processing_input", "inputId": "query_4107c808-bf9b-4102-8ae1-c89256ef65a0"}, "seq": 7, "sessionId": "sess_812ea610-e20f-4004-ab93-c1659c2fc2e1", "timestamp": 1794278005941, "traceId": "864e141b-aa26-4c64-9d32-759185219185", "turnId": "turn_10a9bc95-77c9-48af-a184-c5e435744214", "type": "turn.failed"}