Transform assessment by teaching AI - An innovative educational platform where students demonstrate understanding by teaching AI agents to solve mathematics problems.
ITeachU is an MVP implementation of a teaching assessment platform featuring the "Stack of Cups" mathematics problem. Students interact with Zippy, an eager AI learner, to explain mathematical concepts and verify their understanding through teaching.
- Interactive AI Learner: Chat with Zippy, an enthusiastic AI that starts with misconceptions
- Real-time Learning Progress: Visual ΔLearning metric showing AI comprehension
- Teaching Tips: Guidance for effective explanation strategies
- Responsive Design: Clean, modern UI built with React and Tailwind CSS
- React 18 - UI framework
- Vite - Build tool and dev server
- Tailwind CSS - Styling
- Lucide React - Icons
- Anthropic Claude API - AI conversation backend
- Node.js 16+ installed
- An Anthropic API key (Get one here)
- Clone the repository
cd ITeachU- Install dependencies
npm install- Configure API key
REQUIRED: Add your Anthropic API key to the .env file:
# Edit .env file and replace 'your_api_key_here' with your actual API key
VITE_ANTHROPIC_API_KEY=sk-ant-xxxxxGet your API key from: https://console.anthropic.com/
.env file is gitignored and won't be committed. For production use, implement a backend proxy server instead of exposing API keys in the frontend.
- Start the development server
npm run devThe app will open at http://localhost:3000
- Click "Start Teaching Session" on the intro screen
- Read Zippy's initial attempt at the problem (containing misconceptions)
- Type explanations in the chat to help Zippy understand:
- Why cups nest inside each other
- The concept of the rim/lip adding height
- How to calculate the pattern
- Watch the ΔLearning progress bar increase as Zippy understands better
- Use teaching tips in the sidebar for guidance
Given Data:
- 2 cups stacked = 16 cm tall
- 4 cups stacked = 20 cm tall
- 8 cups stacked = 28 cm tall
Key Concepts:
- Cups nest inside each other (not stacked separately)
- Each cup's rim adds 2cm to the total height
- Base cup height = 14cm
- Equation: h = 2n + 12 (where n = number of cups)
ITeachU/
├── src/
│ ├── App.jsx # Main application component
│ ├── main.jsx # React entry point
│ └── index.css # Global styles with Tailwind
├── index.html # HTML template
├── package.json # Dependencies and scripts
├── vite.config.js # Vite configuration
├── tailwind.config.js # Tailwind configuration
└── CLAUDE.md # AI personality instructions
npm run dev- Start development servernpm run build- Build for productionnpm run preview- Preview production build
The AI personality and behavior are defined in:
CLAUDE.md- Detailed instructions for the AI learnersrc/App.jsx(lines 4-20) - System prompt sent to the API
- Implement a backend API proxy
- Use environment variables securely
- Add rate limiting
- Implement user authentication
- Monitor API usage
- Multiple AI personalities (Skeptic Sam, Confused Casey)
- Session saving and replay
- Teacher dashboard with analytics
- Additional mathematics problems
- Assessment scoring system
- Multi-language support
This is a prototype/educational project.
Built with Claude Code and inspired by innovative assessment methodologies that measure understanding through teaching.