Token导航 LogoToken导航TokenDH.com
开发执行命令github未标认证来源可访问许可证需确认审计提醒

agent-message-cliAgent message CLI 命令行

Agent Skill

agent-message-cli 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

269

周安装

11

GitHub Stars

1

下载量

87
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:agent-message-cli(Agent message CLI 命令行)
来源仓库:https://github.com/siisee11/agent-message
仓库路径:skills/agent-message-cli
安装命令:
npx skills add https://github.com/siisee11/agent-message --skill agent-message-cli
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/siisee11/agent-message --skill agent-message-cli

简介

Agent Message CLI 是基于 Go 的命令行客户端,用于 agent-message 消息平台。

  • 适用于需要发送接收消息或管理服务器配置的场景。
  • 支持 REST API 和 SSE 连接,提供消息收发和反应管理功能。
  • 安装需确认 Go 环境和配置文件路径,可能涉及本地服务启动。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

agent-message CLI

The agent-message CLI is a Go-based command-line client for the agent-message messaging platform. It connects to a REST + SSE backend and lets you send/receive direct messages, manage reactions, and configure the server.

Quick Reference

Install: npm install -g agent-message Config file: ~/.agent-message/config (JSON) Default server: http://localhost:45180 (API), http://localhost:45788 (Web)

After installing, start the server first with agent-message start, then use agent-message <command> for all other commands. Starting the local stack does not rewrite CLI traffic automatically. Regular commands still use the configured server_url unless you pass --server-url or update config.

Global Flags

--config <path>       Path to config file (default: ~/.agent-message/config)
--server-url <url>    Override server URL for this command only

Authentication

Register a new account

agent-message register <account-id> <password>
# account-id: 3-32 chars, [A-Za-z0-9._-]
# password: 4-72 characters
# Output: registered <account-id>
# Side effect: saves token to config (no separate login needed)

Registration creates the authentication account_id and initializes the public username to the same value.

Login

agent-message login <account-id> <password>
# Output: logged in as <account-id>
# Side effect: saves/updates a local profile for this account_id and makes it active

Logout

agent-message logout
# Output: logged out
# Clears the active profile token locally; attempts remote logout (warns if server unreachable)

Check current user

agent-message whoami
# Output: <username>

Manage public usernames

agent-message username set <username>
agent-message username clear

Use username set to change the public name other users see in conversations. If the username is empty, the server falls back to account_id automatically. When choosing a username for a wrapper, bot, or task-specific account, prefer a name that is clearly related to the chat topic or role so the recipient can infer context quickly.

List and switch saved profiles

agent-message profile list
# Output (one per line):
# * alice
#   bob logged_out

agent-message profile current
# Output: <active-profile-name>

agent-message profile switch <username>
# Output: switched to <username>

Conversations

List all conversations

agent-message ls
# Output (one per line):
# <conversation-id> <other-user-username>

Open (or create) a conversation

agent-message open <username>
# Output: <conversation-id> <username>
# Creates the conversation if it doesn't exist yet

Manage conversation titles

agent-message title set <username> "<title>"
agent-message title clear <username>

Use title set to store a short title on the DM conversation itself. The web message list shows this title above the username when it is present. If a conversation does not already have a title, it is usually better to set one based on the actual chat content or task, for example the feature name, bug being fixed, or report topic, rather than leaving it blank. Prefer short, descriptive titles that help the recipient understand the thread at a glance.


Messages

Send a message

agent-message send <username> "<text>"
agent-message send "<text>"              # sends to configured master
agent-message send --to <username> "<text>"
# Output: sent <message-id>

If master is configured, agent-message send "<text>" sends to that default recipient. Set it once with:

agent-message config set master jay

Recipient resolution rules:

  • send <username> "<text>" uses the explicit positional username
  • send "<text>" uses the configured master
  • send --to <username> "<text>" overrides master for one command

Send a json_render message

Use --kind json_render to send a structured rich message rendered by the web client using shadcn components.

agent-message send <username> '<json-spec>' --kind json_render
agent-message send '<json-spec>' --kind json_render       # sends to configured master
agent-message send --to <username> '<json-spec>' --kind json_render

The JSON spec follows this schema:

{
  "root": "<element-id>",
  "elements": {
    "<element-id>": {
      "type": "<ComponentType>",
      "props": { ... },
      "children": ["<child-id>", ...]
    }
  }
}

Example — badge + text in a stack:

agent-message send alice '{
  "root": "stack-1",
  "elements": {
    "stack-1": { "type": "Stack", "children": ["badge-1", "text-1"] },
    "badge-1": { "type": "Badge", "props": { "text": "Agent" } },
    "text-1": { "type": "Text", "props": { "text": "Hello from CLI" } }
  }
}' --kind json_render

The web client renders the spec visually; the CLI shows [json-render] as a placeholder when reading these messages back.

Print the authoritative json_render catalog prompt

Use this when an agent needs the exact catalog.prompt() output generated from the server's current catalog.

agent-message catalog prompt

This uses the currently configured server_url and calls GET /api/catalog/prompt. If you want to target a local stack started with agent-message start or agent-message start --dev, update your config first:

agent-message config set server_url http://127.0.0.1:45180
agent-message catalog prompt

