/pachca:pachca-ai-agentfrom Pachca
Designs and debugs an AI agent bot in Pachca that responds to @mentions and DMs, reads thread context, shows a thinking indicator, and formats long replies as .md cards.
Ships in Pachca. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
An AI agent in Pachca is a bot. Employees call it by an @ mention in a chat
or thread or write to it in a DM. It learns about messages from the bot's
outgoing webhook, reads the context, does the work through the API and answers
in the same place with the bot token. The agent does the work; the employee who
called it is responsible for the result.
Not this skill:
pachca (connection), pachca-messaging, pachca-search; one that watches a
thread from that session and replies as messages come → pachca-watch-thread.pachca-messaging.
A bot cannot make them at all (see "A bot cannot draft").pachca-bots.pachca-oauth.| Who works and where | Use |
|---|---|
| The agent lives in Pachca: called by @mention in a chat or thread, or written to in a DM | Bot (this skill) |
| An employee works from a program with an agent: Claude, Cursor, VS Code | MCP server (pachca) |
| An agent runs commands in a terminal and saves context | CLI |
| You write your own integration or service | API and SDK (pachca-api) |
All paths call the same API methods with the same checks: token scopes, the token owner's role, the workspace plan and chat membership.
What actually differs:
Authorization
header, so a bot agent whose runtime speaks MCP can make its calls through
https://mcp.pachca.com/mcp. Messages still reach the agent through the
outgoing webhook (or the event history, polled or as a live stream).pachca-bots).message_new) in the «Любые сообщения» (any
messages) mode. There is no "mentions only" mode: the agent gets every
message and decides itself whether it is addressed. A new bot listens only to
commands and its command list is empty, so until you pick the mode the agent
hears nothing.user_id with the bot's id. Otherwise the agent answers itself.pachca-bots.messages:create (reply), threads:create
(reply as a thread), reactions:write (thinking reaction), messages:read
and chats:read (history and members), profile:read (own id, name and
nickname), users:read (tell bots from employees), files:read
(attachments) and uploads:write (the .md report; the MCP server checks it
too when it uploads a file passed as content). A token made on the bot's
API tab starts with no scopes: tick each one. Add the scopes the agent's
work needs on top.agent-thinking with an animated icon, created by an
employee in the Pachca app: there is no API method for it (see "Show that
you are working").The bot acts as a member with the «Сотрудник» role. Chat events come only from chats and threads where it is a member — from an open conversation or channel too, only if it was added.
@ mention in the thread, or added as a thread
member: sees the thread and its parent message, not the chat history. A
mention brings in only a public bot, and only when an employee (not a guest)
writes it with «Добавить @упоминаемых в тред» on under the input box. A
non-public bot is not added by a mention, even by its creator or an admin, and
a new bot is non-public. Make the agent public, or have someone allowed under
«Кто может добавлять бота в чаты» add it as a thread member
(pachca_add_members, pachca members add, with the thread's chat_id).
With «Использовать сквозные треды» off in the workspace settings, a mention
does not bring in a bot that is not in the parent chat.thread.message_id is null, but it has its own chat_id for history and
members), a separate place for a dialog with the agent with only the needed
participants (pachca_create_unattached_thread, pachca threads create).Details and the add-to-chat errors: Bot access.
Short version; the full procedure with the event fields, the "is it for me" rules and the reply table is in references/handling-a-mention.md.
200 at once and do the rest in the
background: Pachca waits 5 seconds and does not resend an event after a
timeout. Drop your own messages.entity_type: "user"), a mention of the
bot in content, a command, a reply to one of the agent's messages
(parent_message_id), or a continuation (a thread whose members are the bot
and one employee). A mention made in the Pachca app arrives as @ plus the
bot's name (first_name, and last_name when set, from the own-profile
call); one sent through the API arrives as @nickname. Match both as whole
words outside code.agent-thinking reaction on the message at once.chat_id, the parent
message by thread.message_id, the replied-to message by
parent_message_id, attachments, members and topic from the chat info.| Action | MCP tool | CLI |
|---|---|---|
Own id, name and nickname | pachca_get_my_card | pachca profile get |
| Author: bot or employee | pachca_get_user | pachca users get |
| Thread history | pachca_list_chat_messages | pachca messages list |
| Parent or replied-to message | pachca_get_message | pachca messages get |
| Attachment contents | pachca_download_file | pachca files get |
| Members and topic | pachca_get_chat | pachca chats get |
| Thinking reaction on and off | pachca_add_reaction, pachca_remove_reaction | pachca reactions add, pachca reactions remove |
| Thread under a chat message | pachca_create_thread | pachca threads add |
| Reply | pachca_send_message | pachca messages create |
An employee (not a guest) creates a custom reaction named agent-thinking once
in the Pachca app and uploads an animated icon for it. The API has no method for
creating custom reactions, and each workspace needs its own. When the agent puts
it on a message, Pachca shows a live timer instead of the counter, so the
employee sees how long the agent has been working. The timer runs up to 5 minutes.
name set to agent-thinking, without colons: custom reaction
names never have them. code is required too: once name is set, name
picks the reaction and any non-empty code goes, for example ⏳. The
Add reaction page describes
standard emoji, so its code rule and its :+1: example for name do not
apply here.404, the same
status as for a message the bot cannot see. Treat it as "no indicator" and
keep working: do not retry and do not abort the task.name and any non-empty code
(Delete reaction): without
name the method looks up a standard emoji by code and does not find the
custom reaction.@nickname or <@user_id> in a thread makes
the employee a thread member, and they see the thread even without access to
the source chat. To only refer to someone, pass skip_invite_mentions: true.
If the workspace has «Использовать сквозные треды» turned off, a mention adds
only members of the source chat, and the flag has no effect.-,
1. and | as is), a quote loses its >, a heading becomes a bold line. A
report with structure goes as an .md file →
references/rich-answers.md.403, and the employee's authorization of the bot
cannot add the drafts scopes. When a mistake is expensive, send the text to
the caller as a clearly marked proposal and let them send it. For "remind the
team on Monday", keep your own scheduler or create a reminder. Details:
references/drafts-and-scheduled.md. An
agent with the employee's own sign-in → pachca-messaging.public: true) or a
thread under one also every employee whose role is not guest or
multi_guest. A person sees a chat if their id is in its member_ids
(pachca_get_chat), or if it is an open conversation or channel
(public: true) and their role is not guest or multi_guest. If they
cannot see it, or you cannot check, say that you cannot share it here instead
of quoting it.pachca-oauth.thread.message_chat_id (the parent chat). Use the
event's chat_id: a bot called only into the thread cannot see the parent chat.thread.message_id is null
and the context is only in the thread's messages.entity_type: "user", employee's id).@nickname in content, or matching it as a plain
substring. A mention made in the app arrives as @ plus the bot's name;
@nickname comes from messages sent through the API. A substring test also
fires on a longer nickname (@kai_bot inside @kai_bot_team), on a mention
inside inline code or a code block, which Pachca does not count, and on a
forwarded message, whose mentions call nobody. Rules:
references/handling-a-mention.md.message_update, not message_new.bot: true with the user info method.403; the employee's
authorization of the bot does not add the drafts scopes either..html with scripts or external resources — they are stripped; see
references/rich-answers.md.agent-thinking.md cards, .html previewWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
pachca-bot, ai-agent, bot-vs-mcp, thread-context, thinking-indicator
9 skills in this plugin
/pachcaВход в Пачку (Pachca) для агента: подключить агента или MCP-клиента (MCP через браузер или токеном, плагин, CLI), проверить подключение, выбрать токен, разобрать отказ 401/403 инструмента или CLI и отсутствие инструмента (роль, тариф, тип токена, участие в чате). Когда: «подключи Пачку», «настрой MCP Пачки», «войди в Пачку через CLI», «каким токеном подключить агента», «экран входа MCP», «агент получил 403 insufficient_scope», «нет инструмента Пачки (экспорт, журнал аудита)», «что умеет Пачка», "connect Pachca", "set up Pachca MCP", "Pachca CLI login", "which token for my agent or MCP client", "MCP sign-in screen", "MCP tool or CLI returned 401/403", "a Pachca tool is missing". Not for: writing messages → pachca-messaging; search and summaries → pachca-search; administration, who may create tokens → pachca-admin; building a bot → pachca-bots; an agent living in Pachca → pachca-ai-agent; OAuth for employees → pachca-oauth; a token for a script or service, 401/403 in your own code → pachca-api./pachca-adminАдминистрирование пространства Пачки: сотрудники (пригласить, сменить роль, приостановить, удалить), теги и участники чатов, доступ к API и «Все токены», журнал аудита, экспорт, DLP, безопасный контур и шифрование, и что требует владельца, администратора или «Корпорации». Load before a tool call that changes an employee: delete only after a yes to your question. Когда: «пригласи сотрудника», «уволь / удали сотрудника», «сделай администратором», «добавь в тег», «добавь / удали участника чата», «кто в закрытом канале, где я не состою», «доступ к API ограничен», «отзови доступ сотрудника к API», «журнал аудита», «выгрузи переписку», «правило DLP», "invite an employee", "offboard a user", "change role", "add or remove chat members", "let employees create tokens", "export messages". Not for: a missing tool or a general 401/403 → pachca; who is in a tag or chat → pachca-search; writing messages → pachca-messaging; a bot's own token → pachca-bots; an app acting for employees → pachca-oauth; scripts → pachca-api.npx claudepluginhub pachca/openapi --plugin pachcaOther plugins' skills for the same job