{"id":28073,"library":"pw-agent","title":"PastaWater Agent","description":"A CLI coding assistant powered by your Ollama GPUs. Uses local LLMs for code generation, chat, and agentic workflows. Current version: 1.50.40. Released frequently via PyPI.","status":"active","version":"1.50.40","language":"python","source_language":"en","source_url":"https://github.com/PastaWater/pw-agent","tags":["llm","cli","ollama","coding-assistant","agent"],"install":[{"cmd":"pip install pw-agent","lang":"bash","label":"Install from PyPI"}],"dependencies":[{"reason":"Required to connect to Ollama server for LLM inference.","package":"ollama","optional":false},{"reason":"Used for structured output and function calling.","package":"instructor","optional":true}],"imports":[{"wrong":"from pw_agent import PastaWaterAgent","symbol":"Agent","correct":"from pw_agent.agent import Agent"}],"quickstart":{"code":"from pw_agent import PastaWaterAgent\nimport os\n\nagent = PastaWaterAgent(\n    ollama_host=os.environ.get('OLLAMA_HOST', 'http://localhost:11434'),\n    model='codellama'\n)\nresponse = agent.chat(\"Write a Python function to compute Fibonacci numbers.\")\nprint(response)","lang":"python","description":"Initialize the agent with an Ollama host and model, then send a chat message."},"warnings":[{"fix":"Use PastaWaterAgent(model='codellama').","message":"In version 1.40.0 the constructor changed: `model_name` is now `model`. Old code PastaWaterAgent(model_name='codellama') breaks.","severity":"breaking","affected_versions":">=1.40.0"},{"fix":"Set a reasonable timeout or check connectivity before calling agent methods.","message":"The agent requires an active Ollama server. If OLLAMA_HOST is unreachable, the agent hangs without timeout error.","severity":"gotcha","affected_versions":"all"},{"fix":"Use agent.chat() instead of agent.generate().","message":"Method `generate` has been deprecated in favor of `chat`. It still works but will be removed in v2.0.","severity":"deprecated","affected_versions":">=1.45.0"}],"env_vars":null,"search_vec":"'1.50.40':24 'agent':2,20,35 'assist':6,34 'chat':18 'cli':4,30 'code':5,16,33 'coding-assist':32 'current':22 'frequent':26 'generat':17 'gpus':11 'llm':29 'llms':14 'local':13 'ollama':10,31 'pastawat':1 'power':7 'pypi':28 'releas':25 'use':12 'version':23 'via':27 'workflow':21","created_at":"2026-05-09T05:53:35.269791+00:00","updated_at":"2026-05-09T05:53:35.269791+00:00","problems":{"verify_error":"Traceback (most recent call last):\n  File \"<string>\", line 1, in <module>\nModuleNotFoundError: No module named 'pw_agent.agent'; 'pw_agent' is not a package"},"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":"pw-agent","cli_version":"pw-agent 1.50.40","type":"library","homepage":"https://pastawater.io","github":null,"docs":null,"changelog":null,"pypi":"https://pypi.org/project/pw-agent/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["llm-agents","ai-ml"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"import_fail","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-07-10","install_tag":null}}