nocobase-app-plugin-agent-sessions
できること
このスキルは、NocoBaseアプリにAgent Sessionsプラグインを追加します。各利用者が、自分のコンピューターで動くCodexやClaude Codeなどのコーディングエージェントと、ブラウザで会話できるようにします。
使う場面
- ✓アプリ内で、利用者が自分のコンピューター上のコーディングエージェントとチャットできるようにしたいとき。
- ✓アプリのレコードをエージェントのセッションにひも付け、利用者がそれを言及できるようにしたいとき。
- ✓利用者が自分のコンピューターをアプリに接続するページを設定したいとき。
スキルのリンク
https://github.com/nocobase/nocobase/blob/v3-develop/packages/plugins/app-plugin-agent-sessions/skills/nocobase-app-plugin-agent-sessions/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“私のNocoBaseアプリにAgent Sessionsプラグインを追加し、利用者が自分のコンピューター上のCodexとチャットできるようにしてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
AIはプラグインを登録し、そのページを設定し、アプリのレコードとセッションをひも付ける種類を定義します。各セッションは、その持ち主だけのものになります。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Agent Sessions App Plugin
Use this Skill when an App lets people hold conversations in its pages with the coding agents on their own computers, keeping the transcripts and the work those conversations create in the App. Do not use it for agents that run the team's work on runners; that is nocobase-app-plugin-agents.
The package README is the full reference: read it at node_modules/@nocobase/app-plugin-agent-sessions/README.md (in this repository, packages/plugins/app-plugin-agent-sessions/README.md).
Key rules
- A session is its owner's alone. Every route answers only the signed-in person about their own computers and sessions; there is no permission to grant and no administrator view.
- The App needs the authentication plugin and its CLI built with
@nocobase/app-cli-client, which hasacp start. Pass the CLI's name and install command toagentSessionsRoute({ cli, install })so the page can tell people how to connect a computer. - The plugin knows no business of its own. The App ties its records to sessions through
agentSessionsToken:registerLinkKind(kind, { resolve, start, search, progress })says how a record stands for a viewer, starts its work, finds the records a person mentions with#, and tells the agent how each is going (thesession workCLI command);registerProjects({ list })names the projects a session may work for;registerNotices({ send, settle })tells the App what the owner should hear of while not looking at a session (the agent waits for permission, a turn ended or failed), for its inbox;registerInstructions(text)tells every session's agent how the App wants it to work, such as recording development as issues instead of doing it, in its first message and again when the text changes. Do all of it from a service provider'sboot. - A link's
statusgivesicon(backlog,started,blocked,review,done,closed) andneedsYou(what it waits on the viewer for) besidelabelandtone, so the page draws the App's own status shapes and counts what waits.agentSessionsRoute({ cli, linkPanels: { <kind>: Component } })opens a kind's records beside the conversation (LinkPanelProps,?<kind>=<refId>in the address) instead of at theirhref. - The images people send are stored through the file plugin (
agentSessionImages) and served to their owner by the plugin; register the file plugin, or images stay in the transcript as sent. - A request that needs the bridge's answer, such as listing a computer's folders, gets it through the App's cache. An App of several instances needs a shared cache, such as Redis, or those requests time out.
resolveanswers only what the viewer may see, inviewer.locale.startacts as the viewer; refuse what they may not do there rather than here.- Sessions open with the agent's full access (its full-access mode, such as Codex
agent-full-accessor Claude CodebypassPermissions, or else every permission allowed by the bridge), in the folders the person allows for the computer: the whole home directory by default, or those they add by browsing it in "My computers".--rootonacp startis only a hard limit on the computer. Do not add a read-only default.
Setup
- Register the server plugin, and the client plugin with
{ routes: false }when the App places the page itself: spreadagentSessionsRoute({ cli, install })into the App's routes with its navigation entry. - In a service provider of the App, resolve
agentSessionsTokenfrom@nocobase/app-plugin-agent-sessions/serverand register the App's link kinds and tools. - Each person installs a coding agent and signs in to it, installs the App's CLI, signs in (
<cli> login --server <url>) and runs<cli> acp service installon their computer, which keeps it connected from every login (<cli> acp startconnects it until the terminal stops). The first registration gives the computer its own key, so it stays connected however long the sign-in lasts.
The page list has fold and expand controls, with per-viewer choices by width band. Hosts sharing a sidebar with another conversation kind can use the exported useSessionsLayout hook and pass the same layoutStoragePrefix in the route options. Compact embedded panel headers keep their own styling.
Verification
Hosts embedding AgentSessionsPanel can use attach.mode: 'replace' with a stable scope and a fresh update id to follow page context in a new draft. A new explicit entry starts another
よくある質問
エージェントはアプリのサーバー上で動きますか?
いいえ。各エージェントは、利用者本人のコンピューター上で動きます。
管理者は全員のセッションを見られますか?
いいえ。各セッションは持ち主だけに属し、管理者向けの表示はありません。
どのエージェントに対応していますか?
Codex、Claude Code、Gemini CLI、GitHub Copilot、Cursor、OpenCodeなどに対応していると、このスキルは説明しています。
詳細
作者による元の説明
Register the Agent Sessions plugin in a NocoBase App so people talk in the browser with the coding agents on their own computers (Codex, Claude Code, Gemini CLI, GitHub Copilot, Cursor, OpenCode and more, on macOS, Linux or Windows; `<cli> acp service install` or `acp start`), route its page, tie the App's records to sessions with a link kind (registerLinkKind) that people can also mention with `#`, let sessions work for the App's projects (registerProjects), tell the agents how to work (registerInstructions), notify the owner (registerNotices), work out why a computer is offline, an agent is
repo: nocobase/nocobase
人気
- GitHubのスター
- 25k
- ランキング
- #10086
- ライセンス
- —
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
nocobase-app-development
25kエージェントが、NocoBase 3の完全なビジネスアプリケーションのために、ページ、ルーティング、データ、権限、テストを作れるよう支援します。
shadcn
25kエージェントが、公式のドキュメントとレジストリを使い、Webプロジェクトの shadcn/uiコンポーネントを見つけ、追加し、修正し、スタイルを整えられるよう支援します。
nocobase-app-plugin-development
25kエージェントが、既存のNocoBase 3アプリの中で、サーバー、クライアント、データベース、登録の部分を含むプラグインを作成し、保守できるよう支援します。
nocobase-app-upgrade
25kエージェントが、NocoBaseのアプリを新しいテンプレートのリリースにアップグレードし、テンプレートの変更を取り込みつつ、あなた自身の作業を保てるよう支援します。
似ているスキル
add-model-provider
394k安全なセットアップコマンドで新しいAIモデルプロバイダーをOpenClawに接続し、APIキーを平文で残さず、ライブテストを行うようエージェントを支援します。
acp-router
394kClaude CodeやCursorなどのコーディングアシスタントに、OpenClaw経由でタスクを渡し、その作業がそのツール内で行われるようエージェントを支援します。
browser-automation
394kログイン、タブ、応答しなくなったページからの復旧を含め、Webページを段階的に操作するようエージェントに教えます。