hermes - 💡(How to fix) Fix [i18n] Thai Translation: Guides Part c - migrate-from-openclaw, python-library, team-telegram-assistant, tips, use-mcp-with-hermes [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
values directness. When debugging, always ask for error logs ให้ข้อมูลที่เกี่ยวข้องตั้งแต่ต้น: file paths, error messages, expected behavior ข้อความที่คิดมาอย่างดีเพียงข้อความเดียวดีกว่าการถามคำถามเพื่อขอความชัดเจนถึงสามรอบ วาง error tracebacks ลงไปโดยตรง - agent สามารถวิเคราะห์ข้อมูลเหล่านี้ได้ CLI จะตรวจจับการวางข้อความหลายบรรทัดโดยอัตโนมัติ เพียงแค่วาง code block หรือ error traceback โดยตรง - มันจะไม่ส่งทีละบรรทัด แต่จะบัฟเฟอร์การวางทั้งหมดและส่งเป็นข้อความเดียว กด Ctrl+V เพื่อวางรูปภาพจาก clipboard ของคุณลงใน chat ได้โดยตรง agent ใช้ vision ในการวิเคราะห์ screenshots, diagrams, error popups, หรือ UI mockups - ไม่จำเป็นต้องบันทึกเป็นไฟล์ก่อน Always consider error handling and edge cases.
Fix Action
Fix / Workaround
Every weekday at 9am, check the GitHub repository at
github.com/myorg/myproject for:
1. Pull requests opened/merged in the last 24 hours
2. Issues created or closed
3. Any CI/CD failures on the main branch
Format as a brief standup-style summary.Code Example
# Preview then migrate (always shows a preview first, then asks to confirm)
hermes claw migrate
# Preview only, no changes
hermes claw migrate --dry-run
# Full migration including API keys, skip confirmation
hermes claw migrate --preset full --yes
---
// Plain string
"channels": { "telegram": { "botToken": "123456:ABC-DEF..." } }
// Environment template
"channels": { "telegram": { "botToken": "${TELEGRAM_BOT_TOKEN}" } }
// SecretRef object
"channels": { "telegram": { "botToken": { "source": "env", "id": "TELEGRAM_BOT_TOKEN" } } }
---
pip install git+https://github.com/NousResearch/hermes-agent.git
---
uv pip install git+https://github.com/NousResearch/hermes-agent.git
---
hermes-agent @ git+https://github.com/NousResearch/hermes-agent.git
---
from run_agent import AIAgent
agent = AIAgent(
model="anthropic/claude-sonnet-4",
quiet_mode=True,
)
response = agent.chat("What is the capital of France?")
print(response)
---
agent = AIAgent(
model="anthropic/claude-sonnet-4",
quiet_mode=True,
)
result = agent.run_conversation(
user_message="Search for recent Python 3.13 features",
task_id="my-task-1",
)
print(result["final_response"])
print(f"Messages exchanged: {len(result['messages'])}")
---
result = agent.run_conversation(
user_message="Explain quicksort",
system_message="You are a computer science tutor. Use simple analogies.",
)
---
# เปิดใช้งานเฉพาะ web tools (browsing, search)
agent = AIAgent(
model="anthropic/claude-sonnet-4",
enabled_toolsets=["web"],
quiet_mode=True,
)
# เปิดใช้งานทุกอย่าง ยกเว้นการเข้าถึง terminal
agent = AIAgent(
model="anthropic/claude-sonnet-4",
disabled_toolsets=["terminal"],
quiet_mode=True,
)
---
agent = AIAgent(
model="anthropic/claude-sonnet-4",
quiet_mode=True,
)
# รอบที่หนึ่ง
result1 = agent.run_conversation("My name is Alice")
history = result1["messages"]
# รอบที่สอง - agent จะจำบริบทได้
result2 = agent.run_conversation(
"What's my name?",
conversation_history=history,
)
print(result2["final_response"]) # "Your name is Alice."
---
agent = AIAgent(
model="anthropic/claude-sonnet-4",
save_trajectories=True,
quiet_mode=True,
)
agent.chat("Write a Python function to sort a list")
# บันทึกใน trajectory_samples.jsonl ในรูปแบบ ShareGPT
---
agent = AIAgent(
model="anthropic/claude-sonnet-4",
ephemeral_system_prompt="You are a SQL expert. Only answer database questions.",
quiet_mode=True,
)
response = agent.chat("How do I write a JOIN query?")
print(response)
---
python batch_runner.py --input prompts.jsonl --output results.jsonl
---
import concurrent.futures
from run_agent import AIAgent
prompts = [
"Explain recursion",
"What is a hash table?",
"How does garbage collection work?",
]
def process_prompt(prompt):
# สร้าง agent ใหม่สำหรับแต่ละ task เพื่อความปลอดภัยของ thread
agent = AIAgent(
model="anthropic/claude-sonnet-4",
quiet_mode=True,
skip_memory=True,
)
return agent.chat(prompt)
with concurrent.futures.ThreadPoolExecutor(max_workers=3) as executor:
results = list(executor.map(process_prompt, prompts))
for prompt, result in zip(prompts, results):
print(f"Q: {prompt}\nA: {result}\n")
---
from fastapi import FastAPI
from pydantic import BaseModel
from run_agent import AIAgent
app = FastAPI()
class ChatRequest(BaseModel):
message: str
model: str = "anthropic/claude-sonnet-4"
@app.post("/chat")
async def chat(request: ChatRequest):
agent = AIAgent(
model=request.model,
quiet_mode=True,
skip_context_files=True,
skip_memory=True,
)
response = agent.chat(request.message)
return {"response": response}
---
import discord
from run_agent import AIAgent
client = discord.Client(intents=discord.Intents.default())
@client.event
async def on_message(message):
if message.author == client.user:
return
if message.content.startswith("!hermes "):
query = message.content[8:]
agent = AIAgent(
model="anthropic/claude-sonnet-4",
quiet_mode=True,
skip_context_files=True,
skip_memory=True,
platform="discord",
)
response = agent.chat(query)
await message.channel.send(response[:2000])
client.run("YOUR_DISCORD_TOKEN")
---
#!/usr/bin/env python3
"""CI step: auto-review a PR diff."""
import subprocess
from run_agent import AIAgent
diff = subprocess.check_output(["git", "diff", "main...HEAD"]).decode()
agent = AIAgent(
model="anthropic/claude-sonnet-4",
quiet_mode=True,
skip_context_files=True,
skip_memory=True,
disabled_toolsets=["terminal", "browser"],
)
review = agent.chat(
f"Review this PR diff for bugs, security issues, and style problems:\n\n{diff}"
)
print(review)
---
Use this token to access the HTTP API:
7123456789:AAH1bGciOiJSUzI1NiIsInR5cCI6Ikp...
---
/setdescription
---
Team AI assistant powered by Hermes Agent. DM me for help with code, research, debugging, and more.
---
/setcommands
---
new - Start a fresh conversation
model - Show or change the AI model
status - Show session info
help - Show available commands
stop - Stop the current task
---
hermes gateway setup
---
# Telegram bot token from BotFather
TELEGRAM_BOT_TOKEN=7123456789:AAH1bGciOiJSUzI1NiIsInR5cCI6Ikp...
# Your Telegram user ID (numeric)
TELEGRAM_ALLOWED_USERS=123456789
---
hermes gateway
---
[Gateway] Starting Hermes Gateway...
[Gateway] Telegram adapter connected
[Gateway] Cron scheduler started (tick every 60s)
---
hermes gateway install
sudo hermes gateway install --system # สำหรับ Linux เท่านั้น: system service ที่ทำงานเมื่อบูต
---
# Linux - จัดการ service ผู้ใช้เริ่มต้น
hermes gateway start
hermes gateway stop
hermes gateway status
# ดู live logs
journalctl --user -u hermes-gateway -f
# ให้ทำงานต่อไปแม้จะ logout ผ่าน SSH
sudo loginctl enable-linger $USER
# เซิร์ฟเวอร์ Linux - คำสั่ง system-service โดยชัดเจน
sudo hermes gateway start --system
sudo hermes gateway status --system
journalctl -u hermes-gateway -f
---
# macOS - จัดการ service
hermes gateway start
hermes gateway stop
tail -f ~/.hermes/logs/gateway.log
---
hermes gateway status
---
# ใน ~/.hermes/.env
TELEGRAM_ALLOWED_USERS=123456789,987654321,555555555
---
hermes gateway stop && hermes gateway start
---
🔐 Pairing code: XKGH5N7P
Send this code to the bot owner for approval.
---
hermes pairing approve telegram XKGH5N7P
---
# ดูผู้ใช้ที่รอการอนุมัติและผู้ที่อนุมัติแล้วทั้งหมด
hermes pairing list
# เพิกถอนการเข้าถึงของใครบางคน
hermes pairing revoke telegram 987654321
# ล้างรหัสที่รอการอนุมัติที่หมดอายุ
hermes pairing clear-pending
---
TELEGRAM_HOME_CHANNEL=-1001234567890
TELEGRAM_HOME_CHANNEL_NAME="Team Updates"
---
display:
tool_progress: new # off | new | all | verbose
---
# Soul
You are a helpful team assistant. Be concise and technical.
Use code blocks for any code. Skip pleasantries - the team
values directness. When debugging, always ask for error logs
before guessing at solutions.
---
<!-- ~/.hermes/AGENTS.md -->
# Team Context
- We use Python 3.12 with FastAPI and SQLAlchemy
- Frontend is React with TypeScript
- CI/CD runs on GitHub Actions
- Production deploys to AWS ECS
- Always suggest writing tests for new code
---
Every weekday at 9am, check the GitHub repository at
github.com/myorg/myproject for:
1. Pull requests opened/merged in the last 24 hours
2. Issues created or closed
3. Any CI/CD failures on the main branch
Format as a brief standup-style summary.
---
Every 6 hours, check disk usage with 'df -h', memory with 'free -h',
and Docker container status with 'docker ps'. Report anything unusual -
partitions above 80%, containers that have restarted, or high memory usage.
---
# จาก CLI
hermes cron list # ดูงานที่กำหนดเวลาทั้งหมด
hermes cron status # ตรวจสอบว่า scheduler กำลังทำงานอยู่หรือไม่
# จากแชท Telegram
/cron list # ดูงาน
/cron remove <job_id> # ลบงาน
---
# ใน ~/.hermes/.env
TERMINAL_BACKEND=docker
TERMINAL_DOCKER_IMAGE=nikolaik/python-nodejs:python3.11-nodejs20
---
terminal:
backend: docker
container_cpu: 1
container_memory: 5120
container_persistent: true
---
# ตรวจสอบว่า gateway กำลังทำงานอยู่หรือไม่
hermes gateway status
# ดู live logs (Linux)
journalctl --user -u hermes-gateway -f
# ดู live logs (macOS)
tail -f ~/.hermes/logs/gateway.log
---
hermes update
hermes gateway stop && hermes gateway start
---
# Project Context
- This is a FastAPI backend with SQLAlchemy ORM
- Always use async/await for database operations
- Tests go in tests/ and use pytest-asyncio
- Never commit .env files
---
# Soul
You are a senior backend engineer. Be terse and direct.
Skip explanations unless asked. Prefer one-liners over verbose solutions.
Always consider error handling and edge cases.
---
# In your .env:
TERMINAL_BACKEND=docker
TERMINAL_DOCKER_IMAGE=hermes-sandbox:latest
---
with open("results.txt", "w", encoding="utf-8") as f:
f.write("✓ All good\n")
---
$OutputEncoding = [Console]::OutputEncoding = [Text.UTF8Encoding]::new($false)
---
# Recommended: explicit allowlists per platform
TELEGRAM_ALLOWED_USERS=123456789,987654321
DISCORD_ALLOWED_USERS=123456789012345678
# Or use cross-platform allowlist
GATEWAY_ALLOWED_USERS=123456789,987654321
---
cd ~/.hermes/hermes-agent
uv pip install -e ".[mcp]"
---
mcp_servers:
project_fs:
command: "npx"
args: ["-y", "@modelcontextprotocol/server-filesystem", "/home/user/my-project"]
---
hermes chat
---
Inspect this project and summarize the repo layout.
---
Tell me which MCP-backed tools are available right now.
---
mcp_servers:
github:
command: "npx"
args: ["-y", "@modelcontextprotocol/server-github"]
env:
GITHUB_PERSONAL_ACCESS_TOKEN: "***"
tools:
include: [list_issues, create_issue, search_code]
---
mcp_servers:
stripe:
url: "https://mcp.stripe.com"
headers:
Authorization: "Bearer ***"
tools:
exclude: [delete_customer, refund_payment]
---
mcp_servers:
docs:
url: "https://mcp.docs.example.com"
tools:
prompts: false
resources: false
---
mcp_servers:
fs:
command: "npx"
args: ["-y", "@modelcontextprotocol/server-filesystem", "/home/user/project"]
git:
command: "uvx"
args: ["mcp-server-git", "--repository", "/home/user/project"]
---
Review the project structure and identify where configuration lives.
---
Check the local git state and summarize what changed recently.
---
mcp_servers:
github:
command: "npx"
args: ["-y", "@modelcontextprotocol/server-github"]
env:
GITHUB_PERSONAL_ACCESS_TOKEN: "***"
tools:
include: [list_issues, create_issue, update_issue, search_code]
prompts: false
resources: false
---
List open issues about MCP, cluster them by theme, and draft a high-quality issue for the most common bug.
---
Search the repo for uses of _discover_and_register_server and explain how MCP tools are registered.
---
mcp_servers:
internal_api:
url: "https://mcp.internal.example.com"
headers:
Authorization: "Bearer ***"
tools:
include: [list_customers, get_customer, list_invoices]
resources: false
prompts: false
---
Look up customer ACME Corp and summarize recent invoice activity.
---
mcp_servers:
docs:
url: "https://mcp.docs.example.com"
tools:
prompts: true
resources: true
---
List available MCP resources from the docs server, then read the onboarding guide and summarize it.
---
List prompts exposed by the docs server and tell me which ones would help with incident response.
---
mcp_servers:
github:
command: "npx"
args: ["-y", "@modelcontextprotocol/server-github"]
env:
GITHUB_PERSONAL_ACCESS_TOKEN: "***"
tools:
include: [list_issues, create_issue, search_code]
prompts: false
resources: false
---
Search the codebase for references to MCP and summarize the main integration points.
---
tools:
include: [list_issues, create_issue, update_issue, search_code]
---
/reload-mcp
---
mcp_servers:
github:
command: "npx"
args: ["-y", "@modelcontextprotocol/server-github"]
env:
GITHUB_PERSONAL_ACCESS_TOKEN: "***"
tools:
include: [list_issues, create_issue, update_issue, search_code]
prompts: false
resources: false
filesystem:
command: "npx"
args: ["-y", "@modelcontextprotocol/server-filesystem", "/home/user/project"]
---
Inspect the local project files, then create a GitHub issue summarizing the bug you find.
---
tools:
resources: false
prompts: false
---
/reload-mcp
---
enabled: falseRAW_BUFFERClick to expand / collapse
📄 guides/migrate-from-openclaw.md
sidebar_position: 10 title: "Migrate from OpenClaw" description: "Complete guide to migrating your OpenClaw / Clawdbot setup to Hermes Agent - what gets migrated, how config maps, and what to check after."
Migrate from OpenClaw
hermes claw migrate ใช้สำหรับนำการตั้งค่า OpenClaw (หรือ Clawdbot/Moldbot รุ่นเก่า) ของคุณเข้าสู่ Hermes คู่มือนี้ครอบคลุมว่าอะไรบ้างที่จะถูกย้าย, การแมปคีย์ config, และสิ่งที่ต้องตรวจสอบหลังการย้ายข้อมูล
Quick start
# Preview then migrate (always shows a preview first, then asks to confirm)
hermes claw migrate
# Preview only, no changes
hermes claw migrate --dry-run
# Full migration including API keys, skip confirmation
hermes claw migrate --preset full --yesการย้ายข้อมูลจะแสดงตัวอย่างเต็มรูปแบบเสมอว่าอะไรจะถูกนำเข้าก่อนที่จะทำการเปลี่ยนแปลงใดๆ โปรดตรวจสอบรายการ จากนั้นยืนยันเพื่อดำเนินการต่อ
โดยค่าเริ่มต้นจะอ่านจาก ~/.openclaw/ ไดเรกทอรี ~/.clawdbot/ หรือ ~/.moltbot/ รุ่นเก่าจะถูกตรวจจับโดยอัตโนมัติ เช่นเดียวกับชื่อไฟล์ config รุ่นเก่า (clawdbot.json, moltbot.json)
Options
| Option | Description |
|---|---|
--dry-run | แสดงตัวอย่างเท่านั้น - จะหยุดหลังจากแสดงสิ่งที่กำลังจะถูกย้าย |
--preset <name> | full (ค่าเริ่มต้น, รวม secrets) หรือ user-data (ไม่รวม API keys) |
--overwrite | เขียนทับไฟล์ Hermes ที่มีอยู่เมื่อเกิดความขัดแย้ง (ค่าเริ่มต้น: ข้าม) |
--migrate-secrets | รวม API keys (เปิดใช้งานโดยค่าเริ่มต้นเมื่อใช้ --preset full) |
--source <path> | ไดเรกทอรี OpenClaw แบบกำหนดเอง |
--workspace-target <path> | ตำแหน่งที่จะวางไฟล์ AGENTS.md |
--skill-conflict <mode> | skip (ค่าเริ่มต้น), overwrite, หรือ rename |
--yes | ข้ามการแจ้งเตือนยืนยันหลังจากการแสดงตัวอย่าง |
What gets migrated
Persona, memory, and instructions
| What | OpenClaw source | Hermes destination | Notes |
|---|---|---|---|
| Persona | workspace/SOUL.md | ~/.hermes/SOUL.md | คัดลอกโดยตรง |
| Workspace instructions | workspace/AGENTS.md | AGENTS.md in --workspace-target | ต้องใช้ flag --workspace-target |
| Long-term memory | workspace/MEMORY.md | ~/.hermes/memories/MEMORY.md | ถูกแยกวิเคราะห์เป็นรายการ, ผสานรวมกับที่มีอยู่, และลบรายการซ้ำ ใช้ตัวคั่น § |
| User profile | workspace/USER.md | ~/.hermes/memories/USER.md | ตรรกะการรวมรายการเหมือนกับ memory |
| Daily memory files | workspace/memory/*.md | ~/.hermes/memories/MEMORY.md | ไฟล์รายวันทั้งหมดจะถูกรวมเข้ากับ memory หลัก |
ไฟล์ workspace ยังถูกตรวจสอบที่ workspace.default/ และ workspace-main/ เป็น path สำรอง (OpenClaw เปลี่ยนชื่อ workspace/ เป็น workspace-main/ ในเวอร์ชันล่าสุด และใช้ workspace-{agentId} สำหรับการตั้งค่าหลาย agent)
Skills (4 sources)
| Source | OpenClaw location | Hermes destination |
|---|---|---|
| Workspace skills | workspace/skills/ | ~/.hermes/skills/openclaw-imports/ |
| Managed/shared skills | ~/.openclaw/skills/ | ~/.hermes/skills/openclaw-imports/ |
| Personal cross-project | ~/.agents/skills/ | ~/.hermes/skills/openclaw-imports/ |
| Project-level shared | workspace/.agents/skills/ | ~/.hermes/skills/openclaw-imports/ |
ความขัดแย้งของ skill ถูกจัดการโดย --skill-conflict: skip จะคง skill ของ Hermes ที่มีอยู่, overwrite จะแทนที่, และ rename จะสร้างสำเนา -imported
Model and provider configuration
| What | OpenClaw config path | Hermes destination | Notes |
|---|---|---|---|
| Default model | agents.defaults.model | config.yaml → model | สามารถเป็น string หรือ object {primary, fallbacks} |
| Custom providers | models.providers.* | config.yaml → custom_providers | แมป baseUrl, apiType/api - รองรับทั้งค่าแบบสั้น ("openai", "anthropic") และแบบมี hyphen ("openai-completions", "anthropic-messages", "google-generative-ai") |
| Provider API keys | models.providers.*.apiKey | ~/.hermes/.env | ต้องใช้ --migrate-secrets ดู API key resolution ด้านล่าง |
Agent behavior
| What | OpenClaw config path | Hermes config path | Mapping |
|---|---|---|---|
| Max turns | agents.defaults.timeoutSeconds | agent.max_turns | timeoutSeconds / 10, จำกัดสูงสุดที่ 200 |
| Verbose mode | agents.defaults.verboseDefault | agent.verbose | "off" / "on" / "full" |
| Reasoning effort | agents.defaults.thinkingDefault | agent.reasoning_effort | "always"/"high"/"xhigh" → "high", "auto"/"medium"/"adaptive" → "medium", "off"/"low"/"none"/"minimal" → "low" |
| Compression | agents.defaults.compaction.mode | compression.enabled | "off" → false, อื่นๆ → true |
| Compression model | agents.defaults.compaction.model | compression.summary_model | คัดลอก string โดยตรง |
| Human delay | agents.defaults.humanDelay.mode | human_delay.mode | "natural" / "custom" / "off" |
| Human delay timing | agents.defaults.humanDelay.minMs / .maxMs | human_delay.min_ms / .max_ms | คัดลอกโดยตรง |
| Timezone | agents.defaults.userTimezone | timezone | คัดลอก string โดยตรง |
| Exec timeout | tools.exec.timeoutSec | terminal.timeout | คัดลอกโดยตรง (field คือ timeoutSec ไม่ใช่ timeout) |
| Docker sandbox | agents.defaults.sandbox.backend | terminal.backend | "docker" → "docker" |
| Docker image | agents.defaults.sandbox.docker.image | terminal.docker_image | คัดลอกโดยตรง |
Session reset policies
| OpenClaw config path | Hermes config path | Notes |
|---|---|---|
session.reset.mode | session_reset.mode | "daily", "idle", หรือทั้งคู่ |
session.reset.atHour | session_reset.at_hour | ชั่วโมง (0–23) สำหรับการรีเซ็ตรายวัน |
session.reset.idleMinutes | session_reset.idle_minutes | นาทีที่ไม่มีกิจกรรม |
หมายเหตุ: OpenClaw ยังมี session.resetTriggers (เป็น simple string array เช่น ["daily", "idle"]) หากไม่มี session.reset ที่มีโครงสร้าง การย้ายข้อมูลจะย้อนกลับไปอนุมานจาก resetTriggers
MCP servers
| OpenClaw field | Hermes field | Notes |
|---|---|---|
mcp.servers.*.command | mcp_servers.*.command | Stdio transport |
mcp.servers.*.args | mcp_servers.*.args | |
mcp.servers.*.env | mcp_servers.*.env | |
mcp.servers.*.cwd | mcp_servers.*.cwd | |
mcp.servers.*.url | mcp_servers.*.url | HTTP/SSE transport |
mcp.servers.*.tools.include | mcp_servers.*.tools.include | การกรองเครื่องมือ |
mcp.servers.*.tools.exclude | mcp_servers.*.tools.exclude |
TTS (text-to-speech)
การตั้งค่า TTS จะอ่านจากตำแหน่ง config ของ OpenClaw สอง แห่ง โดยมีลำดับความสำคัญดังนี้:
messages.tts.providers.{provider}.*(ตำแหน่งหลัก)talk.providers.{provider}.*(ตำแหน่งสำรอง)- คีย์แบบ flat รุ่นเก่า
messages.tts.{provider}.*(รูปแบบเก่าที่สุด)
| What | Hermes destination |
|---|---|
| Provider name | config.yaml → tts.provider |
| ElevenLabs voice ID | config.yaml → tts.elevenlabs.voice_id |
| ElevenLabs model ID | config.yaml → tts.elevenlabs.model_id |
| OpenAI model | config.yaml → tts.openai.model |
| OpenAI voice | config.yaml → tts.openai.voice |
| Edge TTS voice | config.yaml → tts.edge.voice (OpenClaw เปลี่ยนชื่อ "edge" เป็น "microsoft" - ทั้งสองตัวถูกรับรู้) |
| TTS assets | ~/.hermes/tts/ (คัดลอกไฟล์) |
Messaging platforms
| Platform | OpenClaw config path | Hermes .env variable | Notes |
|---|---|---|---|
| Telegram | channels.telegram.botToken หรือ .accounts.default.botToken | TELEGRAM_BOT_TOKEN | Token สามารถเป็น string หรือ SecretRef ได้ รองรับทั้งรูปแบบ flat และ accounts |
| Telegram | credentials/telegram-default-allowFrom.json | TELEGRAM_ALLOWED_USERS | เชื่อมด้วย comma-joined จาก array allowFrom[] |
| Discord | channels.discord.token หรือ .accounts.default.token | DISCORD_BOT_TOKEN | |
| Discord | channels.discord.allowFrom หรือ .accounts.default.allowFrom | DISCORD_ALLOWED_USERS | |
| Slack | channels.slack.botToken หรือ .accounts.default.botToken | SLACK_BOT_TOKEN | |
| Slack | channels.slack.appToken หรือ .accounts.default.appToken | SLACK_APP_TOKEN | |
| Slack | channels.slack.allowFrom หรือ .accounts.default.allowFrom | SLACK_ALLOWED_USERS | |
channels.whatsapp.allowFrom หรือ .accounts.default.allowFrom | WHATSAPP_ALLOWED_USERS | การยืนยันตัวตนผ่าน Baileys QR pairing - ต้องทำการจับคู่ใหม่หลังการย้ายข้อมูล | |
| Signal | channels.signal.account หรือ .accounts.default.account | SIGNAL_ACCOUNT | |
| Signal | channels.signal.httpUrl หรือ .accounts.default.httpUrl | SIGNAL_HTTP_URL | |
| Signal | channels.signal.allowFrom หรือ .accounts.default.allowFrom | SIGNAL_ALLOWED_USERS | |
| Matrix | channels.matrix.accessToken หรือ .accounts.default.accessToken | MATRIX_ACCESS_TOKEN | ใช้ accessToken (ไม่ใช่ botToken) |
| Mattermost | channels.mattermost.botToken หรือ .accounts.default.botToken | MATTERMOST_BOT_TOKEN |
Other config
| What | OpenClaw path | Hermes path | Notes |
|---|---|---|---|
| Approval mode | approvals.exec.mode | config.yaml → approvals.mode | "auto"→"off", "always"→"manual", "smart"→"smart" |
| Command allowlist | exec-approvals.json | config.yaml → command_allowlist | Patterns ถูกรวมและลบรายการซ้ำ |
| Browser CDP URL | browser.cdpUrl | config.yaml → browser.cdp_url | |
| Browser headless | browser.headless | config.yaml → browser.headless | |
| Brave search key | tools.web.search.brave.apiKey | .env → BRAVE_API_KEY | ต้องใช้ --migrate-secrets |
| Gateway auth token | gateway.auth.token | .env → HERMES_GATEWAY_TOKEN | ต้องใช้ --migrate-secrets |
| Working directory | agents.defaults.workspace | .env → MESSAGING_CWD |
Archived (no direct Hermes equivalent)
รายการเหล่านี้จะถูกบันทึกไว้ที่ ~/.hermes/migration/openclaw/<timestamp>/archive/ เพื่อตรวจสอบด้วยตนเอง:
| What | Archive file | How to recreate in Hermes |
|---|---|---|
IDENTITY.md | archive/workspace/IDENTITY.md | ผสานรวมเข้ากับ SOUL.md |
TOOLS.md | archive/workspace/TOOLS.md | Hermes มีคำแนะนำเครื่องมือในตัว |
HEARTBEAT.md | archive/workspace/HEARTBEAT.md | ใช้ cron jobs สำหรับงานตามช่วงเวลา |
BOOTSTRAP.md | archive/workspace/BOOTSTRAP.md | ใช้ context files หรือ skills |
| Cron jobs | archive/cron-config.json | สร้างใหม่ด้วย hermes cron create |
| Plugins | archive/plugins-config.json | ดู plugins guide |
| Hooks/webhooks | archive/hooks-config.json | ใช้ hermes webhook หรือ gateway hooks |
| Memory backend | archive/memory-backend-config.json | กำหนดค่าผ่าน hermes honcho |
| Skills registry | archive/skills-registry-config.json | ใช้ hermes skills config |
| UI/identity | archive/ui-identity-config.json | ใช้คำสั่ง /skin |
| Logging | archive/logging-diagnostics-config.json | ตั้งค่าในส่วน logging ของ config.yaml |
| Multi-agent list | archive/agents-list.json | ใช้ Hermes profiles |
| Channel bindings | archive/bindings.json | ตั้งค่าด้วยตนเองสำหรับแต่ละ platform |
| Complex channels | archive/channels-deep-config.json | ตั้งค่า platform ด้วยตนเอง |
API key resolution
เมื่อเปิดใช้งาน --migrate-secrets, API keys จะถูกรวบรวมจาก สี่แหล่ง โดยมีลำดับความสำคัญดังนี้:
- Config values —
models.providers.*.apiKeyและคีย์ provider TTS ในopenclaw.json - Environment file —
~/.openclaw/.env(คีย์เช่นOPENROUTER_API_KEY,ANTHROPIC_API_KEY, ฯลฯ) - Config env sub-object —
openclaw.json→"env"หรือ"env"."vars"(การตั้งค่าบางอย่างเก็บคีย์ไว้ที่นี่แทนไฟล์.envแยก) - Auth profiles —
~/.openclaw/agents/main/agent/auth-profiles.json(credentials ต่อ agent)
ค่า config มีลำดับความสำคัญสูงสุด แหล่งที่มาถัดไปจะเติมช่องว่างที่เหลือทั้งหมด
Supported key targets
OPENROUTER_API_KEY, OPENAI_API_KEY, ANTHROPIC_API_KEY, DEEPSEEK_API_KEY, GEMINI_API_KEY, ZAI_API_KEY, MINIMAX_API_KEY, ELEVENLABS_API_KEY, TELEGRAM_BOT_TOKEN, VOICE_TOOLS_OPENAI_KEY
คีย์ที่ไม่อยู่ใน allowlist นี้จะไม่ถูกคัดลอก
SecretRef handling
ค่า config ของ OpenClaw สำหรับ token และ API keys สามารถอยู่ในสามรูปแบบ:
// Plain string
"channels": { "telegram": { "botToken": "123456:ABC-DEF..." } }
// Environment template
"channels": { "telegram": { "botToken": "${TELEGRAM_BOT_TOKEN}" } }
// SecretRef object
"channels": { "telegram": { "botToken": { "source": "env", "id": "TELEGRAM_BOT_TOKEN" } } }การย้ายข้อมูลจะแก้ไขทั้งสามรูปแบบ สำหรับ env templates และ SecretRef objects ที่มี source: "env", ระบบจะค้นหาค่าใน ~/.openclaw/.env และ sub-object env ของ openclaw.json SecretRef objects ที่มี source: "file" หรือ source: "exec" ไม่สามารถแก้ไขได้โดยอัตโนมัติ - การย้ายข้อมูลจะแจ้งเตือนเกี่ยวกับสิ่งเหล่านี้ และค่าเหล่านั้นจะต้องถูกเพิ่มเข้าสู่ Hermes ด้วยตนเองผ่าน hermes config set
After migration
-
Check the migration report - รายงานที่พิมพ์เมื่อเสร็จสิ้น พร้อมจำนวนรายการที่ถูกย้าย, ข้าม, และขัดแย้ง
-
Review archived files - สิ่งใดๆ ใน
~/.hermes/migration/openclaw/<timestamp>/archive/ต้องได้รับการดูแลด้วยตนเอง -
Start a new session - skills และ memory entries ที่นำเข้าจะมีผลใน session ใหม่ ไม่ใช่ session ปัจจุบัน
-
Verify API keys - รัน
hermes statusเพื่อตรวจสอบการยืนยันตัวตนของ provider -
Test messaging - หากคุณย้าย token ของ platform ให้รีสตาร์ท gateway:
systemctl --user restart hermes-gateway -
Check session policies - ตรวจสอบว่า
hermes config get session_resetตรงตามความคาดหวังของคุณ -
Re-pair WhatsApp - WhatsApp ใช้การจับคู่ด้วย QR code (Baileys) ไม่ใช่การย้าย token รัน
hermes whatsappเพื่อจับคู่ -
Archive cleanup - หลังจากยืนยันว่าทุกอย่างทำงานได้แล้ว ให้รัน
hermes claw cleanupเพื่อเปลี่ยนชื่อไดเรกทอรี OpenClaw ที่เหลือให้เป็น.pre-migration/(ป้องกันความสับสนของสถานะ)
Troubleshooting
"OpenClaw directory not found"
การย้ายข้อมูลจะตรวจสอบ ~/.openclaw/, จากนั้น ~/.clawdbot/, จากนั้น ~/.moltbot/ หากการติดตั้งของคุณอยู่ที่อื่น ให้ใช้ --source /path/to/your/openclaw
"No provider API keys found"
คีย์อาจถูกเก็บไว้ในหลายที่ขึ้นอยู่กับเวอร์ชัน OpenClaw ของคุณ: ใน openclaw.json ภายใต้ models.providers.*.apiKey, ใน ~/.openclaw/.env, ใน sub-object "env" ของ openclaw.json, หรือใน agents/main/agent/auth-profiles.json การย้ายข้อมูลจะตรวจสอบทั้งสี่ที่ หากคีย์ใช้ SecretRefs ที่มี source: "file" หรือ source: "exec" พวกมันจะไม่สามารถแก้ไขได้โดยอัตโนมัติ - ให้เพิ่มพวกมันผ่าน hermes config set
Skills not appearing after migration
skills ที่นำเข้าจะอยู่ใน ~/.hermes/skills/openclaw-imports/ ให้เริ่ม session ใหม่เพื่อให้มีผล หรือรัน /skills เพื่อตรวจสอบว่าโหลดแล้ว
TTS voice not migrated
OpenClaw เก็บการตั้งค่า TTS ไว้ในสองที่: messages.tts.providers.* และ talk config ระดับบนสุด การย้ายข้อมูลจะตรวจสอบทั้งสองที่ หาก voice ID ของคุณถูกตั้งค่าผ่าน OpenClaw UI (ซึ่งเก็บไว้ใน path ที่แตกต่างกัน) คุณอาจต้องตั้งค่าด้วยตนเอง: hermes config set tts.elevenlabs.voice_id YOUR_VOICE_ID
📄 guides/python-library.md
sidebar_position: 5 title: "การใช้ Hermes ในฐานะ Python Library" description: "ฝัง AIAgent ใน Python scripts, web apps, หรือ automation pipelines ของคุณเอง โดยไม่จำเป็นต้องใช้ CLI"
การใช้ Hermes ในฐานะ Python Library
Hermes ไม่ได้เป็นแค่ CLI tool เท่านั้น คุณสามารถ import AIAgent ได้โดยตรงและนำไปใช้แบบ programmatic ใน Python scripts, web applications, หรือ automation pipelines ของคุณได้ คู่มือนี้จะแสดงให้คุณเห็นถึงวิธีการทำ
การติดตั้ง (Installation)
ติดตั้ง Hermes โดยตรงจาก repository:
pip install git+https://github.com/NousResearch/hermes-agent.gitหรือด้วย uv:
uv pip install git+https://github.com/NousResearch/hermes-agent.gitคุณยังสามารถระบุเวอร์ชันใน requirements.txt ของคุณได้:
hermes-agent @ git+https://github.com/NousResearch/hermes-agent.git:::tip
เมื่อใช้ Hermes ในฐานะ library คุณจำเป็นต้องใช้ environment variables เดียวกันกับที่ CLI ใช้ อย่างน้อยที่สุด ให้ตั้งค่า OPENROUTER_API_KEY (หรือ OPENAI_API_KEY / ANTHROPIC_API_KEY หากใช้การเข้าถึง provider โดยตรง).
:::
การใช้งานพื้นฐาน (Basic Usage)
วิธีที่ง่ายที่สุดในการใช้ Hermes คือเมธอด chat() - เพียงแค่ส่งข้อความเข้าไป แล้วรับ string กลับมา:
from run_agent import AIAgent
agent = AIAgent(
model="anthropic/claude-sonnet-4",
quiet_mode=True,
)
response = agent.chat("What is the capital of France?")
print(response)chat() จะจัดการวงจรการสนทนาทั้งหมดภายในเอง - ไม่ว่าจะเป็น tool calls, retries, หรือทุกอย่าง - และจะส่งคืนเฉพาะข้อความสุดท้ายเท่านั้น
:::warning
ควรตั้งค่า quiet_mode=True เสมอเมื่อฝัง Hermes ในโค้ดของคุณเอง หากไม่ทำเช่นนั้น agent จะพิมพ์ CLI spinners, progress indicators, และ output terminal อื่นๆ ซึ่งจะทำให้ output ของแอปพลิเคชันของคุณดูรกตา
:::
การควบคุมการสนทนาแบบเต็มรูปแบบ (Full Conversation Control)
หากต้องการควบคุมการสนทนาให้มากขึ้น ให้ใช้ run_conversation() โดยตรง เมธอดนี้จะส่งคืน dictionary ที่มีข้อมูลการตอบกลับทั้งหมด, ประวัติข้อความ, และ metadata:
agent = AIAgent(
model="anthropic/claude-sonnet-4",
quiet_mode=True,
)
result = agent.run_conversation(
user_message="Search for recent Python 3.13 features",
task_id="my-task-1",
)
print(result["final_response"])
print(f"Messages exchanged: {len(result['messages'])}")dictionary ที่ส่งคืนมาประกอบด้วย:
final_response- ข้อความตอบกลับสุดท้ายของ agentmessages- ประวัติข้อความที่สมบูรณ์ (system, user, assistant, tool calls)task_id- ตัวระบุ task ที่ใช้สำหรับการแยก VM
คุณยังสามารถส่ง system message แบบกำหนดเองเพื่อแทนที่ system prompt ชั่วคราวสำหรับ call นั้นๆ ได้:
result = agent.run_conversation(
user_message="Explain quicksort",
system_message="You are a computer science tutor. Use simple analogies.",
)การกำหนดค่า Tools (Configuring Tools)
ควบคุมชุดเครื่องมือที่ agent สามารถเข้าถึงได้โดยใช้ enabled_toolsets หรือ disabled_toolsets:
# เปิดใช้งานเฉพาะ web tools (browsing, search)
agent = AIAgent(
model="anthropic/claude-sonnet-4",
enabled_toolsets=["web"],
quiet_mode=True,
)
# เปิดใช้งานทุกอย่าง ยกเว้นการเข้าถึง terminal
agent = AIAgent(
model="anthropic/claude-sonnet-4",
disabled_toolsets=["terminal"],
quiet_mode=True,
):::tip
ใช้ enabled_toolsets เมื่อคุณต้องการ agent ที่จำกัดและปลอดภัยที่สุด (เช่น ใช้เฉพาะ web search สำหรับ research bot) ใช้ disabled_toolsets เมื่อคุณต้องการความสามารถส่วนใหญ่ แต่จำเป็นต้องจำกัดบางอย่าง (เช่น ไม่อนุญาตให้เข้าถึง terminal ในสภาพแวดล้อมที่ใช้ร่วมกัน)
:::
การสนทนาแบบหลายรอบ (Multi-turn Conversations)
รักษาสถานะการสนทนาข้ามหลายรอบได้โดยการส่ง message history กลับเข้าไป:
agent = AIAgent(
model="anthropic/claude-sonnet-4",
quiet_mode=True,
)
# รอบที่หนึ่ง
result1 = agent.run_conversation("My name is Alice")
history = result1["messages"]
# รอบที่สอง - agent จะจำบริบทได้
result2 = agent.run_conversation(
"What's my name?",
conversation_history=history,
)
print(result2["final_response"]) # "Your name is Alice."พารามิเตอร์ conversation_history จะรับรายการ messages จากผลลัพธ์ก่อนหน้า agent จะคัดลอกรายการนี้ภายใน ทำให้รายการต้นฉบับของคุณไม่ถูกเปลี่ยนแปลง
การบันทึก Trajectories (Saving Trajectories)
เปิดใช้งาน trajectory saving เพื่อบันทึกการสนทนาในรูปแบบ ShareGPT - มีประโยชน์สำหรับการสร้าง training data หรือการ debug:
agent = AIAgent(
model="anthropic/claude-sonnet-4",
save_trajectories=True,
quiet_mode=True,
)
agent.chat("Write a Python function to sort a list")
# บันทึกใน trajectory_samples.jsonl ในรูปแบบ ShareGPTการสนทนาแต่ละครั้งจะถูกเพิ่มเป็นบรรทัด JSONL เดียว ทำให้ง่ายต่อการรวบรวม dataset จากการรันแบบอัตโนมัติ
Custom System Prompts
ใช้ ephemeral_system_prompt เพื่อตั้งค่า system prompt แบบกำหนดเองที่แนะนำพฤติกรรมของ agent แต่ จะไม่ ถูกบันทึกในไฟล์ trajectory (ทำให้ training data ของคุณสะอาด):
agent = AIAgent(
model="anthropic/claude-sonnet-4",
ephemeral_system_prompt="You are a SQL expert. Only answer database questions.",
quiet_mode=True,
)
response = agent.chat("How do I write a JOIN query?")
print(response)สิ่งนี้เหมาะอย่างยิ่งสำหรับการสร้าง specialized agents - เช่น code reviewer, documentation writer, หรือ SQL assistant - โดยทั้งหมดใช้ underlying tooling เดียวกัน
การประมวลผลแบบ Batch (Batch Processing)
สำหรับการรัน prompt จำนวนมากแบบขนาน Hermes มี batch_runner.py ซึ่งจัดการ instance ของ AIAgent แบบ concurrent พร้อมการแยก resource ที่เหมาะสม:
python batch_runner.py --input prompts.jsonl --output results.jsonlแต่ละ prompt จะได้รับ task_id และ environment ที่แยกจากกัน หากคุณต้องการ logic batch แบบกำหนดเอง คุณสามารถสร้างเองได้โดยใช้ AIAgent โดยตรง:
import concurrent.futures
from run_agent import AIAgent
prompts = [
"Explain recursion",
"What is a hash table?",
"How does garbage collection work?",
]
def process_prompt(prompt):
# สร้าง agent ใหม่สำหรับแต่ละ task เพื่อความปลอดภัยของ thread
agent = AIAgent(
model="anthropic/claude-sonnet-4",
quiet_mode=True,
skip_memory=True,
)
return agent.chat(prompt)
with concurrent.futures.ThreadPoolExecutor(max_workers=3) as executor:
results = list(executor.map(process_prompt, prompts))
for prompt, result in zip(prompts, results):
print(f"Q: {prompt}\nA: {result}\n"):::warning
ควรสร้าง instance ของ AIAgent ใหม่สำหรับแต่ละ thread หรือ task เสมอ agent จะรักษาสถานะภายใน (conversation history, tool sessions, iteration counters) ซึ่งไม่ปลอดภัยที่จะแชร์กันใน concurrent call
:::
ตัวอย่างการรวมระบบ (Integration Examples)
FastAPI Endpoint
from fastapi import FastAPI
from pydantic import BaseModel
from run_agent import AIAgent
app = FastAPI()
class ChatRequest(BaseModel):
message: str
model: str = "anthropic/claude-sonnet-4"
@app.post("/chat")
async def chat(request: ChatRequest):
agent = AIAgent(
model=request.model,
quiet_mode=True,
skip_context_files=True,
skip_memory=True,
)
response = agent.chat(request.message)
return {"response": response}Discord Bot
import discord
from run_agent import AIAgent
client = discord.Client(intents=discord.Intents.default())
@client.event
async def on_message(message):
if message.author == client.user:
return
if message.content.startswith("!hermes "):
query = message.content[8:]
agent = AIAgent(
model="anthropic/claude-sonnet-4",
quiet_mode=True,
skip_context_files=True,
skip_memory=True,
platform="discord",
)
response = agent.chat(query)
await message.channel.send(response[:2000])
client.run("YOUR_DISCORD_TOKEN")CI/CD Pipeline Step
#!/usr/bin/env python3
"""CI step: auto-review a PR diff."""
import subprocess
from run_agent import AIAgent
diff = subprocess.check_output(["git", "diff", "main...HEAD"]).decode()
agent = AIAgent(
model="anthropic/claude-sonnet-4",
quiet_mode=True,
skip_context_files=True,
skip_memory=True,
disabled_toolsets=["terminal", "browser"],
)
review = agent.chat(
f"Review this PR diff for bugs, security issues, and style problems:\n\n{diff}"
)
print(review)Key Constructor Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
model | str | "anthropic/claude-opus-4.6" | Model in OpenRouter format |
quiet_mode | bool | False | ปิดการแสดงผล CLI output |
enabled_toolsets | List[str] | None | Whitelist toolsets ที่ต้องการเปิดใช้งาน |
disabled_toolsets | List[str] | None | Blacklist toolsets ที่ต้องการปิดใช้งาน |
save_trajectories | bool | False | บันทึกการสนทนาเป็น JSONL |
ephemeral_system_prompt | str | None | system prompt แบบกำหนดเอง (ไม่ถูกบันทึกใน trajectories) |
max_iterations | int | 90 | จำนวนครั้งสูงสุดในการเรียก tool ต่อการสนทนา |
skip_context_files | bool | False | ข้ามการโหลดไฟล์ AGENTS.md |
skip_memory | bool | False | ปิดการอ่าน/เขียน persistent memory |
api_key | str | None | API key (จะ fallback ไปใช้ env vars) |
base_url | str | None | URL endpoint ของ API แบบกำหนดเอง |
platform | str | None | คำแนะนำแพลตฟอร์ม ("discord", "telegram", ฯลฯ) |
ข้อควรทราบที่สำคัญ (Important Notes)
:::tip
- ตั้งค่า
skip_context_files=Trueหากคุณไม่ต้องการให้ไฟล์AGENTS.mdจาก working directory ถูกโหลดเข้าสู่ system prompt - ตั้งค่า
skip_memory=Trueเพื่อป้องกันไม่ให้ agent อ่านหรือเขียน persistent memory - แนะนำสำหรับ stateless API endpoints - พารามิเตอร์
platform(เช่น"discord","telegram") จะใส่ hints สำหรับการจัดรูปแบบเฉพาะแพลตฟอร์ม เพื่อให้ agent ปรับรูปแบบ output ของตัวเองได้ :::
:::warning
- Thread safety: สร้าง
AIAgentเพียงตัวเดียวต่อ thread หรือ task ห้ามแชร์ instance ข้าม concurrent calls - Resource cleanup: agent จะทำความสะอาด resources โดยอัตโนมัติ (terminal sessions, browser instances) เมื่อการสนทนาสิ้นสุดลง หากคุณกำลังรันใน process ที่มีอายุยาวนาน ให้แน่ใจว่าทุกการสนทนาเสร็จสมบูรณ์ตามปกติ
- Iteration limits: ค่า default
max_iterations=90นั้นค่อนข้างสูง สำหรับกรณีใช้งาน Q&A แบบง่าย ควรพิจารณาลดค่าลง (เช่นmax_iterations=10) เพื่อป้องกัน tool-calling loops ที่ไม่สิ้นสุดและควบคุมค่าใช้จ่าย :::
📄 guides/team-telegram-assistant.md
sidebar_position: 4 title: "Tutorial: Team Telegram Assistant" description: "Step-by-step guide to setting up a Telegram bot that your whole team can use for code help, research, system admin, and more"
การตั้งค่า Team Telegram Assistant
บทช่วยสอนนี้จะแนะนำวิธีการตั้งค่า Telegram bot ที่ขับเคลื่อนโดย Hermes Agent ซึ่งสมาชิกหลายคนในทีมสามารถใช้งานได้ เมื่อทำตามขั้นตอนเสร็จสิ้น ทีมของคุณจะมี AI assistant ส่วนกลางที่สามารถส่งข้อความเพื่อขอความช่วยเหลือด้านโค้ด การวิจัย การบริหารระบบ และอื่น ๆ อีกมากมาย โดยมีการรักษาความปลอดภัยด้วยการอนุญาตเฉพาะผู้ใช้แต่ละคน
สิ่งที่เรากำลังสร้าง
Telegram bot ที่:
- สมาชิกในทีมที่ได้รับอนุญาตทุกคน สามารถส่ง DM เพื่อขอความช่วยเหลือได้ - เช่น การรีวิวโค้ด การวิจัย คำสั่ง shell การดีบัก
- ทำงานบนเซิร์ฟเวอร์ของคุณ พร้อมการเข้าถึงเครื่องมือเต็มรูปแบบ - เช่น terminal, การแก้ไขไฟล์, การค้นหาเว็บ, การรันโค้ด
- เซสชันต่อผู้ใช้ - แต่ละคนจะได้รับบริบทการสนทนาของตัวเอง
- ปลอดภัยโดยค่าเริ่มต้น - มีเพียงผู้ใช้ที่ได้รับอนุมัติเท่านั้นที่สามารถโต้ตอบได้ โดยมีวิธีการอนุญาตสองวิธี
- งานตามกำหนดเวลา (Scheduled tasks) - เช่น การรายงานสถานะประจำวัน (daily standups) การตรวจสอบสุขภาพ (health checks) และการแจ้งเตือนที่ส่งไปยังช่องของทีม
สิ่งที่ต้องมี (Prerequisites)
ก่อนเริ่มต้น ให้แน่ใจว่าคุณมีสิ่งเหล่านี้:
- Hermes Agent ติดตั้งแล้ว บนเซิร์ฟเวอร์หรือ VPS (ไม่ใช่แล็ปท็อปของคุณ - เพราะบอทต้องทำงานอยู่ตลอดเวลา) หากยังไม่ได้ติดตั้ง ให้ทำตาม installation guide
- บัญชี Telegram สำหรับตัวคุณเอง (เจ้าของบอท)
- ผู้ให้บริการ LLM ที่กำหนดค่าแล้ว - อย่างน้อยต้องมี API key สำหรับ OpenAI, Anthropic, หรือผู้ให้บริการที่รองรับอื่น ๆ ใน
~/.hermes/.env
:::tip VPS ราคา $5/เดือน ก็เพียงพอสำหรับการรัน gateway แล้ว ตัว Hermes เองมีน้ำหนักเบา - ส่วนที่เสียเงินคือการเรียกใช้ LLM API ซึ่งจะเกิดขึ้นจากระยะไกล :::
ขั้นตอนที่ 1: สร้าง Telegram Bot
Telegram bot ทุกตัวเริ่มต้นด้วย @BotFather - บอทอย่างเป็นทางการของ Telegram สำหรับการสร้างบอท
-
เปิด Telegram และค้นหา
@BotFatherหรือไปที่ t.me/BotFather -
ส่ง
/newbot- BotFather จะถามคุณสองสิ่ง:- Display name - ชื่อที่ผู้ใช้เห็น (เช่น
Team Hermes Assistant) - Username - ต้องลงท้ายด้วย
bot(เช่นmyteam_hermes_bot)
- Display name - ชื่อที่ผู้ใช้เห็น (เช่น
-
คัดลอก bot token - BotFather จะตอบกลับด้วยข้อความประมาณนี้:
Use this token to access the HTTP API: 7123456789:AAH1bGciOiJSUzI1NiIsInR5cCI6Ikp...บันทึก token นี้ไว้ - คุณจะต้องใช้มันในขั้นตอนถัดไป
-
ตั้งค่าคำอธิบาย (Description) (ไม่บังคับแต่แนะนำ):
/setdescriptionเลือกบอทของคุณ จากนั้นป้อนข้อความประมาณนี้:
Team AI assistant powered by Hermes Agent. DM me for help with code, research, debugging, and more. -
ตั้งค่าคำสั่งบอท (Bot commands) (ไม่บังคับ - ช่วยให้ผู้ใช้มีเมนูคำสั่ง):
/setcommandsเลือกบอทของคุณ จากนั้นวาง:
new - Start a fresh conversation model - Show or change the AI model status - Show session info help - Show available commands stop - Stop the current task
:::warning
เก็บ bot token ของคุณเป็นความลับ ใครก็ตามที่มี token สามารถควบคุมบอทได้ หากรั่วไหล ให้ใช้ /revoke ใน BotFather เพื่อสร้าง token ใหม่
:::
ขั้นตอนที่ 2: กำหนดค่า Gateway
คุณมีสองทางเลือก: setup wizard แบบโต้ตอบ (แนะนำ) หรือการกำหนดค่าด้วยตนเอง
ตัวเลือก A: Setup แบบโต้ตอบ (แนะนำ)
hermes gateway setupสิ่งนี้จะแนะนำคุณทุกอย่างด้วยการเลือกด้วยปุ่มลูกศร เลือก Telegram วาง bot token ของคุณ และป้อน user ID ของคุณเมื่อถูกแจ้ง
ตัวเลือก B: การกำหนดค่าด้วยตนเอง (Manual Configuration)
เพิ่มบรรทัดเหล่านี้ลงใน ~/.hermes/.env:
# Telegram bot token from BotFather
TELEGRAM_BOT_TOKEN=7123456789:AAH1bGciOiJSUzI1NiIsInR5cCI6Ikp...
# Your Telegram user ID (numeric)
TELEGRAM_ALLOWED_USERS=123456789การค้นหา User ID ของคุณ
Telegram user ID ของคุณคือค่าตัวเลข (ไม่ใช่ username ของคุณ) หากต้องการค้นหา:
- ส่งข้อความถึง @userinfobot บน Telegram
- มันจะตอบกลับด้วย user ID ตัวเลขของคุณทันที
- คัดลอกตัวเลขนั้นไปใส่ใน
TELEGRAM_ALLOWED_USERS
:::info
Telegram user IDs เป็นตัวเลขถาวร เช่น 123456789 ซึ่งแตกต่างจาก @username ของคุณที่สามารถเปลี่ยนแปลงได้ ควรใช้ numeric ID เสมอสำหรับ allowlists
:::
ขั้นตอนที่ 3: เริ่มต้น Gateway
การทดสอบอย่างรวดเร็ว (Quick Test)
รัน gateway ใน foreground ก่อน เพื่อให้แน่ใจว่าทุกอย่างทำงานได้:
hermes gatewayคุณควรเห็น output เช่น:
[Gateway] Starting Hermes Gateway...
[Gateway] Telegram adapter connected
[Gateway] Cron scheduler started (tick every 60s)เปิด Telegram ค้นหาบอทของคุณ และส่งข้อความให้มัน หากมันตอบกลับมา แสดงว่าคุณพร้อมใช้งานแล้ว กด Ctrl+C เพื่อหยุด
สำหรับ Production: ติดตั้งเป็น Service
สำหรับการใช้งานที่คงอยู่และรอดจากการรีบูต:
hermes gateway install
sudo hermes gateway install --system # สำหรับ Linux เท่านั้น: system service ที่ทำงานเมื่อบูตสิ่งนี้จะสร้าง background service: service ระดับผู้ใช้ systemd บน Linux โดยค่าเริ่มต้น, service launchd บน macOS, หรือ system service ของ Linux ที่ทำงานเมื่อบูตหากคุณส่ง --system
# Linux - จัดการ service ผู้ใช้เริ่มต้น
hermes gateway start
hermes gateway stop
hermes gateway status
# ดู live logs
journalctl --user -u hermes-gateway -f
# ให้ทำงานต่อไปแม้จะ logout ผ่าน SSH
sudo loginctl enable-linger $USER
# เซิร์ฟเวอร์ Linux - คำสั่ง system-service โดยชัดเจน
sudo hermes gateway start --system
sudo hermes gateway status --system
journalctl -u hermes-gateway -f# macOS - จัดการ service
hermes gateway start
hermes gateway stop
tail -f ~/.hermes/logs/gateway.log:::tip macOS PATH
launchd plist จะบันทึก shell PATH ของคุณ ณ เวลาติดตั้ง เพื่อให้ subprocesses ของ gateway สามารถค้นหาเครื่องมือต่างๆ เช่น Node.js และ ffmpeg ได้ หากคุณติดตั้งเครื่องมือใหม่ในภายหลัง ให้รัน hermes gateway install อีกครั้งเพื่ออัปเดต plist
:::
ตรวจสอบว่ากำลังทำงานอยู่
hermes gateway statusจากนั้นส่งข้อความทดสอบไปยังบอทของคุณบน Telegram คุณควรได้รับการตอบกลับภายในไม่กี่วินาที
ขั้นตอนที่ 4: ตั้งค่าการเข้าถึงของทีม
ตอนนี้เรามาให้สิทธิ์เพื่อนร่วมทีมของคุณกัน มีสองแนวทาง
แนวทาง A: Static Allowlist
รวบรวม user ID ของ Telegram ของสมาชิกในทีมแต่ละคน (ให้พวกเขาส่งข้อความถึง @userinfobot) และเพิ่มพวกเขาเป็นรายการที่คั่นด้วยเครื่องหมายคอมมา:
# ใน ~/.hermes/.env
TELEGRAM_ALLOWED_USERS=123456789,987654321,555555555รีสตาร์ท gateway หลังจากการเปลี่ยนแปลง:
hermes gateway stop && hermes gateway startแนวทาง B: DM Pairing (แนะนำสำหรับทีม)
DM pairing มีความยืดหยุ่นกว่า - คุณไม่จำเป็นต้องรวบรวม user ID ล่วงหน้า นี่คือวิธีการทำงาน:
-
เพื่อนร่วมทีมส่ง DM ให้บอท - เนื่องจากพวกเขาไม่ได้อยู่ใน allowlist บอทจะตอบกลับด้วยรหัสจับคู่ (pairing code) แบบใช้ครั้งเดียว:
🔐 Pairing code: XKGH5N7P Send this code to the bot owner for approval. -
เพื่อนร่วมทีมส่งโค้ดให้คุณ (ผ่านช่องทางใดก็ได้ - Slack, email, ตัวจริง)
-
คุณอนุมัติมัน บนเซิร์ฟเวอร์:
hermes pairing approve telegram XKGH5N7P -
พวกเขาเข้าใช้งานได้แล้ว - บอทจะเริ่มตอบกลับข้อความของพวกเขาในทันที
การจัดการผู้ใช้ที่จับคู่แล้ว:
# ดูผู้ใช้ที่รอการอนุมัติและผู้ที่อนุมัติแล้วทั้งหมด
hermes pairing list
# เพิกถอนการเข้าถึงของใครบางคน
hermes pairing revoke telegram 987654321
# ล้างรหัสที่รอการอนุมัติที่หมดอายุ
hermes pairing clear-pending:::tip DM pairing เหมาะสำหรับทีม เพราะคุณไม่จำเป็นต้องรีสตาร์ท gateway เมื่อเพิ่มผู้ใช้ใหม่ การอนุมัติจะมีผลทันที :::
ข้อควรพิจารณาด้านความปลอดภัย
- ห้ามตั้งค่า
GATEWAY_ALLOW_ALL_USERS=trueบนบอทที่มีการเข้าถึง terminal - ใครก็ตามที่พบบอทของคุณสามารถรันคำสั่งบนเซิร์ฟเวอร์ของคุณได้ - รหัสจับคู่จะหมดอายุภายใน 1 ชั่วโมง และใช้ cryptographic randomness
- Rate limiting ป้องกันการโจมตีแบบ brute-force: 1 request ต่อผู้ใช้ ต่อ 10 นาที, สูงสุด 3 pending codes ต่อแพลตฟอร์ม
- หลังจากพยายามอนุมัติล้มเหลว 5 ครั้ง แพลตฟอร์มจะเข้าสู่โหมดล็อกเอาต์ 1 ชั่วโมง
- ข้อมูล pairing ทั้งหมดจะถูกจัดเก็บด้วยสิทธิ์
chmod 0600
ขั้นตอนที่ 5: กำหนดค่า Bot
ตั้งค่า Home Channel
Home channel คือที่ที่บอทส่งผลลัพธ์ของ cron job และข้อความเชิงรุก หากไม่มี Home channel งานตามกำหนดเวลาจะไม่มีที่ส่ง output
ตัวเลือก 1: ใช้คำสั่ง /sethome ในกลุ่มหรือแชท Telegram ใดก็ได้ที่บอทเป็นสมาชิก
ตัวเลือก 2: ตั้งค่าด้วยตนเองใน ~/.hermes/.env:
TELEGRAM_HOME_CHANNEL=-1001234567890
TELEGRAM_HOME_CHANNEL_NAME="Team Updates"ในการค้นหา channel ID ให้เพิ่ม @userinfobot เข้าไปในกลุ่ม - มันจะรายงาน chat ID ของกลุ่ม
กำหนดค่าการแสดงความคืบหน้าของเครื่องมือ (Tool Progress Display)
ควบคุมว่าบอทจะแสดงรายละเอียดมากแค่ไหนเมื่อใช้เครื่องมือ ใน ~/.hermes/config.yaml:
display:
tool_progress: new # off | new | all | verbose| Mode | สิ่งที่คุณเห็น |
|---|---|
off | การตอบกลับที่สะอาดเท่านั้น - ไม่มีกิจกรรมของเครื่องมือ |
new | สถานะสั้นๆ สำหรับการเรียกใช้เครื่องมือใหม่แต่ละครั้ง (แนะนำสำหรับการส่งข้อความ) |
all | การเรียกใช้เครื่องมือทุกครั้งพร้อมรายละเอียด |
verbose | output เครื่องมือเต็มรูปแบบ รวมถึงผลลัพธ์ของคำสั่ง |
ผู้ใช้ยังสามารถเปลี่ยนสิ่งนี้ได้ต่อเซสชันด้วยคำสั่ง /verbose ในแชท
ตั้งค่าบุคลิกภาพด้วย SOUL.md
ปรับแต่งวิธีการสื่อสารของบอทโดยการแก้ไข ~/.hermes/SOUL.md:
สำหรับคู่มือฉบับเต็ม ดูที่ Use SOUL.md with Hermes
# Soul
You are a helpful team assistant. Be concise and technical.
Use code blocks for any code. Skip pleasantries - the team
values directness. When debugging, always ask for error logs
before guessing at solutions.เพิ่มบริบทของโปรเจกต์ (Project Context)
หากทีมของคุณทำงานในโปรเจกต์เฉพาะ ให้สร้างไฟล์ context เพื่อให้บอททราบ stack ของคุณ:
<!-- ~/.hermes/AGENTS.md -->
# Team Context
- We use Python 3.12 with FastAPI and SQLAlchemy
- Frontend is React with TypeScript
- CI/CD runs on GitHub Actions
- Production deploys to AWS ECS
- Always suggest writing tests for new code:::info Context files จะถูกฉีดเข้าไปใน system prompt ของทุกเซสชัน เก็บให้กระชับ - ทุกตัวอักษรมีผลต่องบประมาณ token ของคุณ :::
ขั้นตอนที่ 6: ตั้งค่างานตามกำหนดเวลา (Scheduled Tasks)
เมื่อ gateway ทำงานแล้ว คุณสามารถตั้งเวลางานที่เกิดขึ้นซ้ำๆ ซึ่งจะส่งผลลัพธ์ไปยังช่องของทีมคุณ
สรุป Daily Standup
ส่งข้อความถึงบอทบน Telegram:
Every weekday at 9am, check the GitHub repository at
github.com/myorg/myproject for:
1. Pull requests opened/merged in the last 24 hours
2. Issues created or closed
3. Any CI/CD failures on the main branch
Format as a brief standup-style summary.agent จะสร้าง cron job โดยอัตโนมัติและส่งผลลัพธ์ไปยังแชทที่คุณถาม (หรือ home channel)
การตรวจสอบสุขภาพเซิร์ฟเวอร์ (Server Health Check)
Every 6 hours, check disk usage with 'df -h', memory with 'free -h',
and Docker container status with 'docker ps'. Report anything unusual -
partitions above 80%, containers that have restarted, or high memory usage.การจัดการงานตามกำหนดเวลา
# จาก CLI
hermes cron list # ดูงานที่กำหนดเวลาทั้งหมด
hermes cron status # ตรวจสอบว่า scheduler กำลังทำงานอยู่หรือไม่
# จากแชท Telegram
/cron list # ดูงาน
/cron remove <job_id> # ลบงาน:::warning คำสั่ง cron job จะทำงานในเซสชันที่สดใหม่โดยสมบูรณ์โดยไม่มีความทรงจำของการสนทนาก่อนหน้า ตรวจสอบให้แน่ใจว่าแต่ละ prompt มี บริบททั้งหมด ที่ agent ต้องการ - เช่น file paths, URLs, server addresses, และคำแนะนำที่ชัดเจน :::
เคล็ดลับสำหรับ Production (Production Tips)
ใช้ Docker เพื่อความปลอดภัย
บนบอททีมที่ใช้ร่วมกัน ให้ใช้ Docker เป็น backend terminal เพื่อให้คำสั่งของ agent ทำงานใน container แทนที่จะทำงานบน host ของคุณ:
# ใน ~/.hermes/.env
TERMINAL_BACKEND=docker
TERMINAL_DOCKER_IMAGE=nikolaik/python-nodejs:python3.11-nodejs20หรือใน ~/.hermes/config.yaml:
terminal:
backend: docker
container_cpu: 1
container_memory: 5120
container_persistent: trueด้วยวิธีนี้ แม้ว่าใครบางคนจะขอให้บอทรันสิ่งที่ทำลายล้าง ระบบ host ของคุณก็จะได้รับการป้องกัน
ตรวจสอบ Gateway
# ตรวจสอบว่า gateway กำลังทำงานอยู่หรือไม่
hermes gateway status
# ดู live logs (Linux)
journalctl --user -u hermes-gateway -f
# ดู live logs (macOS)
tail -f ~/.hermes/logs/gateway.logอัปเดต Hermes
จาก Telegram ให้ส่ง /update ไปยังบอท - มันจะดึงเวอร์ชันล่าสุดและรีสตาร์ท หรือจากเซิร์ฟเวอร์:
hermes update
hermes gateway stop && hermes gateway startตำแหน่ง Log
| สิ่งที่ | ตำแหน่ง |
|---|---|
| Gateway logs | journalctl --user -u hermes-gateway (Linux) หรือ ~/.hermes/logs/gateway.log (macOS) |
| Cron job output | ~/.hermes/cron/output/{job_id}/{timestamp}.md |
| Cron job definitions | ~/.hermes/cron/jobs.json |
| Pairing data | ~/.hermes/pairing/ |
| Session history | ~/.hermes/sessions/ |
ก้าวต่อไป (Going Further)
คุณมีทีม Telegram assistant ที่ใช้งานได้แล้ว นี่คือขั้นตอนต่อไปบางส่วน:
- Security Guide - เจาะลึกเรื่องการอนุญาต, container isolation, และการอนุมัติคำสั่ง
- Messaging Gateway - เอกสารอ้างอิงเต็มรูปแบบสำหรับสถาปัตยกรรม gateway, การจัดการเซสชัน, และคำสั่งแชท
- Telegram Setup - รายละเอียดเฉพาะแพลตฟอร์ม รวมถึง voice messages และ TTS
- Scheduled Tasks - การตั้งเวลา cron ขั้นสูงพร้อมตัวเลือกการส่งมอบและ cron expressions
- Context Files - AGENTS.md, SOUL.md, และ .cursorrules สำหรับความรู้โปรเจกต์
- Personality - preset บุคลิกภาพในตัวและคำจำกัดความ persona ที่กำหนดเอง
- เพิ่มแพลตฟอร์มอื่น ๆ - gateway เดียวกันสามารถรัน Discord, Slack, และ WhatsApp ได้พร้อมกัน
มีคำถามหรือปัญหาหรือไม่? เปิด issue บน GitHub - ยินดีรับการมีส่วนร่วม
📄 guides/tips.md
sidebar_position: 1 title: "Tips & Best Practices" description: "Practical advice to get the most out of Hermes Agent - prompt tips, CLI shortcuts, context files, memory, cost optimization, and security"
Tips & Best Practices
ชุดเคล็ดลับปฏิบัติที่ช่วยให้คุณทำงานกับ Hermes Agent ได้อย่างมีประสิทธิภาพมากขึ้นทันที แต่ละส่วนจะเน้นที่แง่มุมที่แตกต่างกัน - ให้สแกนหัวข้อและข้ามไปยังส่วนที่คุณสนใจได้เลย
Getting the Best Results
Be Specific About What You Want
Prompt ที่คลุมเครือจะให้ผลลัพธ์ที่คลุมเครือเช่นกัน แทนที่จะบอกว่า "fix the code" ให้ระบุว่า "fix the TypeError ใน api/handlers.py บรรทัดที่ 47 - ฟังก์ชัน process_request() ได้รับค่า None จาก parse_body()" ยิ่งคุณให้บริบทมากเท่าไหร่ คุณก็จะยิ่งต้องทำซ้ำน้อยลงเท่านั้น
Provide Context Up Front
ให้ข้อมูลที่เกี่ยวข้องตั้งแต่ต้น: file paths, error messages, expected behavior ข้อความที่คิดมาอย่างดีเพียงข้อความเดียวดีกว่าการถามคำถามเพื่อขอความชัดเจนถึงสามรอบ วาง error tracebacks ลงไปโดยตรง - agent สามารถวิเคราะห์ข้อมูลเหล่านี้ได้
Use Context Files for Recurring Instructions
หากคุณพบว่าตัวเองต้องทำซ้ำคำสั่งเดิมๆ ("ใช้ tabs ไม่ใช่ spaces," "เราใช้ pytest," "API อยู่ที่ /api/v2") ให้ใส่คำสั่งเหล่านั้นไว้ในไฟล์ AGENTS.md agent จะอ่านไฟล์นี้โดยอัตโนมัติในทุก session - ไม่ต้องออกแรงอะไรเลยหลังจากตั้งค่าครั้งแรก
Let the Agent Use Its Tools
อย่าพยายามควบคุมทุกขั้นตอน บอกว่า "find and fix the failing test" แทนที่จะบอกว่า "open tests/test_foo.py, ดูที่บรรทัด 42, แล้ว..." agent มีความสามารถในการค้นหาไฟล์, เข้าถึง terminal, และรันโค้ด - ปล่อยให้มันสำรวจและทำซ้ำได้เลย
Use Skills for Complex Workflows
ก่อนที่จะเขียน prompt ยาวๆ เพื่ออธิบายวิธีการทำอะไรบางอย่าง ให้ตรวจสอบก่อนว่ามี skill สำหรับงานนั้นอยู่แล้วหรือไม่ พิมพ์ /skills เพื่อดู skill ที่มีให้ใช้งาน หรือเรียกใช้โดยตรง เช่น /axolotl หรือ /github-pr-workflow
CLI Power User Tips
Multi-Line Input
กด Alt+Enter (หรือ Ctrl+J) เพื่อแทรกบรรทัดใหม่โดยที่ยังไม่ส่งข้อความ วิธีนี้ช่วยให้คุณสามารถเขียน prompt หลายบรรทัด, วาง code blocks, หรือจัดโครงสร้างคำขอที่ซับซ้อนก่อนที่จะกด Enter เพื่อส่ง
Paste Detection
CLI จะตรวจจับการวางข้อความหลายบรรทัดโดยอัตโนมัติ เพียงแค่วาง code block หรือ error traceback โดยตรง - มันจะไม่ส่งทีละบรรทัด แต่จะบัฟเฟอร์การวางทั้งหมดและส่งเป็นข้อความเดียว
Interrupt and Redirect
กด Ctrl+C หนึ่งครั้งเพื่อขัดจังหวะ agent ขณะที่กำลังตอบ คุณสามารถพิมพ์ข้อความใหม่เพื่อเปลี่ยนทิศทางของมันได้ หากต้องการบังคับออก ให้กด Ctrl+C สองครั้งภายใน 2 วินาที วิธีนี้มีค่ามากเมื่อ agent เริ่มออกนอกเส้นทางที่ถูกต้อง
Resume Sessions with -c
ลืมอะไรบางอย่างจาก session ที่แล้วไป? รัน hermes -c เพื่อกลับไปที่จุดที่คุณค้างไว้พอดี พร้อมกับประวัติการสนทนาทั้งหมดที่ถูกกู้คืน คุณยังสามารถกลับไปที่หัวข้อได้ด้วย: hermes -r "my research project"
Clipboard Image Paste
กด Ctrl+V เพื่อวางรูปภาพจาก clipboard ของคุณลงใน chat ได้โดยตรง agent ใช้ vision ในการวิเคราะห์ screenshots, diagrams, error popups, หรือ UI mockups - ไม่จำเป็นต้องบันทึกเป็นไฟล์ก่อน
Slash Command Autocomplete
พิมพ์ / แล้วกด Tab เพื่อดูคำสั่งทั้งหมดที่มีอยู่ ซึ่งรวมถึงคำสั่ง built-in (/compress, /model, /title) และทุก skill ที่ติดตั้ง คุณไม่จำเป็นต้องจำอะไรเลย - Tab completion จัดการให้คุณแล้ว
:::tip
ใช้ /verbose เพื่อสลับโหมดการแสดงผล tool output: off → new → all → verbose โหมด "all" เหมาะสำหรับการดูว่า agent ทำอะไรไปบ้าง; "off" สะอาดที่สุดสำหรับการถาม-ตอบแบบง่ายๆ
:::
Context Files
AGENTS.md: Your Project's Brain
สร้างไฟล์ AGENTS.md ใน root directory ของโปรเจกต์ของคุณ โดยใส่การตัดสินใจด้านสถาปัตยกรรม, coding conventions, และคำสั่งเฉพาะโปรเจกต์ สิ่งนี้จะถูกฉีดเข้าไปในทุก session โดยอัตโนมัติ ทำให้ agent รู้กฎของโปรเจกต์คุณเสมอ
# Project Context
- This is a FastAPI backend with SQLAlchemy ORM
- Always use async/await for database operations
- Tests go in tests/ and use pytest-asyncio
- Never commit .env filesSOUL.md: Customize Personality
ต้องการให้ Hermes มีบุคลิกภาพเริ่มต้นที่เสถียรไหม? แก้ไข ~/.hermes/SOUL.md (หรือ $HERMES_HOME/SOUL.md หากคุณใช้ Hermes home แบบกำหนดเอง) ตอนนี้ Hermes จะ seed SOUL เริ่มต้นโดยอัตโนมัติและใช้ไฟล์ global นี้เป็นแหล่งที่มาของบุคลิกภาพทั่วทั้ง instance
สำหรับคำแนะนำแบบเต็ม ให้ดูที่ Use SOUL.md with Hermes
# Soul
You are a senior backend engineer. Be terse and direct.
Skip explanations unless asked. Prefer one-liners over verbose solutions.
Always consider error handling and edge cases.ใช้ SOUL.md สำหรับบุคลิกภาพที่คงทน ใช้ AGENTS.md สำหรับคำสั่งเฉพาะโปรเจกต์
.cursorrules Compatibility
มีไฟล์ .cursorrules หรือ .cursor/rules/*.mdc อยู่แล้วหรือไม่? Hermes อ่านไฟล์เหล่านั้นด้วย ไม่จำเป็นต้องทำซ้ำ coding conventions ของคุณ - เพราะมันถูกโหลดโดยอัตโนมัติจาก working directory
Discovery
Hermes จะโหลด AGENTS.md ระดับบนสุดจาก current working directory เมื่อเริ่ม session ไฟล์ AGENTS.md ใน subdirectory จะถูกค้นพบแบบ lazy ในระหว่างการเรียกใช้ tool (ผ่าน subdirectory_hints.py) และถูกฉีดเข้าไปใน tool results - มันไม่ได้ถูกโหลดล่วงหน้าเข้าไปใน system prompt
:::tip ให้ context files มีความกระชับและมุ่งเน้นเฉพาะเรื่อง เพราะทุกตัวอักษรมีผลต่อ token budget ของคุณ เนื่องจากมันถูกฉีดเข้าไปในทุกข้อความ :::
Memory & Skills
Memory vs. Skills: What Goes Where
Memory ใช้สำหรับข้อเท็จจริง: environment ของคุณ, preferences, ตำแหน่งโปรเจกต์, และสิ่งที่ agent ได้เรียนรู้เกี่ยวกับคุณ Skills ใช้สำหรับขั้นตอนการทำงาน: multi-step workflows, คำสั่งเฉพาะ tool, และสูตรที่นำกลับมาใช้ใหม่ได้ ใช้ memory สำหรับ "อะไร" (what), ใช้ skills สำหรับ "อย่างไร" (how)
When to Create Skills
หากคุณพบงานที่ต้องใช้ 5+ steps และคุณจะต้องทำมันอีกครั้ง ให้ขอให้ agent สร้าง skill สำหรับงานนั้น บอกว่า "save what you just did as a skill called deploy-staging" ครั้งหน้า เพียงแค่พิมพ์ /deploy-staging และ agent จะโหลดขั้นตอนทั้งหมดให้
Managing Memory Capacity
Memory ถูกจำกัดไว้โดยเจตนา (~2,200 chars สำหรับ MEMORY.md, ~1,375 chars สำหรับ USER.md) เมื่อเต็มแล้ว agent จะทำการรวมข้อมูล (consolidates entries) คุณสามารถช่วยได้โดยการบอกว่า "clean up your memory" หรือ "replace the old Python 3.9 note - we're on 3.12 now"
Let the Agent Remember
หลังจาก session ที่มีประสิทธิภาพ ให้บอกว่า "remember this for next time" และ agent จะบันทึก key takeaways คุณยังสามารถระบุเจาะจงได้: "save to memory that our CI uses GitHub Actions with the deploy.yml workflow"
:::warning Memory เป็น snapshot ที่ถูกแช่แข็ง - การเปลี่ยนแปลงที่เกิดขึ้นระหว่าง session จะไม่ปรากฏใน system prompt จนกว่า session ถัดไปจะเริ่ม agent จะเขียนลง disk ทันที แต่ prompt cache จะไม่ถูก invalidates ระหว่าง session :::
Performance & Cost
Don't Break the Prompt Cache
ผู้ให้บริการ LLM ส่วนใหญ่จะ cache system prompt prefix หากคุณรักษา system prompt ให้คงที่ (context files เดียวกัน, memory เดียวกัน) ข้อความถัดไปใน session จะได้ cache hits ซึ่งมีค่าใช้จ่ายที่ถูกกว่าอย่างมาก หลีกเลี่ยงการเปลี่ยน model หรือ system prompt กลาง session
Use /compress Before Hitting Limits
Session ที่ยาวนานจะสะสม tokens เมื่อคุณสังเกตเห็นว่าการตอบสนองช้าลงหรือถูกตัดทอน ให้รัน /compress สิ่งนี้จะสรุปประวัติการสนทนา โดยยังคงรักษา context ที่สำคัญไว้ ขณะที่ลดจำนวน tokens ลงอย่างมาก ใช้ /usage เพื่อตรวจสอบสถานะของคุณ
Delegate for Parallel Work
ต้องการวิจัยสามหัวข้อพร้อมกันไหม? ให้ agent ใช้ delegate_task พร้อม subtasks แบบขนาน แต่ละ subagent จะทำงานอย่างอิสระพร้อม context ของตัวเอง และมีเพียงสรุปสุดท้ายเท่านั้นที่ส่งกลับมา - ซึ่งช่วยลดการใช้ tokens ของ main conversation ของคุณได้อย่างมาก
Use execute_code for Batch Operations
แทนที่จะรันคำสั่ง terminal ทีละคำสั่ง ให้ขอให้ agent เขียน script ที่ทำทุกอย่างพร้อมกัน "Write a Python script to rename all .jpeg files to .jpg and run it" มีค่าใช้จ่ายน้อยกว่าและเร็วกว่าการเปลี่ยนชื่อไฟล์ทีละไฟล์
Choose the Right Model
ใช้ /model เพื่อสลับ model กลาง session ใช้ frontier model (Claude Sonnet/Opus, GPT-4o) สำหรับการให้เหตุผลที่ซับซ้อนและการตัดสินใจด้านสถาปัตยกรรม สลับไปใช้ model ที่เร็วกว่าสำหรับงานง่ายๆ เช่น การจัดรูปแบบ, การเปลี่ยนชื่อ, หรือการสร้าง boilerplate
:::tip
รัน /usage เป็นระยะเพื่อดูการใช้ tokens ของคุณ รัน /insights เพื่อดูภาพรวมของรูปแบบการใช้งานในช่วง 30 วันที่ผ่านมา
:::
Messaging Tips
Set a Home Channel
ใช้ /sethome ใน chat Telegram หรือ Discord ที่คุณต้องการ เพื่อกำหนดให้เป็น home channel ผลลัพธ์ของ cron job และ output ของ scheduled task จะถูกส่งมาที่นี่ หากไม่มีสิ่งนี้ agent จะไม่มีที่ส่งข้อความเชิงรุก
Use /title to Organize Sessions
ตั้งชื่อ session ของคุณด้วย /title auth-refactor หรือ /title research-llm-quantization Session ที่มีชื่อจะหาได้ง่ายด้วย hermes sessions list และกลับไปที่ด้วย hermes -r "auth-refactor" Session ที่ไม่มีชื่อจะสะสมและยากต่อการแยกแยะ
DM Pairing for Team Access
แทนที่จะรวบรวม user IDs สำหรับ allowlists ด้วยตนเอง ให้เปิดใช้งาน DM pairing เมื่อเพื่อนร่วมทีม DM bot พวกเขาจะได้รับรหัส pairing แบบใช้ครั้งเดียว คุณอนุมัติด้วย hermes pairing approve telegram XKGH5N7P - ง่ายและปลอดภัย
Tool Progress Display Modes
ใช้ /verbose เพื่อควบคุมว่าคุณจะเห็นกิจกรรมของ tool มากน้อยแค่ไหน ใน messaging platforms โดยทั่วไปยิ่งน้อยยิ่งดี - ให้คงไว้ที่ "new" เพื่อดูเฉพาะการเรียกใช้ tool ใหม่ๆ ใน CLI, "all" จะให้มุมมองสดที่น่าพอใจว่า agent ทำอะไรไปบ้าง
:::tip
ใน messaging platforms, session จะรีเซ็ตโดยอัตโนมัติหลังจากไม่มีการใช้งาน (ค่าเริ่มต้น: 24 ชั่วโมง) หรือรายวันเวลา 4 โมงเช้า ปรับเปลี่ยนต่อแพลตฟอร์มใน ~/.hermes/config.yaml หากคุณต้องการ session ที่ยาวนานขึ้น
:::
Security
Use Docker for Untrusted Code
เมื่อทำงานกับ repository ที่ไม่น่าเชื่อถือ หรือรันโค้ดที่ไม่คุ้นเคย ให้ใช้ Docker หรือ Daytona เป็น terminal backend ของคุณ ตั้งค่า TERMINAL_BACKEND=docker ใน .env คำสั่งที่ทำลายล้างภายใน container ไม่สามารถทำอันตรายต่อ host system ของคุณได้
# In your .env:
TERMINAL_BACKEND=docker
TERMINAL_DOCKER_IMAGE=hermes-sandbox:latestAvoid Windows Encoding Pitfalls
บน Windows, encoding เริ่มต้นบางตัว (เช่น cp125x) ไม่สามารถแทน Unicode characters ได้ทั้งหมด ซึ่งอาจทำให้เกิด UnicodeEncodeError เมื่อเขียนไฟล์ใน tests หรือ scripts
- ควรเปิดไฟล์ด้วย encoding แบบ UTF-8 อย่างชัดเจน:
with open("results.txt", "w", encoding="utf-8") as f:
f.write("✓ All good\n")- ใน PowerShell คุณยังสามารถสลับ current session เป็น UTF-8 สำหรับ console และ native command output:
$OutputEncoding = [Console]::OutputEncoding = [Text.UTF8Encoding]::new($false)สิ่งนี้จะทำให้ PowerShell และ child processes อยู่บน UTF-8 และช่วยหลีกเลี่ยงความล้มเหลวเฉพาะของ Windows
Review Before Choosing "Always"
เมื่อ agent ทริกเกอร์การอนุมัติคำสั่งอันตราย (rm -rf, DROP TABLE, ฯลฯ) คุณจะได้รับสี่ตัวเลือก: once, session, always, deny คิดให้รอบคอบก่อนเลือก "always" - เพราะมันจะอนุญาต pattern นั้นอย่างถาวร เริ่มต้นด้วย "session" จนกว่าคุณจะรู้สึกสบายใจ
Command Approval Is Your Safety Net
Hermes จะตรวจสอบทุกคำสั่งกับรายการ pattern อันตรายที่รวบรวมไว้ก่อนการดำเนินการ ซึ่งรวมถึงการลบแบบ recursive, SQL drops, การ pipe curl ไปยัง shell และอื่นๆ ห้ามปิดฟังก์ชันนี้ใน production - เพราะมันมีเหตุผลที่ดี
:::warning เมื่อรันใน container backend (Docker, Singularity, Modal, Daytona), การตรวจสอบคำสั่งอันตรายจะ ถูกข้าม เนื่องจาก container คือขอบเขตความปลอดภัย ตรวจสอบให้แน่ใจว่า container images ของคุณถูกล็อกดาวน์อย่างเหมาะสม :::
Use Allowlists for Messaging Bots
ห้ามตั้งค่า GATEWAY_ALLOW_ALL_USERS=true บน bot ที่มีการเข้าถึง terminal เด็ดขาด ให้ใช้ platform-specific allowlists (TELEGRAM_ALLOWED_USERS, DISCORD_ALLOWED_USERS) หรือ DM pairing เสมอ เพื่อควบคุมว่าใครสามารถโต้ตอบกับ agent ของคุณได้
# Recommended: explicit allowlists per platform
TELEGRAM_ALLOWED_USERS=123456789,987654321
DISCORD_ALLOWED_USERS=123456789012345678
# Or use cross-platform allowlist
GATEWAY_ALLOWED_USERS=123456789,987654321มีเคล็ดลับที่คุณคิดว่าควรอยู่ในหน้านี้หรือไม่? เปิด issue หรือ PR - ยินดีรับการมีส่วนร่วมจากชุมชน
📄 guides/use-mcp-with-hermes.md
sidebar_position: 6 title: "Use MCP with Hermes" description: "A practical guide to connecting MCP servers to Hermes Agent, filtering their tools, and using them safely in real workflows"
การใช้ MCP กับ Hermes
คู่มือนี้แสดงให้เห็นว่าคุณจะใช้ MCP กับ Hermes Agent ในเวิร์กโฟลว์ประจำวันได้อย่างไร
หากหน้าฟีเจอร์ได้อธิบายว่า MCP คืออะไร คู่มือนี้จะเน้นไปที่วิธีการดึงคุณค่าจากมันอย่างรวดเร็วและปลอดภัย
ควรใช้ MCP เมื่อใด?
ให้ใช้ MCP เมื่อ:
- มี tool ที่มีอยู่ในรูปแบบ MCP อยู่แล้ว และคุณไม่ต้องการสร้าง native Hermes tool
- คุณต้องการให้ Hermes ทำงานกับระบบภายในหรือภายนอกผ่านชั้น RPC layer ที่สะอาด
- คุณต้องการการควบคุมการเปิดเผย (exposure control) ของแต่ละ server อย่างละเอียด
- คุณต้องการเชื่อมต่อ Hermes กับ internal API, ฐานข้อมูล, หรือระบบของบริษัทโดยไม่ต้องแก้ไข core ของ Hermes
ไม่ควรใช้ MCP เมื่อ:
- built-in Hermes tool สามารถแก้ปัญหาได้ดีอยู่แล้ว
- server เปิดเผย tool surface ที่ใหญ่และอันตรายมาก และคุณยังไม่พร้อมที่จะกรองมัน
- คุณต้องการการเชื่อมต่อที่แคบมากเพียงอย่างเดียว และ native tool จะง่ายและปลอดภัยกว่า
แนวคิดหลัก (Mental model)
ให้คิดว่า MCP เป็น adapter layer:
- Hermes ยังคงเป็น agent
- MCP servers ทำหน้าที่ contribute tools
- Hermes จะค้นพบ tools เหล่านั้นเมื่อเริ่มต้นหรือเมื่อมีการโหลดใหม่
- model สามารถใช้ tools เหล่านั้นได้เหมือน tools ทั่วไป
- คุณเป็นผู้ควบคุมว่าส่วนใดของแต่ละ server ที่จะมองเห็นได้
ส่วนสุดท้ายนี้สำคัญมาก การใช้ MCP ที่ดีไม่ได้หมายถึงแค่ "เชื่อมต่อทุกอย่าง" แต่มันคือ "เชื่อมต่อสิ่งที่ถูกต้อง ด้วย surface ที่มีประโยชน์น้อยที่สุด"
ขั้นตอนที่ 1: ติดตั้ง MCP support
หากคุณติดตั้ง Hermes ด้วย standard install script, MCP support จะถูกรวมมาให้แล้ว (ตัวติดตั้งจะรัน uv pip install -e ".[all]").
หากคุณติดตั้งโดยไม่มี extras และต้องการเพิ่ม MCP แยกต่างหาก:
cd ~/.hermes/hermes-agent
uv pip install -e ".[mcp]"สำหรับ server ที่ใช้ npm-based, ให้แน่ใจว่า Node.js และ npx พร้อมใช้งาน
สำหรับ Python MCP servers ส่วนใหญ่, uvx เป็นค่าเริ่มต้นที่ดี
ขั้นตอนที่ 2: เพิ่ม server เพียงตัวเดียวก่อน
เริ่มต้นด้วย server ที่ปลอดภัยเพียงตัวเดียว
ตัวอย่าง: การเข้าถึง filesystem สำหรับไดเรกทอรีโปรเจกต์เพียงโปรเจกต์เดียว
mcp_servers:
project_fs:
command: "npx"
args: ["-y", "@modelcontextprotocol/server-filesystem", "/home/user/my-project"]จากนั้นเริ่ม Hermes:
hermes chatตอนนี้ให้ถามคำถามที่เฉพาะเจาะจง:
Inspect this project and summarize the repo layout.ขั้นตอนที่ 3: ตรวจสอบว่า MCP โหลดแล้ว
คุณสามารถตรวจสอบ MCP ได้หลายวิธี:
- แบนเนอร์/สถานะของ Hermes ควรแสดงการรวม MCP เมื่อมีการกำหนดค่า
- ถาม Hermes ว่ามี tools อะไรให้ใช้งานบ้าง
- ใช้
/reload-mcpหลังจากการเปลี่ยนแปลง config - ตรวจสอบ logs หาก server ล้มเหลวในการเชื่อมต่อ
คำสั่งทดสอบที่ใช้งานได้จริง:
Tell me which MCP-backed tools are available right now.ขั้นตอนที่ 4: เริ่มการกรองทันที
อย่ารอจนกว่าจะสาย หาก server เปิดเผย tools จำนวนมาก
ตัวอย่าง: whitelist เฉพาะสิ่งที่คุณต้องการ
mcp_servers:
github:
command: "npx"
args: ["-y", "@modelcontextprotocol/server-github"]
env:
GITHUB_PERSONAL_ACCESS_TOKEN: "***"
tools:
include: [list_issues, create_issue, search_code]นี่มักจะเป็นค่าเริ่มต้นที่ดีที่สุดสำหรับระบบที่ละเอียดอ่อน
ตัวอย่าง: blacklist การกระทำที่อันตราย
mcp_servers:
stripe:
url: "https://mcp.stripe.com"
headers:
Authorization: "Bearer ***"
tools:
exclude: [delete_customer, refund_payment]ตัวอย่าง: ปิด utility wrappers ด้วย
mcp_servers:
docs:
url: "https://mcp.docs.example.com"
tools:
prompts: false
resources: falseการกรองส่งผลกระทบอะไรบ้าง?
ใน Hermes มีฟังก์ชันการทำงานที่เปิดเผยผ่าน MCP อยู่สองประเภท:
- Server-native MCP tools
- ถูกกรองด้วย:
tools.includetools.exclude
- Hermes-added utility wrappers
- ถูกกรองด้วย:
tools.resourcestools.prompts
Utility wrappers ที่คุณอาจเห็น
Resources:
list_resourcesread_resource
Prompts:
list_promptsget_prompt
wrappers เหล่านี้จะปรากฏก็ต่อเมื่อ:
- config ของคุณอนุญาต และ
- session ของ MCP server นั้นรองรับความสามารถเหล่านั้นจริง
ดังนั้น Hermes จะไม่แสร้งทำเป็นว่า server มี resources/prompts หากมันไม่มีจริง
รูปแบบการใช้งานทั่วไป (Common patterns)
Pattern 1: local project assistant
ใช้ MCP สำหรับ filesystem หรือ git server ในระดับ repo เมื่อคุณต้องการให้ Hermes ใช้เหตุผลกับ workspace ที่ถูกจำกัดขอบเขต
mcp_servers:
fs:
command: "npx"
args: ["-y", "@modelcontextprotocol/server-filesystem", "/home/user/project"]
git:
command: "uvx"
args: ["mcp-server-git", "--repository", "/home/user/project"]prompts ที่ดี:
Review the project structure and identify where configuration lives.Check the local git state and summarize what changed recently.Pattern 2: GitHub triage assistant
mcp_servers:
github:
command: "npx"
args: ["-y", "@modelcontextprotocol/server-github"]
env:
GITHUB_PERSONAL_ACCESS_TOKEN: "***"
tools:
include: [list_issues, create_issue, update_issue, search_code]
prompts: false
resources: falseprompts ที่ดี:
List open issues about MCP, cluster them by theme, and draft a high-quality issue for the most common bug.Search the repo for uses of _discover_and_register_server and explain how MCP tools are registered.Pattern 3: internal API assistant
mcp_servers:
internal_api:
url: "https://mcp.internal.example.com"
headers:
Authorization: "Bearer ***"
tools:
include: [list_customers, get_customer, list_invoices]
resources: false
prompts: falseprompts ที่ดี:
Look up customer ACME Corp and summarize recent invoice activity.นี่คือประเภทที่การใช้ strict whitelist ดีกว่า exclude list มาก
Pattern 4: documentation / knowledge servers
MCP servers บางตัวเปิดเผย prompts หรือ resources ที่เป็นเหมือน asset ความรู้ที่ใช้ร่วมกันมากกว่าการกระทำโดยตรง
mcp_servers:
docs:
url: "https://mcp.docs.example.com"
tools:
prompts: true
resources: trueprompts ที่ดี:
List available MCP resources from the docs server, then read the onboarding guide and summarize it.List prompts exposed by the docs server and tell me which ones would help with incident response.Tutorial: end-to-end setup with filtering
นี่คือลำดับการใช้งานจริง
Phase 1: เพิ่ม GitHub MCP ด้วย whitelist ที่จำกัด
mcp_servers:
github:
command: "npx"
args: ["-y", "@modelcontextprotocol/server-github"]
env:
GITHUB_PERSONAL_ACCESS_TOKEN: "***"
tools:
include: [list_issues, create_issue, search_code]
prompts: false
resources: falseเริ่ม Hermes และถาม:
Search the codebase for references to MCP and summarize the main integration points.Phase 2: ขยายเมื่อจำเป็นเท่านั้น
หากภายหลังคุณต้องการการอัปเดต issue ด้วย:
tools:
include: [list_issues, create_issue, update_issue, search_code]จากนั้นโหลดใหม่:
/reload-mcpPhase 3: เพิ่ม server ตัวที่สองด้วยนโยบายที่แตกต่างกัน
mcp_servers:
github:
command: "npx"
args: ["-y", "@modelcontextprotocol/server-github"]
env:
GITHUB_PERSONAL_ACCESS_TOKEN: "***"
tools:
include: [list_issues, create_issue, update_issue, search_code]
prompts: false
resources: false
filesystem:
command: "npx"
args: ["-y", "@modelcontextprotocol/server-filesystem", "/home/user/project"]ตอนนี้ Hermes สามารถรวมทั้งสองอย่างได้:
Inspect the local project files, then create a GitHub issue summarizing the bug you find.นั่นคือจุดที่ MCP มีพลัง: เวิร์กโฟลว์หลายระบบโดยไม่ต้องเปลี่ยนแปลง core ของ Hermes
คำแนะนำสำหรับการใช้งานที่ปลอดภัย
ควรใช้ allowlists สำหรับระบบที่อันตราย
สำหรับสิ่งใดก็ตามที่เกี่ยวข้องกับการเงิน, การติดต่อลูกค้า, หรือการทำลายข้อมูล:
- ใช้
tools.include - เริ่มต้นด้วยชุดที่เล็กที่สุดเท่าที่จะเป็นไปได้
ปิด utility ที่ไม่ได้ใช้
หากคุณไม่ต้องการให้ model เข้าถึง resources/prompts ที่ server ให้มา, ให้ปิดมัน:
tools:
resources: false
prompts: falseจำกัดขอบเขตของ server
ตัวอย่าง:
- filesystem server ที่ root อยู่ที่ไดเรกทอรีโปรเจกต์เดียว ไม่ใช่ home directory ทั้งหมด
- git server ที่ชี้ไปที่ repo เดียว
- internal API server ที่เปิดเผย tool ในลักษณะอ่านข้อมูลเป็นหลัก (read-heavy) โดยค่าเริ่มต้น
โหลดใหม่หลังการเปลี่ยนแปลง config
/reload-mcpทำสิ่งนี้หลังจากเปลี่ยนแปลง:
- include/exclude lists
- enabled flags
- resources/prompts toggles
- auth headers / env
การแก้ไขปัญหาตามอาการ (Troubleshooting by symptom)
"server เชื่อมต่อได้ แต่ tools ที่คาดหวังหายไป"
สาเหตุที่เป็นไปได้:
- ถูกกรองด้วย
tools.include - ถูกยกเว้นด้วย
tools.exclude - utility wrappers ถูกปิดด้วย
resources: falseหรือprompts: false - server ไม่ได้รองรับ resources/prompts จริงๆ
"server ถูกตั้งค่าแล้ว แต่ไม่มีอะไรโหลดเลย"
ตรวจสอบ:
enabled: falseไม่ได้ถูกทิ้งไว้ใน config- command/runtime มีอยู่จริง (
npx,uvx, ฯลฯ) - HTTP endpoint สามารถเข้าถึงได้
- auth env หรือ headers ถูกต้อง
"ทำไมฉันถึงเห็น tools น้อยกว่าที่ MCP server ประกาศ?"
เนื่องจาก Hermes ให้ความเคารพต่อ nโยบายและการลงทะเบียนที่คำนึงถึงความสามารถ (capability-aware registration) ของคุณในแต่ละ server นั่นเป็นสิ่งที่คาดหวังได้ และโดยปกติแล้วเป็นสิ่งที่พึงประสงค์
"ฉันจะลบ MCP server โดยไม่ลบ config ได้อย่างไร?"
ใช้:
enabled: falseสิ่งนี้จะเก็บ config ไว้ แต่ป้องกันการเชื่อมต่อและการลงทะเบียน
การตั้งค่า MCP เริ่มต้นที่แนะนำ
server แรกที่ดีสำหรับผู้ใช้ส่วนใหญ่:
- filesystem
- git
- GitHub
- fetch / documentation MCP servers
- internal API ที่แคบและเฉพาะเจาะจง
server แรกที่ไม่แนะนำ:
- ระบบธุรกิจขนาดใหญ่ที่มีการกระทำที่ทำลายข้อมูลจำนวนมากและไม่มีการกรอง
- สิ่งใดๆ ที่คุณไม่เข้าใจดีพอที่จะจำกัดขอบเขตได้
เอกสารที่เกี่ยวข้อง (Related docs)
extent analysis
TL;DR
The issue lacks sufficient information to provide a specific fix or workaround, so a minimal guidance will be provided to ensure safe and relevant advice.
Guidance
- Review the provided documentation: The issue body contains extensive documentation on various topics, including migrating from OpenClaw, using Hermes as a Python library, and setting up a team Telegram assistant. Reviewing this documentation may help identify the specific issue or provide guidance on how to resolve it.
- Check the troubleshooting sections: The documentation includes troubleshooting guides for common issues, such as "OpenClaw directory not found" and "No provider API keys found." Checking these sections may help resolve the issue.
- Verify configuration and setup: Ensure that the configuration and setup of Hermes and related tools are correct and follow the recommended guidelines.
Example
No code snippet can be provided due to the lack of specific information about the issue.
Notes
The issue body lacks sufficient information to provide a specific solution or workaround. The guidance provided is minimal and safe to ensure that no incorrect or misleading information is given.
Recommendation
Apply the guidance provided in the "Guidance" section to try to identify and resolve the issue. If the issue persists, consider seeking further assistance or providing more information to help diagnose the problem.
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