Agent (cmd/nomos): - Stream LLM tokens via NewStreaming; emit text_delta then final text. - OpenRouter provider routing: data_collection=deny (ZDR) + require_parameters; NOMOS_PROVIDER_SORT opt-in; Exacto via model suffix. - Multi-turn: reload session history into context; UI passes session id. - Fix agent_activity logging (agent_id/session_id) and mcpClient data race. Events (live control-room feed): - approval.created (mcp), approval.decided (api), execution.completed/failed (approved-action path), signal.raised/resolved + health.changed (scheduler, transition-gated). Fixes: - createApproval FK violation (reuse execution entity) — the agent's only write path; log the previously-swallowed errors. Web UI: - Embed web/dist via //go:embed (single binary); Dockerfile builds SPA into the Go stage; committed .gitkeep placeholder keeps backend-only builds green. - Caddy: Authentik-gated /agent/* -> nomos so the UI reaches the agent same-origin in production. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
19 lines
333 B
YAML
19 lines
333 B
YAML
# Nomos agent config — LLM-backed resident agent (Phase 4)
|
|
|
|
mcp:
|
|
endpoint: ${NOMOS_MCP_URL}?session_id=${NOMOS_SESSION_ID}
|
|
transport: streamable_http
|
|
|
|
server:
|
|
listen: ${NOMOS_LISTEN}
|
|
mesh_only: true
|
|
|
|
agent:
|
|
name: nomos
|
|
slug: ${NOMOS_AGENT_SLUG}
|
|
|
|
llm:
|
|
provider: openrouter
|
|
model: ${NOMOS_MODEL}
|
|
max_iterations: 15
|