Introduction
Maxw AI features a sophisticated AI assistant powered by Anthropic Claude Sonnet 4.5 with native tool support through the AI SDK v6. The agent uses theToolLoopAgent pattern for multi-step reasoning and tool execution.
Core Architecture
Model Configuration
Agent Context
Every request builds a dynamicAgentContext with current date/time and user information:
Unique user identifier
User’s full name
Name of the user’s educational institution
Array of user’s Canvas LMS courses
Current date and time formatted in the user’s timezone
User’s timezone (e.g., “America/New_York”)
Unique identifier for the current conversation
User’s country for location-aware search
User’s city for location-aware search
User’s region/state for location-aware search
Container-Based Execution
The agent uses Anthropic’s code execution containers for running Python code:- Persistence: Files persist across the conversation (~4.5 minute inactivity timeout)
- Skills: Documentation files loaded into the container for reference
- Programmatic Tools: Tools can be called directly from Python code
- Parallel Processing: Multiple operations can run concurrently via
asyncio
Container Session Management
Container IDs are stored per chat for reuse:Skills System
Skills are documentation files loaded into the code execution container:- canvas-assignments: Canvas assignment data structure and patterns
- todo-management: Todo data structure and CRUD operations
- llm-invocation: Guide for parallel LLM processing
Tool Categories
Native Anthropic Tools
code_execution
Python sandbox for calculations and programmatic tool calling
web_search
Location-aware web search (max 5 per conversation)
memory
Filesystem-like persistent user memory
web_fetch
Fetch and process web content
Custom Tools
Canvas LMS
Search content, fetch assignments
Todo Management
CRUD operations for user tasks
Study Tools
Create flashcards and practice questions
Programmatic Tool Calling
Tools marked “programmatic only” are called from within Python code execution:- Reduced latency (no round trips to model)
- Token savings (filter data in Python)
- Conditional logic based on intermediate results
- Parallel processing with
asyncio.gather
Extended Thinking
The agent uses Claude’s extended thinking feature with a 10,000 token budget:Next Steps
General Agent
Explore the system prompt and capabilities
Available Tools
Complete tool reference and parameters
Memory System
Learn about persistent user memory