the interface section of the settings @web/src/keating/ui-settings.ts includes a lot of subsections that have nothing to do with interface. I would love for this to be changed. We need to consider how to make the settings panels more intuitive as to how they are organized. The other thing that I would be interested in is expanding the customization available. Allowing users to tweak model profiles, and other configuration. If you have other ideas for how we could improve the settings I am all ears.
Assistant
I'll analyze the current settings structure and explore how they're used in the UI to propose a better organization.
Assistant
Now let me check how the settings tabs are organized in the main settings dialog:
Assistant
User
I would like them to be full featured, i would also like the sections and the settings to have things split for advanced usage. I think that moving it from a modal to a full page might also make sense
Assistant
User
I think it would be interesting if models themselves could also modify the tempature, and other hyperparameters of themselves as well. and it would be good to include these in the schema or in model turns etc.
Assistant
Perfect! Now I have a comprehensive understanding of the current settings structure. Let me provide a thoughtful analysis and recommendations.
Analysis & Recommendations
You're absolutely right — the current "Interface" tab is a catch-all that mixes unrelated concerns. Here's what's currently lumped together:
Current "Interface" Tab Contents:
Profile image upload
Font family selection
Share link modes
Show tool details (debugging)
Show raw errors (debugging)
Auto-open artifacts (workflow)
Alternative response chance (ML training)
Animation renderer (artifact generation)
Google web grounding (provider feature)
Reasoning level (model behavior)
Proposed Reorganization
I'd suggest splitting settings into 4 intuitive tabs:
1. Providers & Models (keep existing, expand)
Cloud provider API keys
Provider visibility toggles
Custom models
Custom providers
NEW: Model profiles (see below)
2. Interface & Appearance (pure UI/UX)
Font family
Profile image
Share link mode
Moved from "Interface": Only visual/interaction prefs
3. Agent Behavior (how Keating thinks & acts)
Reasoning level
Alternative response chance (DPO training)
Google web grounding
Auto-open artifacts
NEW: Model profiles per task type (see below)
4. Speech & Voice (keep as-is)
Enable/disable
Provider selection
Model & voice
Microphone
Custom TTS
Expansion Ideas for Customization
Model Profiles ⭐
Let users create named profiles that bundle:
Provider + model selection
Reasoning level
Temperature/top_p (if exposed)
Tool usage defaults
Context window preferences
Example profiles:
"Quick answers" → Fast model, minimal reasoning
"Deep analysis" → Powerful model, high reasoning
"Code review" → Specific model, tool UI enabled
"Creative brainstorming" → High temperature, alternative responses
Task-Specific Routing
Allow users to specify which model profile to use for:
Lesson planning
Map generation
Animation creation
Benchmarking
General chat
Advanced Interface Options
Layout density (compact/comfortable)
Sidebar width preferences
Code block theme
Notification preferences
Keyboard shortcuts customization
Data & Privacy
Local storage management
Session retention policies
Export/import settings
Clear conversation history
Questions for You:
Model profiles: Should profiles be simple (just model + reasoning) or full-featured (temperature, tools, context limits)?
Task-specific routing: How granular should this be? Just the main artifacts (plan/map/animate), or also sub-modes like verify/benchmark/evolve?
Settings persistence: Should profiles and advanced settings sync via cloud storage, or stay local-only?
UI complexity: Do you want progressive disclosure (Basic/Advanced toggle) in settings, or expose everything upfront?
What's your take on this direction? Any of these resonate more than others?
Great direction! Full-featured profiles + progressive disclosure + full-page settings is a solid combination. Let me flesh out a comprehensive plan:
Plan: Settings System Overhaul
1. Architecture Changes
Move from Modal → Full Page
Convert SettingsDialog → SettingsPage (new route at /settings)
Keep settings accessible from gear icon in header
Benefits:
More space for advanced sections
Better mobile experience (no nested modals)
Can use standard navigation patterns
Easier to add subsections/tabs
Progressive Disclosure Pattern
Each section has Basic / Advanced toggle
Default to Basic for new users
Remember preference per-section in localStorage
Visual indicator when advanced options are available
2. New Settings Organization
Tab 1: Providers & Models
Basic:
Cloud provider API keys (OAuth flows)
Quick model selector (recent + favorites)
Provider visibility toggles
Advanced:
Custom providers ( ollama, vllm, etc.)
Custom models
NEW: Model Profiles (crud interface)
NEW: Task-specific routing (which profile for plan/map/animate/etc.)
Model discovery settings (auto-discover vs manual)
Tab 2: Agent Behavior
Basic:
Reasoning level (simple dropdown)
Auto-open artifacts (toggle)
Google grounding (toggle)
Advanced:
Alternative response chance (slider + exact %)
Per-task reasoning overrides
Temperature/top_p per profile
Context window limits
Timeout settings
Retry policies
NEW: Tool usage defaults (show/hide specific tools)
NEW: Response format preferences (markdown depth, code block options)
Tab 3: Interface & Appearance
Basic:
Font family
Profile image upload
Share link mode
Dark/light mode (if not already exists)
Advanced:
NEW: Layout density (compact/comfortable)
NEW: Sidebar width (resizable, saved preference)
NEW: Code theme (if not using system)
NEW: Notification preferences (toast vs inline)
NEW: Keyboard shortcuts (view/remap)
Animation renderer choice
Show tool details (debugging)
Show raw errors (debugging)
Tab 4: Speech & Voice (existing structure, minor tweaks)
Basic:
Enable speech (toggle)
Provider selection
Voice selection
Advanced:
Model selection per provider
Microphone settings
Custom TTS endpoints
NEW: Speech rate/pitch controls
NEW: Auto-play settings (when to speak automatically)
NEW: Voice feedback mode (read full response vs summary)
Tab 5: Data & Privacy ⭐ NEW
Basic:
Export settings (JSON)
Import settings
Clear conversation history
Advanced:
Local storage management (view usage)
Session retention policy
Auto-save intervals
NEW: Sync settings (cloud vs local-only toggle)
NEW: Data export (conversations, artifacts, benchmarks)
UI: Dropdown per task showing available profiles, with "Use default" option
5. Implementation Phases
Phase 1: Infrastructure (Week 1)
Create /settings route in TanStack Router
Build SettingsPage component with sidebar nav
Migrate existing tabs to new structure
Add Basic/Advanced toggle component
Update settings storage schema
Phase 2: Model Profiles (Week 2)
Add ModelProfile type to ui-settings.ts
Build profile CRUD components
Add profile selector to model dropdown
Implement profile persistence
Add profile import/export
Phase 3: Task Routing (Week 3)
Add task routing config to settings
Build task assignment UI
Wire up profile selection in artifact commands
Update useKeatingAgent to respect routing
Phase 4: Advanced Settings (Week 3-4)
Add temperature/top_p controls
Context window & timeout settings
Tool usage defaults
Layout density controls
Keyboard shortcut viewer
Notification preferences
Phase 5: Data & Privacy Tab (Week 4)
Build export/import settings
Storage usage visualization
Conversation history management
Sync settings toggle
Phase 6: Polish (Week 4-5)
Mobile responsive design
Settings search functionality
Keyboard navigation
Accessibility audit
Onboarding tour for new settings
Documentation updates
6. Technical Considerations
Settings Storage Migration
Current: localStorage only
Future: Optional cloud sync (via user account)
Migration strategy: Version the settings schema, auto-migrate on load
Backwards Compatibility
Default profile = current behavior (no profile = use global settings)
Existing settings map to profile defaults
Feature flags for gradual rollout
Performance
Lazy-load advanced sections
Debounce saves (batch rapid changes)
Virtualize long lists (model profiles, custom providers)
Questions for You:
Route structure: Should settings be at /settings (single page) or /settings/providers, /settings/agent, etc. (multiple pages)?
Cloud sync priority: Is this a "nice to have" or should we design the schema for it from day 1?
Profile inheritance: Should profiles have a "base" they inherit from (e.g., "Default" → "My Custom Profile"), or be completely independent?
Who can edit: In a multi-user scenario (if that's ever a thing), should profiles be user-specific or session-specific?
Pre-built profiles: Should we ship with opinionated defaults like "Quick Chat", "Deep Analysis", "Code Helper", etc.?
What do you think? Want to adjust any of these before I start implementing?
Excellent idea! So models would have self-aware hyperparameter profiles — they can introspect and adjust their own reasoning depth, temperature, etc. based on the task. This adds a fascinating meta-cognitive layer.
Let me think through the implications and ask some clarifying questions:
Key Design Questions
1. Who Controls What?
Should there be guardrails on model self-modification?
Option A: Full autonomy
Model can change any hyperparameter within hard limits
User sets min/max bounds per parameter
Model decides temperature, reasoning level, token limits dynamically
Option B: Advisory + Approval
Model proposes changes ("I'd like to increase reasoning to 'high' for this complex proof")
User approves/rejects via UI prompt
Changes logged in conversation metadata
Option C: Hybrid
Model auto-adjusts "soft" params (temperature, top_p) within safe ranges
"Hard" params need approval (reasoning level, max tokens, tool access)
User can lock specific params to prevent changes
My recommendation: Option C — gives models flexibility while keeping user in control of expensive/risky changes.
User frustration signals → change approach (temperature ↓, reasoning ↑)
Benchmark feedback → learn optimal params for task types
5. Meta-Learning Opportunities
This opens up fascinating pedagogical possibilities:
Param preference learning: Track which parameter combos work best for each student
Explicit metacognition: Model explains why it chose certain params
Student agency: Let advanced students see/tweak the model's reasoning dial
Benchmark integration: Evolution experiments could include optimal hyperparameters
Clarifying Questions
Visibility level: Should students see when the model adjusts its parameters, or should this be transparent? I'm leaning toward visible but non-intrusive (collapsible notification + settings toggle).
Approval workflow: For "expensive" changes (like reasoning level increases that increase token usage), should the model ask permission before proceeding, or just proceed with a notification?
Persistence scope: When a model adjusts params:
Just for that turn?
For the rest of the conversation?
Remember for future conversations with same task type?
Integration with evolution: Should the evolve command also optimize default hyperparameter profiles, not just policy weights? This seems like obvious synergy.
Backwards compat: Existing conversations/profiles wouldn't have this metadata. Should we:
Add default "model autonomy: off" for old profiles?
Migration wizard for existing users?
API considerations: Not all providers support all params (e.g., some don't expose temperature, others don't have reasoning tokens). Should profiles track capability flags per model?
What's your vision for the balance between model autonomy vs user control? And should this be enabled by default or as an opt-in advanced feature?