Multi-agent platform that democratizes agricultural expertise for farmers worldwide β in French, English, and Wolof.
Built for the "Built with Claude: Claude Code Hackathon" (February 10β16, 2026).
Over 500 million smallholder farmers worldwide lack access to timely, expert agricultural advice. Language barriers, costly consultants, and limited internet connectivity leave them making decisions based on incomplete information β leading to crop losses, pest damage, and missed market opportunities.
AgriAgent is an autonomous multi-agent AI system powered by Claude Opus 4.6 that delivers personalized, real-time advice on weather, crop management, disease diagnosis, and market pricing β accessible via web, mobile, or SMS in the farmer's own language.
| Feature | Description |
|---|---|
| π€ Multi-Agent Chat | Orchestrator routes queries to specialized Weather, Agro, and Market agents running in parallel |
| πΈ Crop Photo Diagnosis | Upload a photo β Claude Vision identifies diseases and recommends treatments |
| π€ Voice Input/Output | Speech-to-text input + text-to-speech for responses (accessibility) |
| π Interactive World Map | Leaflet map with 20+ countries, agricultural data, and city-level weather |
| ποΈ Agricultural Calendar | Zone-specific planting calendars in grid and timeline views |
| π± Field Management | Full CRUD for parcelles (fields), crops, season history, rotation advice |
| π Market Intelligence | Crop prices by region with inter-city comparison |
| π± SMS Interface | Text METEO, NJEG, TOOL, or JEGGE via Twilio β response in Wolof or French |
| π Dark/Light Theme | Full theme support with CSS variables |
| π Trilingual | French, English, and Wolof across every page and notification |
| π Gamification | Farmer levels, badges, and achievement stats |
| π Smart Alerts | AI-generated personalized alerts (weather, pests, market, calendar) |
βββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β USERS β
β Web Β· SMS Β· Voice β
ββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββββ
β
ββββββββββββββββββββββ΄βββββββββββββββββββββββββββββββββ
β NEXT.JS 16 FRONTEND β
β React 19 Β· Tailwind 4 Β· Framer Motion β
β Auth Β· i18n (FR/EN/WO) Β· Dark/Light β
ββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββββ
β REST + SSE Streaming
ββββββββββββββββββββββ΄βββββββββββββββββββββββββββββββββ
β FASTAPI BACKEND β
β Supabase JWT Β· Public + Protected Routes β
ββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββββ
β
ββββββββββββββββββββββ΄βββββββββββββββββββββββββββββββββ
β ORCHESTRATOR AGENT β
β Claude Sonnet 4 Β· Keyword Routing β
β Auto Language Detection Β· Multi-Agent Sync β
ββββββββ¬ββββββββββββββ¬βββββββββββββββ¬ββββββββββββββββββ
β β β
ββββββββ΄βββββββ ββββββ΄ββββββ βββββββ΄βββββββ
β WEATHER β β AGRO β β MARKET β
β Claude 3 β β Claude 3 β β Claude 3 β
β Haiku β β Haiku β β Haiku β
β +Open-Meteo β β +Crops β β +Prices β
β Tool Use β β +Disease β β +Compare β
β 50+ cities β β +Zones β β Tool Use β
βββββββββββββββ ββββββββββββ ββββββββββββββ
Each agent uses Claude tool-use to call specialized functions (weather API, crop database, market data), then the orchestrator synthesizes a unified response.
| Layer | Technology |
|---|---|
| LLM | Claude Sonnet 4 (orchestrator) + Claude 3 Haiku (sub-agents) |
| Backend | Python 3.12 Β· FastAPI Β· Uvicorn |
| Frontend | Next.js 16 Β· React 19 Β· TypeScript 5 |
| Styling | Tailwind CSS 4 Β· Framer Motion 12 |
| Maps | Leaflet Β· React-Leaflet |
| Auth | Supabase (PostgreSQL Β· JWT Β· RLS) |
| SMS | Twilio |
| Weather | Open-Meteo API (free, no key required) |
| AI Vision | Claude Vision (crop photo diagnosis) |
- Python 3.10+
- Node.js 18+
- Supabase project (free tier works)
- Anthropic API key
git clone https://github.com/MedouneSGB/AgriAgent-SN.git
cd AgriAgent-SNcd backend
pip install -r requirements.txtCreate backend/.env:
ANTHROPIC_API_KEY=sk-ant-...
SUPABASE_URL=https://your-project.supabase.co
SUPABASE_SERVICE_ROLE_KEY=eyJ...
SUPABASE_JWT_SECRET=your-jwt-secret
# Optional:
TWILIO_ACCOUNT_SID=AC...
TWILIO_AUTH_TOKEN=...
TWILIO_PHONE_NUMBER=+1...Run the SQL migration in your Supabase dashboard:
# Copy backend/migration.sql into Supabase SQL Editor and executeStart the server:
uvicorn main:app --reload --port 8095cd frontend
npm installCreate frontend/.env.local:
NEXT_PUBLIC_SUPABASE_URL=https://your-project.supabase.co
NEXT_PUBLIC_SUPABASE_ANON_KEY=eyJ...
NEXT_PUBLIC_API_URL=http://localhost:8095/apiStart the dev server:
npm run devOpen http://localhost:3000 π
| Method | Endpoint | Description |
|---|---|---|
POST |
/api/chat |
AI chat (JSON response) |
POST |
/api/chat/stream |
AI chat (SSE streaming) |
GET |
/api/weather/{city} |
7-day forecast for 50+ cities |
POST |
/api/diagnose |
Crop photo diagnosis (Vision) |
POST |
/api/sms/incoming |
Twilio SMS webhook |
GET |
/api/crops |
Crop database |
GET |
/api/markets |
Market prices |
GET |
/api/zones |
Agro-ecological zones |
GET |
/api/cities |
City coordinates |
| Method | Endpoint | Description |
|---|---|---|
GET/PUT |
/api/me |
User profile |
GET/POST |
/api/parcelles |
Field management |
GET/POST |
/api/cultures |
Crop tracking |
GET/POST |
/api/history |
Season history |
GET |
/api/alerts |
Personalized alerts |
POST |
/api/alerts/generate |
AI-generate alerts |
GET |
/api/calendar/{zone} |
Agricultural calendar |
GET |
/api/rotation/{id} |
Crop rotation advice |
- 50+ cities with weather data across 5 continents
- 20+ countries with agricultural data (crops, zones, markets)
- 16+ agro-ecological zones with specific crop calendars
- 50+ crops with full growing guides
- 3 languages β French, English, Wolof
agriagent/
βββ backend/
β βββ main.py # FastAPI app entry
β βββ api.py # Public endpoints
β βββ api_protected.py # JWT-protected endpoints
β βββ auth.py # Supabase JWT verification
β βββ config.py # Settings, cities, zones
β βββ data_loader.py # JSON data loader
β βββ migration.sql # Supabase DB schema + RLS
β βββ agents/
β β βββ orchestrator.py # Multi-agent router
β β βββ weather_agent.py # Weather + Open-Meteo
β β βββ agro_agent.py # Crops + diseases + zones
β β βββ market_agent.py # Prices + comparison
β β βββ alerts_agent.py # AI alert generation
β βββ services/
β β βββ weather_service.py # Open-Meteo client
β β βββ supabase_service.py # Supabase client
β β βββ sms_service.py # Twilio SMS parsing
β βββ data/
β βββ crops.json # Crop knowledge base
β βββ diseases.json # Disease/pest database
β βββ markets.json # Market price data
β βββ zones.json # Agro-ecological zones
β
βββ frontend/
β βββ src/
β βββ app/ # Next.js pages (7 routes)
β βββ components/ # React components (12)
β βββ components/ui/ # Design system (14)
β βββ context/ # Auth, Language, Theme
β βββ lib/ # API client, Supabase
β βββ data/ # World agriculture data
β
βββ .claude/docs/ # Project documentation
AgriAgent is built entirely on the Claude Opus 4.6 ecosystem, leveraging its capabilities across the entire stack:
- Claude Opus 4.6 β Powers the orchestrator agent for intelligent routing, language detection, and multi-agent synthesis
- Claude 3 Haiku β Fast sub-agents (weather, agro, market) with tool-use for real-time data access
- Claude Vision β Crop disease diagnosis from uploaded photos
- Tool Use β Each agent defines tools (functions) that Claude calls to fetch weather data, search crops, compare prices
- Multilingual β Claude generates responses in French, English, or Wolof based on detected language
- Streaming β SSE streaming for word-by-word chat responses
- Claude Code β The entire project was built using Claude Code as the development agent
MIT β See LICENSE for details.
Built with β€οΈ for the Claude Code Hackathon 2026
Empowering farmers worldwide with AI-driven agricultural intelligence