KisanSathi — Six AI Farm Experts, Keyless and Local
Problem
Farmer-facing AI tools die at the API-key step, answer in English, and hand back generic advice with no live numbers behind it. A smallholder asking when to sell or how to treat yellowing wheat leaves gets a paragraph, not a decision.
Business Impact
India has more smallholder farmers than any advisory service can staff, and the ones who need advice most are furthest from a key, a card, or reliable bandwidth. A keyless multi-agent assistant that answers in Hindi with today's mandi price is deployable on a village kiosk, not just a demo laptop.
System Approach
- Router agent classifies agent, language, place, and commodity in a single fast LLM call
- Six specialist agents defined declaratively in a registry — key, name, emoji, system prompt, optional tools
- Live tools per domain: Open-Meteo 7-day forecast, Agmarknet daily prices via data.gov.in
- FastAPI backend streams answers; Next.js 16 UI shows the pipeline live — expert picked, language detected, tokens arriving
- Adding an agent is one registry entry; router, API, and UI pick it up automatically
- Voice in, voice out: mic button transcribes hi-IN speech and auto-submits; every answer gets a read-aloud button, chunked by sentence so long answers don't cut off
- pytest with async mode for the router and tool layer
Key Decisions & Trade-offs
- Keyless by default — most farmer-facing tools die at the API-key step, so that step had to go
- Local Ollama over a hosted model so answers work offline-ish and no farmer data leaves the machine
- Router plus specialists over one big prompt — domain tools only load where they belong
- Answer in the language asked, not English with a translation toggle
- State honest limits in the UI: LLM advice can be wrong, and pesticide doses or big selling calls should be confirmed at the local Krishi Vigyan Kendra
Current Status
Public and open source (MIT) at github.com/rohitguta2432/kisansathi. All six agents live with the router, streaming UI, voice input and read-aloud answers, and both live data tools working keyless; pytest suite green. Built to be forked — translate it, add crops, add agents, put it on a village kiosk.
Roadmap
- More crops and region-specific pest libraries
- Offline mandi price cache for intermittent connectivity
What I'd Improve Next
- A hosted instance with a small bundled model so no Ollama install is required
- Wider mandi coverage by falling back across neighbouring districts
Explore More
- MarginChef — AI Agent That Finds a Restaurant's Margin Leaks — Restaurants run on 3-5% net margins while food costs are up roughly 35% since 2019, and most owners never see per-dish economics.
- Quorum — Deep-Research Agent Swarm with a Shared GraphRAG Brain — Most AI research tools are one model in a loop.
- RegexForge — Plain English to a Regex You Can Trust — Regex is not hard because the syntax is exotic.
- Skillet — Turn Any Docs Page Into an Installable Claude Code Skill — Agent skills are the fastest way to teach a coding agent a new tool, but writing a good SKILL.
- All 47 projects — the full catalogue, with live links and repos.