Agent fixes a failed service

The api service does not start. The agent finds the cause in the logs, fixes it and restarts only api.

Starting point

fuku runs six services. The api service stops at startup. fuku tries it again, then marks it failed.

You ask the agent
api is down. Find out why, fix it and bring it back up
What happens
  1. The agent reads the status and the api logs through fuku.
  2. The log shows that BOOKS_DB_URL is not set.
  3. The agent creates .env from .env.example.
  4. The agent restarts api through fuku. The other five services continue to run.
Why it helps

The agent does not search for processes, ports or log files. fuku gives it the state and the logs.

More about this feature: AI Agents.