360 Secure SkillHub
360 安全技能中心

hermes-time-awareness

该 Skill 是 Hermes Agent 插件,通过 pre_llm_call 钩子在每轮 LLM 调用前读取系统时间、时区与用户空闲时长,并以紧凑时间块追加到用户消息,使模型具备时间感知。需 Hermes Agent 与 Python 3.8+,附带安装和健康检查脚本。

mfang0126
mfang0126
热度 16.08
最近更新 2026-08-31 00:26:41
分类:自动化依赖:代码执行 / 内部调用大模型应用场景:工作流 / 日程安排 / 任务管理

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add hermes-time-awareness
Metadata
name
hermes-time-awareness
description
Inject current time and idle detection into every LLM turn.
version
1.0.0
author
mfang0126
license
MIT
metadata
{"hermes":{"tags":["hermes","time","awareness","hook","plugin","idle-detection"]},"platforms":["macos","linux","windows"]}

hermes-time-awareness

Time awareness for Hermes Agent. Injects current time and idle detection into every LLM turn via pre_llm_call hook.

When to Use

  • Agent needs to know what time it is (scheduling, reminders, time-sensitive tasks)
  • Detect user idle/away time for context-aware responses
  • Zero core changes, prompt-cache safe, ~30 tokens per turn

What It Does

Every turn, the model sees:

[time: 2026-08-29 18:00 AEST +10:00 Sat]
[idle: 2h15m]

Quick Start

git clone https://github.com/mfang0126/hermes-time-awareness.git
cp -r hermes-time-awareness ~/.hermes/plugins/
# Restart Hermes — hook auto-activates

How It Works

Uses Hermes pre_llm_call hook mechanism:

  1. Reads current system time + timezone
  2. Calculates idle duration since last user message
  3. Appends compact time block to user message
  4. ~30 tokens overhead per turn

Requirements

  • Hermes Agent (any recent version)
  • Python 3.8+