nexo_session_log_create
Creates a log entry for an interactive Claude/Codex session, returning a session ID for tracking. Call this before spawning the child process.
Instructions
Open an automation_runs row for an interactive Claude/Codex session.
Designed for clients that spawn Claude/Codex directly (notably NEXO Desktop, which runs a TypeScript process that shells out to the CLI without going through run_automation_prompt). Call this BEFORE spawning the child, store the returned session_id, then call nexo_session_log_close when the session ends.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| caller | Yes | Registered caller id (see src/resonance_map.py). For Desktop's "new conversation" button, use "desktop_new_session". | |
| backend | Yes | "claude_code" or "codex". | |
| session_type | No | "interactive_chat" | "interactive_desktop" — how the session is shaped. Default "interactive_desktop". | interactive_desktop |
| model | No | Concrete model the client resolved, e.g. "claude-opus-4-7[1m]". | |
| reasoning_effort | No | Concrete effort string, e.g. "xhigh". | |
| resonance_tier | No | Tier label ("maximo"/"alto"/"medio"/"bajo"). If left empty the Brain resolves it from caller. | |
| cwd | No | Working directory the session is anchored to. | |
| pid | No | Child process PID if available. | |
| context_excerpt | No | Optional first-prompt preview (used to size prompt_chars in telemetry). |