Default: Normal responses with code in markdown blocks when helpful.
Full Code: Always provide complete, working code examples.
Snippets: Focus on concise code snippets and key changes only.
Session & CORS notes
Serve this file and api.php from the same origin to keep PHP session history. If cross-origin, enable credentials and set a specific Access-Control-Allow-Origin instead of *.