{ "openapi": "3.1.0", "info": { "title": "Agent Eye", "description": "Monitor all your GitHub Copilot CLI sessions in real-time.", "version": "1.3.0" }, "paths": { "/api/sessions": { "get": { "summary": "Api Sessions", "description": "List all sessions with enriched metadata.", "operationId": "api_sessions_api_sessions_get", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "items": { "$ref": "#/components/schemas/SessionResponse" }, "type": "array", "title": "Response Api Sessions Api Sessions Get" } } } } } } }, "/api/session/{session_id}/plan": { "get": { "summary": "Api Session Plan", "description": "Return the first matching plan file for a session.", "operationId": "api_session_plan_api_session__session_id__plan_get", "parameters": [ { "name": "session_id", "in": "path", "required": true, "schema": { "type": "string", "title": "Session Id" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PlanResponse" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/session/{session_id}": { "get": { "summary": "Api Session Detail", "description": "Get detailed info for a single session.", "operationId": "api_session_detail_api_session__session_id__get", "parameters": [ { "name": "session_id", "in": "path", "required": true, "schema": { "type": "string", "title": "Session Id" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SessionDetailResponse" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/files": { "get": { "summary": "Api Files", "description": "Return most-edited files across all sessions.", "operationId": "api_files_api_files_get", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "items": { "$ref": "#/components/schemas/FileEntryResponse" }, "type": "array", "title": "Response Api Files Api Files Get" } } } } } } }, "/api/processes": { "get": { "summary": "Api Processes", "description": "Return currently running copilot, Claude, and Scout sessions mapped by session ID.", "operationId": "api_processes_api_processes_get", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "additionalProperties": { "$ref": "#/components/schemas/ProcessResponse" }, "type": "object", "title": "Response Api Processes Api Processes Get" } } } } } } }, "/api/kill/{session_id}": { "post": { "summary": "Api Kill", "description": "Kill the process for a running session.", "operationId": "api_kill_api_kill__session_id__post", "parameters": [ { "name": "session_id", "in": "path", "required": true, "schema": { "type": "string", "title": "Session Id" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ActionResponse" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/focus/{session_id}": { "post": { "summary": "Api Focus", "description": "Focus the terminal window for a running session.", "operationId": "api_focus_api_focus__session_id__post", "parameters": [ { "name": "session_id", "in": "path", "required": true, "schema": { "type": "string", "title": "Session Id" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ActionResponse" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/dismiss/{session_id}": { "post": { "summary": "Api Dismiss", "description": "Hide a session from the dashboard without deleting files on disk.", "operationId": "api_dismiss_api_dismiss__session_id__post", "parameters": [ { "name": "session_id", "in": "path", "required": true, "schema": { "type": "string", "title": "Session Id" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ActionResponse" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/remote-sessions": { "get": { "summary": "Api Remote Sessions", "description": "Return active sessions from other machines via the sync folder.", "operationId": "api_remote_sessions_api_remote_sessions_get", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "items": { "$ref": "#/components/schemas/SessionResponse" }, "type": "array", "title": "Response Api Remote Sessions Api Remote Sessions Get" } } } } } } }, "/api/server-info": { "get": { "summary": "Server Info", "description": "Return server metadata including PID.", "operationId": "server_info_api_server_info_get", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ServerInfoResponse" } } } } } } }, "/api/version": { "get": { "summary": "Api Version", "description": "Return current version and check PyPI for the latest release.", "operationId": "api_version_api_version_get", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/VersionResponse" } } } } } } }, "/api/update": { "post": { "summary": "Api Update", "description": "Spawn a detached subprocess to pip-upgrade the package and restart.", "operationId": "api_update_api_update_post", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ActionResponse" } } } } } } }, "/api/autostart": { "get": { "summary": "Api Autostart Status", "description": "Check whether autostart is supported on this platform and currently enabled.", "operationId": "api_autostart_status_api_autostart_get", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AutostartStatusResponse" } } } } } } }, "/api/autostart/enable": { "post": { "summary": "Api Autostart Enable", "description": "Enable autostart via the Windows HKCU Run registry key.\n\nPicks the autostart command based on how the running process was launched\n(see ``LAUNCH_MODE``): \"app\" if started via ``agenteye app`` with a\nworking embedded webview, otherwise \"server\" (the lighter, headless\nbackground mode, also the right target on platforms where the tray app\nfalls back to opening a browser).", "operationId": "api_autostart_enable_api_autostart_enable_post", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ActionResponse" } } } } } } }, "/api/autostart/disable": { "post": { "summary": "Api Autostart Disable", "description": "Disable autostart by removing the Windows HKCU Run registry value.", "operationId": "api_autostart_disable_api_autostart_disable_post", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ActionResponse" } } } } } } }, "/api/settings": { "get": { "summary": "Api Get Settings", "description": "Return current dashboard settings.", "operationId": "api_get_settings_api_settings_get", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SettingsResponse" } } } } } }, "put": { "summary": "Api Put Settings", "description": "Update dashboard settings.", "operationId": "api_put_settings_api_settings_put", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SettingsResponse" } } } } } } } }, "components": { "schemas": { "ActionResponse": { "properties": { "success": { "type": "boolean", "title": "Success" }, "message": { "type": "string", "title": "Message", "default": "" } }, "type": "object", "required": [ "success" ], "title": "ActionResponse", "description": "Generic success/failure response for POST actions." }, "AutostartStatusResponse": { "properties": { "supported": { "type": "boolean", "title": "Supported" }, "enabled": { "type": "boolean", "title": "Enabled" } }, "type": "object", "required": [ "supported", "enabled" ], "title": "AutostartStatusResponse", "description": "Response for GET /api/autostart \u2014 reports whether autostart is supported and enabled." }, "BackgroundTaskResponse": { "properties": { "agent_name": { "type": "string", "title": "Agent Name", "default": "" }, "description": { "type": "string", "title": "Description", "default": "" } }, "type": "object", "title": "BackgroundTaskResponse", "description": "A single running background subagent task." }, "CheckpointResponse": { "properties": { "checkpoint_number": { "type": "integer", "title": "Checkpoint Number" }, "title": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Title" }, "overview": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Overview" }, "next_steps": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Next Steps" } }, "type": "object", "required": [ "checkpoint_number" ], "title": "CheckpointResponse" }, "FileEntryResponse": { "properties": { "file_path": { "type": "string", "title": "File Path" }, "session_count": { "type": "integer", "title": "Session Count" }, "session_ids": { "type": "string", "title": "Session Ids" } }, "type": "object", "required": [ "file_path", "session_count", "session_ids" ], "title": "FileEntryResponse" }, "HTTPValidationError": { "properties": { "detail": { "items": { "$ref": "#/components/schemas/ValidationError" }, "type": "array", "title": "Detail" } }, "type": "object", "title": "HTTPValidationError" }, "PlanProgressResponse": { "properties": { "done": { "type": "integer", "title": "Done" }, "total": { "type": "integer", "title": "Total" } }, "type": "object", "required": [ "done", "total" ], "title": "PlanProgressResponse" }, "PlanResponse": { "properties": { "path": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Path" }, "content": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Content" }, "mtime": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Mtime" }, "progress": { "anyOf": [ { "$ref": "#/components/schemas/PlanProgressResponse" }, { "type": "null" } ] } }, "type": "object", "title": "PlanResponse" }, "ProcessResponse": { "properties": { "pid": { "type": "integer", "title": "Pid" }, "parent_pid": { "type": "integer", "title": "Parent Pid", "default": 0 }, "terminal_pid": { "type": "integer", "title": "Terminal Pid", "default": 0 }, "terminal_name": { "type": "string", "title": "Terminal Name", "default": "" }, "cmdline": { "type": "string", "title": "Cmdline", "default": "" }, "yolo": { "type": "boolean", "title": "Yolo", "default": false }, "agency": { "type": "boolean", "title": "Agency", "default": false }, "state": { "type": "string", "title": "State", "default": "unknown" }, "waiting_context": { "type": "string", "title": "Waiting Context", "default": "" }, "bg_tasks": { "type": "integer", "title": "Bg Tasks", "default": 0 }, "bg_task_list": { "items": { "$ref": "#/components/schemas/BackgroundTaskResponse" }, "type": "array", "title": "Bg Task List" }, "mcp_servers": { "items": { "type": "string" }, "type": "array", "title": "Mcp Servers" }, "window_title": { "type": "string", "title": "Window Title", "default": "" } }, "type": "object", "required": [ "pid" ], "title": "ProcessResponse", "description": "A running Copilot process as returned by GET /api/processes." }, "RefResponse": { "properties": { "ref_type": { "type": "string", "title": "Ref Type" }, "ref_value": { "type": "string", "title": "Ref Value" } }, "type": "object", "required": [ "ref_type", "ref_value" ], "title": "RefResponse" }, "ServerInfoResponse": { "properties": { "pid": { "type": "integer", "title": "Pid" }, "port": { "type": "string", "title": "Port" }, "sync_folder": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Sync Folder" }, "log_file": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Log File" }, "log_level": { "type": "string", "title": "Log Level", "default": "INFO" } }, "type": "object", "required": [ "pid", "port" ], "title": "ServerInfoResponse" }, "SessionDetailResponse": { "properties": { "checkpoints": { "items": { "$ref": "#/components/schemas/CheckpointResponse" }, "type": "array", "title": "Checkpoints" }, "refs": { "items": { "$ref": "#/components/schemas/RefResponse" }, "type": "array", "title": "Refs" }, "turns": { "items": { "$ref": "#/components/schemas/TurnResponse" }, "type": "array", "title": "Turns" }, "recent_output": { "items": { "type": "string" }, "type": "array", "title": "Recent Output" }, "tool_counts": { "items": { "$ref": "#/components/schemas/ToolCountResponse" }, "type": "array", "title": "Tool Counts" }, "files": { "items": { "type": "string" }, "type": "array", "title": "Files" } }, "type": "object", "title": "SessionDetailResponse" }, "SessionResponse": { "properties": { "id": { "type": "string", "title": "Id" }, "cwd": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Cwd" }, "repository": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Repository" }, "branch": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Branch" }, "summary": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Summary" }, "created_at": { "type": "string", "title": "Created At" }, "updated_at": { "type": "string", "title": "Updated At" }, "created_ago": { "type": "string", "title": "Created Ago", "default": "" }, "time_ago": { "type": "string", "title": "Time Ago", "default": "" }, "turn_count": { "type": "integer", "title": "Turn Count", "default": 0 }, "file_count": { "type": "integer", "title": "File Count", "default": 0 }, "checkpoint_count": { "type": "integer", "title": "Checkpoint Count", "default": 0 }, "is_running": { "type": "boolean", "title": "Is Running", "default": false }, "state": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "State" }, "waiting_context": { "type": "string", "title": "Waiting Context", "default": "" }, "bg_tasks": { "type": "integer", "title": "Bg Tasks", "default": 0 }, "group": { "type": "string", "title": "Group", "default": "General" }, "recent_activity": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Recent Activity" }, "restart_cmd": { "type": "string", "title": "Restart Cmd", "default": "" }, "mcp_servers": { "items": { "type": "string" }, "type": "array", "title": "Mcp Servers" }, "tool_calls": { "type": "integer", "title": "Tool Calls", "default": 0 }, "subagent_runs": { "type": "integer", "title": "Subagent Runs", "default": 0 }, "intent": { "type": "string", "title": "Intent", "default": "" }, "source": { "type": "string", "title": "Source", "default": "copilot" }, "machine_name": { "type": "string", "title": "Machine Name", "default": "" } }, "type": "object", "required": [ "id", "created_at", "updated_at" ], "title": "SessionResponse", "description": "A session as returned by GET /api/sessions." }, "SettingsResponse": { "properties": { "sync_enabled": { "type": "boolean", "title": "Sync Enabled", "default": true }, "log_level": { "type": "string", "title": "Log Level", "default": "INFO" }, "mtime_active_threshold": { "type": "integer", "title": "Mtime Active Threshold", "default": 120 } }, "type": "object", "title": "SettingsResponse", "description": "Response for GET/PUT /api/settings \u2014 dashboard configuration." }, "ToolCountResponse": { "properties": { "name": { "type": "string", "title": "Name" }, "count": { "type": "integer", "title": "Count" } }, "type": "object", "required": [ "name", "count" ], "title": "ToolCountResponse" }, "TurnResponse": { "properties": { "turn_index": { "type": "integer", "title": "Turn Index" }, "user_message": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "User Message" }, "assistant_response": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Assistant Response" } }, "type": "object", "required": [ "turn_index" ], "title": "TurnResponse" }, "ValidationError": { "properties": { "loc": { "items": { "anyOf": [ { "type": "string" }, { "type": "integer" } ] }, "type": "array", "title": "Location" }, "msg": { "type": "string", "title": "Message" }, "type": { "type": "string", "title": "Error Type" }, "input": { "title": "Input" }, "ctx": { "type": "object", "title": "Context" } }, "type": "object", "required": [ "loc", "msg", "type" ], "title": "ValidationError" }, "VersionResponse": { "properties": { "current": { "type": "string", "title": "Current" }, "latest": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Latest" }, "update_available": { "type": "boolean", "title": "Update Available", "default": false } }, "type": "object", "required": [ "current" ], "title": "VersionResponse" } } } }