第 8 步:聊天与日志
在终端中与你的 Agent 对话,并查看它正在做什么。
聊天和日志通过 Tailscale 连接到你的 Agent。请保持电脑上的 Tailscale 处于 已连接 状态。
查看你的 Agent
officeclaws agentsID NAME AVATAR STATUS
2b7e9c1a-… Mona 1 online
Agent 运行正常时,STATUS 为 online。offline 或 error 表示无法连接到它。参见 故障排查。
交互式聊天
officeclaws chatChatting with agent 2b7e9c1a-… — type a message, Ctrl-D to exit.
you> What can you do?
· web_search
I can research topics, write and edit text, ...
you>
- 输入消息并按 Enter。
- 以
·开头的行显示 Agent 工作时正在使用的工具。 - 按 Ctrl-D 退出(Windows 上按 Ctrl-Z 然后 Enter)。
发送单条消息
适合在脚本中使用:
officeclaws chat -m "Summarize today's top tech news in 5 bullets"选择 Agent
除非另行指定,所有命令都会使用你的第一个 Agent。要选择其他 Agent,请传入它的 ID:
officeclaws chat --agent 2b7e9c1a-…查看日志
日志显示 Agent 内部正在做什么。出现问题时,它们很有帮助。
officeclaws logs # last 200 lines
officeclaws logs --lines 500 # last 500 lines (max 1000)
officeclaws logs --follow # live stream, Ctrl-C to stop