Implementation:42 evey Hermes plugins evey goals
| Knowledge Sources | |
|---|---|
| Domains | Goal_Management, Task_Management, Autonomous_Agents |
| Last Updated | 2026-10-29 00:00 GMT |
Overview
Concrete tool for managing the agent's goals through a Markdown file (goals.md) with list, add, complete, remove, and review actions.
Description
The evey_goals handler provides full CRUD operations on goals stored in ~/.hermes/goals.md. The file uses a Markdown section structure (## Active, ## Completed, ## Backlog) with checkbox items (- [ ] for open, - [x] for completed).
Actions:
- list — returns all goals grouped by section
- add — appends a
- [ ]item to the specified section (Active or Backlog) - complete — finds a matching
- [ ]item by case-insensitive substring match, converts it to- [x], and moves it to the Completed section - remove — deletes any line matching the goal text (case-insensitive)
- review — returns goal counts plus a
review_promptstring guiding the agent to evaluate progress
The _parse_sections helper splits the file content into sections by ## headers.
Usage
Call this tool to manage the agent's autonomous objectives. The review action is used by the Morning Briefing workflow. Registered as evey_goals on the evey_goals toolset.
Code Reference
Source Location
- Repository: hermes-plugins
- File: evey-goals/__init__.py
- Lines: L11-166 (schema L11-41, _read_goals L44-47, _write_goals L50-51, _parse_sections L54-63, handler L66-157)
Signature
def handler(args: dict, **kwargs) -> str:
"""
Args:
args: {
action: str (required, enum: list/add/complete/remove/review),
goal: str - goal text (for add/complete/remove),
section: str - "Active" or "Backlog" (for add, default "Active")
}
Returns:
list/review: {active, active_count, completed, completed_count, backlog, backlog_count, review_prompt?}
add: {status: "added", goal, section}
complete: {status: "completed", goal}
remove: {status: "removed", goal}
"""
def _read_goals() -> str:
"""Read goals.md content, returning default template if not exists."""
def _write_goals(content: str) -> None:
"""Write goals.md content."""
def _parse_sections(content: str) -> dict[str, list[str]]:
"""Parse markdown content into sections by '## ' headers."""
Import
from evey_goals import handler
# Or accessed via Hermes tool call: evey_goals
I/O Contract
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
| action | str | Yes | One of: list, add, complete, remove, review |
| goal | str | Conditional | Required for add, complete, remove |
| section | str | No | "Active" (default) or "Backlog" for add
|
Outputs (review)
| Name | Type | Description |
|---|---|---|
| active | list[str] | Active goal lines |
| active_count | int | Number of active goals |
| completed | list[str] | Completed goal lines |
| completed_count | int | Number of completed goals |
| backlog | list[str] | Backlog goal lines |
| backlog_count | int | Number of backlog goals |
| review_prompt | str | Guidance for the agent to review goals |
Usage Examples
List Goals
result = tool_call("evey_goals", {"action": "list"})
# {"active":["- [ ] Ship v2.0 API","- [ ] Write integration tests"],
# "active_count":2,"completed":["- [x] Set up CI/CD"],
# "completed_count":1,"backlog":[],"backlog_count":0}
Add a Goal
tool_call("evey_goals", {
"action": "add",
"goal": "Research vector databases for RAG pipeline",
"section": "Active"
})
# {"status":"added","goal":"Research vector databases for RAG pipeline","section":"Active"}
Complete a Goal
tool_call("evey_goals", {
"action": "complete",
"goal": "Write integration tests"
})
# {"status":"completed","goal":"- [x] Write integration tests"}
Review Goals
result = tool_call("evey_goals", {"action": "review"})
# {"active":[...],"active_count":3,"completed":[...],"completed_count":5,
# "backlog":[...],"backlog_count":2,
# "review_prompt":"You have 3 active goals, 5 completed, 2 in backlog. Review each active goal — update progress, complete finished ones, add new ones if inspired."}