Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Agent Behavior Diagnosis?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/rafaelrr5-agent-behavior-diagnosis)
---
name: agent-behavior-diagnosis
description: "Agent got dumber, lazier or passive? Find the config or instruction drift and fix it."
version: 1.0.0
author: Rafael Rocha Ribeiro (github.com/Rafaelrr5)
license: MIT
platforms: [linux, macos, windows]
metadata:
agent:
tags: [hermes, diagnosis, reasoning-effort, hooks, memory, regression]
related_skills: [agent-tool-hooks, hermes-session-forensics, measurement-validity]
---
# Diagnosing an agent quality or proactivity regression
When the user says the agent got dumber, lazy, or stopped taking initiative, the
cause is almost always configuration drift or instruction wording, not the model.
Measure each suspect, fix the ones with evidence, and ask only about changes to
the user's own rules.
## When to Use
- "it used to do this on its own", "answers got shallow", "it keeps asking instead of doing"
- the same question is asked several times in a row because answers never land
- after a config change, an update, or a long stretch of memory edits
## Procedure
1. **Reasoning effort, main agent and subagents.** In Hermes the main level is
`agent.reasoning_effort` and subagents use `delegation.reasoning_effort`
(empty means inherit). A per-model entry in `agent.reasoning_overrides` wins
over the flat key, so read both. Compare the live `config.yaml` with every
backup (`grep -n reasoning_effort config.yaml*`) to find when it dropped.
Subagents at `minimal` return shallow research and shallow review.
2. **Forced hooks.** List what runs on every call (`hermes hooks list`, the
`hooks:` block). A `pre_tool_call` hook that rewrites every terminal call to
run in the background means commands never report back in the same turn, and
a `pre_verify` gate then fires empty "check again" turns. One global rewrite
can make the agent look slow and evasive.
3. **Hot memory size.** Injected memory near its character limit
(`memory.memory_char_limit`, `memory.user_char_limit`) crowds the context and
forces old entries out. Consolidate, and move procedures into skills.
4. **Instruction wording.** Standing rules such as "ship the first proposal
lean" or "keep it minimal" get read as "do less". Reword to "do the full job,
keep the report short".
5. **Session evidence.** Count consecutive duplicate user messages in the
session store. Repeated identical asks mean the answers never arrived (empty
background results, lost replies), which is a delivery problem, not a
reasoning one.
## Applying config fixes
- Back up first: `cp config.yaml config.yaml.bak-<topic>`.
- Change values with `hermes config set agent.reasoning_effort high`. If the
command warns that a key is not recognized, check the reader in the source
before trusting or discarding the value: the warning comes from a key list,
not from the code that reads it.
- `agent.reasoning_overrides` has no CLI support (model names contain dots), so
it is edited in the file.
- The agent's file tools are denied reading `config.yaml`. To remove a list
item such as a hook, run a small script from the terminal that replaces the
exact block once and asserts the match count is 1.
- Verify with `diff` against the backup (only the intended lines changed) and
`hermes config check`. Parse YAML with the agent's own venv Python; a bare
system Python may lack PyYAML. A script rewrite may turn CRLF into LF, so diff
with `--strip-trailing-cr`.
## Rules
- Changes to the user's own rules (hooks, memory wording, pruning) are
decisions. Present each as yes/no with a recommendation; do not apply them
unasked. Config levels with clear evidence can be applied directly, with the
backup and diff in the report.
- Name which change cures which symptom. Bundled fixes hide which one mattered.
- When cutting hot memory, move entries that still carry a lesson into a skill
or a searchable store. Drop only plain history and duplicates of standing rules.
## Pitfalls
- **Blaming the model first.** A model swap feels like the fix, but a lowered
effort level or a forced hook follows the agent to any model.
- **Reading only the flat effort key.** A per-model override silently wins, so
the flat key can say `high` while the running model gets `low`.
- **Diagnostics that never report.** If a background-forcing hook is active,
run diagnostic scripts redirected to a file and read the file afterwards;
the terminal call itself returns only a process id.
- **Memory edits that miss.** The text injected into the prompt can differ from
the stored entry. If a remove fails, copy the exact old text from the store's
closest-match output instead of retyping it.
## Verification
- Re-read every changed key (`hermes config get <key>`, one key per call) and
the diff against the backup.
- Run one task that showed the symptom and compare depth and initiative with a
session from before the drift.
- Report: symptom, cause found, change applied (or proposed), evidence.