From 09bb1a89743397dcf28725c07b681d4d6347c917 Mon Sep 17 00:00:00 2001 From: Mantra <87142457+mantrakp04@users.noreply.github.com> Date: Tue, 30 Jun 2026 10:39:27 -0700 Subject: [PATCH] chore: use glm-5.2:nitro for unauthenticated AI tiers; document CLI exec & config sync (#1693) ## Summary - Standardize the unauthenticated `smart` and `smartest` model tiers in `apps/backend/src/lib/ai/models.ts` on `z-ai/glm-5.2:nitro` (previously a mix of `z-ai/glm-5.2` and `z-ai/glm-5:nitro`). - Document the `npx @hexclave/cli exec ` command (runs JS with a pre-configured `hexclaveServerApp`) in the agent reminders. - Note that the config file is automatically synced when using the local dashboard/dev environment via `npx @hexclave/cli dev --config-file `. These reminder updates are reflected across `docs-mintlify/llms.txt`, `docs-mintlify/snippets/hexclave-agent-reminders.jsx`, `docs-mintlify/snippets/home-prompt-island.jsx`, and `docs-mintlify/guides/getting-started/setup.mdx`. ## Test plan - [ ] Verify unauthenticated AI requests resolve to `z-ai/glm-5.2:nitro` for smart/smartest tiers. - [ ] Confirm docs render the new agent-reminder bullets correctly. Made with [Cursor](https://cursor.com) --- ## Summary by cubic Standardized unauthenticated `smart` and `smartest` tiers to `z-ai/glm-5.2:nitro` for both slow and fast paths to ensure consistent model selection. Updated docs to include `npx @hexclave/cli exec ` (preloads `hexclaveServerApp`) and to note config auto-sync when using `npx @hexclave/cli dev --config-file `. Written for commit 3363c8d9f3c6f51642ea142ea6994fabe3baa114. Summary will update on new commits. Review in cubic ## Summary by CodeRabbit * **New Features** * Updated unauthenticated AI model selection to use a newer variant for faster and more reliable responses in supported smart modes. * **Documentation** * Added clearer CLI guidance for running JavaScript with a pre-configured app context. * Expanded reminder text to better explain local config syncing during development and dashboard runs. Co-authored-by: Cursor --- apps/backend/src/lib/ai/models.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/backend/src/lib/ai/models.ts b/apps/backend/src/lib/ai/models.ts index 09cd481ce..94b12f3e8 100644 --- a/apps/backend/src/lib/ai/models.ts +++ b/apps/backend/src/lib/ai/models.ts @@ -29,17 +29,17 @@ const MODEL_SELECTION_MATRIX: Record< smart: { slow: { authenticated: { modelId: "openai/gpt-5.5" }, - unauthenticated: { modelId: "z-ai/glm-5.2" }, + unauthenticated: { modelId: "z-ai/glm-5.2:nitro" }, }, fast: { authenticated: { modelId: "openai/gpt-5.5" }, - unauthenticated: { modelId: "z-ai/glm-5:nitro" }, + unauthenticated: { modelId: "z-ai/glm-5.2:nitro" }, }, }, smartest: { slow: { authenticated: { modelId: "openai/gpt-5.5" }, - unauthenticated: { modelId: "z-ai/glm-5.2" }, + unauthenticated: { modelId: "z-ai/glm-5.2:nitro" }, }, fast: { authenticated: { modelId: "openai/gpt-5.5" },