{"slug":"agent","name":"An agent that does tasks","kind":"recipe","what":"A personal AI agent that remembers you, uses tools, learns skills and can chat with you from your phone.","page":"https://insidethemachine.ai/do/agent","status":"docs-checked","status_label":"Not run: commands checked against the official docs only","status_note":"Commands checked against each tool's official docs on 2026-10-15. Not yet run end to end.","wrapper":"The wrapper scripts are generated from the site data. Every .sh passed bash -n and shellcheck and ran in plan mode on Linux (Debian 13). Every .ps1 passed the PowerShell parser and chat.ps1 ran in plan, verify and rollback mode under PowerShell 7 on Linux with Windows calls mocked. Not run on macOS or real Windows.","wrapper_tested":null,"sh":"https://insidethemachine.ai/install/agent.sh","ps1":"https://insidethemachine.ai/install/agent.ps1","md":"https://insidethemachine.ai/install/agent.md","json":"https://insidethemachine.ai/install/agent.json","one_liner":"curl -fsSL https://insidethemachine.ai/install/agent.sh | bash","one_liner_windows":"irm https://insidethemachine.ai/install/agent.ps1 | iex","actions":{"install":"curl -fsSL https://insidethemachine.ai/install/agent.sh | bash","plan":"curl -fsSL https://insidethemachine.ai/install/agent.sh | bash -s -- plan","verify":"curl -fsSL https://insidethemachine.ai/install/agent.sh | bash -s -- verify","rollback":"curl -fsSL https://insidethemachine.ai/install/agent.sh | bash -s -- rollback --yes"},"env":{"ITM_RAM":"memory in GB instead of detecting it","ITM_MODEL":"ollama tag to use instead of the pick"},"model_by_memory_gb":{"8":"qwen3.5:4b","16":"gemma4:12b","24":"gemma4:12b","32":"qwen3.8:27b","48":"qwen3.8:27b","64":"qwen3.8:27b","96":"qwen3.8:27b","128":"qwen3.8:27b","192":"qwen3.8-flash-next:125b-a6b","256":"qwen3.8-flash-next:125b-a6b","512":"qwen3.8-flash-next:125b-a6b"},"low_memory":null,"platforms":{"macos":{"install":[{"title":"Install Ollama","lines":[{"k":"run","c":"curl -fsSL https://ollama.com/install.sh | sh"}]},{"title":"Download your model","lines":[{"k":"ollama","c":"ollama pull $MODEL"}]},{"title":"Give the model a long memory","lines":[{"k":"you","c":"OLLAMA_CONTEXT_LENGTH=64000 ollama serve","why":"starts a server that keeps running; run it in its own window"}]},{"title":"Install Hermes Agent","lines":[{"k":"you","c":"ollama launch hermes","why":"interactive; run it yourself"}]},{"title":"Talk to it","lines":[{"k":"you","c":"hermes","why":"interactive; run it yourself"}]},{"title":"Optional: chat from your phone","lines":[{"k":"you","c":"hermes gateway setup","why":"interactive; run it yourself"}]}],"verify":[{"run":"ollama --version","expect":"a version number"},{"run":"ollama list | grep -F \"${MODEL%%:*}\"","expect":"your model is in the list"},{"run":"hermes doctor","expect":"no blocking errors (after you ran `ollama launch hermes`)","you":true}],"rollback":[{"k":"run","c":"hermes uninstall"},{"k":"ollama","c":"ollama rm $MODEL"}]},"linux":{"install":[{"title":"Install Ollama","lines":[{"k":"run","c":"curl -fsSL https://ollama.com/install.sh | sh"}]},{"title":"Download your model","lines":[{"k":"ollama","c":"ollama pull $MODEL"}]},{"title":"Give the model a long memory","lines":[{"k":"you","c":"OLLAMA_CONTEXT_LENGTH=64000 ollama serve","why":"starts a server that keeps running; run it in its own window"}]},{"title":"Install Hermes Agent","lines":[{"k":"you","c":"ollama launch hermes","why":"interactive; run it yourself"}]},{"title":"Talk to it","lines":[{"k":"you","c":"hermes","why":"interactive; run it yourself"}]},{"title":"Optional: chat from your phone","lines":[{"k":"you","c":"hermes gateway setup","why":"interactive; run it yourself"}]}],"verify":[{"run":"ollama --version","expect":"a version number"},{"run":"ollama list | grep -F \"${MODEL%%:*}\"","expect":"your model is in the list"},{"run":"hermes doctor","expect":"no blocking errors (after you ran `ollama launch hermes`)","you":true}],"rollback":[{"k":"run","c":"hermes uninstall"},{"k":"ollama","c":"ollama rm $MODEL"}]},"windows":{"install":[{"title":"Install Ollama","lines":[{"k":"run","c":"irm https://ollama.com/install.ps1 | iex"},{"k":"you","c":"$env:OLLAMA_CONTEXT_LENGTH=64000; ollama serve","why":"starts a server that keeps running; run it in its own window"}]},{"title":"Download your model","lines":[{"k":"ollama","c":"ollama pull $MODEL"}]},{"title":"The rest of the recipe","lines":[{"k":"note","c":"Install Ollama with this PowerShell command, or the installer from ollama.com/download. On Linux, the install command above works as it is. After that, every ollama command on this page is the same. In PowerShell, start Ollama with a long memory like this. Hermes Agent's page has its Windows install line. Steps: https://insidethemachine.ai/do/agent"}]}],"verify":[{"run":"ollama --version","expect":"a version number"},{"run":"ollama list","expect":"your model is in the list"}],"rollback":[{"k":"ollama","c":"ollama rm $MODEL"}]}}}