claude-agent-service/app
Viktor Barzin 33ff0868c3 conversational: add no-tools multi-turn Brain endpoint for portal-assistant
The portal-assistant voice gateway needs a Claude that is conversational, free
(on the cluster subscription, no metered API), and safe to sit behind a public
edge. Add POST /v1/conversational: it drives a new no-tools `conversational`
agent with per-conversation --resume so a voice turn keeps context, and is lean
on purpose — no workspace clone, no tools, and crucially NO
--dangerously-skip-permissions (so even a leaked agent can't execute anything).
This is deliberately NOT /v1/chat/completions, which clones the git-crypt infra
repo and runs a Bash-enabled agent per turn (portal-assistant ADR-0002).

The conversational agent replies in the speaker's language (Bulgarian/English),
short and TTS-friendly. Tests cover the argv builder (new vs resume), the happy
path, multi-turn resume across calls, auth, and failure → 503. Full suite green.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-17 18:38:44 +00:00
..
afk afk: wire the T3 adapter to the REAL orchestration contract + fix priority 2026-06-15 22:27:00 +00:00
breakglass breakglass UI v2: attachable sessions (tmux model) + mobile-first redesign 2026-06-14 19:19:03 +00:00
__init__.py Initial extraction from monorepo 2026-05-07 17:07:12 +00:00
conversational.py conversational: add no-tools multi-turn Brain endpoint for portal-assistant 2026-06-17 18:38:44 +00:00
main.py conversational: add no-tools multi-turn Brain endpoint for portal-assistant 2026-06-17 18:38:44 +00:00