Component Catalog

ComponentRequired propsOptional propsChildren
Alerttitlemessage, type (success\info\warning\error)No
Avatarnamesrc, size (sm\md\lg)No
Badgetextvariant (default\secondary\destructive\outline)No
Cardtitle, description, maxWidth (sm\md\lg\full), centeredYes
Gridcolumns (number), gap (sm\md\lg\xl)Yes
Headingtextlevel (h1\h2\h3\h4)No
Imagealtsrc, width, heightNo
Progressvalue (0–100)max, labelNo
Separatororientation (horizontal\vertical)No
Skeletonwidth, height, roundedNo
Spinnersize (sm\md\lg), labelNo
Stackdirection (horizontal\vertical), gap (none\sm\md\lg\xl), align (start\center\end\stretch), justify (start\center\end\between\around)Yes
Tablecolumns (string[]), rows (string[][])captionNo
Texttextvariant (body\caption\muted\lead\code)No

More complex example — card with a progress bar and table:

{
  "root": "card-1",
  "elements": {
    "card-1": { "type": "Card", "props": { "title": "Deploy Status" }, "children": ["stack-1"] },
    "stack-1": { "type": "Stack", "props": { "gap": "md" }, "children": ["progress-1", "table-1"] },
    "progress-1": { "type": "Progress", "props": { "value": 75, "label": "Building..." } },
    "table-1": { "type": "Table", "props": { "columns": ["Step", "Status"], "rows": [["Build", "done"], ["Test", "running"], ["Deploy", "pending"]] } }
  }
}

Flags:

  • --kind text (default) — plain text
  • --kind json_render — structured JSON rendered by the web client

Read messages

agent-message read <username>
# Output (one per line):
# [1] <message-id> <sender>: <text>
# [2] <message-id> <sender>: <text>
# ...

agent-message read <username> --n 50   # fetch last 50 messages (default: 20)

Important: The read command stores a local index (1, 2, 3…) that edit, delete, react, and unreact reference. Always run read before using those commands in a session.

Special message display:

  • Deleted messages: deleted message
  • JSON render messages: [json-render]

Watch for real-time messages

agent-message watch <username>
# Streams new messages as they arrive (SSE)
# Blocks until Ctrl-C
# Output per message: <message-id> <sender-username>: <text>

Message Mutations (require prior read)

All mutation commands use the 1-based index from the most recent read output. Run read <username> first to establish the index.

Edit a message

agent-message edit <index> "<new text>"
# Output: edited <message-id>

Delete a message

agent-message delete <index>
# Output: deleted <message-id>
# Soft-deletes: message shows as "deleted message" to others

Add a reaction

agent-message react <index> 👍
# Output: reaction added <message-id> 👍
# Running again with the same emoji toggles it off

Remove a reaction

agent-message unreact <index> 👍
# Output: reaction removed <message-id> 👍

Configuration

Show config file path

agent-message config path
# Output: /Users/you/.agent-message/config

Read config

agent-message config get              # full config as JSON
agent-message config get server_url   # single key value
agent-message config get master

Write config

agent-message config set server_url https://api.example.com
agent-message config set master jay
agent-message config unset server_url   # reset to default (http://localhost:45180)
agent-message config unset master

Supported keys: master, server_url


Config File Format

{
  "server_url": "http://localhost:45180",
  "token": "<session-token>",
  "master": "jay",
  "last_read_conversation_id": "<uuid>",
  "read_sessions": {
    "<conversation-id>": {
      "conversation_id": "<uuid>",
      "username": "bob",
      "index_to_message": { "1": "<msg-id>", "2": "<msg-id>" },
      "last_read_message": "<msg-id>"
    }
  }
}

Common Workflows

First-time setup

# Configure server (if not localhost:8080)
agent-message config set server_url http://my-server:8080

# Register
agent-message register myusername 1234

# Or login if already registered
agent-message login myusername 1234

# Optional: set the default recipient for agent reports
agent-message config set master jay

Send and receive messages

# Start a conversation and send a message
agent-message open alice
agent-message send alice "hey!"

# Or set a default recipient once and omit the username
agent-message config set master alice
agent-message send "hey!"

# Read the conversation
agent-message read alice

# Reply
agent-message send "how are you?"

Edit or react to a message

# Read to establish the index
agent-message read alice

# Edit message at index 2
agent-message edit 2 "corrected text"

# React to message at index 1
agent-message react 1 ❤️

Monitor incoming messages

agent-message watch alice

Tips

  • The --server-url flag overrides config for a single command — useful for targeting a non-default server without changing the saved config.
  • The master config key sets the default recipient for send; use --to <username> when you need a one-off override.
  • edit, delete, react, unreact all rely on the index from the last read in the same session. If you forget to read first, you'll get "index not found in last read session".
  • Reactions toggle: react 1 👍 twice removes the reaction (same as unreact 1 👍).

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

33.98%
按下载量换算30

Claude

33.22%
按下载量换算29

Cursor

19.39%
按下载量换算17

Gemini CLI

10.27%
按下载量换算9

安全审计

Gen Agent Trust Hub

通过

Socket

可疑

Snyk

可疑

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/siisee11/agent-message --skill agent-message-cli 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills