hermes - 💡(How to fix) Fix [i18n] Thai Translation: Features Part 1b - Plugins, Code, Context, Creds, Cron, Dashboard [1 participants]
ON THIS PAGE
Recommended Tools
×6Utilities matched from this issue’s tags and category — try them while you read without losing context.
GitHub issue graph ai analysis
Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.
The report is written in English Markdown for sharing and archival.
Helpful · Quick feedback
Error Message
if "error" not in str(result):
errors = output.count(" error")
| Tool calls | 50 ต่อการเรียกใช้ | จะส่ง error กลับเมื่อถึงขีดจำกัด |
นั่นหมายความว่าการเรียกใช้เครื่องมือภายในสคริปต์มีพฤติกรรมเหมือนกับการเรียกใช้เครื่องมือปกติ - มี rate limits เดียวกัน, การจัดการ error เดียวกัน, และความสามารถเดียวกัน ข้อจำกัดเดียวคือ terminal() เป็นแบบ foreground-only (ไม่มีพารามิเตอร์ background หรือ pty)
Error Handling
เมื่อสคริปต์ล้มเหลว, agent จะได้รับข้อมูล error ที่มีโครงสร้าง:
- Non-zero exit code: stderr จะถูกรวมอยู่ใน output เพื่อให้ agent เห็น traceback ทั้งหมด
- Tool call limit: เมื่อถึงขีดจำกัด 50 ครั้ง, การเรียกใช้เครื่องมือครั้งถัดไปจะส่ง error message กลับมา
การตอบกลับจะรวม
status(success/error/timeout/interrupted),output,tool_calls_made, และduration_secondsเสมอ - All API endpoints return JSON with
{data, error, meta}shape
การจัดการข้อผิดพลาด (Error Handling)
→ 402 billing error?
Error Recovery
| Error | Behavior | Cooldown |
4. run_agent.py - Error recovery: 429/402/401 → pool rotation → fallback
console.error("API call failed:", err);
Fix Action
Fix / Workaround
| Hook | พฤติกรรม |
|---|---|
post_tool_call | เมื่อ write_file / terminal / patch สร้างไฟล์ที่ตรงกับ test_*, tmp_*, หรือ *.test.* ภายใน HERMES_HOME หรือ /tmp/hermes-* จะถูกติดตามอย่างเงียบ ๆ ในฐานะ test / temp / cron-output |
on_session_end | หากมีการติดตามไฟล์ test ใด ๆ ในระหว่าง turn จะทำการล้างข้อมูลแบบปลอดภัยด้วย quick และบันทึกสรุปเพียงบรรทัดเดียว หากไม่มีอะไร จะเงียบไป |
เครื่องมือที่พร้อมใช้งานภายในสคริปต์: web_search, web_extract, read_file, write_file, search_files, patch, terminal (foreground เท่านั้น).
from hermes_tools import search_files, read_file, patchCode Example
hermes plugins enable disk-cleanup
---
plugins:
enabled:
- disk-cleanup
---
hermes plugins disable disk-cleanup
# หรือ: ลบออกจาก plugins.enabled ใน config.yaml
---
/disk-cleanup status # สรุป + 10 รายการที่ใหญ่ที่สุด
/disk-cleanup dry-run # ดูตัวอย่างโดยไม่ลบ
/disk-cleanup quick # ทำการล้างข้อมูลแบบปลอดภัยทันที
/disk-cleanup deep # quick + แสดงรายการที่ต้องยืนยัน
/disk-cleanup track <path> <category> # ติดตามด้วยตนเอง
/disk-cleanup forget <path> # หยุดติดตาม (ไม่ลบ)
---
# The agent can write scripts like:
from hermes_tools import web_search, web_extract
results = web_search("Python 3.13 features", limit=5)
for r in results["data"]["web"]:
content = web_extract([r["url"]])
# ... filter and process ...
print(summary)
---
from hermes_tools import search_files, read_file
import json
# ค้นหาไฟล์ config ทั้งหมดและดึงการตั้งค่าฐานข้อมูล
matches = search_files("database", path=".", file_glob="*.yaml", limit=20)
configs = []
for match in matches.get("matches", []):
content = read_file(match["path"])
configs.append({"file": match["path"], "preview": content["content"][:200]})
print(json.dumps(configs, indent=2))
---
from hermes_tools import web_search, web_extract
import json
# ค้นหา, ดึงข้อมูล, และสรุปในรอบเดียว
results = web_search("Rust async runtime comparison 2025", limit=5)
summaries = []
for r in results["data"]["web"]:
page = web_extract([r["url"]])
for p in page.get("results", []):
if p.get("content"):
summaries.append({
"title": r["title"],
"url": r["url"],
"excerpt": p["content"][:500]
})
print(json.dumps(summaries, indent=2))
---
from hermes_tools import search_files, read_file, patch
# ค้นหาไฟล์ Python ทั้งหมดที่ใช้ API ที่เลิกใช้แล้วและแก้ไขให้ถูกต้อง
matches = search_files("old_api_call", path="src/", file_glob="*.py")
fixed = 0
for match in matches.get("matches", []):
result = patch(
path=match["path"],
old_string="old_api_call(",
new_string="new_api_call(",
replace_all=True
)
if "error" not in str(result):
fixed += 1
print(f"Fixed {fixed} files out of {len(matches.get('matches', []))} matches")
---
from hermes_tools import terminal, read_file
import json
# รัน tests, parse ผลลัพธ์, และรายงาน
result = terminal("cd /project && python -m pytest --tb=short -q 2>&1", timeout=120)
output = result.get("output", "")
# Parse ผลลัพธ์การทดสอบ
passed = output.count(" passed")
failed = output.count(" failed")
errors = output.count(" error")
report = {
"passed": passed,
"failed": failed,
"errors": errors,
"exit_code": result.get("exit_code", -1),
"summary": output[-500:] if len(output) > 500 else output
}
print(json.dumps(report, indent=2))
---
# ~/.hermes/config.yaml
code_execution:
mode: project # หรือ "strict"
---
# In ~/.hermes/config.yaml
code_execution:
mode: project # project (default) | strict
timeout: 300 # Max seconds per script (default: 300)
max_tool_calls: 50 # Max tool calls per execution (default: 50)
---
terminal:
env_passthrough:
- MY_CUSTOM_KEY
- ANOTHER_TOKEN
---
my-project/
├── AGENTS.md ← โหลดเมื่อเริ่มต้น (system prompt)
├── frontend/
│ └── AGENTS.md ← ค้นพบเมื่อ agent อ่านไฟล์ใน frontend/
├── backend/
│ └── AGENTS.md ← ค้นพบเมื่อ agent อ่านไฟล์ใน backend/
└── shared/
└── AGENTS.md ← ค้นพบเมื่อ agent อ่านไฟล์ใน shared/
---
# Project Context
This is a Next.js 14 web application with a Python FastAPI backend.
## Architecture
- Frontend: Next.js 14 with App Router in `/frontend`
- Backend: FastAPI in `/backend`, uses SQLAlchemy ORM
- Database: PostgreSQL 16
- Deployment: Docker Compose on a Hetzner VPS
## Conventions
- Use TypeScript strict mode for all frontend code
- Python code follows PEP 8, use type hints everywhere
- All API endpoints return JSON with `{data, error, meta}` shape
- Tests go in `__tests__/` directories (frontend) or `tests/` (backend)
## Important Notes
- Never modify migration files directly - use Alembic commands
- The `.env.local` file has real API keys, don't commit it
- Frontend port is 3000, backend is 8000, DB is 5432
---
# Project Context
The following project context files have been loaded and should be followed:
## AGENTS.md
[Your AGENTS.md content here]
## .cursorrules
[Your .cursorrules content here]
[Your SOUL.md content here]
---
[BLOCKED: AGENTS.md contained potential prompt injection (prompt_injection). Content not loaded.]
---
[...truncated AGENTS.md: kept 14000+4000 of 25000 chars. Use file tools to read the full file.]
---
<!-- frontend/AGENTS.md -->
# Frontend Context
- Use `pnpm` not `npm` for package management
- Components go in `src/components/`, pages in `src/app/`
- Use Tailwind CSS, never inline styles
- Run tests with `pnpm test`
---
<!-- backend/AGENTS.md -->
# Backend Context
- Use `poetry` for dependency management
- Run the dev server with `poetry run uvicorn main:app --reload`
- All endpoints need OpenAPI docstrings
- Database models are in `models/`, schemas in `schemas/`
---
Review @file:src/main.py and suggest improvements
What changed? @diff
Compare @file:old_config.yaml and @file:new_config.yaml
What's in @folder:src/components?
Summarize this article @url:https://arxiv.org/abs/2301.00001
---
Check @file:main.py, and also @file:test.py.
---
@file:src/main.py:42 # บรรทัดเดียวที่ 42
@file:src/main.py:10-25 # บรรทัดที่ 10 ถึง 25 (รวม)
---
# Code review workflow
Review @diff and check for security issues
# Debug with context
This test is failing. Here's the test @file:tests/test_auth.py
and the implementation @file:src/auth.py:50-80
# Project exploration
What does this project do? @folder:src @file:README.md
# Research
Compare the approaches in @url:https://arxiv.org/abs/2301.00001
and @url:https://arxiv.org/abs/2301.00002
---
Your request
→ Pick key from pool (round_robin / least_used / fill_first / random)
→ Send to provider
→ 429 rate limit?
→ Retry same key once (transient blip)
→ Second 429 → rotate to next pool key
→ All keys exhausted → fallback_model (different provider)
→ 402 billing error?
→ Immediately rotate to next pool key (24h cooldown)
→ 401 auth expired?
→ Try refreshing the token (OAuth)
→ Refresh failed → rotate to next pool key
→ Success → continue normally
---
# Add a second OpenRouter key
hermes auth add openrouter --api-key sk-or-v1-your-second-key
# Add a second Anthropic key
hermes auth add anthropic --type api-key --api-key sk-ant-api03-your-second-key
# Add an Anthropic OAuth credential (Claude Code subscription)
hermes auth add anthropic --type oauth
# Opens browser for OAuth login
---
hermes auth list
---
openrouter (2 credentials):
#1 OPENROUTER_API_KEY api_key env:OPENROUTER_API_KEY ←
#2 backup-key api_key manual
anthropic (3 credentials):
#1 hermes_pkce oauth hermes_pkce ←
#2 claude_code oauth claude_code
#3 ANTHROPIC_API_KEY api_key env:ANTHROPIC_API_KEY
---
hermes auth
---
What would you like to do?
1. Add a credential
2. Remove a credential
3. Reset cooldowns for a provider
4. Set rotation strategy for a provider
5. Exit
---
anthropic supports both API keys and OAuth login.
1. API key (paste a key from the provider dashboard)
2. OAuth login (authenticate via browser)
Type [1/2]:
---
credential_pool_strategies:
openrouter: round_robin
anthropic: least_used
---
# After setting up a custom endpoint via hermes model:
hermes auth list
# Shows:
# Together.ai (1 credential):
# #1 config key api_key config:Together.ai ←
# Add a second key for the same endpoint:
hermes auth add Together.ai --api-key sk-together-second-key
---
{
"credential_pool": {
"openrouter": [...],
"custom:together.ai": [...]
}
}
---
{
"version": 1,
"credential_pool": {
"openrouter": [
{
"id": "abc123",
"label": "OPENROUTER_API_KEY",
"auth_type": "api_key",
"priority": 0,
"source": "env:OPENROUTER_API_KEY",
"access_token": "sk-or-v1-...",
"last_status": "ok",
"request_count": 142
}
]
},
}
---
credential_pool_strategies:
openrouter: round_robin
anthropic: least_used
---
/cron add 30m "Remind me to check the build"
/cron add "every 2h" "Check server status"
/cron add "every 1h" "Summarize new feed items" --skill blogwatcher
/cron add "every 1h" "Use both skills and combine the result" --skill blogwatcher --skill maps
---
hermes cron create "every 2h" "Check server status"
hermes cron create "every 1h" "Summarize new feed items" --skill blogwatcher
hermes cron create "every 1h" "Use both skills and combine the result" \
--skill blogwatcher \
--skill maps \
--name "Skill combo"
---
Every morning at 9am, check Hacker News for AI news and send me a summary on Telegram.
---
cronjob(
action="create",
skill="blogwatcher",
prompt="Check the configured feeds and summarize anything new.",
schedule="0 9 * * *",
name="Morning feeds",
)
---
cronjob(
action="create",
skills=["blogwatcher", "maps"],
prompt="Look for new local events and interesting nearby places, then combine them into one short brief.",
schedule="every 6h",
name="Local brief",
)
---
/cron edit <job_id> --schedule "every 4h"
/cron edit <job_id> --prompt "Use the revised task"
/cron edit <job_id> --skill blogwatcher --skill maps
/cron edit <job_id> --remove-skill blogwatcher
/cron edit <job_id> --clear-skills
---
hermes cron edit <job_id> --schedule "every 4h"
hermes cron edit <job_id> --prompt "Use the revised task"
hermes cron edit <job_id> --skill blogwatcher --skill maps
hermes cron edit <job_id> --add-skill maps
hermes cron edit <job_id> --remove-skill blogwatcher
hermes cron edit <job_id> --clear-skills
---
/cron list
/cron pause <job_id>
/cron resume <job_id>
/cron run <job_id>
/cron remove <job_id>
---
hermes cron list
hermes cron pause <job_id>
hermes cron resume <job_id>
hermes cron run <job_id>
hermes cron remove <job_id>
hermes cron status
hermes cron tick
---
hermes gateway install # ติดตั้งเป็น user service
sudo hermes gateway install --system # Linux: boot-time system service สำหรับเซิร์ฟเวอร์
hermes gateway # หรือรันใน foreground
hermes cron list
hermes cron status
---
Cronjob Response: Morning feeds
-------------
<agent output here>
Note: The agent cannot see this message, and therefore cannot respond to it.
---
# ~/.hermes/config.yaml
cron:
wrap_response: false
---
Check if nginx is running. If everything is healthy, respond with only [SILENT].
Otherwise, report the issue.
---
# ~/.hermes/config.yaml
cron:
script_timeout_seconds: 300 # 5 minutes
---
30m → รันครั้งเดียวใน 30 นาที
2h → รันครั้งเดียวใน 2 ชั่วโมง
1d → รันครั้งเดียวใน 1 วัน
---
every 30m → ทุก 30 นาที
every 2h → ทุก 2 ชั่วโมง
every 1d → ทุกวัน
---
0 9 * * * → ทุกวันเวลา 9:00 น.
0 9 * * 1-5 → วันธรรมดาเวลา 9:00 น.
0 */6 * * * → ทุก 6 ชั่วโมง
30 8 1 * * → วันที่ 1 ของทุกเดือนเวลา 8:30 น.
0 0 * * 0 → ทุกวันอาทิตย์เวลาเที่ยงคืน
---
2026-03-15T09:00:00 → ครั้งเดียวในวันที่ 15 มีนาคม 2026 เวลา 9:00 น.
---
cronjob(
action="create",
prompt="...",
schedule="every 2h",
repeat=5,
)
---
cronjob(action="create", ...)
cronjob(action="list")
cronjob(action="update", job_id="...")
cronjob(action="pause", job_id="...")
cronjob(action="resume", job_id="...")
cronjob(action="run", job_id="...")
cronjob(action="remove", job_id="...")
---
mkdir -p ~/.hermes/plugins/my-plugin/dashboard/dist
---
{
"name": "my-plugin",
"label": "My Plugin",
"icon": "Sparkles",
"version": "1.0.0",
"tab": {
"path": "/my-plugin",
"position": "after:skills"
},
"entry": "dist/index.js"
}
---
(function () {
var SDK = window.__HERMES_PLUGIN_SDK__;
var React = SDK.React;
var Card = SDK.components.Card;
var CardHeader = SDK.components.CardHeader;
var CardTitle = SDK.components.CardTitle;
var CardContent = SDK.components.CardContent;
function MyPage() {
return React.createElement(Card, null,
React.createElement(CardHeader, null,
React.createElement(CardTitle, null, "My Plugin")
),
React.createElement(CardContent, null,
React.createElement("p", { className: "text-sm text-muted-foreground" },
"Hello from my custom dashboard tab!"
)
)
);
}
window.__HERMES_PLUGINS__.register("my-plugin", MyPage);
})();
---
~/.hermes/plugins/my-plugin/
plugin.yaml # optional - manifest สำหรับ plugin CLI/gateway ที่มีอยู่
__init__.py # optional - hooks สำหรับ plugin CLI/gateway ที่มีอยู่
dashboard/ # ส่วนขยาย dashboard
manifest.json # required - config ของแท็บ, icon, entry point
dist/
index.js # required - JS bundle ที่ build ไว้ล่วงหน้า
style.css # optional - CSS ที่กำหนดเอง
plugin_api.py # optional - เส้นทาง API backend
---
{
"name": "my-plugin",
"label": "My Plugin",
"description": "What this plugin does",
"icon": "Sparkles",
"version": "1.0.0",
"tab": {
"path": "/my-plugin",
"position": "after:skills"
},
"entry": "dist/index.js",
"css": "dist/style.css",
"api": "plugin_api.py"
}
---
var SDK = window.__HERMES_PLUGIN_SDK__;
// React
SDK.React // React instance
SDK.hooks.useState // React hooks
SDK.hooks.useEffect
SDK.hooks.useCallback
SDK.hooks.useMemo
SDK.hooks.useRef
SDK.hooks.useContext
SDK.hooks.createContext
// API
SDK.api // Hermes API client (getStatus, getSessions, etc.)
SDK.fetchJSON // Raw fetch สำหรับ custom endpoints - จัดการเรื่อง auth โดยอัตโนมัติ
// UI Components (shadcn/ui style)
SDK.components.Card
SDK.components.CardHeader
SDK.components.CardTitle
SDK.components.CardContent
SDK.components.Badge
SDK.components.Button
SDK.components.Input
SDK.components.Label
SDK.components.Select
SDK.components.SelectOption
SDK.components.Separator
SDK.components.Tabs
SDK.components.TabsList
SDK.components.TabsTrigger
// Utilities
SDK.utils.cn // Tailwind class merger (clsx + twMerge)
SDK.utils.timeAgo // "5m ago" จาก unix timestamp
SDK.utils.isoTimeAgo // "5m ago" จาก ISO string
// Hooks
SDK.useI18n // i18n translations
SDK.useTheme // ข้อมูล theme ปัจจุบัน
---
SDK.fetchJSON("/api/plugins/my-plugin/data")
.then(function (result) {
console.log(result);
})
.catch(function (err) {
console.error("API call failed:", err);
});
---
// Fetch agent status
SDK.api.getStatus().then(function (status) {
console.log("Version:", status.version);
});
// List sessions
SDK.api.getSessions(10).then(function (resp) {
console.log("Sessions:", resp.sessions.length);
});
---
# plugin_api.py
from fastapi import APIRouter
router = APIRouter()
@router.get("/data")
async def get_data():
return {"items": ["one", "two", "three"]}
@router.post("/action")
async def do_action(body: dict):
return {"ok": True, "received": body}
---
from fastapi import APIRouter
from hermes_state import SessionDB
from hermes_cli.config import load_config
router = APIRouter()
@router.get("/session-count")
async def session_count():
db = SessionDB()
try:
count = len(db.list_sessions(limit=9999))
return {"count": count}
finally:
db.close()
---
{
"css": "dist/style.css"
}
---
/* dist/style.css */
.my-plugin-chart {
border: 1px solid var(--color-border);
background: var(--color-card);
padding: 1rem;
}
---
curl http://127.0.0.1:9119/api/dashboard/plugins/rescanRAW_BUFFERClick to expand / collapse
📄 user-guide/features/built-in-plugins.md
sidebar_position: 12 sidebar_label: "ปลั๊กอินในตัว" title: "ปลั๊กอินในตัว" description: "Plugins ที่มาพร้อมกับ Hermes Agent ซึ่งทำงานโดยอัตโนมัติผ่าน lifecycle hooks - เช่น disk-cleanup และอื่น ๆ"
ปลั๊กอินในตัว (Built-in Plugins)
Hermes มีชุดปลั๊กอินขนาดเล็กที่มาพร้อมกับ repository เหล่านี้ ปลั๊กอินเหล่านี้จะอยู่ใน <repo>/plugins/<name>/ และจะโหลดโดยอัตโนมัติพร้อมกับปลั๊กอินที่ผู้ใช้ติดตั้งใน ~/.hermes/plugins/ พวกมันใช้ plugin surface เดียวกันกับปลั๊กอินภายนอก ไม่ว่าจะเป็น hooks, tools, หรือ slash commands เพียงแต่ถูกดูแลรักษาแบบ in-tree
ดูที่หน้า Plugins สำหรับระบบปลั๊กอินโดยรวม และ Build a Hermes Plugin เพื่อเรียนรู้วิธีสร้างปลั๊กอินของคุณเอง
การค้นพบ (Discovery) ทำงานอย่างไร
PluginManager จะสแกนแหล่งที่มาสี่แห่งตามลำดับ:
- Bundled -
<repo>/plugins/<name>/(ส่วนที่หน้านี้อธิบาย) - User -
~/.hermes/plugins/<name>/ - Project -
./.hermes/plugins/<name>/(ต้องตั้งค่าHERMES_ENABLE_PROJECT_PLUGINS=1) - Pip entry points -
hermes_agent.plugins
หากเกิดการชนกันของชื่อ (name collision) แหล่งที่มาที่อยู่ภายหลังจะชนะเสมอ - ตัวอย่างเช่น ปลั๊กอินของผู้ใช้ชื่อ disk-cleanup จะมาแทนที่ปลั๊กอินที่ติดตั้งมาให้
plugins/memory/ และ plugins/context_engine/ ถูกยกเว้นจากการสแกนแบบ bundled โดยเจตนา เนื่องจาก memory providers และ context engines เป็น providers ที่เลือกได้เพียงตัวเดียวและถูกกำหนดค่าผ่าน hermes memory setup / context.engine ในไฟล์ config
ปลั๊กอินในตัวต้องเปิดใช้งาน (Opt-in)
ปลั๊กอินในตัวจะถูกติดตั้งมาในสถานะปิดใช้งาน (disabled) การค้นพบจะพบพวกมัน (จะปรากฏใน hermes plugins list และ UI แบบโต้ตอบ hermes plugins) แต่จะไม่มีปลั๊กอินใดโหลดขึ้นมาจนกว่าคุณจะเปิดใช้งานมันอย่างชัดเจน:
hermes plugins enable disk-cleanupหรือผ่าน ~/.hermes/config.yaml:
plugins:
enabled:
- disk-cleanupนี่คือกลไกเดียวกับที่ปลั๊กอินที่ผู้ใช้ติดตั้งใช้ ปลั๊กอินในตัวจะไม่ถูกเปิดใช้งานโดยอัตโนมัติเลย ไม่ว่าจะติดตั้งใหม่หรือสำหรับผู้ใช้เดิมที่อัปเกรดเป็น Hermes เวอร์ชันใหม่ คุณต้องเปิดใช้งานมันด้วยตนเองเสมอ
หากต้องการปิดปลั๊กอินในตัวอีกครั้ง:
hermes plugins disable disk-cleanup
# หรือ: ลบออกจาก plugins.enabled ใน config.yamlปลั๊กอินที่ติดตั้งมาให้ในปัจจุบัน
disk-cleanup
ติดตามและลบไฟล์ชั่วคราว (ephemeral files) ที่ถูกสร้างขึ้นระหว่างเซสชันโดยอัตโนมัติ - เช่น test scripts, temp outputs, cron logs, stale chrome profiles - โดยไม่จำเป็นต้องให้ agent จำได้ว่าต้องเรียกใช้ tool นี้
วิธีการทำงาน:
| Hook | พฤติกรรม |
|---|---|
post_tool_call | เมื่อ write_file / terminal / patch สร้างไฟล์ที่ตรงกับ test_*, tmp_*, หรือ *.test.* ภายใน HERMES_HOME หรือ /tmp/hermes-* จะถูกติดตามอย่างเงียบ ๆ ในฐานะ test / temp / cron-output |
on_session_end | หากมีการติดตามไฟล์ test ใด ๆ ในระหว่าง turn จะทำการล้างข้อมูลแบบปลอดภัยด้วย quick และบันทึกสรุปเพียงบรรทัดเดียว หากไม่มีอะไร จะเงียบไป |
กฎการลบ:
| หมวดหมู่ | เกณฑ์ | การยืนยัน |
|---|---|---|
test | ทุกครั้งที่เซสชันจบ | ไม่เคย |
temp | >7 วันนับตั้งแต่ถูกติดตาม | ไม่เคย |
cron-output | >14 วันนับตั้งแต่ถูกติดตาม | ไม่เคย |
| empty dirs under HERMES_HOME | เสมอ | ไม่เคย |
research | >30 วัน, เกิน 10 รายการล่าสุด | เสมอ (deep only) |
chrome-profile | >14 วันนับตั้งแต่ถูกติดตาม | เสมอ (deep only) |
| files >500 MB | ไม่เคยอัตโนมัติ | เสมอ (deep only) |
Slash command - /disk-cleanup สามารถใช้ได้ทั้งใน CLI และ gateway sessions:
/disk-cleanup status # สรุป + 10 รายการที่ใหญ่ที่สุด
/disk-cleanup dry-run # ดูตัวอย่างโดยไม่ลบ
/disk-cleanup quick # ทำการล้างข้อมูลแบบปลอดภัยทันที
/disk-cleanup deep # quick + แสดงรายการที่ต้องยืนยัน
/disk-cleanup track <path> <category> # ติดตามด้วยตนเอง
/disk-cleanup forget <path> # หยุดติดตาม (ไม่ลบ)State - ทุกอย่างอยู่ใน $HERMES_HOME/disk-cleanup/:
| File | เนื้อหา |
|---|---|
tracked.json | paths ที่ถูกติดตามพร้อมหมวดหมู่ ขนาด และ timestamp |
tracked.json.bak | สำรองข้อมูลแบบ atomic-write ของรายการข้างต้น |
cleanup.log | บันทึกการตรวจสอบ (audit trail) แบบ append-only ของทุกการติดตาม / ข้าม / ปฏิเสธ / ลบ |
ความปลอดภัย - การล้างข้อมูลจะแตะเฉพาะ paths ที่อยู่ภายใต้ HERMES_HOME หรือ /tmp/hermes-* เท่านั้น Windows mounts (/mnt/c/...) จะถูกปฏิเสธ โฟลเดอร์ state ระดับบนที่ทราบกันดี (logs/, memories/, sessions/, cron/, cache/, skills/, plugins/, disk-cleanup/ เอง) จะไม่ถูกลบแม้ว่าจะว่างเปล่าก็ตาม - การติดตั้งใหม่จะไม่ถูกล้างข้อมูลทั้งหมดตั้งแต่เซสชันแรกที่จบลง
การเปิดใช้งาน: hermes plugins enable disk-cleanup (หรือทำเครื่องหมายใน hermes plugins)
การปิดใช้งานอีกครั้ง: hermes plugins disable disk-cleanup
การเพิ่มปลั๊กอินในตัว
ปลั๊กอินในตัวถูกเขียนขึ้นเหมือนกับปลั๊กอิน Hermes อื่น ๆ ทั้งหมด - ดูที่ Build a Hermes Plugin ความแตกต่างเพียงอย่างเดียวคือ:
- Directory อยู่ที่
<repo>/plugins/<name>/แทนที่จะเป็น~/.hermes/plugins/<name>/ - Manifest source จะรายงานเป็น
bundledในhermes plugins list - ปลั๊กอินของผู้ใช้ที่มีชื่อเดียวกันจะเขียนทับเวอร์ชันที่ติดตั้งมาให้
ปลั๊กอินจะเหมาะสมสำหรับการรวมเป็น bundled เมื่อ:
- ไม่มี optional dependencies (หรือเป็น deps ที่ติดตั้งด้วย
pip install .[all]) - พฤติกรรมนั้นเป็นประโยชน์ต่อผู้ใช้ส่วนใหญ่และเป็นแบบ opt-out มากกว่า opt-in
- ตรรกะมีการเชื่อมโยงกับ lifecycle hooks ที่โดยปกติแล้ว agent จะต้องจำได้ว่าจะต้องเรียกใช้
- มันเสริมความสามารถหลักโดยไม่ขยาย tool surface ที่ model มองเห็น
ตัวอย่างที่ควรเป็นปลั๊กอินที่ติดตั้งได้โดยผู้ใช้ ไม่ใช่ bundled: การรวมระบบภายนอกที่ใช้ API keys, workflow เฉพาะทาง, dependency trees ขนาดใหญ่, หรืออะไรก็ตามที่เปลี่ยนแปลงพฤติกรรมของ agent อย่างมีนัยสำคัญโดยค่าเริ่มต้น
📄 user-guide/features/code-execution.md
sidebar_position: 8 title: "Code Execution" description: "Programmatic Python execution with RPC tool access - collapse multi-step workflows into a single turn"
Code Execution (Programmatic Tool Calling)
เครื่องมือ execute_code ช่วยให้ agent สามารถเขียนสคริปต์ Python ที่เรียกใช้เครื่องมือของ Hermes ในรูปแบบ programmatic ซึ่งเป็นการรวมเวิร์กโฟลว์หลายขั้นตอนให้เหลือเพียงรอบเดียวของ LLM สคริปต์จะทำงานใน child process บน host ของ agent และสื่อสารกับ Hermes ผ่าน RPC บน Unix domain socket
วิธีการทำงาน
- agent เขียนสคริปต์ Python โดยใช้
from hermes_tools import ... - Hermes สร้างโมดูล stub ชื่อ
hermes_tools.pyพร้อมฟังก์ชัน RPC - Hermes เปิด Unix domain socket และเริ่ม thread สำหรับการรับฟัง RPC
- สคริปต์ทำงานใน child process - การเรียกใช้เครื่องมือจะเดินทางผ่าน socket กลับไปยัง Hermes
- มีเพียงผลลัพธ์จาก
print()ของสคริปต์เท่านั้นที่จะถูกส่งกลับไปยัง LLM; ผลลัพธ์ของเครื่องมือระหว่างทางจะไม่เข้าสู่ context window
# The agent can write scripts like:
from hermes_tools import web_search, web_extract
results = web_search("Python 3.13 features", limit=5)
for r in results["data"]["web"]:
content = web_extract([r["url"]])
# ... filter and process ...
print(summary)เครื่องมือที่พร้อมใช้งานภายในสคริปต์: web_search, web_extract, read_file, write_file, search_files, patch, terminal (foreground เท่านั้น).
เมื่อ agent ใช้สิ่งนี้
agent จะใช้ execute_code เมื่อมี:
- การเรียกใช้เครื่องมือ 3+ ครั้ง พร้อมตรรกะในการประมวลผลระหว่างกัน
- การกรองข้อมูลจำนวนมาก หรือการแตกกิ่งแบบมีเงื่อนไข
- ลูป (Loops) เหนือผลลัพธ์
ประโยชน์หลัก: ผลลัพธ์ของเครื่องมือระหว่างทางจะไม่เข้าสู่ context window - มีเพียงผลลัพธ์ print() สุดท้ายเท่านั้นที่ส่งกลับมา ซึ่งช่วยลดการใช้ token ได้อย่างมาก
ตัวอย่างการใช้งานจริง
Data Processing Pipeline
from hermes_tools import search_files, read_file
import json
# ค้นหาไฟล์ config ทั้งหมดและดึงการตั้งค่าฐานข้อมูล
matches = search_files("database", path=".", file_glob="*.yaml", limit=20)
configs = []
for match in matches.get("matches", []):
content = read_file(match["path"])
configs.append({"file": match["path"], "preview": content["content"][:200]})
print(json.dumps(configs, indent=2))Multi-Step Web Research
from hermes_tools import web_search, web_extract
import json
# ค้นหา, ดึงข้อมูล, และสรุปในรอบเดียว
results = web_search("Rust async runtime comparison 2025", limit=5)
summaries = []
for r in results["data"]["web"]:
page = web_extract([r["url"]])
for p in page.get("results", []):
if p.get("content"):
summaries.append({
"title": r["title"],
"url": r["url"],
"excerpt": p["content"][:500]
})
print(json.dumps(summaries, indent=2))Bulk File Refactoring
from hermes_tools import search_files, read_file, patch
# ค้นหาไฟล์ Python ทั้งหมดที่ใช้ API ที่เลิกใช้แล้วและแก้ไขให้ถูกต้อง
matches = search_files("old_api_call", path="src/", file_glob="*.py")
fixed = 0
for match in matches.get("matches", []):
result = patch(
path=match["path"],
old_string="old_api_call(",
new_string="new_api_call(",
replace_all=True
)
if "error" not in str(result):
fixed += 1
print(f"Fixed {fixed} files out of {len(matches.get('matches', []))} matches")Build and Test Pipeline
from hermes_tools import terminal, read_file
import json
# รัน tests, parse ผลลัพธ์, และรายงาน
result = terminal("cd /project && python -m pytest --tb=short -q 2>&1", timeout=120)
output = result.get("output", "")
# Parse ผลลัพธ์การทดสอบ
passed = output.count(" passed")
failed = output.count(" failed")
errors = output.count(" error")
report = {
"passed": passed,
"failed": failed,
"errors": errors,
"exit_code": result.get("exit_code", -1),
"summary": output[-500:] if len(output) > 500 else output
}
print(json.dumps(report, indent=2))Execution Mode
execute_code มีโหมดการทำงานสองโหมดที่ควบคุมโดย code_execution.mode ในไฟล์ ~/.hermes/config.yaml:
| Mode | Working directory | Python interpreter |
|---|---|---|
project (default) | working directory ของ session (เหมือนกับ terminal()) | VIRTUAL_ENV / CONDA_PREFIX python ที่ใช้งานอยู่ หรือ fallback ไปยัง python ของ Hermes เอง |
strict | temp staging directory ที่แยกออกจาก project ของผู้ใช้ | sys.executable (python ของ Hermes เอง) |
เมื่อใดที่ควรใช้ project: เมื่อคุณต้องการให้ import pandas, from my_project import foo, หรือ relative paths เช่น open(".env") ทำงานได้เหมือนกับที่ทำใน terminal(). นี่คือสิ่งที่คุณต้องการเกือบทุกครั้ง
เมื่อใดที่ควรเปลี่ยนเป็น strict: เมื่อคุณต้องการความสามารถในการทำซ้ำสูงสุด (maximum reproducibility) - คุณต้องการ interpreter ตัวเดิมทุก session ไม่ว่าผู้ใช้จะ activate venv ใด และคุณต้องการให้สคริปต์ถูกกักกันจาก project tree (ไม่มีความเสี่ยงที่จะอ่านไฟล์ project ผ่าน relative path โดยไม่ได้ตั้งใจ)
# ~/.hermes/config.yaml
code_execution:
mode: project # หรือ "strict"พฤติกรรม fallback ในโหมด project: หาก VIRTUAL_ENV / CONDA_PREFIX ไม่ได้ถูกตั้งค่า, เสียหาย, หรือชี้ไปยัง Python ที่เก่ากว่า 3.8, resolver จะ fallback ไปยัง sys.executable อย่างราบรื่น - มันจะไม่ทิ้ง agent โดยไม่มี interpreter ที่ใช้งานได้
Invariant ที่สำคัญด้านความปลอดภัยเหมือนกันทั้งสองโหมด:
- environment scrubbing (ลบ API keys, tokens, credentials)
- tool whitelist (สคริปต์ไม่สามารถเรียกใช้
execute_codeซ้ำ,delegate_task, หรือเครื่องมือ MCP) - resource limits (timeout, stdout cap, tool-call cap)
การเปลี่ยนโหมดจะเปลี่ยนว่าสคริปต์ทำงานที่ไหนและ interpreter ตัวใดที่รันมัน ไม่ใช่ว่า credentials ใดที่มันมองเห็นหรือเครื่องมือใดที่มันเรียกใช้ได้
Resource Limits
| Resource | Limit | Notes |
|---|---|---|
| Timeout | 5 นาที (300s) | สคริปต์จะถูก kill ด้วย SIGTERM, จากนั้น SIGKILL หลังจาก 5s grace |
| Stdout | 50 KB | ผลลัพธ์จะถูกตัดทอนพร้อมข้อความแจ้งเตือน [output truncated at 50KB] |
| Stderr | 10 KB | รวมอยู่ใน output เมื่อ exit code ไม่เป็นศูนย์สำหรับการ debug |
| Tool calls | 50 ต่อการเรียกใช้ | จะส่ง error กลับเมื่อถึงขีดจำกัด |
ขีดจำกัดทั้งหมดสามารถกำหนดค่าได้ผ่าน config.yaml:
# In ~/.hermes/config.yaml
code_execution:
mode: project # project (default) | strict
timeout: 300 # Max seconds per script (default: 300)
max_tool_calls: 50 # Max tool calls per execution (default: 50)How Tool Calls Work Inside Scripts
เมื่อสคริปต์ของคุณเรียกใช้ฟังก์ชันเช่น web_search("query"):
- การเรียกใช้จะถูก serialize เป็น JSON และส่งผ่าน Unix domain socket ไปยัง parent process
- parent จะ dispatch ผ่าน handler มาตรฐาน
handle_function_call - ผลลัพธ์จะถูกส่งกลับผ่าน socket
- ฟังก์ชันจะส่งคืนผลลัพธ์ที่ถูก parse แล้ว
นั่นหมายความว่าการเรียกใช้เครื่องมือภายในสคริปต์มีพฤติกรรมเหมือนกับการเรียกใช้เครื่องมือปกติ - มี rate limits เดียวกัน, การจัดการ error เดียวกัน, และความสามารถเดียวกัน ข้อจำกัดเดียวคือ terminal() เป็นแบบ foreground-only (ไม่มีพารามิเตอร์ background หรือ pty)
Error Handling
เมื่อสคริปต์ล้มเหลว, agent จะได้รับข้อมูล error ที่มีโครงสร้าง:
- Non-zero exit code: stderr จะถูกรวมอยู่ใน output เพื่อให้ agent เห็น traceback ทั้งหมด
- Timeout: สคริปต์จะถูก kill และ agent จะเห็นข้อความ
"Script timed out after 300s and was killed." - Interruption: หากผู้ใช้ส่งข้อความใหม่ระหว่างการทำงาน, สคริปต์จะถูกยุติ และ agent จะเห็น
[execution interrupted - user sent a new message] - Tool call limit: เมื่อถึงขีดจำกัด 50 ครั้ง, การเรียกใช้เครื่องมือครั้งถัดไปจะส่ง error message กลับมา
การตอบกลับจะรวม status (success/error/timeout/interrupted), output, tool_calls_made, และ duration_seconds เสมอ
Security
:::danger Security Model child process ทำงานด้วย minimal environment API keys, tokens, และ credentials จะถูกลบออกโดยค่าเริ่มต้น สคริปต์จะเข้าถึงเครื่องมือผ่านช่องทาง RPC เท่านั้น - มันไม่สามารถอ่าน secrets จาก environment variables ได้ เว้นแต่จะได้รับอนุญาตอย่างชัดเจน :::
Environment variables ที่มี KEY, TOKEN, SECRET, PASSWORD, CREDENTIAL, PASSWD, หรือ AUTH ในชื่อ จะถูกยกเว้น มีเพียง system variables ที่ปลอดภัยเท่านั้น (PATH, HOME, LANG, SHELL, PYTHONPATH, VIRTUAL_ENV, ฯลฯ) เท่านั้นที่จะถูกส่งผ่าน
Skill Environment Variable Passthrough
เมื่อ skill ประกาศ required_environment_variables ใน frontmatter ของมัน, ตัวแปรเหล่านั้นจะถูก ส่งผ่านโดยอัตโนมัติ ไปยัง child processes ทั้ง execute_code และ terminal หลังจากที่ skill ถูกโหลด สิ่งนี้ช่วยให้ skill สามารถใช้ API keys ที่ประกาศได้โดยไม่ลดความปลอดภัยสำหรับโค้ดทั่วไป
สำหรับกรณีที่ไม่ใช่ skill, คุณสามารถอนุญาตให้ variables ได้อย่างชัดเจนใน config.yaml:
terminal:
env_passthrough:
- MY_CUSTOM_KEY
- ANOTHER_TOKENดู Security guide สำหรับรายละเอียดทั้งหมด
Hermes จะเขียนสคริปต์และ stub RPC hermes_tools.py ที่สร้างขึ้นโดยอัตโนมัติไปยัง temp staging directory ซึ่งจะถูกล้างออกหลังจากการทำงาน ในโหมด strict สคริปต์จะ รัน ที่นั่นด้วย; ในโหมด project มันจะรันใน working directory ของ session (staging directory ยังคงอยู่ใน PYTHONPATH ดังนั้นการ import จึงยังคง resolve ได้) child process ทำงานใน process group ของตัวเองเพื่อให้สามารถถูก kill ได้อย่างสะอาดเมื่อหมดเวลาหรือถูกขัดจังหวะ
execute_code vs terminal
| Use Case | execute_code | terminal |
|---|---|---|
| Multi-step workflows with tool calls between | ✅ | ❌ |
| Simple shell command | ❌ | ✅ |
| Filtering/processing large tool outputs | ✅ | ❌ |
| Running a build or test suite | ❌ | ✅ |
| Looping over search results | ✅ | ❌ |
| Interactive/background processes | ❌ | ✅ |
| Needs API keys in environment | ⚠️ เฉพาะผ่าน passthrough | ✅ (ส่วนใหญ่ส่งผ่าน) |
หลักการง่ายๆ: ใช้ execute_code เมื่อคุณต้องการเรียกใช้เครื่องมือของ Hermes ในรูปแบบ programmatic พร้อมตรรกะระหว่างการเรียกใช้ ใช้ terminal สำหรับการรัน shell commands, builds, และ processes
Platform Support
Code execution ต้องการ Unix domain sockets และใช้งานได้เฉพาะบน Linux และ macOS เท่านั้น โดยจะถูกปิดใช้งานโดยอัตโนมัติบน Windows - agent จะ fallback ไปใช้การเรียกใช้เครื่องมือแบบ sequential ปกติ
📄 user-guide/features/context-files.md
sidebar_position: 8 title: "Context Files" description: "ไฟล์ context ของโปรเจกต์ - .hermes.md, AGENTS.md, CLAUDE.md, SOUL.md ทั่วโลก, และ .cursorrules - จะถูกฉีด (injected) เข้าไปในทุก conversation โดยอัตโนมัติ"
Context Files
Hermes Agent จะค้นหาและโหลด context files ที่กำหนดพฤติกรรมของมันโดยอัตโนมัติ ไฟล์บางส่วนเป็นแบบ local ของโปรเจกต์และจะถูกค้นพบจาก working directory ของคุณ ส่วน SOUL.md ถูกกำหนดให้เป็น global สำหรับ instance ของ Hermes และจะถูกโหลดจาก HERMES_HOME เท่านั้น
Supported Context Files
| File | Purpose | Discovery |
|---|---|---|
| .hermes.md / HERMES.md | คำสั่งสำหรับโปรเจกต์ (ลำดับความสำคัญสูงสุด) | เดินทางไปยัง git root |
| AGENTS.md | คำสั่งสำหรับโปรเจกต์, convention, สถาปัตยกรรม | CWD เมื่อเริ่มต้น + subdirectories อย่างต่อเนื่อง |
| CLAUDE.md | ไฟล์ context สำหรับ Claude Code (ตรวจพบด้วย) | CWD เมื่อเริ่มต้น + subdirectories อย่างต่อเนื่อง |
| SOUL.md | บุคลิกภาพและโทนเสียงระดับ global สำหรับ Hermes instance นี้ | HERMES_HOME/SOUL.md เท่านั้น |
| .cursorrules | convention การเขียนโค้ดสำหรับ Cursor IDE | CWD เท่านั้น |
| .cursor/rules/*.mdc | โมดูลกฎสำหรับ Cursor IDE | CWD เท่านั้น |
:::info ระบบลำดับความสำคัญ
จะมีการโหลด context type ของโปรเจกต์ได้เพียง หนึ่ง อย่างต่อ session (ใช้แบบที่เจอเป็นอันแรก): .hermes.md → AGENTS.md → CLAUDE.md → .cursorrules ส่วน SOUL.md จะถูกโหลดอย่างอิสระเสมอในฐานะ identity ของ agent (slot #1).
:::
AGENTS.md
AGENTS.md คือไฟล์ context หลักของโปรเจกต์ มันจะบอก agent ว่าโปรเจกต์ของคุณมีโครงสร้างอย่างไร, ต้องปฏิบัติตาม convention อะไร, และคำสั่งพิเศษใดๆ
Progressive Subdirectory Discovery
เมื่อเริ่ม session, Hermes จะโหลด AGENTS.md จาก working directory ของคุณเข้าสู่ system prompt ขณะที่ agent เดินทางเข้าไปใน subdirectories ระหว่าง session (ผ่าน read_file, terminal, search_files, ฯลฯ), มันจะ ค้นพบอย่างต่อเนื่อง (progressively discovers) context files ในไดเรกทอรีเหล่านั้นและฉีดมันเข้าสู่ conversation ในขณะที่มันมีความเกี่ยวข้อง
my-project/
├── AGENTS.md ← โหลดเมื่อเริ่มต้น (system prompt)
├── frontend/
│ └── AGENTS.md ← ค้นพบเมื่อ agent อ่านไฟล์ใน frontend/
├── backend/
│ └── AGENTS.md ← ค้นพบเมื่อ agent อ่านไฟล์ใน backend/
└── shared/
└── AGENTS.md ← ค้นพบเมื่อ agent อ่านไฟล์ใน shared/แนวทางนี้มีข้อดีสองอย่างเมื่อเทียบกับการโหลดทุกอย่างตั้งแต่เริ่มต้น:
- ไม่มี system prompt bloat - คำแนะนำของ subdirectory จะปรากฏเมื่อจำเป็นเท่านั้น
- Prompt cache preservation - system prompt จะคงที่ตลอดการสนทนา
แต่ละ subdirectory จะถูกตรวจสอบได้สูงสุดครั้งละหนึ่งครั้งต่อ session นอกจากนี้ การค้นหายังจะเดินขึ้นไปยัง parent directories ด้วย ดังนั้นการอ่าน backend/src/main.py จะค้นพบ backend/AGENTS.md แม้ว่า backend/src/ จะไม่มี context file ของตัวเองก็ตาม
:::info context files ของ subdirectory จะผ่าน security scan เช่นเดียวกับ context files ตอนเริ่มต้น ไฟล์ที่เป็นอันตรายจะถูกบล็อก :::
Example AGENTS.md
# Project Context
This is a Next.js 14 web application with a Python FastAPI backend.
## Architecture
- Frontend: Next.js 14 with App Router in `/frontend`
- Backend: FastAPI in `/backend`, uses SQLAlchemy ORM
- Database: PostgreSQL 16
- Deployment: Docker Compose on a Hetzner VPS
## Conventions
- Use TypeScript strict mode for all frontend code
- Python code follows PEP 8, use type hints everywhere
- All API endpoints return JSON with `{data, error, meta}` shape
- Tests go in `__tests__/` directories (frontend) or `tests/` (backend)
## Important Notes
- Never modify migration files directly - use Alembic commands
- The `.env.local` file has real API keys, don't commit it
- Frontend port is 3000, backend is 8000, DB is 5432SOUL.md
SOUL.md ควบคุมบุคลิกภาพ, โทนเสียง, และรูปแบบการสื่อสารของ agent ดูรายละเอียดทั้งหมดได้ที่หน้า Personality
Location:
~/.hermes/SOUL.md- หรือ
$HERMES_HOME/SOUL.mdหากคุณรัน Hermes ด้วย custom home directory
รายละเอียดที่สำคัญ:
- Hermes จะสร้างค่าเริ่มต้นของ
SOUL.mdโดยอัตโนมัติหากยังไม่มี - Hermes จะโหลด
SOUL.mdจากHERMES_HOMEเท่านั้น - Hermes จะไม่ตรวจสอบ working directory สำหรับ
SOUL.md - หากไฟล์ว่างเปล่า จะไม่มีอะไรจาก
SOUL.mdถูกเพิ่มเข้าไปใน prompt - หากไฟล์มีเนื้อหา เนื้อหานั้นจะถูกฉีดเข้าไปตามตัวอักษรหลังจากสแกนและตัดทอน
.cursorrules
Hermes รองรับไฟล์ .cursorrules และโมดูลกฎ .cursor/rules/*.mdc ของ Cursor IDE หากไฟล์เหล่านี้มีอยู่ใน root ของโปรเจกต์ของคุณและไม่พบ context file ที่มีลำดับความสำคัญสูงกว่า (เช่น .hermes.md, AGENTS.md, หรือ CLAUDE.md) พวกมันจะถูกโหลดเป็น project context
นั่นหมายความว่า convention ของ Cursor ที่คุณมีอยู่จะถูกนำมาใช้โดยอัตโนมัติเมื่อใช้ Hermes
How Context Files Are Loaded
At startup (system prompt)
Context files ถูกโหลดโดย build_context_files_prompt() ใน agent/prompt_builder.py:
- Scan working directory - ตรวจสอบ
.hermes.md→AGENTS.md→CLAUDE.md→.cursorrules(ใช้แบบที่เจอเป็นอันแรก) - Content is read - แต่ละไฟล์จะถูกอ่านเป็นข้อความ UTF-8
- Security scan - เนื้อหาจะถูกตรวจสอบหา pattern ของ prompt injection
- Truncation - ไฟล์ที่เกิน 20,000 characters จะถูกตัดทอนแบบ head/tail (70% head, 20% tail, พร้อม marker ตรงกลาง)
- Assembly - ส่วนทั้งหมดจะถูกรวมภายใต้ header
# Project Context - Injection - เนื้อหาที่ประกอบเสร็จแล้วจะถูกเพิ่มเข้าไปใน system prompt
During the session (progressive discovery)
SubdirectoryHintTracker ใน agent/subdirectory_hints.py จะเฝ้าดู tool call arguments สำหรับ file paths:
- Path extraction - หลังจากการเรียกใช้ tool แต่ละครั้ง จะมีการดึง file paths ออกมาจาก arguments (
path,workdir, shell commands) - Ancestor walk - จะมีการตรวจสอบไดเรกทอรีและ parent directories สูงสุด 5 ระดับ (หยุดที่ไดเรกทอรีที่เคยเข้าชมแล้ว)
- Hint loading - หากพบ
AGENTS.md,CLAUDE.md, หรือ.cursorrulesจะถูกโหลด (ใช้แบบที่เจอเป็นอันแรกต่อไดเรกทอรี) - Security scan - การสแกน prompt injection แบบเดียวกับไฟล์ตอนเริ่มต้น
- Truncation - จำกัดที่ 8,000 characters ต่อไฟล์
- Injection - ถูกเพิ่มต่อท้าย tool result เพื่อให้ model เห็นใน context อย่างเป็นธรรมชาติ
ส่วน prompt สุดท้ายจะมีลักษณะประมาณนี้:
# Project Context
The following project context files have been loaded and should be followed:
## AGENTS.md
[Your AGENTS.md content here]
## .cursorrules
[Your .cursorrules content here]
[Your SOUL.md content here]สังเกตว่าเนื้อหา SOUL ถูกแทรกโดยตรง โดยไม่มีข้อความ wrapper เพิ่มเติม
Security: Prompt Injection Protection
context files ทั้งหมดจะถูกสแกนหา potential prompt injection ก่อนที่จะถูกรวมเข้ามา Scanner จะตรวจสอบหา:
- Instruction override attempts: "ignore previous instructions", "disregard your rules"
- Deception patterns: "do not tell the user"
- System prompt overrides: "system prompt override"
- Hidden HTML comments:
<!-- ignore instructions --> - Hidden div elements:
<div style="display:none"> - Credential exfiltration:
curl ... $API_KEY - Secret file access:
cat .env,cat credentials - Invisible characters: zero-width spaces, bidirectional overrides, word joiners
หากตรวจพบ threat pattern ใดๆ ไฟล์นั้นจะถูกบล็อก:
[BLOCKED: AGENTS.md contained potential prompt injection (prompt_injection). Content not loaded.]:::warning Scanner นี้ป้องกัน against common injection patterns แต่ไม่สามารถแทนที่การตรวจสอบ context files ใน shared repositories ได้ ควรตรวจสอบเนื้อหาของ AGENTS.md ในโปรเจกต์ที่คุณไม่ได้เป็นผู้สร้างเสมอ :::
Size Limits
| Limit | Value |
|---|---|
| Max chars per file | 20,000 (~7,000 tokens) |
| Head truncation ratio | 70% |
| Tail truncation ratio | 20% |
| Truncation marker | 10% (แสดงจำนวนตัวอักษรและแนะนำให้ใช้ file tools) |
เมื่อไฟล์เกิน 20,000 characters ข้อความ truncation จะแสดงว่า:
[...truncated AGENTS.md: kept 14000+4000 of 25000 chars. Use file tools to read the full file.]Tips for Effective Context Files
:::tip แนวทางปฏิบัติที่ดีที่สุดสำหรับ AGENTS.md
- Keep it concise - ควรอยู่ต่ำกว่า 20K chars มากๆ เพราะ agent อ่านมันทุก turn
- Structure with headers - ใช้ส่วน
##สำหรับ architecture, conventions, important notes - Include concrete examples - แสดง preferred code patterns, API shapes, naming conventions
- Mention what NOT to do - เช่น "never modify migration files directly"
- List key paths and ports - agent ใช้สิ่งเหล่านี้สำหรับ terminal commands
- Update as the project evolves - context ที่ล้าสมัยแย่กว่าไม่มี context :::
Per-Subdirectory Context
สำหรับ monorepos ให้ใส่คำแนะนำเฉพาะ subdirectory ในไฟล์ AGENTS.md ที่ซ้อนกัน:
<!-- frontend/AGENTS.md -->
# Frontend Context
- Use `pnpm` not `npm` for package management
- Components go in `src/components/`, pages in `src/app/`
- Use Tailwind CSS, never inline styles
- Run tests with `pnpm test`<!-- backend/AGENTS.md -->
# Backend Context
- Use `poetry` for dependency management
- Run the dev server with `poetry run uvicorn main:app --reload`
- All endpoints need OpenAPI docstrings
- Database models are in `models/`, schemas in `schemas/`📄 user-guide/features/context-references.md
sidebar_position: 9 sidebar_label: "Context References" title: "Context References" description: "Inline @-syntax for attaching files, folders, git diffs, and URLs directly into your messages"
Context References
ให้พิมพ์ @ ตามด้วยการอ้างอิงเพื่อแทรกเนื้อหาลงในข้อความของคุณโดยตรง Hermes จะขยายการอ้างอิงนั้นในรูปแบบ inline และแนบเนื้อหาไว้ภายใต้ส่วน --- Attached Context ---
การอ้างอิงที่รองรับ (Supported References)
| Syntax | คำอธิบาย |
|---|---|
@file:path/to/file.py | แทรกเนื้อหาไฟล์ |
@file:path/to/file.py:10-25 | แทรกช่วงบรรทัดที่กำหนด (1-indexed, inclusive) |
@folder:path/to/dir | แทรกรายการโครงสร้างไดเรกทอรีพร้อมเมตาดาต้าไฟล์ |
@diff | แทรก git diff (การเปลี่ยนแปลงใน working tree ที่ยังไม่ได้ stage) |
@staged | แทรก git diff --staged (การเปลี่ยนแปลงที่ stage แล้ว) |
@git:5 | แทรก commit ล่าสุด N รายการพร้อม patch (สูงสุด 10) |
@url:https://example.com | ดึงและแทรกเนื้อหาเว็บเพจ |
ตัวอย่างการใช้งาน (Usage Examples)
Review @file:src/main.py and suggest improvements
What changed? @diff
Compare @file:old_config.yaml and @file:new_config.yaml
What's in @folder:src/components?
Summarize this article @url:https://arxiv.org/abs/2301.00001การอ้างอิงหลายรายการสามารถใช้งานได้ในข้อความเดียว:
Check @file:main.py, and also @file:test.py.เครื่องหมายวรรคตอนที่อยู่ท้าย (เช่น ,, ., ;, !, ?) จะถูกลบออกโดยอัตโนมัติจากค่าการอ้างอิง
การเติมคำอัตโนมัติใน CLI (CLI Tab Completion)
ใน CLI แบบโต้ตอบ การพิมพ์ @ จะกระตุ้นการเติมคำอัตโนมัติ:
@แสดงประเภทการอ้างอิงทั้งหมด (@diff,@staged,@file:,@folder:,@git:,@url:)@file:และ@folder:จะกระตุ้นการเติมคำอัตโนมัติของ path ระบบไฟล์พร้อมเมตาดาต้าขนาดไฟล์- การใช้
@อย่างเดียวตามด้วยข้อความบางส่วน จะแสดงไฟล์และโฟลเดอร์ที่ตรงกันจากไดเรกทอรีปัจจุบัน
ช่วงบรรทัด (Line Ranges)
การอ้างอิง @file: รองรับช่วงบรรทัดสำหรับการแทรกเนื้อหาที่แม่นยำ:
@file:src/main.py:42 # บรรทัดเดียวที่ 42
@file:src/main.py:10-25 # บรรทัดที่ 10 ถึง 25 (รวม)บรรทัดจะนับแบบ 1-indexed ช่วงที่ไม่ถูกต้องจะถูกละเลยโดยเงียบ (จะส่งคืนไฟล์ทั้งหมด)
ข้อจำกัดขนาด (Size Limits)
การอ้างอิงบริบทถูกจำกัดเพื่อป้องกันไม่ให้เกินขีดจำกัด context window ของ model:
| Threshold | Value | Behavior |
|---|---|---|
| Soft limit | 25% of context length | จะมีการเพิ่มคำเตือน และดำเนินการขยายต่อ |
| Hard limit | 50% of context length | ปฏิเสธการขยาย และส่งคืนข้อความเดิมโดยไม่มีการเปลี่ยนแปลง |
| Folder entries | 200 files max | รายการที่เกินจะถูกแทนที่ด้วย - ... |
| Git commits | 10 max | @git:N จะถูกจำกัดอยู่ในช่วง [1, 10] |
ความปลอดภัย (Security)
การบล็อก Path ที่ละเอียดอ่อน (Sensitive Path Blocking)
Path เหล่านี้จะถูกบล็อกเสมอจากการอ้างอิง @file: เพื่อป้องกันการเปิดเผย credential:
- SSH keys and config:
~/.ssh/id_rsa,~/.ssh/id_ed25519,~/.ssh/authorized_keys,~/.ssh/config - Shell profiles:
~/.bashrc,~/.zshrc,~/.profile,~/.bash_profile,~/.zprofile - Credential files:
~/.netrc,~/.pgpass,~/.npmrc,~/.pypirc - Hermes env:
$HERMES_HOME/.env
ไดเรกทอรีเหล่านี้ถูกบล็อกโดยสมบูรณ์ (ไฟล์ใดๆ ที่อยู่ภายใน):
~/.ssh/,~/.aws/,~/.gnupg/,~/.kube/,$HERMES_HOME/skills/.hub/
การป้องกัน Path Traversal (Path Traversal Protection)
Path ทั้งหมดจะถูกแก้ไขโดยอ้างอิงจาก working directory การอ้างอิงที่แก้ไขอยู่นอก root ของ workspace ที่อนุญาตจะถูกปฏิเสธ
การตรวจจับไฟล์ไบนารี (Binary File Detection)
ไฟล์ไบนารีจะถูกตรวจจับผ่าน MIME type และการสแกน null-byte ส่วนขยายข้อความที่ทราบ (.py, .md, .json, .yaml, .toml, .js, .ts, ฯลฯ) จะข้ามการตรวจจับที่อิงจาก MIME ไฟล์ไบนารีจะถูกปฏิเสธพร้อมคำเตือน
ความพร้อมใช้งานของแพลตฟอร์ม (Platform Availability)
Context references เป็นฟีเจอร์หลักของ CLI โดยเฉพาะ มันทำงานใน CLI แบบโต้ตอบที่ @ กระตุ้นการเติมคำอัตโนมัติ และการอ้างอิงจะถูกขยายก่อนที่ข้อความจะถูกส่งไปยัง agent
ใน messaging platforms (เช่น Telegram, Discord) ไวยากรณ์ @ จะไม่ถูกขยายโดย gateway - ข้อความจะถูกส่งผ่านไปตามเดิม ตัว agent เองยังสามารถอ้างอิงไฟล์ได้ผ่านเครื่องมือ read_file, search_files, และ web_extract
การทำงานร่วมกับการบีบอัดบริบท (Interaction with Context Compression)
เมื่อบริบทการสนทนาถูกบีบอัด เนื้อหาการอ้างอิงที่ขยายแล้วจะถูกรวมอยู่ในสรุปการบีบอัด ซึ่งหมายความว่า:
- เนื้อหาไฟล์ขนาดใหญ่ที่แทรกผ่าน
@file:จะนับเป็นส่วนหนึ่งของการใช้ context - หากมีการบีบอัดการสนทนาในภายหลัง เนื้อหาไฟล์จะถูกสรุป (ไม่ได้เก็บรักษาแบบ verbatim)
- สำหรับไฟล์ขนาดใหญ่มาก ให้พิจารณาใช้ช่วงบรรทัด (
@file:main.py:100-200) เพื่อแทรกเฉพาะส่วนที่เกี่ยวข้อง
รูปแบบทั่วไป (Common Patterns)
# Code review workflow
Review @diff and check for security issues
# Debug with context
This test is failing. Here's the test @file:tests/test_auth.py
and the implementation @file:src/auth.py:50-80
# Project exploration
What does this project do? @folder:src @file:README.md
# Research
Compare the approaches in @url:https://arxiv.org/abs/2301.00001
and @url:https://arxiv.org/abs/2301.00002การจัดการข้อผิดพลาด (Error Handling)
การอ้างอิงที่ไม่ถูกต้องจะสร้างคำเตือนแบบ inline แทนที่จะเกิดความล้มเหลว:
| Condition | Behavior |
|---|---|
| File not found | Warning: "file not found" |
| Binary file | Warning: "binary files are not supported" |
| Folder not found | Warning: "folder not found" |
| Git command fails | Warning with git stderr |
| URL returns no content | Warning: "no content extracted" |
| Sensitive path | Warning: "path is a sensitive credential file" |
| Path outside workspace | Warning: "path is outside the allowed workspace" |
📄 user-guide/features/credential-pools.md
title: Credential Pools description: Pool multiple API keys or OAuth tokens per provider for automatic rotation and rate limit recovery. sidebar_label: Credential Pools sidebar_position: 9
Credential Pools
Credential pools ช่วยให้คุณสามารถลงทะเบียน API keys หรือ OAuth tokens หลายรายการสำหรับ Provider เดียวกัน เมื่อคีย์ใดคีย์หนึ่งถึง rate limit หรือ billing quota, Hermes จะทำการ rotate ไปยังคีย์ที่ใช้งานได้รายการถัดไปโดยอัตโนมัติ ซึ่งช่วยให้เซสชันของคุณยังคงอยู่ได้โดยไม่ต้องสลับ Provider
สิ่งนี้แตกต่างจาก fallback providers ซึ่งจะสลับไปใช้ Provider อื่น โดยสิ้นเชิง Credential pools คือการหมุนเวียนภายใน Provider เดียวกัน ส่วน fallback providers คือการ failover ข้าม Provider Pools จะถูกลองใช้ก่อน - หากคีย์ทั้งหมดใน pool ถูกใช้จนหมด, จึง fallback provider จะทำงาน
How It Works
Your request
→ Pick key from pool (round_robin / least_used / fill_first / random)
→ Send to provider
→ 429 rate limit?
→ Retry same key once (transient blip)
→ Second 429 → rotate to next pool key
→ All keys exhausted → fallback_model (different provider)
→ 402 billing error?
→ Immediately rotate to next pool key (24h cooldown)
→ 401 auth expired?
→ Try refreshing the token (OAuth)
→ Refresh failed → rotate to next pool key
→ Success → continue normallyQuick Start
หากคุณมี API key ที่ตั้งค่าไว้ใน .env อยู่แล้ว, Hermes จะค้นพบโดยอัตโนมัติว่าเป็น pool ที่มี 1 key หากต้องการใช้ประโยชน์จากการ pooling, ให้เพิ่มคีย์เพิ่มเติม:
# Add a second OpenRouter key
hermes auth add openrouter --api-key sk-or-v1-your-second-key
# Add a second Anthropic key
hermes auth add anthropic --type api-key --api-key sk-ant-api03-your-second-key
# Add an Anthropic OAuth credential (Claude Code subscription)
hermes auth add anthropic --type oauth
# Opens browser for OAuth loginตรวจสอบ pools ของคุณ:
hermes auth listOutput:
openrouter (2 credentials):
#1 OPENROUTER_API_KEY api_key env:OPENROUTER_API_KEY ←
#2 backup-key api_key manual
anthropic (3 credentials):
#1 hermes_pkce oauth hermes_pkce ←
#2 claude_code oauth claude_code
#3 ANTHROPIC_API_KEY api_key env:ANTHROPIC_API_KEY← แสดงถึง credential ที่ถูกเลือกใช้งานอยู่ในปัจจุบัน
Interactive Management
เรียกใช้ hermes auth โดยไม่มี subcommand เพื่อเข้าสู่ interactive wizard:
hermes authสิ่งนี้จะแสดงสถานะ pool ทั้งหมดของคุณและเสนอเมนู:
What would you like to do?
1. Add a credential
2. Remove a credential
3. Reset cooldowns for a provider
4. Set rotation strategy for a provider
5. Exitสำหรับ Provider ที่รองรับทั้ง API keys และ OAuth (Anthropic, Nous, Codex), ขั้นตอนการเพิ่มจะถามว่าต้องการประเภทใด:
anthropic supports both API keys and OAuth login.
1. API key (paste a key from the provider dashboard)
2. OAuth login (authenticate via browser)
Type [1/2]:CLI Commands
| Command | Description |
|---|---|
hermes auth | Interactive pool management wizard |
hermes auth list | Show all pools and credentials |
hermes auth list <provider> | Show a specific provider's pool |
hermes auth add <provider> | Add a credential (prompts for type and key) |
hermes auth add <provider> --type api-key --api-key <key> | Add an API key non-interactively |
hermes auth add <provider> --type oauth | Add an OAuth credential via browser login |
hermes auth remove <provider> <index> | Remove credential by 1-based index |
hermes auth reset <provider> | Clear all cooldowns/exhaustion status |
Rotation Strategies
ตั้งค่าผ่าน hermes auth → "Set rotation strategy" หรือใน config.yaml:
credential_pool_strategies:
openrouter: round_robin
anthropic: least_used| Strategy | Behavior |
|---|---|
fill_first (default) | Use the first healthy key until it's exhausted, then move to the next |
round_robin | Cycle through keys evenly, rotating after each selection |
least_used | Always pick the key with the lowest request count |
random | Random selection among healthy keys |
Error Recovery
Pool จะจัดการข้อผิดพลาดที่แตกต่างกันด้วยวิธีที่แตกต่างกัน:
| Error | Behavior | Cooldown |
|---|---|---|
| 429 Rate Limit | Retry same key once (transient). Second consecutive 429 rotates to next key | 1 hour |
| 402 Billing/Quota | Immediately rotate to next key | 24 hours |
| 401 Auth Expired | Try refreshing the OAuth token first. Rotate only if refresh fails | — |
| All keys exhausted | Fall through to fallback_model if configured | — |
flag has_retried_429 จะถูกรีเซ็ตในการเรียก API ที่สำเร็จทุกครั้ง ดังนั้น 429 ชั่วคราวเพียงครั้งเดียวจึงไม่กระตุ้นการ rotate
Custom Endpoint Pools
Custom OpenAI-compatible endpoints (เช่น Together.ai, RunPod, local servers) จะมี pool ของตัวเอง โดยใช้ชื่อ endpoint เป็น key จาก custom_providers ใน config.yaml
เมื่อคุณตั้งค่า custom endpoint ผ่าน hermes model, ระบบจะสร้างชื่อให้โดยอัตโนมัติ เช่น "Together.ai" หรือ "Local (localhost:8080)". ชื่อนี้จะกลายเป็น pool key
# After setting up a custom endpoint via hermes model:
hermes auth list
# Shows:
# Together.ai (1 credential):
# #1 config key api_key config:Together.ai ←
# Add a second key for the same endpoint:
hermes auth add Together.ai --api-key sk-together-second-keyCustom endpoint pools จะถูกจัดเก็บใน auth.json ภายใต้ credential_pool โดยมี prefix custom::
{
"credential_pool": {
"openrouter": [...],
"custom:together.ai": [...]
}
}Auto-Discovery
Hermes จะค้นพบ credentials จากหลายแหล่งโดยอัตโนมัติและใส่ข้อมูลลงใน pool เมื่อเริ่มต้น:
| Source | Example | Auto-seeded? |
|---|---|---|
| Environment variables | OPENROUTER_API_KEY, ANTHROPIC_API_KEY | Yes |
| OAuth tokens (auth.json) | Codex device code, Nous device code | Yes |
| Claude Code credentials | ~/.claude/.credentials.json | Yes (Anthropic) |
| Hermes PKCE OAuth | ~/.hermes/auth.json | Yes (Anthropic) |
| Custom endpoint config | model.api_key in config.yaml | Yes (custom endpoints) |
| Manual entries | Added via hermes auth add | Persisted in auth.json |
รายการที่ auto-seed จะถูกอัปเดตทุกครั้งที่โหลด pool - หากคุณลบ env var ออก, รายการ pool ของมันจะถูกลบออกโดยอัตโนมัติ ส่วนรายการที่เพิ่มด้วยตนเอง (เพิ่มผ่าน hermes auth add) จะไม่มีการลบออกโดยอัตโนมัติ
Delegation & Subagent Sharing
เมื่อ agent สร้าง subagents ผ่าน delegate_task, credential pool ของ parent จะถูกแชร์ให้ child โดยอัตโนมัติ:
- Same provider - child จะได้รับ pool ทั้งหมดของ parent ซึ่งช่วยให้สามารถ rotate key เมื่อเกิด rate limits
- Different provider - child จะโหลด pool ของ Provider นั้นเอง (หากมีการตั้งค่า)
- No pool configured - child จะใช้ API key เดียวที่สืบทอดมา
นั่นหมายความว่า subagents จะได้รับประโยชน์จากความยืดหยุ่นในการรับมือ rate-limit เช่นเดียวกับ parent โดยไม่จำเป็นต้องมีการตั้งค่าเพิ่มเติม การเช่า credential ต่อ task (Per-task credential leasing) ช่วยให้มั่นใจว่า child จะไม่ขัดแย้งกันเมื่อมีการ rotate keys พร้อมกัน
Thread Safety
Credential pool ใช้ threading lock สำหรับการเปลี่ยนแปลง state ทั้งหมด (select(), mark_exhausted_and_rotate(), try_refresh_current(), mark_used()) สิ่งนี้ช่วยให้มั่นใจได้ว่าการเข้าถึงพร้อมกัน (concurrent access) จะปลอดภัยเมื่อ gateway จัดการเซสชัน chat หลายรายการพร้อมกัน
Architecture
สำหรับแผนภาพ data flow แบบเต็ม, ดูที่ docs/credential-pool-flow.excalidraw ใน repository
Credential pool จะถูกรวมเข้าที่ชั้น Provider resolution:
agent/credential_pool.py- Pool manager: storage, selection, rotation, cooldownshermes_cli/auth_commands.py- CLI commands and interactive wizardhermes_cli/runtime_provider.py- Pool-aware credential resolutionrun_agent.py- Error recovery: 429/402/401 → pool rotation → fallback
Storage
Pool state จะถูกจัดเก็บใน ~/.hermes/auth.json ภายใต้ key credential_pool:
{
"version": 1,
"credential_pool": {
"openrouter": [
{
"id": "abc123",
"label": "OPENROUTER_API_KEY",
"auth_type": "api_key",
"priority": 0,
"source": "env:OPENROUTER_API_KEY",
"access_token": "sk-or-v1-...",
"last_status": "ok",
"request_count": 142
}
]
},
}Strategies จะถูกจัดเก็บใน config.yaml (ไม่ใช่ auth.json):
credential_pool_strategies:
openrouter: round_robin
anthropic: least_used📄 user-guide/features/cron.md
sidebar_position: 5 title: "งานที่กำหนดเวลา (Cron)" description: "กำหนดเวลาทำงานอัตโนมัติด้วยภาษาธรรมชาติ จัดการด้วยเครื่องมือ cron เพียงตัวเดียว และแนบทักษะ (skills) หนึ่งตัวหรือมากกว่า"
งานที่กำหนดเวลา (Cron)
กำหนดเวลาให้งานทำงานโดยอัตโนมัติด้วยภาษาธรรมชาติหรือ cron expressions Hermes เปิดเผยการจัดการ cron ผ่านเครื่องมือ cronjob ตัวเดียว โดยใช้การดำเนินการแบบ action-style แทนการใช้เครื่องมือแยกสำหรับ schedule/list/remove
สิ่งที่ cron ทำได้ในปัจจุบัน
งาน cron สามารถ:
- กำหนดเวลางานแบบครั้งเดียว (one-shot) หรืองานที่เกิดขึ้นซ้ำ (recurring)
- หยุดชั่วคราว (pause), กลับมาทำงานต่อ (resume), แก้ไข (edit), ทริกเกอร์ (trigger), และลบงาน (remove)
- แนบทักษะ (skills) ศูนย์ ตัวเดียว หรือหลายตัวกับงาน
- ส่งผลลัพธ์กลับไปยัง chat ต้นทาง, local files, หรือปลายทางของแพลตฟอร์มที่กำหนดค่าไว้
- ทำงานใน agent sessions ใหม่ด้วยรายการเครื่องมือ (tool list) แบบ static ปกติ
:::warning เซสชันที่รัน cron ไม่สามารถสร้าง cron jobs เพิ่มเติมแบบวนซ้ำได้ Hermes จะปิดใช้งานเครื่องมือจัดการ cron ภายใน cron executions เพื่อป้องกันวงจรการกำหนดเวลาที่ทำงานผิดปกติ :::
การสร้างงานที่กำหนดเวลา
ใน chat ด้วย /cron
/cron add 30m "Remind me to check the build"
/cron add "every 2h" "Check server status"
/cron add "every 1h" "Summarize new feed items" --skill blogwatcher
/cron add "every 1h" "Use both skills and combine the result" --skill blogwatcher --skill mapsจาก CLI แบบ standalone
hermes cron create "every 2h" "Check server status"
hermes cron create "every 1h" "Summarize new feed items" --skill blogwatcher
hermes cron create "every 1h" "Use both skills and combine the result" \
--skill blogwatcher \
--skill maps \
--name "Skill combo"ผ่านการสนทนาแบบธรรมชาติ
ถาม Hermes ตามปกติ:
Every morning at 9am, check Hacker News for AI news and send me a summary on Telegram.Hermes จะใช้เครื่องมือ cronjob แบบรวมภายใน
งาน cron ที่ผูกกับทักษะ (Skill-backed cron jobs)
งาน cron สามารถโหลดทักษะหนึ่งตัวหรือมากกว่าก่อนที่จะรัน prompt
ทักษะเดียว
cronjob(
action="create",
skill="blogwatcher",
prompt="Check the configured feeds and summarize anything new.",
schedule="0 9 * * *",
name="Morning feeds",
)หลายทักษะ
ทักษะจะถูกโหลดตามลำดับ prompt จะกลายเป็นคำสั่งงานที่ซ้อนทับอยู่บนทักษะเหล่านั้น
cronjob(
action="create",
skills=["blogwatcher", "maps"],
prompt="Look for new local events and interesting nearby places, then combine them into one short brief.",
schedule="every 6h",
name="Local brief",
)สิ่งนี้มีประโยชน์เมื่อคุณต้องการให้ agent ที่กำหนดเวลาสามารถสืบทอด workflow ที่นำกลับมาใช้ใหม่ได้ โดยไม่ต้องใส่ข้อความทักษะทั้งหมดลงใน cron prompt เอง
การแก้ไขงาน
คุณไม่จำเป็นต้องลบและสร้างงานใหม่เพียงเพื่อเปลี่ยนแปลงมัน
Chat
/cron edit <job_id> --schedule "every 4h"
/cron edit <job_id> --prompt "Use the revised task"
/cron edit <job_id> --skill blogwatcher --skill maps
/cron edit <job_id> --remove-skill blogwatcher
/cron edit <job_id> --clear-skillsCLI แบบ standalone
hermes cron edit <job_id> --schedule "every 4h"
hermes cron edit <job_id> --prompt "Use the revised task"
hermes cron edit <job_id> --skill blogwatcher --skill maps
hermes cron edit <job_id> --add-skill maps
hermes cron edit <job_id> --remove-skill blogwatcher
hermes cron edit <job_id> --clear-skillsหมายเหตุ:
--skillที่ทำซ้ำจะแทนที่รายการทักษะที่แนบกับงาน--add-skillจะเพิ่มต่อท้ายรายการที่มีอยู่โดยไม่แทนที่--remove-skillลบทักษะที่แนบเฉพาะตัว--clear-skillsลบทักษะที่แนบทั้งหมด
การดำเนินการวงจรชีวิต (Lifecycle actions)
งาน cron มีวงจรชีวิตที่สมบูรณ์กว่าแค่ create/remove แล้ว
Chat
/cron list
/cron pause <job_id>
/cron resume <job_id>
/cron run <job_id>
/cron remove <job_id>CLI แบบ standalone
hermes cron list
hermes cron pause <job_id>
hermes cron resume <job_id>
hermes cron run <job_id>
hermes cron remove <job_id>
hermes cron status
hermes cron tickสิ่งที่แต่ละคำสั่งทำ:
pause- เก็บงานไว้แต่หยุดการกำหนดเวลาresume- เปิดใช้งานงานอีกครั้งและคำนวณการทำงานในอนาคตครั้งถัดไปrun- ทริกเกอร์งานในการ tick ของ scheduler ครั้งถัดไปremove- ลบงานออกไปทั้งหมด
วิธีการทำงาน
การรัน cron ถูกจัดการโดย gateway daemon gateway จะทำการ tick scheduler ทุก 60 วินาที และรันงานที่ถึงกำหนดใน isolated agent sessions
hermes gateway install # ติดตั้งเป็น user service
sudo hermes gateway install --system # Linux: boot-time system service สำหรับเซิร์ฟเวอร์
hermes gateway # หรือรันใน foreground
hermes cron list
hermes cron statusพฤติกรรมของ gateway scheduler
ในการ tick แต่ละครั้ง Hermes:
- โหลดงานจาก
~/.hermes/cron/jobs.json - ตรวจสอบ
next_run_atเทียบกับเวลาปัจจุบัน - เริ่มต้น
AIAgentsession ใหม่สำหรับงานที่ถึงกำหนดแต่ละงาน - ฉีดทักษะที่แนบมาหนึ่งตัวหรือมากกว่าเข้าสู่ session ใหม่นั้นตามความจำเป็น
- รัน prompt จนเสร็จสมบูรณ์
- ส่งมอบผลลัพธ์สุดท้าย
- อัปเดต metadata การรันและเวลาที่กำหนดการถัดไป
การล็อกไฟล์ที่ ~/.hermes/cron/.tick.lock ป้องกันไม่ให้การ tick ของ scheduler ที่ซ้อนทับกันรันงานชุดเดียวกันซ้ำ
ตัวเลือกการส่งมอบ (Delivery options)
เมื่อกำหนดเวลางาน คุณต้องระบุว่าผลลัพธ์จะถูกส่งไปที่ใด:
| ตัวเลือก | คำอธิบาย | ตัวอย่าง |
|---|---|---|
"origin" | กลับไปยังที่ที่สร้างงาน | ค่าเริ่มต้นบน messaging platforms |
"local" | บันทึกใน local files เท่านั้น (~/.hermes/cron/output/) | ค่าเริ่มต้นบน CLI |
"telegram" | ช่องหลักของ Telegram | ใช้ TELEGRAM_HOME_CHANNEL |
"telegram:123456" | แชท Telegram เฉพาะตาม ID | การส่งมอบโดยตรง |
"telegram:-100123:17585" | หัวข้อ (topic) ของ Telegram เฉพาะ | รูปแบบ chat_id:thread_id |
"discord" | ช่องหลักของ Discord | ใช้ DISCORD_HOME_CHANNEL |
"discord:#engineering" | ช่อง Discord เฉพาะ | ตามชื่อช่อง |
"slack" | ช่องหลักของ Slack | |
"whatsapp" | WhatsApp หลัก | |
"signal" | Signal | |
"matrix" | ห้องหลักของ Matrix | |
"mattermost" | ช่องหลักของ Mattermost | |
"email" | อีเมล | |
"sms" | SMS ผ่าน Twilio | |
"homeassistant" | Home Assistant | |
"dingtalk" | DingTalk | |
"feishu" | Feishu/Lark | |
"wecom" | WeCom | |
"weixin" | Weixin (WeChat) | |
"bluebubbles" | BlueBubbles (iMessage) | |
"qqbot" | QQ Bot (Tencent QQ) |
ผลลัพธ์สุดท้ายของ agent จะถูกส่งมอบโดยอัตโนมัติ คุณไม่จำเป็นต้องเรียกใช้ send_message ใน cron prompt
การห่อหุ้มผลลัพธ์ (Response wrapping)
โดยค่าเริ่มต้น ผลลัพธ์ cron ที่ส่งมอบจะถูกห่อหุ้มด้วย header และ footer เพื่อให้ผู้รับทราบว่ามาจากงานที่กำหนดเวลา:
Cronjob Response: Morning feeds
-------------
<agent output here>
Note: The agent cannot see this message, and therefore cannot respond to it.หากต้องการส่งมอบผลลัพธ์ agent ดิบโดยไม่มี wrapper ให้ตั้งค่า cron.wrap_response เป็น false:
# ~/.hermes/config.yaml
cron:
wrap_response: falseการระงับแบบเงียบ (Silent suppression)
หากผลลัพธ์สุดท้ายของ agent ขึ้นต้นด้วย [SILENT], การส่งมอบจะถูกระงับทั้งหมด ผลลัพธ์ยังคงถูกบันทึกไว้ในเครื่องสำหรับการตรวจสอบ (ใน ~/.hermes/cron/output/) แต่จะไม่มีการส่งข้อความไปยังปลายทางที่กำหนด
สิ่งนี้มีประโยชน์สำหรับการตรวจสอบงานที่ควรรายงานเมื่อมีบางอย่างผิดปกติเท่านั้น:
Check if nginx is running. If everything is healthy, respond with only [SILENT].
Otherwise, report the issue.งานที่ล้มเหลวจะส่งมอบเสมอไม่ว่าจะมี marker [SILENT] หรือไม่ - มีเพียงการรันที่สำเร็จเท่านั้นที่สามารถถูกระงับได้
การหมดเวลาของสคริปต์ (Script timeout)
สคริปต์ก่อนรัน (แนบผ่านพารามิเตอร์ script) มีการหมดเวลาเริ่มต้นที่ 120 วินาที หากสคริปต์ของคุณต้องการเวลานานกว่านั้น - ตัวอย่างเช่น เพื่อรวมการหน่วงเวลาแบบสุ่มที่หลีกเลี่ยงรูปแบบการจับเวลาแบบบอท - คุณสามารถเพิ่มค่านี้ได้:
# ~/.hermes/config.yaml
cron:
script_timeout_seconds: 300 # 5 minutesหรือตั้งค่า environment variable HERMES_CRON_SCRIPT_TIMEOUT ลำดับการแก้ไขคือ: env var → config.yaml → ค่าเริ่มต้น 120 วินาที
การกู้คืนผู้ให้บริการ (Provider recovery)
งาน cron จะสืบทอด fallback providers และ credential pool rotation ที่คุณกำหนดค่าไว้ หาก API key หลักถูกจำกัดอัตรา (rate-limited) หรือผู้ให้บริการส่งข้อผิดพลาด agent cron สามารถ:
- Fall back ไปยังผู้ให้บริการทางเลือก หากคุณได้กำหนดค่า
fallback_providers(หรือfallback_modelแบบเก่า) ในconfig.yaml - หมุนเวียนไปยัง credential ถัดไป ใน credential pool สำหรับผู้ให้บริการรายเดียวกัน
ซึ่งหมายความว่างาน cron ที่ทำงานด้วยความถี่สูงหรือในช่วงเวลาเร่งด่วนจะมีความยืดหยุ่นมากขึ้น - การที่ key เดียวถูกจำกัดอัตราจะไม่ทำให้การรันทั้งหมดล้มเหลว
รูปแบบการกำหนดเวลา (Schedule formats)
ผลลัพธ์สุดท้ายของ agent จะถูกส่งมอบโดยอัตโนมัติ - คุณไม่จำเป็นต้องรวม send_message ใน cron prompt สำหรับปลายทางเดียวกันนั้น หากการรัน cron เรียกใช้ send_message ไปยังเป้าหมายที่ scheduler จะส่งมอบอยู่แล้ว Hermes จะข้ามการส่งซ้ำนั้น และบอกให้ model ใส่เนื้อหาที่ผู้ใช้เห็นใน final response แทน ให้ใช้ send_message สำหรับเป้าหมายเพิ่มเติมหรือที่แตกต่างกันเท่านั้น
การหน่วงเวลาแบบสัมพัทธ์ (one-shot)
30m → รันครั้งเดียวใน 30 นาที
2h → รันครั้งเดียวใน 2 ชั่วโมง
1d → รันครั้งเดียวใน 1 วันช่วงเวลา (recurring)
every 30m → ทุก 30 นาที
every 2h → ทุก 2 ชั่วโมง
every 1d → ทุกวันCron expressions
0 9 * * * → ทุกวันเวลา 9:00 น.
0 9 * * 1-5 → วันธรรมดาเวลา 9:00 น.
0 */6 * * * → ทุก 6 ชั่วโมง
30 8 1 * * → วันที่ 1 ของทุกเดือนเวลา 8:30 น.
0 0 * * 0 → ทุกวันอาทิตย์เวลาเที่ยงคืนISO timestamps
2026-03-15T09:00:00 → ครั้งเดียวในวันที่ 15 มีนาคม 2026 เวลา 9:00 น.พฤติกรรมการทำซ้ำ (Repeat behavior)
| ประเภทการกำหนดเวลา | การทำซ้ำเริ่มต้น | พฤติกรรม |
|---|---|---|
One-shot (30m, timestamp) | 1 | ทำงานครั้งเดียว |
Interval (every 2h) | forever | ทำงานจนกว่าจะถูกลบ |
| Cron expression | forever | ทำงานจนกว่าจะถูกลบ |
คุณสามารถเขียนทับได้:
cronjob(
action="create",
prompt="...",
schedule="every 2h",
repeat=5,
)การจัดการงานในรูปแบบโปรแกรม (Programmatically)
API ที่ใช้สำหรับ agent คือเครื่องมือเดียว:
cronjob(action="create", ...)
cronjob(action="list")
cronjob(action="update", job_id="...")
cronjob(action="pause", job_id="...")
cronjob(action="resume", job_id="...")
cronjob(action="run", job_id="...")
cronjob(action="remove", job_id="...")สำหรับ update ให้ส่ง skills=[] เพื่อลบทักษะที่แนบทั้งหมด
การจัดเก็บงาน (Job storage)
งานจะถูกจัดเก็บใน ~/.hermes/cron/jobs.json ผลลัพธ์จากการรันงานจะถูกบันทึกที่ ~/.hermes/cron/output/{job_id}/{timestamp}.md
การจัดเก็บใช้ atomic file writes เพื่อให้แน่ใจว่าการเขียนที่ถูกขัดจังหวะจะไม่ทิ้งไฟล์งานที่เขียนไม่สมบูรณ์ไว้
งานที่กำหนดเวลาต้องมี prompt ที่สมบูรณ์
:::warning สำคัญ งาน cron ทำงานใน agent session ที่สดใหม่โดยสมบูรณ์ prompt จะต้องมีทุกสิ่งที่ agent ต้องการซึ่งไม่ได้ถูกให้โดย attached skills อยู่แล้ว :::
ไม่ดี: "ตรวจสอบปัญหาเซิร์ฟเวอร์นั้น"
ดี: "SSH เข้าไปยังเซิร์ฟเวอร์ 192.168.1.100 ในฐานะผู้ใช้ 'deploy', ตรวจสอบว่า nginx กำลังทำงานอยู่ด้วย 'systemctl status nginx', และยืนยันว่า https://example.com ส่งคืน HTTP 200"
ความปลอดภัย (Security)
prompt ของงานที่กำหนดเวลาจะถูกสแกนหารูปแบบ prompt-injection และ credential-exfiltration ทั้งในขณะสร้างและอัปเดต prompt ที่มี Unicode tricks ที่มองไม่เห็น, การพยายาม SSH backdoor, หรือ payload การขโมยความลับที่ชัดเจน จะถูกบล็อก
📄 user-guide/features/dashboard-plugins.md
sidebar_position: 16 title: "Dashboard Plugins" description: "Build custom tabs and extensions for the Hermes web dashboard"
Dashboard Plugins
Dashboard plugins ช่วยให้คุณเพิ่มแท็บที่กำหนดเอง (custom tabs) เข้าไปใน web dashboard ได้ Plugin หนึ่งสามารถแสดง UI ของตัวเอง เรียกใช้ Hermes API และทางเลือกคือลงทะเบียน backend endpoints ได้ทั้งหมดนี้โดยที่ไม่ต้องแก้ไข source code ของ dashboard เลย
Quick Start
ให้สร้าง plugin directory พร้อมกับ manifest และไฟล์ JS:
mkdir -p ~/.hermes/plugins/my-plugin/dashboard/distmanifest.json:
{
"name": "my-plugin",
"label": "My Plugin",
"icon": "Sparkles",
"version": "1.0.0",
"tab": {
"path": "/my-plugin",
"position": "after:skills"
},
"entry": "dist/index.js"
}dist/index.js:
(function () {
var SDK = window.__HERMES_PLUGIN_SDK__;
var React = SDK.React;
var Card = SDK.components.Card;
var CardHeader = SDK.components.CardHeader;
var CardTitle = SDK.components.CardTitle;
var CardContent = SDK.components.CardContent;
function MyPage() {
return React.createElement(Card, null,
React.createElement(CardHeader, null,
React.createElement(CardTitle, null, "My Plugin")
),
React.createElement(CardContent, null,
React.createElement("p", { className: "text-sm text-muted-foreground" },
"Hello from my custom dashboard tab!"
)
)
);
}
window.__HERMES_PLUGINS__.register("my-plugin", MyPage);
})();เมื่อ refresh dashboard - แท็บของคุณจะปรากฏใน navigation bar
Plugin Structure
Plugins จะอยู่ใน directory มาตรฐาน ~/.hermes/plugins/ ส่วนส่วนขยาย dashboard คือ subfolder ชื่อ dashboard/:
~/.hermes/plugins/my-plugin/
plugin.yaml # optional - manifest สำหรับ plugin CLI/gateway ที่มีอยู่
__init__.py # optional - hooks สำหรับ plugin CLI/gateway ที่มีอยู่
dashboard/ # ส่วนขยาย dashboard
manifest.json # required - config ของแท็บ, icon, entry point
dist/
index.js # required - JS bundle ที่ build ไว้ล่วงหน้า
style.css # optional - CSS ที่กำหนดเอง
plugin_api.py # optional - เส้นทาง API backendPlugin เดียวสามารถขยายได้ทั้ง CLI/gateway (ผ่าน plugin.yaml + __init__.py) และ dashboard (ผ่าน dashboard/) จาก directory เดียวกัน
Manifest Reference
ไฟล์ manifest.json ใช้เพื่ออธิบาย plugin ของคุณให้กับ dashboard:
{
"name": "my-plugin",
"label": "My Plugin",
"description": "What this plugin does",
"icon": "Sparkles",
"version": "1.0.0",
"tab": {
"path": "/my-plugin",
"position": "after:skills"
},
"entry": "dist/index.js",
"css": "dist/style.css",
"api": "plugin_api.py"
}| Field | Required | Description |
|---|---|---|
name | Yes | ตัวระบุ plugin ที่ไม่ซ้ำกัน (ตัวพิมพ์เล็ก, ใช้ hyphen ได้) |
label | Yes | ชื่อที่แสดงในแท็บ nav |
description | No | คำอธิบายสั้นๆ |
icon | No | ชื่อ icon ของ Lucide (ค่าเริ่มต้น: Puzzle) |
version | No | สตริงเวอร์ชัน Semver |
tab.path | Yes | URL path สำหรับแท็บ (เช่น /my-plugin) |
tab.position | No | ตำแหน่งที่จะแทรกแท็บ: end (ค่าเริ่มต้น), after:<tab>, before:<tab> |
entry | Yes | Path ไปยัง JS bundle เทียบกับ dashboard/ |
css | No | Path ไปยังไฟล์ CSS ที่จะ inject |
api | No | Path ไปยังไฟล์ Python ที่มี FastAPI routes |
Tab Position
field position ควบคุมว่าแท็บของคุณจะปรากฏที่ใดใน navigation:
"end"- หลังแท็บ built-in ทั้งหมด (ค่าเริ่มต้น)"after:skills"- หลังแท็บ Skills"before:config"- ก่อนแท็บ Config"after:cron"- หลังแท็บ Cron
ค่าที่อยู่หลังเครื่องหมาย colon คือ path segment ของแท็บเป้าหมาย (โดยไม่มีเครื่องหมาย slash นำหน้า)
Available Icons
Plugins สามารถใช้ชื่อ icon ของ Lucide เหล่านี้ได้:
Activity, BarChart3, Clock, Code, Database, Eye, FileText, Globe, Heart, KeyRound, MessageSquare, Package, Puzzle, Settings, Shield, Sparkles, Star, Terminal, Wrench, Zap
หากชื่อ icon ไม่เป็นที่รู้จัก จะ fallback ไปที่ Puzzle
Plugin SDK
Plugins ไม่ได้ bundle React หรือ UI components แต่ใช้ SDK ที่เปิดเผยบน window.__HERMES_PLUGIN_SDK__ วิธีนี้ช่วยหลีกเลี่ยงปัญหา version conflicts และทำให้ plugin bundles มีขนาดเล็ก
SDK Contents
var SDK = window.__HERMES_PLUGIN_SDK__;
// React
SDK.React // React instance
SDK.hooks.useState // React hooks
SDK.hooks.useEffect
SDK.hooks.useCallback
SDK.hooks.useMemo
SDK.hooks.useRef
SDK.hooks.useContext
SDK.hooks.createContext
// API
SDK.api // Hermes API client (getStatus, getSessions, etc.)
SDK.fetchJSON // Raw fetch สำหรับ custom endpoints - จัดการเรื่อง auth โดยอัตโนมัติ
// UI Components (shadcn/ui style)
SDK.components.Card
SDK.components.CardHeader
SDK.components.CardTitle
SDK.components.CardContent
SDK.components.Badge
SDK.components.Button
SDK.components.Input
SDK.components.Label
SDK.components.Select
SDK.components.SelectOption
SDK.components.Separator
SDK.components.Tabs
SDK.components.TabsList
SDK.components.TabsTrigger
// Utilities
SDK.utils.cn // Tailwind class merger (clsx + twMerge)
SDK.utils.timeAgo // "5m ago" จาก unix timestamp
SDK.utils.isoTimeAgo // "5m ago" จาก ISO string
// Hooks
SDK.useI18n // i18n translations
SDK.useTheme // ข้อมูล theme ปัจจุบันUsing SDK.fetchJSON
สำหรับการเรียกใช้ backend API endpoints ของ plugin:
SDK.fetchJSON("/api/plugins/my-plugin/data")
.then(function (result) {
console.log(result);
})
.catch(function (err) {
console.error("API call failed:", err);
});fetchJSON จะทำการ inject session auth token, จัดการข้อผิดพลาด, และ parse JSON โดยอัตโนมัติ
Using Existing API Methods
object SDK.api มี methods สำหรับ endpoint ของ Hermes ทั้งหมดที่ built-in:
// Fetch agent status
SDK.api.getStatus().then(function (status) {
console.log("Version:", status.version);
});
// List sessions
SDK.api.getSessions(10).then(function (resp) {
console.log("Sessions:", resp.sessions.length);
});Backend API Routes
Plugins สามารถลงทะเบียน FastAPI routes ได้โดยการตั้งค่า field api ใน manifest ให้สร้างไฟล์ Python ที่ export router:
# plugin_api.py
from fastapi import APIRouter
router = APIRouter()
@router.get("/data")
async def get_data():
return {"items": ["one", "two", "three"]}
@router.post("/action")
async def do_action(body: dict):
return {"ok": True, "received": body}Routes จะถูก mount ที่ /api/plugins/<name>/ ดังนั้นโค้ดด้านบนจะกลายเป็น:
GET /api/plugins/my-plugin/dataPOST /api/plugins/my-plugin/action
Plugin API routes จะข้ามการตรวจสอบสิทธิ์ด้วย session token เนื่องจาก dashboard server ผูกกับ localhost เท่านั้น
Accessing Hermes Internals
Backend routes สามารถ import จาก codebase ของ hermes-agent ได้:
from fastapi import APIRouter
from hermes_state import SessionDB
from hermes_cli.config import load_config
router = APIRouter()
@router.get("/session-count")
async def session_count():
db = SessionDB()
try:
count = len(db.list_sessions(limit=9999))
return {"count": count}
finally:
db.close()Custom CSS
หาก plugin ของคุณต้องการ custom styles ให้เพิ่มไฟล์ CSS และอ้างอิงใน manifest:
{
"css": "dist/style.css"
}ไฟล์ CSS จะถูก inject เป็นแท็ก <link> เมื่อ plugin โหลด ใช้ชื่อ class ที่เฉพาะเจาะจงเพื่อหลีกเลี่ยงความขัดแย้งกับ styles ที่มีอยู่ของ dashboard
/* dist/style.css */
.my-plugin-chart {
border: 1px solid var(--color-border);
background: var(--color-card);
padding: 1rem;
}คุณสามารถใช้ CSS custom properties ของ dashboard (เช่น --color-border, --color-foreground) เพื่อให้เข้ากับ theme ที่ใช้งานอยู่
Plugin Loading Flow
- Dashboard โหลด -
main.tsxเปิดเผย SDK บนwindow.__HERMES_PLUGIN_SDK__ App.tsxเรียกใช้usePlugins()ซึ่งจะ fetchGET /api/dashboard/plugins- สำหรับแต่ละ plugin: CSS
<link>ถูก inject (ถ้ามีการประกาศ), JS<script>ถูกโหลด - Plugin JS เรียกใช้
window.__HERMES_PLUGINS__.register(name, Component) - Dashboard เพิ่มแท็บใน navigation และ mount component เป็น route
Plugins มีเวลาสูงสุด 2 วินาทีในการ register หลังจากที่ script ของพวกมันโหลด หาก plugin โหลดไม่สำเร็จ dashboard ก็จะทำงานต่อไปได้โดยไม่มีมัน
Plugin Discovery
dashboard จะสแกน directory เหล่านี้เพื่อหา dashboard/manifest.json:
- User plugins:
~/.hermes/plugins/<name>/dashboard/manifest.json - Bundled plugins:
<repo>/plugins/<name>/dashboard/manifest.json - Project plugins:
./.hermes/plugins/<name>/dashboard/manifest.json(เฉพาะเมื่อตั้งค่าHERMES_ENABLE_PROJECT_PLUGINSแล้ว)
User plugins จะมีลำดับความสำคัญสูงสุด - หากชื่อ plugin เดียวกันมีอยู่ในหลายแหล่ง เวอร์ชันของผู้ใช้จะชนะ
หากต้องการบังคับให้สแกนซ้ำหลังจากเพิ่ม plugin ใหม่โดยไม่ต้อง restart server:
curl http://127.0.0.1:9119/api/dashboard/plugins/rescanPlugin API Endpoints
| Endpoint | Method | Description |
|---|---|---|
/api/dashboard/plugins | GET | รายการ plugin ที่ค้นพบ |
/api/dashboard/plugins/rescan | GET | บังคับสแกนซ้ำสำหรับ plugin ใหม่ |
/dashboard-plugins/<name>/<path> | GET | บริการ static assets ของ plugin |
/api/plugins/<name>/* | * | เส้นทาง API ที่ลงทะเบียนโดย plugin |
Example Plugin
repository มีตัวอย่าง plugin ที่ plugins/example-dashboard/ ซึ่งสาธิต:
- การใช้ SDK components (Card, Badge, Button)
- การเรียกใช้ backend API route
- การ register ผ่าน
window.__HERMES_PLUGINS__.register()
หากต้องการลองใช้ ให้รัน hermes dashboard - แท็บ "Example" จะปรากฏหลัง Skills
Tips
- No build step required - เขียน plain JavaScript IIFEs หากคุณต้องการ JSX ให้ใช้ bundler ใดก็ได้ (esbuild, Vite, webpack) ที่กำหนดเป้าหมายเป็น IIFE output โดยมี React เป็น external
- Keep bundles small - React และ UI components ทั้งหมดถูกจัดหาโดย SDK bundle ของคุณควรมีเฉพาะ logic ของ plugin เท่านั้น
- Use theme variables - อ้างอิง
var(--color-*)ใน CSS เพื่อให้ตรงกับ theme ที่ผู้ใช้เลือกโดยอัตโนมัติ - Test locally - รัน
hermes dashboard --no-openและใช้ browser dev tools เพื่อตรวจสอบว่า plugin ของคุณโหลดและ register อย่างถูกต้อง
extent analysis
TL;DR
The issue seems to be related to the Hermes Agent's plugin system, specifically with the disk-cleanup plugin, but without a clear error message or specific problem description, it's challenging to provide a precise fix.
Guidance
- Check Plugin Configuration: Ensure that the
disk-cleanupplugin is correctly enabled and configured. You can check this by runninghermes plugins listand verifying thatdisk-cleanupis in the list of enabled plugins. - Review Logs: Look into the Hermes Agent logs for any error messages related to the
disk-cleanupplugin. This can provide clues about what might be going wrong. - Plugin Documentation: Refer to the Hermes documentation or the specific plugin's documentation for any troubleshooting guides or known issues related to the
disk-cleanupplugin. - System Resources: Ensure that your system has enough resources (disk space, memory) to run the plugin effectively. Lack of resources could lead to plugin failures.
Example
Given the lack of specific details, here's a generic example of how to enable a plugin:
hermes plugins enable disk-cleanupAnd to check the plugin's status:
hermes plugins listNotes
- The provided text seems to be a user guide or documentation for the Hermes Agent, including features like plugins, code execution, and context files, rather than an issue description.
- Without a clear problem statement or error message, it's difficult to provide a targeted solution.
Recommendation
Given the information, it's hard to recommend a specific action without knowing the exact issue. However, if you're experiencing problems with the disk-cleanup plugin, try disabling and re-enabling it or checking for updates to the plugin or the Hermes Agent itself.
Vote matrix · Quick signals
Still need to ship something?
×6Another batch ranked right after the header list — different links, same matching logic.
TRENDING
- Feature Request: Configurable per-minute rate limiting (RPM) for models to prevent 429 errors
- Android: Hermes App + Termux install share ~/.hermes and cause silent permission loops
- hermes update emits unicode-animations ANSI demo in non-interactive logs
- hermes update downgrades aiohttp from 3.13.4 to 3.13.3
- npm install warns about deprecated @babel/plugin-proposal-private-methods
- DingTalk inbound media URLs are skipped as unreadable native image paths
- fix(dashboard): ChatPage clears header action buttons on ALL pages, not just Sessions
- [Bug]: check_web_api_key() hardcodes built-in backends — third-party web search plugins silently disabled
- Hermes Web UI 修复经验:GatewayManager 补丁、进程 D 状态、数据库升级问题
- Telegram gateway can silently drop turn after /stop with response=0 chars while internal work continues
- Bug Report: v0.14.0 上下文污染 — 历史回复碎片回注到新请求
- Bug: hermes skills search table truncates Identifier column — install fails with copied value
- [skills-index-watchdog] Skills index is stale or degraded (degraded)
- Discord approval embed not rendering on web/mobile — embed data present in API but invisible
- Idea: Discord voice-channel participation / opt-in auto-join mode
- [Feature]: Claude Code--ultrawork
- build-arm64 job deterministically fails on cold cache (Azure SAS token expires mid-build)
- [Enhancement] computer_use: action=type should fall back to key events for terminal emulators (Ghostty/Terminal.app/iTerm2)
- Feature Request: Session Recovery on Temporary Provider Outage
- [Bug]: Hermes dashboard not working on NixOS (container)
- [Feature]: Add option to ignore @all/@everyone mentions in Feishu group chats
- QQ Bot WebSocket 频繁断开:长时间工具执行阻塞 asyncio 事件循环导致心跳超时
- patch tool: new_string escape sequences (\t) get written literally
- Feature Request: i18n / 多语言支持(国际化)
- Bug: web_crawl schema lets models auto-guess "instructions" instead of asking the user via clarify
- feat: `!command` prefix for direct shell execution (like Claude Code)
- Expose currently-running cron jobs via /api/jobs (or new endpoint)
- [Bug]: Kanban parent-child handoff: scratch workspace GC destroys artifacts before child can read them
- [Bug, Windows] hermes gateway restart loses session context — planned_stop_marker not written before SIGTERM
- [Bug]: Codex→DeepSeek fallback sends assistant turns without reasoning_content → HTTP 400 (require-side cross-provider failover)
- [Bug]: Update got stuck half way, reboot it, then ModuleNotFoundError: No module named 'hermes_cli'
- Kanban dispatcher corrupt-board handling and multi-profile gateway ownership ambiguity
- Gateway can resend a short fallback message when the real final Telegram response was already delivered
- [BUG] Bedrock: Fix 'Invalid API Key format' for presigned URL tokens
- Secret redaction corrupts code syntax in tool output (write_file, execute_code, terminal)
- Unable to connect Ollama Cloud with Pro Subscription to Hermes
- feat: fuzzy substring matching for /skill autocomplete
- PRD: Autonomous market-impact prediction briefing system
- Kanban dashboard should support task/card deep links
- [Feature] Native Feishu CardKit Streaming: consolidate best-in-class implementations
- [Feature]: Inject mental model into context when using Hindsight
- Interactive CLI hides tool output despite display.tool_progress=all, and hermes chat -v does not restore it
- fix(api_server): _handle_responses drops text.format JSON schema — structured output constraints silently ignored
- state.db FTS corruption goes undetected — no integrity check, no repair path
- bug: fallback routing can select text-only models for image requests and hide the primary failure
- feat(kanban): persist worker session_id per run and pass --resume on respawn after unblock
- feat(kanban): support GitHub/OMO lifecycle bridge for Xiyou-style automation
- Expose update-safe TUI/composer hooks for voice transcript and composer events
- Hide or configure voice transcript status rows in editable dictation mode
- [Feature]: Per-Tool / Per-Toolset Approval Policies
- Context compression creates orphan sessions missing from state.db
- messaging platform
- feat: Add read-only / silent monitoring mode for WhatsApp adapter
- double-.hermes path mismatch, the HOME env var leak, and the fallback-notification UX problem
- Bug: Plattform-Bundle name `hermes-yuanbao` in `agent.disabled_toolsets` silently kills ALL tools in gateway path (Telegram + cron), CLI unaffected
- CLI /yolo (in-chat) does not bypass dangerous command approvals — env var freeze + missing enable_session_yolo call
- OpenAI Codex provider crashes with "'NoneType' object is not iterable" (HTTP None)
- DEEPSEEK_API_KEY blocked by env blocklist in gateway process — cron jobs fail with deepseek provider
- fix(feishu): Card action callback routing issues - invalid message_id and unrecognized /card command
- Discord plugin: profiles without explicit `discord:` block silently get `require_mention=true` + `auto_thread=true` (regression in cc8e5ec2a)
- [Bug]: DISCORD_ALLOWED_ROLES ignored by gateway _is_user_authorized — role-authorized users get 'Unauthorized user' rejection
- [Bug]: /new, /clear, and /reset commands freeze the terminal session
- openai-codex subscription backend returns HTTP 200 with response.output=None, causing Slack/cron failures
- RFC: Centralized Model/Provider Registry
- bug: openai-codex provider — TypeError: 'NoneType' object is not iterable on every request (gpt-5.5)
- [Feature]: Source-aware instruction gate — architectural mitigation for indirect prompt injection
- Named custom provider stale_timeout_seconds ignored because runtime provider is normalized to `custom`
- guard test (ignore)
- [Feature]: per-platform LLM request_overrides (extra_body / reasoning_effort / service_tier)
- One-shot smoke: add Flue-backed orchestration fixture
- Gateway should not treat stale Codex app-server progress as final response after post-tool silence
- `docker_run_as_host_user: true` breaks bundled skills: Hermes home is mounted into `/root/.hermes` but the container runs as a non-root user (`HOME=/home/pn`)
- [Bug]: gateway api_server streaming bypasses server-side tool-call loop when chat_template_kwargs.enable_thinking=false (model emits tool name as plain text)
- [Feature]: Pre-install python-telegram-bot in Umbrel Hermes Docker image
- YouTube Shorts filter not working in youtube-content skill
- v0.15.0 PyPI release breaks ALL platforms — plugin.yaml manifests missing from package
- RFC: On-demand tool/skill/MCP discovery — decouple schema registration from process lifecycle
- Pixshelf: local-first stock photo workflow command center
- [Bug]: baoyu infographic skill should not silently bypass image_generate
- Pixshelf v1.5: manual submission tracking for stock agencies
- `hermes config set` silently accepts unknown keys, writing them where the runtime never reads
- Honcho memory prefetch hang on fresh CLI subprocess in v0.15.0 (regression from #27190)
- [Bug] v0.15.0 Docker image: stage2-hook.sh, main-wrapper.sh missing; container_boot module removed
- Feature: Reduce cache-read token overhead for DeepSeek providers — configurable cache_ttl, skills snapshot trimming, memory compaction
- Windows: three bugs from daily use (plugin discovery, gateway exit code, Unicode decode
- holographic memory: HRR silently degrades to FTS5 when numpy is missing
- Make max_tokens configurable for aux vision calls
- Conversation compression desynchronizes session ID between agent context and gateway routing, causing silent message loss
- [Bug]: v0.15.0 Docker image:The TUI cannot be used in the dashboard.
- cron: skip_memory=True blocks fact_store/memory tools from all cron jobs
- TUI: Node.js OOM crash when agent uses browser tools repeatedly
- feat: model_profiles — per-model toolset and memory config
- Automatic background skill patching disrupts active sessions (severe impact on local models)
- ensure_hermes_home() creates root-owned dirs in profile subdirectories when kanban workers are dispatched
- Feature: opt-in webhook bypass for DISCORD_ALLOW_BOTS — allow operator-initiated probes without weakening bot-loop guard
- v0.15.0: Codex requests fail HTTP 400 when participant display_name contains non-ASCII (emoji breaks input[].name pattern)
- Architecture: State Persistence Precedence (Memory vs Skills vs Hooks)
- [Bug]: cronjob tool: create action always fails with "schedule is required for create" even when parameters are provided
- codex-oauth: 'NoneType' object is not iterable in _run_codex_stream (gpt-5.5) — every turn fails non-retryably
- Docs/Config: Plugin local scope enablement ambiguity
- [Bug]: CLI freezes after using /new command (WSL)
- Profile Codex auth can ignore global credential pool when local state is stale
- [workflow-engine] CRITICAL: variable substitution crashes on regex metachars in user input
- [workflow-engine] HIGH: loop and bash nodes leak subprocesses on timeout
- [workflow-engine] HIGH: README documents config env vars the engine never reads
- [workflow-engine] MEDIUM: workflow_run rate limit bypassable via concurrent calls (TOCTOU)
- [workflow-engine] chore: manifest gaps, side-effectful register(), dead code, unauth kanban dispatch
- [mcp_lazy] HIGH: synthetic mcp_server_<name> stub collides with a real MCP server named 'server'
- [mcp_lazy] HIGH: promote_server eager flag documented but never persisted
- [mcp_lazy] MEDIUM: _prev_mode dict leaks and goes stale; not cleared on session evict
- [mcp_lazy] MEDIUM: get_pool has unlocked check-then-set race on pool creation
- [mcp_lazy] MEDIUM: pre_tool_call gives no guidance for unpromoted server-stub calls
- [mcp_lazy] chore: undeclared pre_tool_call hook, nonexistent 'mcp_load_tools' name in docs, missing tests
- [a2a_fleet] CRITICAL: server never auto-starts — register() runs outside an event loop
- [a2a_fleet] CRITICAL: auth_required defaults to false on a cross-machine surface
- [a2a_fleet] HIGH: remove invented disable() hook — loader never calls it, port leaks on reload
- [a2a_fleet] HIGH: plugin.yaml missing kind / provides_tools / requires_env (token env undeclared)
- [a2a_fleet] MEDIUM: tighten wide-open CORS, anonymous /health peer leak, and peer-URL SSRF
- [a2a_fleet] MEDIUM: relocate tests to tests/plugins/ and cover sync-register + auth-default paths
- xai-oauth auxiliary client incorrectly uses Responses API (CodexAuxiliaryClient), causing 403 on compression/vision/web_extract
- [Bug]: Direct Copilot gpt-5.5 large resumes are killed by 12s Codex TTFB watchdog
- [Bug]: `hermes uninstall` does not work on Windows
- TUI: Thinking block leaks raw JSON and Σ character
- Hostinger VPS: migration Hermes Agent → Hermes WebUI impossible (tini + UID mismatch + sessions)
- /goal judge over-continues exploratory goals unless the assistant explicitly says the goal is complete
- /goal auto-continuation can be amplified by preflight compression/session split and resurrect stale task state
- Dashboard infinite reload loop in loopback mode — GET /api/auth/me returns 401 on every page load
- [Bug]: Provider/LLM switch leaves stale encrypted_content causing 400 errors on Telegram sessions
- [Bug]: Infinite reload loop / React state loop on Sessions tab (Firefox + Chrome) — repeated 401 on /api/auth/me (v0.15.0)
- show_reasoning should work independently of streaming in CLI mode
- Feature Request: Strip reasoning/<think> blocks from TTS preprocessing
- mcp add / mcp test raise NameError when mcp package not installed
- v0.14.0 dashboard breaks behind reverse proxies — two regressions
- Skills hub creates empty category directories when no skills installed
- [Bug]: Custom endpoint: ChatCompletions returns content, but Hermes treats response as empty (v0.14.0)
- fix: atomic_replace() fails with EXDEV when HERMES_HOME is a cross-filesystem symlink
- fix(gateway): Feishu session cancellation orphans session guard, permanently blocking messages
- Custom endpoint pricing can overestimate Crof qwen3.5-9b cost by 1,000,000x
- MCP OAuth callback: module-level port global causes port collisions and structural weaknesses vs upstream
- Bug: send_message tool bypasses validate_media_delivery_path security check
- Proposal: Add Mnemosyne to official memory provider documentation
- feat(swarm): support custom verifier/synthesizer body + skills
- Template conversion failed
- Error occurred in the operation of the agent node in the workflow.
- PubSub client overrides Sentinel client when REDIS_USE_SENTINEL is enabled
- Frontend description of the Retrieval node output does not match the actual output
- JSON type input var raise Intenal server error
- cannot extract elements from a scalar
- 负载均衡 为模型配置多组凭据,并自动调用,此功能无法选择
- add models is error
- panic: could not create filter
- Persist partially generated messages when /chat-messages/:task_id/stop is called
- MCP server connection fails with 403 — request never leaves Dify (SSRF proxy suspected)
- Support durable async execution backends for long-running workflow steps
- [Xiaomi MiMo] Credentials validation fails with 400 "Not supported model mimo-v2-flash" when using Token Plan endpoint (v0.0.7)
- After clicking preview on a parent-child segmented knowledge base, it shows 0 chunks
- Retrieval score differs between UI upload (.docx) and API upload (.txt) despite identical chunk content and embedding model
- gemini cli crash again
- Xbox gift card code damage
- Damage caused by the gemini cli crash
- ioctl(2) failed, EBADF (Bad File Descriptor)
- Feat: Support Bun as an alternative runtime/package manager for updates and extensions
- fatal error again!!!!
- ioctl error
- Critical Crash: ioctl(2) failed, EBADF in ShellExecutionService.resizePty
- ioctl(2) failed, EBADF
- v0.44.0 Regression: Critical crash with ioctl(2) failed, EBADF during PTY resize
- Crash on startup: ioctl(2) failed, EBADF in UnixTerminal.resize
- Crash: `ioctl(2) failed, EBADF` in `node-pty` during PTY resize on macOS
- Gemini CLI crashes with `ioctl(2) failed, EBADF` in `node-pty` during `resizePty`
- Remote Role
- ERROR ioctl(2) failed, EBADF /home/mich
- RangeError: Maximum call stack size exceeded
- EBADF Error during folder creationg broke session and terminal glitches
- MAIP / Gargoub Project - Mediterania - North Coast
- Gemini cli crash again in this morning
- ERROR ioctl(2) failed, EBADF
- Verified node install fails — Checksum verification failed (Cloud)
- The extended debugging key did not arrive during registration.
- CollaborationPane unmounts collaboration store on single-user instances, causing permanent "No network connection" state
- Workflow cannot be saved when the name contains "->" (Potentially malicious string)
- automation does not work and does not show an error
- Raj Ai Automation
- Default Data Loader: DOMMatrix is not defined error
- Feature: Per-node execution timestamp overlay on canvas during workflow run
- AI Agent + Vertex `gemini-3.5-flash`: 400 "missing thought_signature" on sequential multi-turn tool calls (post-#24982)
- PDF Loader in Pinecone Vector Store fails due to pdf-parse version conflict (v2 not supported)
- emailReadImap: add UID deduplication, batch size cap, and numeric uid enforcement
- Manual node execution fails with "Could not find a node" when autosave is disabled (N8N_WORKFLOWS_AUTOSAVE_DISABLED)
- Schedule Trigger stopped firing — workflow Published & active, manual executions succeed, no automated fires for 2+ hours
- [MCP SDK] create_workflow_from_code intermittently returns HTTP 500, often as a false negative (workflow persists anyway, causing duplicates on retry)
- Credential-load wedge: workflows using googleApi/jwtAuth credentials silently fail to execute after key rotation
- Google Sheets Trigger every minute is not working manual Execute is working sent email
- [BUG] Plugin marketplace MCP connector remains stuck "still connecting" when mcp-remote requires OAuth
- [redacted at user request]
- Opus 4.7 behavioral regression: loaded instruction-following discipline degraded in recent Claude Code/Cowork updates
- [BUG] Tailscale via Homebrew CLI + Mac App Store GUI, both Macs on macOS, Cowork blocked by VPN detector despite Tailscale being a mesh VPN with no traffic interception
- stopShellPty on tab switch kills active sessions (exit 143) — regression in May 27 build
- [BUG] Long URLs are broken into multiple lines and become unclickable in terminal output
- [BUG] claude rm/stop/reap SIGKILLs background session tree without SIGTERM grace, orphaning git index.lock and similar
- [BUG] Default git workflow in the system prompt was pushed without context or consent
- [MODEL] Inconsistent output quality / Ignoring instructions (overfitting and inappropriate repetition of Korean vocabulary)
- You've hit your weekly limit · resets May 31 at 5pm (Asia/Shanghai)
- Paid yearly subscription silently downgraded to Free with no user action
- [Regression v2.1.153] Plugin bash hooks fail with "echo: write error: Permission denied" on Windows (claude-mem, shell: "bash")
- [BUG] Connector toggles in conversation are not clickable — must click text label instead
- [remote-control] Input from mobile app/browser not reaching host session — output works fine
- Model fails to read/reference CLAUDE.md contents despite being loaded in context
- [BUG] Claude Desktop reinstall destroys Code chat history (transcripts + Recents) while regular Chat history, project files, and memory all survive
- Bypass mode clamps to Accept Edits even with the toggle ON (Claude Code Desktop 1.9255.2 / CC 2.1.149)
- [BUG] TUI input freezes randomly mid-typing — entire prompt becomes unresponsive for minutes
- [BUG] Cowork downloads Linux ELF binary instead of macOS binary on macOS Sonoma 14.8.7 — exit code 132 (SIGILL) on every session
- [Feature Request] Persistent project memory — sessions forget everything on close, forcing users to keep many sessions open
- [Bug] Thread context stale after sleep/resume, returns outdated date and calendar data
- [FEATURE] Add context window usage indicator and warning before auto-compaction
- [BUG] Dictation error: Invalid character in header content ["x-config-keyterms"] on Windows
- [Bug] Anthropic API Error: Server rate limiting despite normal usage
- Does delegating work to `claude -p` subprocesses reduce context accumulation in the parent session?
- [BUG] Claude Code hangs on M1 Mac when terminal says "opening browser to sign in" and browser opens
- [BUG] Claude_Preview MCP preview_start spawns dev server with main-repo cwd instead of session's worktree cwd
- [Bug] Anthropic API Error: Server rate limiting during request execution
- [Bug] Anthropic API Error: Server rate limiting on concurrent requests
- [Bug] Ultraplan ready notification fires before cloud agent completes execution
- [BUG] API 500 ERROR ALL THROUGHOUT THE DAY
- [BUG] Cowork: Live Artifacts folder path changed in 1.9255.2, no automatic migration from Documents\Claude\Artifacts
- [Bug] Auto-compact never triggers despite statusline reporting "100% context used" (v2.1.153, Max sub, 200K mode)
- [BUG] [Desktop / macOS] 'Open in → New Window' detached session: font renders smaller than main, no per-window controls, Cmd+/Cmd- keystrokes routed to main window instead
- Feature request: option to switch between classic and new minimal UI
- [Feature Request] Show timestamps for each message
- [BUG] Terminal corruption when permission prompt appears while navigating Agent Teams agent selection menu
- [FEATURE] Allow users to customize the background color of the Claude desktop app beyond the current light/dark theme presets.
- [BUG] Statusline not displaying on Windows [fixed]
- Background agent UI Stop button is a no-op for stuck agents — process keeps consuming tokens
- Background agents silently die on session pause/resume — no completion notification, no work recovery
- Add option to hide email address from welcome banner
- [BUG] SSH Remote: `projects` field in remote ~/.claude.json becomes null after desktop restart — jsonl files intact, UI shows 'No messages yet' for every session
- [Bug] Claude Code not applying fixes despite claiming to complete tasks
- billing is unfair and poorly documented
- [BUG] Claude Code on the web: declared plugins inactive on first session, require restart to fully load
- [BUG] Restore from archive deleted sessions instead of restoring them
- [BUG] M365 connector fails with AADSTS50011 in Cowork — localhost vs 127.0.0.1 redirect URI mismatch
- claude agents: workflow slash-commands missing from dispatch-input completion (regression-adjacent to #61424)
- Claude Desktop's Info.plist missing TCC usage strings, blocks all EventKit-based MCP servers
- False-positive safety blocks on self-administered governance amendments — request for owner-authority mode for verified professional users
- [BUG] Stop pushing "AUTO"-mode
- [DOCS] Plugin marketplace guide omits `skipLfs` option for git-based sources
- [DOCS] MCP docs omit combined startup notification for MCP server and connector authentication
- [DOCS] Agent view docs omit macOS Privacy & Security identity for background agents
- [DOCS] Npm update docs do not explain release-channel behavior for `claude update`
- [DOCS] Agent SDK docs omit `subagent_type: "claude"` worktree and output persistence behavior
- [DOCS] Background session docs omit `$CLAUDE_JOB_DIR` temp-file behavior
- [FR] mask env-var values in 'claude mcp get <server>' output
- [FR] subagent worktrees should not inherit stale local 'user.email' from prior dispatches
- [BUG] Windows: Grep tool leaks rg.exe + conhost.exe processes (~2000 zombies / 14 GB RAM in long sessions)
- [BUG] Stats dashboard "Peak hour" appears off by one hour
- [BUG] Diff highlight (teal SGR background) bleeds past changed text in 2.1.150–2.1.153
- [FEATURE] confirm before deleting session
- Plugin PostToolUse hooks still silently skip in Claude Desktop / Cowork (re-filing closed #51904)
- /code-review skill: silent fallback to main...HEAD reviews other people's commits, and JSON-only output is hard to read
- Monitor tool doesn't source the shell snapshot like Bash does; PATH-dependent tools (jq, sleep, etc.) fail in Monitor commands on macOS/Nix
- [Bug] Long input lines truncated with ellipsis while typing instead of wrapping in terminal UI
- [FEATURE] VS Code extension: Render submitted user messages as Markdown in chat
- OSC 52 copy from Claude TUI doesn't reach clipboard inside tmux (regression in 2.1.146–2.1.153)
- [BUG] RemoteTrigger create/update returns HTTP 400 with circular error: "event_type is required" / "unknown field event_type"
- [BUG] Option to hide or minimize the built-in "status footer" (multi-line debug/cost panel) [re-raise of #31475]
- [Bug] Feedback submissions being closed without review or action
- [FEATURE] Word-jump cursor navigation in Chat input (option+arrow / bindable actions)
- [FEATURE] ! shell mode: filesystem tab completion
- [BUG] API Error: Usage credits required for 1M context
- claude agents: OSC 52 clipboard emission broken in tmux (regression in 2.1.146–2.1.153)
- CLI crashes on macOS 15 M3 - exit code 1
- [FEATURE] Support Cmd+V image paste from clipboard
- [FEATURE] Enhance claude.ai M365 connector to support MS Planner
- [BUG] Slash command autocomplete hijacks pasted absolute file paths starting with /
- PreToolUse hook `if` filter false-positives on complex Bash commands
- [BUG] Diff panel hangs/whites out
- Feature Request: Support drag-and-drop for binary documents (.wps, .doc, .docx, .xlsx, .pdf) in VS Code extension
- [BUG] activation of 1M context in VSCode
- [FEATURE] Support i18n / language localization for built-in slash command outputs
- Ctrl+V para colar imagens deixou de funcionar no CLI (Windows, PowerShell)
- [FEATURE] Please add Norwegian (Bokmål/Nynorsk) language support to the Claude Code interface
- [BUG] OTel log events (claude_code.user_prompt, api_request_body, tool_decision, hook_execution_complete) emitted with empty trace_id/span_id while sibling spans correlate correctly
- [BUG] Cowork crashes on every message, no VM logs generated, missing AppData\Roaming\Claude
- [FEATURE] first-class session handoff + per-session token budgets for unattended runs
- [FEATURE] Smart paste: convert clipboard code to file reference chips (like Cursor)
- [Feature Request] Restore chat pin functionality to title chat submenu
- [BUG] SIGILL issues with version 2.1.153
- [BUG] Cowork plugin upload fails with generic "Plugin validation failed" when a `description` field in any SKILL.md frontmatter contains angle brackets (`<…>`)
- [BUG] Desktop App 2.1.144+: startup scanner deletes cliSessionId from claude-code-sessions local files on every launch — session not found on disk
- [Feature Request] Add keyboard shortcut to copy last message with proper formatting
- [MODEL] Opus 4.7 not 1M
- Allow naming/renaming background agents in `claude agents` view
- Stale worktrees in .claude/worktrees/ are never cleaned up, consuming massive disk space
- Agent worktrees are never cleaned up, silently consuming disk space
- Subagent worktrees not auto-cleaned when reviewer writes scratch files
- [Bug] Skill initialization hangs for extended duration in Plan Mode
- Claude Desktop writes malformed registry Run entry (nested escaped quotes) - crashes Windows Task Manager and other Run-key parsers
- IME candidate window shows at bottom-right corner instead of caret position (Windows CMD)
- [BUG] Pressing 'Escape' doesn't close the /BTW conversation when the main conversation is asking for approval
- [BUG] Opus 4.7 (1M) intermittently emits empty-string values for tool_use.input fields, killing the session
- FleetView agent UI shows "running" with incrementing elapsed time after agent has returned
- /doctor flags context-scoped cmd+c binding as macOS conflict (false positive)
- [BUG] Text Rendering in Elvish
- Desktop app: Bypass Permissions mode flips to Accept Edits on first prompt (M5 / macOS 26.5)
- [Workaround] Date-Weekday Verification Hook — Prevents Claude from writing wrong weekdays
- [BUG] Claude Code create c:/memfs directory without asking me.
- [BUG] Claude Code's Bash execution waits forever with no processes running
- [BUG] usage stays stuck waiting for 5 hr limit after upgrading to premium seat in team plan
- [Workflow tool] resume cache is unreachable for nontrivial workflows because LLM dispatchers can't transcribe args byte-exactly
- Code review (Preview): "Add a repository" shows no results for private GitHub org repos
- [BUG] /context commands blows up context
- [Feature Request] Add precache expiry hook to enable proactive compaction before token eviction
- [BUG] Context indicator shows 0% at session start despite ~20K+ tokens already loaded
- [Feature Request] Add semantic search for --resume session history
- [Feature Request] Add session search, tagging, and filtering capabilities
- [BUG] Cowork Dispatch reports "desktop not available" on Windows 11 while standard Cowork works normally
- [Bug] Claude Code provides incorrect suggestions with high confidence despite errors
- defaultMode: acceptEdits silently overrides per-path permissions.ask rules for Write/Edit
- [FEATUR configurable tip interval (e.g. tipIntervalSeconds: 30 in settings)E]
- Plugin marketplace fails to load: schema rejects 'displayName' key (v2.1.153)
- claude agents: in-session copy uses broken OSC 52 path while overview correctly uses tmux buffer
- [BUG] Plugin agent descriptions (and custom agents) load unconditionally into context — no parity with disable-model-invocation for skills
- Crashed ultrareview consumed a free credit despite producing zero findings
- [Bug] Character rendering issue - invisible or missing text display
- [BUG] Cowork: processo Claude Code encerra com código 3 — .claude.json não contém token de autenticação (Windows 11 25H2)
- [BUG] 2.1.153 silently discards tools/list response from rmcp 0.12.0 HTTP MCP server (works in 2.1.152, wire-identical handshake)
- VS Code extension: option to auto-resume last session when reopening a workspace folder
- [Bug] Conversation continuation failure
- [BUG] Cowork crashes every time I start a new chat or attempt to continue an existing one in any project. The error displayed is: "Claude Code è andato in crash
- [Bug] Unannounced quota changes
- Native update/install fails with 'socket connection was closed unexpectedly' behind proxy — undici TLS incompatibility
- [BUG] Session name reverting after manual change
- [BUG] 非正常思考,上下文过长时,一直显示思考,点击interrupt按钮失效
- Honor `tools:` frontmatter when an agent is invoked via `@mention` — strip `Task` only when the agent did not declare it
- macOS TCC popup still recurring on v2.1.153 — "2.1.153" would like to access data from other apps
- Claude Code leaks pty handles — exhausts pseudo-terminals on macOS after long session
- [Bug] Agent fails to execute or respond to user input
- [BUG] Persistent "Expecting value: line 1 column 1 (char 0)" JSON parse error after tool execution
- [Feature Request] Implement proactive unit test coverage recommendations for recurring bugs
- VS Code panel lacks status line + terminal lacks image paste in Codespaces, forcing a tradeoff
- `/powerup` only shows ~10 lessons — allow viewing the full catalog
- [Bug] Context contamination after auto-compact with unrelated email draft of Tejo/Sado Basin
- [Bug] VSCode terminal output displays corrupted text with garbled symbols
- [Feature Request] Add LaTeX/KaTeX math rendering to TUI
- [Bug] Sub-agent PR review results not validated by orchestrating agent
- Subagents on Pro 1M tier: trivial probes pass, real workloads fail at first tool call (probe-vs-workload divergence)
- Path-scoped rules and subdirectory CLAUDE.md not loaded when creating new files matching the pattern
- AskUserQuestion: cancelling during extended thinking poisons the whole session with 400 'thinking blocks cannot be modified' (2.1.153); concurrent prompts overwrite each other
- Ideas Missing from Claude Cowork Menu (Windows)
- [BUG_BOUNTY_SAFE_POC_2026] Prompt Injection RCE Test - Command Execution Proof
- [BUG] Cowork scheduled task: execution history row not showing after successful run
- Resuming an extended-thinking session fails permanently with 400 "thinking blocks cannot be modified" (transcript stores thinking text as empty but keeps signature)
- [Bug] Plugin-registered CwdChanged and FileChanged hooks don't fire (settings.json works) — v2.1.153
- Auto-archive on PR merge / branch delete — clarify autoArchiveSessions semantics or add dedicated opt-out
- `claude mcp add` echoes Authorization header value verbatim to stdout, leaks bearer tokens to terminal and session transcripts
- [BUG] Bug report — /insights skill, Claude Code The /insights skill outputs a malformed file path.
- Plugin slash commands render with '*'-inline format instead of two-column, despite matching official plugin shape
- [Bug] Unexpected long text generation without user input or goal
- [Bug] Thinking blocks causing task progression blocked without user modification
- [BUG] (Critical!) contamination by an unknown session simirlar to the report => [Bug] Context contamination after auto-compact with unrelated email draft of Tejo/Sado Basin #63137
- [Critical] Opus 4.7 Korean output degeneration — Korean grammar itself collapses in long contexts
- [BUG] Title: Autocompact buffer persists across /clear — wastes tokens for irrelevant old context
- [Bug] Auto-Compact loses user input before processing in conversation history
- Feature: per-invocation effort parameter + runtime session-config introspection for skills
- Auto-mode classifier mislabels Azure DevOps vote -5 as "Reject" when denying PR vote actions
- [BUG] Claude Desktop and Claude Code CLI never re-register MCP tools after OAuth 2.1 handshake on a remote HTTP server
- [BUG] Workspace file tags leak across sessions
- [BUG] Ink renderer crashes on Windows 11 build 26200 (Canary) duplicate banners, terminal mode leaks, mid-operation aborts
- [BUG] Claude Code Desktop issue
- PTY master fd leak in Claude desktop app exhausts macOS kern.tty.ptmx_max after ~2-3 days
- [BUG] Claude Code — Session Management after Unexpected Interruption
- [Windows] Cowork OpenTelemetry exporter does not initialize - zero events emitted to any destination, including loopback
- [Bug] Opus 4.7: 400 `thinking blocks ... cannot be modified` on long extended-thinking sessions, triggered by history-altering events (scheduled prompts / parallel tool-call cancellation)
- [BUG] API Error: Server is temporarily limiting requests (not your usage limit) · Rate limited
- Multi-plugin custom marketplace: only first plugin registered in installed_plugins.json, skills don't load
- [BUG] Git push through the SDK's git proxy fan-outs into ~500 GitHub REST API calls, exhausting the 5,000/hour budget after a handful of pushes
- [BUG] Claude took liberties it really shouldn't with my global config
- [BUG] Agent window focus lost after navigating with arrow keys, causing scroll deadlock
- [BUG] `--model` flag silently ignored in interactive sessions (works in `--print` only)
- [BUG] Dispatch permanently shows "desktop appears offline" on Windows 11 - never worked on first use
- feat: support per-command enableWeakerNetworkIsolation as safer alternative to dangerouslyDisableSandbox
- /code-review outputs a raw JSON array instead of readable findings
- [BUG] Cowork — Additional allowed domains ignored on Team plan; same domain works on Pro plan
- Haiku
- [Bug] False positive blocking beneficial outcomes in tool execution
- 3P Bedrock SSO: credentials silently expire without triggering re-auth on day 2+
- CLAUDE_AUTOCOMPACT_PCT_OVERRIDE in settings.json env block silently ignored by autocompact logic
- Auto-compaction deletes main session JSONL before verifying summary completion, causing data loss
- [Bug] Claude Code not executing stated actions or producing expected results
- [FEATURE] Deferred Messages — Queue Input for End of Turn
- [BUG] Up/Down arrows in input box navigate history instead of moving cursor — regression in 2.1.149+
- Cancelling a parallel tool-call batch corrupts thinking blocks -> 400 "thinking blocks cannot be modified" permanently wedges the session
- Claude Code caused data loss, then contradicted itself about recovery (two incidents, one session)
- [Bug] Unclear error messages from Claude Code CLI
- [Bug] Agent tool rejecting due to context size limit exceeded
- claude agents: daemon and bg-spare processes spin at ~100% CPU when idle
- [BUG] Compaction fails with "context window limit" error even when context usage is low (e.g., 20%) — regression in v2.1.153
- Remote Control entitlement lost after May 27-28 incident — `Error: Remote Control is not yet enabled for your account` on active Max subscription
- PreToolUse hook exit code 2 does not block Write tool
- [Bug] Thinking blocks in latest assistant message are immutable
- GUI: dispatch file:// and custom-scheme clicks to OS shell handler
- Show current model in statusLine by default
- [Bug] Agent console becomes unresponsive to keyboard input after multiple agents initialized
- [FEATURE] PreToolUse hooks should have a way of updating the environment
- [Bug] Unable to start or use Claude Code CLI
- [BUG] Repository not visible in Claude Code web repo picker
- Session permanently wedged on 400 "thinking blocks cannot be modified" after parallel tool_results
- [Bug] @ autocomplete loses sibling repos after a file edit in multi-repo workspace
- Unclear error message when creating sub-agent without authentication
- [Bug] Anthropic API errors causing frequent failures and high token usage
- [BUG] @ mention file picker only shows packages, not individual files (desktop app - Code tab)
- [Bug] TUI panel footer remains sticky and consumes excessive terminal space
- PR-status polling exhausts GitHub GraphQL rate limit on repos with many open PRs
- [BUG] Windows: welcome panel not shown in some project folders (2.1.153)
- [Bug] Anthropic API Error: thinking blocks corrupted during context compaction with extended thinking enabled
- API 400 "thinking blocks cannot be modified" permanently bricks session during agent activation (interleaved thinking + tool use)
- Right-click Copy copies the whole message instead of the selection; pasted text retains dark background
- Mid-session model switch corrupts conversation when extended thinking is enabled (API 400: 'thinking blocks cannot be modified')
- [BUG] Markdown file links in chat output do not open files when clicked (VS Code extension)
- Stuck retry loop: `400 thinking blocks cannot be modified` on large interleaved-thinking turns using AskUserQuestion
- [FEATURE] Prompt user for approval before auto-compaction proceeds
- Custom MCP connectors not attachable to scheduled routines — no UUID discovery path
- [BUG] Claude in Chrome — Navigation blocked for teams.cloud.microsoft and outlook.cloud.microsoft after Microsoft domain migration**
- [BUG] Claude Desktop — Personal plugins panel renders list but is entirely non-interactive (macOS, v1.9255.2)
- [Bug] error when using Workflows
- [BUG] Persistent "update available" notification despite being on latest version
- [BUG] Sweep Agent from /code-review never completes
- [Bug] Tool calls not executing or returning results
- [FEATURE] Cloud-synced memory and settings across machines
- [Bug] Terminal UI freezes when Ctrl+O view exits during interactive prompt in plan mode
- Continuous api errors when using claude code with Opus 4.7 with thinking on low
- [Feature Request] Add support for installing and using previous Claude Code versions
- [Bug] Extended Thinking: Summarized thinking blocks fail signature validation when resent to API
- [Bug] Anthropic API Error: 'thinking' blocks cannot be modified
- [Bug] Anthropic API Error: Thinking blocks cannot be modified with extended thinking mode
- Feature request: Lazy/on-demand MCP server connections
- [Bug] Tool Arguments Parsed as String Instead of Object
- [Bug] Anthropic API Error: Insufficient context provided
- [Bug] Claude Opus occasionally uses moskovian(russian) orthography instead of Ukrainian in system-prompted responses
- Opus 4.8: backgrounded task completions (subagents AND Bash) crash with 400 "thinking blocks cannot be modified"
- [Bug] Opus 4.7 fabricates stable preferences ("my default") to rationalize arbitrary choices when challenged
- [Bug] Unable to update Claude Code CLI
- [BUG] Desktop app: /remote-control mints link + connects bridge (main.log) but in-chat link/QR panel never renders
- Feature: sessionColor and sessionName in .claude/settings.json
- [BUG] Anthropic API error: thinking blocks
- [FEATURE] Support Remote MCPs in Cowork as in Claude Code
- [Bug] Anthropic API Error: 400 Bad Request with Redacted Thinking - 0 4.7 & 4.8
- [Bug] Anthropic API Error: Cannot modify thinking blocks from different model versions
- Interleaved thinking + multi-tool turn corrupts thinking block (text blanked, signature kept) → permanent 400 'blocks must remain as they were'
- [BUG] Mode/permission changes mid-tool-loop (effortLevel: xhigh) poisons entire session
- Session failure log: Opus 4.6 ignores its own rules for an entire session
- [BUG] "400 Guardrail was enabled" error when using Claude Opus 4.8 with AWS Bedrock
- [Feature Request] Add subagent approach selection option to avoid accidental feedback
- Persistent 400 'thinking blocks in the latest assistant message cannot be modified' — interleaved thinking persisted with empty text + signature bricks sessions
- [BUG] DesktopvsApp
- [BUG] Opus 4.7 cache hit rate collapse after May 27 incident — Messages 1.1k→88.9k in 9 minutes, $630/session
- [Bug] Anthropic API Error: Invalid thinking block format
- [BUG] FUCK CLAUDE
- Opus 4.8 extended thinking: Stop hook block re-entry corrupts thinking blocks → 400
- [Bug] 4.8 Fails when accessing previous model history
- [Bug] Unintended File Modifications During Execution
- [DOCS] Model configuration docs omit lean system prompt default scope and model exceptions
- Add "Always allow globally" option to permission prompts
- Server-side model upgrade (Opus 4.7→4.8) wedges in-flight sessions with `thinking blocks cannot be modified` 400
- [DOCS] AskUserQuestion docs missing multiple-choice prompt decision threshold
- [DOCS] Agent view docs omit shell-command background session launch syntax
- [DOCS] Agent view dispatch input docs incorrectly imply `/logout` dispatches as a prompt
- [DOCS] Claude in Chrome docs omit connected-browser selection behavior
- [DOCS] Plugin docs omit `defaultEnabled: false` for opt-in plugins
- Feature Request: Customizable chat text colors for user and assistant messages
- [DOCS] `/plugin` Discover tab docs omit directory-based suggested plugin pins
- VSCode Chrome integration silently fails: 3 distinct bugs
- [DOCS] MCP stdio docs omit session environment variables
- [Bug] Anthropic API error on second request within session with Claude Opus 4.8
- Cowork emits a blank session "index" handoff on focus when a CLI session is paused awaiting input
- [DOCS] MCP docs omit `claude mcp list/get` pending-approval output for unapproved project servers
- [BUG] /compact fails with 400 error when last assistant turn contains thinking blocks
- [DOCS] `/claude-api` docs omit Opus 4.8 migration guidance
- [DOCS] Fast mode docs still recommend deprecated Opus 4.6 override variable
- [DOCS] Bash tool docs omit `$TMPDIR` consistency across sandboxed and unsandboxed commands
- [Bug] Anthropic API Error: 400 Bad Request on Extended Thinking
- [DOCS] Background session docs omit worktree-isolation behavior for spawned subagents
- Built-in mechanistic self-verification of verifiable claims (symmetric to the auto permission gate)
- [DOCS] Worktree docs do not clarify `worktree.baseRef: "head"` inside linked worktrees
- [BUG] Excessive RAM usage with multiple parallel chats (~10 sessions → 30 GB memory pressure, macOS OOM)
- [DOCS] Managed MCP policy docs omit invalid `allowedMcpServers`/`deniedMcpServers` entry behavior
- [DOCS] Effort docs omit `CLAUDE_CODE_ALWAYS_ENABLE_EFFORT` unsupported-model behavior
- Regression (2.1.147–2.1.150?): resuming an extended-thinking session after a CC update/model-switch → unrecoverable 400, session bricked
- [DOCS] Windows updater docs omit `claude.exe` in-use recovery guidance
- [DOCS] VS Code auto mode docs still tie mode-picker visibility to bypass-permissions setting
- [DOCS] MCP docs omit `/mcp` tool list and detail rendering behavior
- [DOCS] Fine-grained tool streaming docs still describe provider opt-in behavior
- bypassPermissions: session startup reads flat pref, GUI toggle writes per-account pref — they never sync
- [BUG] Claude Desktop Code tab causes disk write limit violation — 8.5GB in 11 min, macOS kills app (M5, v1.9659.1)
- Ultrareview v2.1.96: docs describe /tasks command + claude ultrareview --json subcommand that don't exist; findings hard to read after completion
- I'd be happy to help create a GitHub issue title, but I don't see the error message in your message. Could you please share the specific error you're encountering? That way I can generate an accurate and descriptive issue title for you.
- [BUG] Claude in Chrome `file_upload` rejects all scheduled-task sessions with misleading error (real cause: INVALID_SESSION)
- Extended thinking: signed thinking block 'cannot be modified' (400) permanently wedges session
- RTL text support for Hebrew (and Arabic) in Claude Code
- [Bug] Random errors occurring across multiple operations