Skip to main content

Agent Console

Provides system-level communication between Kelp apps and the backend agent service.

component image

In-ports

input <any> — Log events to send to the backend agent service.

confirm-stop <any> — Confirms shutdown request from the agent service.

Out-ports

context Object — Environment information indicating execution context (frontend/backend).

on-stop Boolean — Signals when the agent requests application shutdown.

Overview

The Agent Console component enables communication between Kelp apps and the backend agent service. It automatically detects the execution environment and provides hooks for system-level operations like logging and graceful shutdown.

The Agent Console detects whether your Kelp application is running in a frontend browser environment or backend agent context. It forwards system logs to the backend agent service for centralized monitoring and debugging. The component manages graceful shutdown procedures—allowing the agent service to request application termination and receive shutdown confirmation. All system service connections are established automatically with no manual configuration needed.

Environment Detection: The component automatically emits environment information on startup:

  • { type: "backend" } — Running in backend agent context
  • { type: "frontend" } — Running in browser/frontend context

Settings

No additional configuration is required. The component automatically connects to available system services.