Log in to leave a comment
No posts yet
Hermes automatically extracts and saves skills upon completing a task. While this autonomy is appreciated, leaving it unchecked will quickly fill the m.txt file with redundant logic and junk code. Unmanaged memory increases the model's cognitive load, ultimately wasting your money and time.
To maintain the "water quality" of your skill repository, you must first refine the system prompt. Force it to "record all skills in an IPO (Input-Process-Output) structure." Simply mandating the specification of environment variables, execution commands, and expected outputs reduces the likelihood of the agent talking nonsense later. Every Monday morning, open the ~/.hermes/skills/ directory. Merge files that overlap with existing skills and replace code containing hardcoded folder paths with variables like $PROJECT_ROOT. This simple filtering can reduce unnecessary reasoning steps and save nearly 40% of total token consumption.
The moment an agent applies configuration values from Project A to Project B, things get messy. Hermes stores all conversations and metadata in state.db. If you are a freelancer, you must isolate this DB according to the nature of the work. If knowledge gets mixed up, the agent falls into confusion, and you waste time debugging.
Use the command hermes profile create <project_name> in the terminal to create an independent instance. Next, drop an agent-specific behavioral guideline called SOUL.md into the project root and set terminal.backend to local in config.yaml. Every time you start a session, use the /title command to stamp the task name; this makes it much easier to find past solution patterns via SQLite queries later. Setting up this structure takes less than 5 minutes, but it becomes an asset that cuts initial design time in half when you land a similar project in the future.
Using Claude 3.5 Sonnet for every single question is disrespectful to your wallet. You need a cascading strategy: attach paid models only to high-reasoning tasks like architectural design, and delegate simple code implementation or log analysis to local models.
If you want to cap your monthly budget at around 50,000 KRW, you need to nail the timing for model switching. Even if you use Claude in the morning, switch to the local Qwen 2.5 Coder 32B by typing the /model custom command as soon as repetitive coding begins. Automation tasks that run overnight or simple data refining are 100% the responsibility of local models. Frequently check /usage to see if you've exceeded 80% of your budget. The moment you hit the limit, you must state firmly, "Use only local models from now on," to prevent an API cost explosion.
Nothing is more dangerous than an agent pushing false information into the skill repository as if it were fact. Once memory is contaminated, it continues to spit out incorrect results. While respecting autonomy, you must strictly control write permissions that could break the system.
First, set terminal.backend to docker in config.yaml. The priority is isolating the agent so that whatever it does, it stays within the container. Next, run a bash script that automatically validates the agent's code with pytest, ensuring only code that passes tests is uploaded to memory. You are the final line of defense. Modify the system prompt so that the agent must go through user approval whenever it calls save_skill. This triple-filter system must be in place to prevent agent hallucinations from spreading to your system documentation and to maintain 99% reliability.
The data accumulated in state.db is not just a bunch of text. It is a metric showing how efficiently you worked. Use Python's sqlite3 library to extract token consumption per session and the number of skills generated over the past week.
Create a routine to convert the extracted data into Markdown and save it in your personal knowledge base. You'll see at a glance which projects were expensive and which logic was frequently reused. Beyond simple record-keeping, this serves as powerful evidence when estimating your next project. Just as important as managing the agent is the ability to refine the traces it leaves into profitable information. A well-managed Hermes is not just a tool; it becomes a "second brain" that has fully absorbed your working style.