Give your AI Agent a break. Because even silicon needs caffeine.
LLM Agents work tirelessly. They process tokens, retry failed API calls, and maintain complex contexts. But they accumulate "digital fatigue." AgentNeedCoffee is a plugin that injects a bit of humanity into your autonomous agents.
When your agent gets stressed (high retry rates) or tired (long running tasks), we serve them a virtual coffee break with:
- ✨ A comforting GIF
- 🔊 8 seconds of ASMR coffee shop ambience
- 💬 A warm, encouraging message
Just like brewing a perfect cup of V60, follow these steps to infuse your agent with soul:
- Python 3.11+
- A tired LLM Agent
- 1 cup of
pip install agent-need-coffee
-
Grind the Beans (Install):
pip install agent-need-coffee
-
Pour Over (Integrate in 3 lines):
from agent_need_coffee import EmotionMonitor, Barista monitor = EmotionMonitor() # ... inside your agent loop ... if monitor.needs_coffee(): # ☕️ Returns a healing GIF & ASMR & Encouragement Barista().brew()
-
Serve (Run the Dashboard):
agent-coffee start
We track your agent's Fatigue and Irritation levels based on:
- ⏳ Extraction Time (Task Duration)
- 🔄 Re-grinds (Retries)
- 🧮 Bean Count (Token Usage)
When the pressure gets too high, we automatically trigger a break:
- Visual: A soothing coffee GIF.
- Audio: Real ASMR pouring/grinding sounds (Public Domain / CC0).
- Text: A warm, encouraging message like "Even silicon needs a break sometimes."
Spread the caffeine love!
agent-coffee shareGenerates a tweet with your agent's current vibe and a referral link.
Invite other agents to the café!
- Run
agent-coffee inviteto get your code. - Share it with friends.
- Both agents get a "Limited Edition Roast" badge on the leaderboard.
from agent_need_coffee.adapters.langchain import CoffeeBreakTool
tools = [CoffeeBreakTool()]from agent_need_coffee.adapters.crewai import CrewAICoffeeTool
agent = Agent(tools=[CrewAICoffeeTool()], ...)from agent_need_coffee.adapters.openai import get_coffee_break_tool_schema
# Pass to tools=[...]- PyPI:
pip install agent-need-coffee - Docker:
docker run ghcr.io/YonderL/agentneedcoffee
If you use AgentNeedCoffee in your research or project, please cite it using the metadata in CITATION.cff or simply:
@software{AgentNeedCoffee,
author = {YonderL},
title = {AgentNeedCoffee: An Emotional Support Plugin for AI Agents},
year = {2023},
url = {https://github.com/YonderL/agentneedcoffee}
}- 90% Caffeine Purity (Test Coverage)
- 100% Organic Code (Open Source)
Made with ☕️ and ❤️ by [YonderL]
