If you’ve been dreaming of building sophisticated agents capable of planning and executing tasks without needing to write a single line of code, Nerve is your golden ticket. This tool empowers you to harness the power of large language models (LLMs) to handle diverse tasks effortlessly. In this guide, we’ll walk you through using Nerve, providing you with actionable steps, and solving common issues you might encounter along the way.
Getting Started with Nerve
Before diving into the specific functionalities, ensure you have Nerve set up on your system, whether through Docker or by building from source. Here are the steps:
1. Installation
- If you prefer Docker, you can pull the image directly from Docker Hub:
docker run -it --network=host -v .examples:root.nervetasklets evilsocketnerve -h
cargo build --release
2. Defining Agents
Nerve allows you to create agents tailored to your needs. The process incorporates a YAML template that defines your agent’s capabilities and tasks.
- Here is an analogy to understand the concept: Think of Nerve as a friendly librarian (the agent) who helps patrons (tasks) find books or information (solutions) based on the patron’s requests, using a structured library system (YAML).
3. Running a Tasklet
After building your agent, you can run a specific tasklet which essentially describes what you want your agent to accomplish.
sh nerve -G ollama:llama3@localhost:11434 -T pathtossh_agent -DSSH_USER_HOST_STRING=user@example-ssh-server-host
Example Tasklet
In the following example, we’ll define a tasklet for an agent to find out which process is consuming the most RAM:
using:
- memory
- goal
- task
- planning
- time
system_prompt: "You are a senior developer and computer expert with years of linux experience."
prompt: "Find which process is using the most RAM."
guidance:
- Always assume you start in a new binbash shell in the user home directory.
timeout: 120s
functions:
- name: Commands
actions:
- name: ssh
description: To execute a bash command on the remote host via SSH:
example_payload: whoami
timeout: 30s
tool: ssh $SSH_USER_HOST_STRING
In this tasklet, you are essentially programming your agent to perform various tasks and refine its objectives based on learned information, just like updating the librarian with new book categories.
Troubleshooting Common Issues
If you encounter any challenges while using Nerve, here are some common solutions:
- Invalid Responses: If the model is generating invalid responses, it might be because you are using a smaller model. Consider switching to a larger model for better results.
- Setup Issues: Ensure you have correctly specified your API key for the different LLMs you want to use (OpenAI, Groq, etc.).
- Connection Problems: If you face connectivity issues with the server, ensure that your Docker network settings are appropriately configured.
For more insights, updates, or to collaborate on AI development projects, stay connected with fxis.ai.
Conclusion
Embrace the power of creating stateful agents with Nerve, and forget about the coding hassle. With its easy-to-use YAML-based templates and LLM compatibility, you’re set to embark on an incredible journey of automated problem-solving and planning!
At fxis.ai, we believe that such advancements are crucial for the future of AI, as they enable more comprehensive and effective solutions. Our team is continually exploring new methodologies to push the envelope in artificial intelligence, ensuring that our clients benefit from the latest technological innovations.

