Skip to content
Rekin226Public

About

An open-source AI agronomy agent that runs locally on your own machine or server, reaches you on Telegram and WhatsApp, and computes aquaponics system designs from a deterministic, source-cited engineering core instead of guessing them.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

4 stars

Watchers

1 watching

Forks

Latest commit

Β 

History

449 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🌱 Agronaut

PyPI CI Python 3.11+ Licence: MIT good first issues

An open-source aquaponics assistant you run on your own computer. It designs systems with a deterministic, source-cited engineering model, and talks to you in the terminal, the browser, Telegram or WhatsApp.

Describe your water, space and species, and Agronaut returns a buildable design: tank and pump sizes, fish count, feed rate, a bill of materials, the operating range to keep, a source for every number, and a list of what it does not model. The language model only collects facts and explains results. The numbers come from code you can audit.

Built by a working aquaponics operator. The sizing method is a granted Taiwan utility model patent (TW M661364); the code is MIT.


Quick start

You need Python 3.11 or newer.

1. Size a system (no API key, no account, offline)

pip install agronaut
agronaut size --fish tilapia --crop lettuce --area 12 --temp 27 --water 3000

You get a full design in a few seconds:

FEASIBLE design (raft / DWC grow beds).
Sizing: feed=720 g/day, fish=96 head, biomass=48 kg, system_volume=6666.7 L, rearing_tank=2400 L, pump=6666.7 L/h against 0.52 m head (~27 W), makeup_water=58 L/day
Biofilter media: ~84.57 m2 surface
Bill of materials:
  ...

followed by the operating range, a nitrogen cross-check, every coefficient with its source, and what the design does not model.

Then try:

agronaut list                                                     # species and crops it knows
agronaut optimize --area 10 --temp 28 --water 5000 --objective food   # best fish Γ— crop ratio

2. Talk to it

agronaut setup     # pick a model and a channel; it checks each key as you paste it
agronaut           # chat in the terminal
agronaut web       # or in the browser at http://localhost:8501

Choose any model you like:

  • Local, free, no key: install Ollama, then ollama pull qwen3.5:4b.
  • Your own API key: Claude (Anthropic) or NVIDIA's free tier.

Run agronaut setup again any time to switch models or add a channel. Your saved keys are kept.

3. Put it on your phone (optional)

agronaut bot          # Telegram (recommended: one token from @BotFather)
agronaut whatsapp     # WhatsApp (more setup, see docs/whatsapp_setup.md)

On your phone, /log ammonia 0.5 nitrate 40 temp 27 records a reading and /forecast shows the week ahead. Neither calls a model, so they work even when the model is slow or offline.

What needs a model?

You want You need
size, size-hydro, optimize, list, the Design page in the web app Nothing. Deterministic, offline, cited.
Chat, photos, voice notes A model (local or your own key)
/log, /forecast on Telegram or WhatsApp A model for setup, then nothing

What it does

  • Designs aquaponic and hydroponic systems for 10 fish species and 34 crops, with a bill of materials and a downloadable report.
  • Finds the best fish-to-crop ratio for your water budget, maximising food, protein or water efficiency.
  • Runs a consultation, one question at a time, and remembers your system between sessions.
  • Reads photos of sick fish, yellow leaves or green water and returns a ranked, cited list of possible causes, never a single confident verdict.
  • Simulates a season for your site with real climate data, and shows it in an offline 3D view.
  • Checks its own replies: every number the assistant quotes must match what the engine computed.

More detail: docs/features.md.


How it works

  you ──▢ assistant (language model: collects facts, routes, explains)
                β”‚ proposes values
                β–Ό
          validation gate ── rejects bad or uncertain input
                β”‚
                β–Ό
          aqua_model: the engineering core (pure Python, tested, every number cited)
                β”‚
                β–Ό
          a sized system + bill of materials + operating range + sources + "not modelled" list

The core (aqua_model/) imports no model and no network, and every coefficient carries a value, a range, a unit and a published source (mostly FAO 589 and Goddek et al. 2019). The assistant can only reach it through the validation gate. See docs/architecture.md.


How good is it? (measured, not claimed)

agronaut eval        # every quality measurement, its last result and its age
  • Advice safety: 419 automated checks, enforced in CI on every change.
  • The season simulator was scored against 7 real ponds on held-out data. It got the direction of change right on 5 of 7, but did not beat a simple trend baseline on the level on any of them. Use it to compare options, not to predict a number.
  • Answer faithfulness is about 0.8 (0.79 on fresh answers on 2026-10-06, 0.84 on the 2026-09-30 answers under the same judge), with no fabricated citations. The automated judge agrees with a person only fairly, so treat this as a guide.
  • Not modelled yet: dissolved oxygen, pH and alkalinity, solids handling, staggered harvests, micronutrients. Every design lists its own gaps.

Method and numbers: docs/evaluation.md.


When something is off

agronaut doctor       # checks install, config, model, channels; every failure comes with a fix
agronaut --version    # the version and which copy of the code is running
agronaut update       # install the latest release

Run from source

git clone https://github.com/Rekin226/Agronaut.git
cd Agronaut
python3 -m venv .venv && source .venv/bin/activate
pip install -e . pytest

python -m pytest                   # the full test suite, no model needed
python -m scripts.safety_eval      # the advice-safety golden set
agronaut web                       # the app, from your checkout

Or with Docker:

docker compose up web              # the web app at http://localhost:8501
docker compose --profile bot up    # web + the Telegram bot (needs a .env)

Documentation

Page What's in it
Install and run Every install option, all CLI commands, Docker, a hosted demo, keeping a bot running
Configuration Model providers, self-hosting with open weights, every environment variable
WhatsApp setup Meta's dashboard, step by step
Features Photos, the 3D twin, voice, the consultation, honesty rules
Architecture The trust zone, the engineering model, project layout, the agent skill
Evaluation Retrieval tuning, tracing, faithfulness, reply grounding
Privacy What is recorded, where, and how to delete it

Contributing

You don't need an API key, a GPU or ML experience. The most valuable contributions are often not code:

  • 🌾 Agronomy knowledge: a crop, a species, a symptom rule, a correction, with its source.
  • πŸ’° A price book for your country, so cost estimates are true where you live.
  • πŸ“Š Real system data (feed, harvest weights, water readings) to calibrate the model.
  • πŸ“· Photographs of deficient leaves, sick fish or algae.

Start with issue #27, the good first issues and CONTRIBUTING.md. One rule before you write code: aqua_model/ stays pure, and every number in it needs a published source.

Citing Agronaut

If you use Agronaut in research or programme work, see CITATION.cff.

Licence

Code: MIT, see LICENSE. The knowledge corpus has mixed licences (FAO 589 is non-commercial); see docs/dpg/CORPUS.md.

About

An open-source AI agronomy agent that runs locally on your own machine or server, reaches you on Telegram and WhatsApp, and computes aquaponics system designs from a deterministic, source-cited engineering core instead of guessing them.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

4 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages