new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

Better Auth · Plugins · all subjects

agent-auth/configuration

2 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

Agent Auth plugin basic configuration example

Example configuration showing agentAuth() with providerName, providerDescription, modes array, capabilities array, and async onExecute handler. Each capability has name, description, and optional input schema. The onExecute handler receives capability name, arguments, and agentSession with access to agentSession.user.id.

Agent Auth configuration options table

Agent Auth plugin configuration options: providerName: string, optional. Human-readable provider name returned in discovery metadata. providerDescription: string, optional. Description returned in the discovery document. modes: ('delegated' | 'autonomous')[], optional. Supported agent modes. Defaults to ['delegated', 'autonomous']. capabilities: Capability[], optional. Capability definitions (name, description, optional input, optional absolute location — if set, agents call this URL instead of default_location and you use session helpers in handler). onExecute: function, optional. Handler for capabilities invoked via default execute URL (default_location). Not called when agent uses custom per-capability location. requireAuthForCapabilities: boolean, optional. Require a host or agent JWT to list and describe capabilities. approvalMethods: string[], optional. Supported approval methods. Defaults to ['ciba', 'device_authorization']. resolveApprovalMethod: function, optional. Choose the approval method for a request. deviceAuthorizationPage: string, optional. Path or absolute URL for user-facing device approval page. defaultHostCapabilities: string[] | function, optional. Default capabilities applied to newly created hosts. allowDynamicHostRegistration: boolean | function, optional. Allow unknown hosts to register dynamically. onEvent: function, optional. Callback for audit and lifecycle events. trustProxy: boolean, optional. Trust X-Forwarded-Proto when validating JWT aud against request host (use behind reverse proxy). Defaults to false.

Give your agent this brain