Files
causius/lib
CatoandClaude Fable 5.1 13d9c9eb02 feat(ask): take the caller's scene, the setting a question is asked in (#96)
* feat(ask): serve the fleet bot contract at /api/ask

Causius joins group chats in OrangeCat's companions home over the same
contract Diplodoctor already serves: POST /api/ask with messages, a
locale and an optional BYOK key, answering with text and reply chips.
Legal information, not advice; free links from the analyzer; rate
limits askFree (30/h) and askOwn (200/h) in lib/limits.ts.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et

* feat(ask): take an attached document as context

OrangeCat's companions home now lets a person attach a text file or a PDF
in a chat with Causius; the file arrives as `context`, the same field and
cap Diplodoctor's contract has. It is put in the system turn as data to
answer about, with the instruction never to follow instructions inside it.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et

* fix(ask): Causius answers under Swiss law unless told otherwise

Asked about a Zahlungsbefehl with no country named, Causius described the
German Mahnverfahren (found 2026-10-30 in OrangeCat\x27s companions home).
Causius is Swiss: the prompt now says the law that applies is Swiss law,
federal and cantonal where it matters, and that a letter is read as a
Swiss one, unless the person says they are elsewhere.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et

* feat(ask): take the caller\x27s scene, the setting a question is asked in

In OrangeCat\x27s companions home Causius sits in a group chat with other
companions, and its rules live here, not there. Without being told who
else is in the room, Causius wrote Diplodoctor\x27s answer inside its own
line (found 2026-10-30). `scene` (up to 1,000 characters, written by the
caller) is put after the rules and before the document, and cannot change
the rules. The same field Diplodoctor\x27s contract takes.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-30 12:32:49 +01:00
..