


























@@ -283,142 +283,146 @@ The default manifest enables the Slack App Home **Home** tab and subscribes to `
283283 <Tab title="Socket Mode (default)">
284284285285```json
286-"slash_commands": [
287- {
288-"command": "/new",
289-"description": "Start a new session",
290-"usage_hint": "[model]"
291- },
292- {
293-"command": "/reset",
294-"description": "Reset the current session"
295- },
296- {
297-"command": "/compact",
298-"description": "Compact the session context",
299-"usage_hint": "[instructions]"
300- },
301- {
302-"command": "/stop",
303-"description": "Stop the current run"
304- },
305- {
306-"command": "/session",
307-"description": "Manage thread-binding expiry",
308-"usage_hint": "idle <duration|off> or max-age <duration|off>"
309- },
310- {
311-"command": "/think",
312-"description": "Set the thinking level",
313-"usage_hint": "<level>"
314- },
315- {
316-"command": "/verbose",
317-"description": "Toggle verbose output",
318-"usage_hint": "on|off|full"
319- },
320- {
321-"command": "/fast",
322-"description": "Show or set fast mode",
323-"usage_hint": "[status|on|off]"
324- },
325- {
326-"command": "/reasoning",
327-"description": "Toggle reasoning visibility",
328-"usage_hint": "[on|off|stream]"
329- },
330- {
331-"command": "/elevated",
332-"description": "Toggle elevated mode",
333-"usage_hint": "[on|off|ask|full]"
334- },
335- {
336-"command": "/exec",
337-"description": "Show or set exec defaults",
338-"usage_hint": "host=<auto|sandbox|gateway|node> security=<deny|allowlist|full> ask=<off|on-miss|always> node=<id>"
339- },
340- {
341-"command": "/model",
342-"description": "Show or set the model",
343-"usage_hint": "[name|#|status]"
344- },
345- {
346-"command": "/models",
347-"description": "List providers/models",
348-"usage_hint": "[provider] [page] [limit=<n>|size=<n>|all]"
349- },
350- {
351-"command": "/help",
352-"description": "Show the short help summary"
353- },
354- {
355-"command": "/commands",
356-"description": "Show the generated command catalog"
357- },
358- {
359-"command": "/tools",
360-"description": "Show what the current agent can use right now",
361-"usage_hint": "[compact|verbose]"
362- },
363- {
364-"command": "/agentstatus",
365-"description": "Show runtime status, including provider usage/quota when available"
366- },
367- {
368-"command": "/tasks",
369-"description": "List active/recent background tasks for the current session"
370- },
371- {
372-"command": "/context",
373-"description": "Explain how context is assembled",
374-"usage_hint": "[list|detail|json]"
375- },
376- {
377-"command": "/whoami",
378-"description": "Show your sender identity"
379- },
380- {
381-"command": "/skill",
382-"description": "Run a skill by name",
383-"usage_hint": "<name> [input]"
384- },
385- {
386-"command": "/btw",
387-"description": "Ask a side question without changing session context",
388-"usage_hint": "<question>"
389- },
390- {
391-"command": "/side",
392-"description": "Ask a side question without changing session context",
393-"usage_hint": "<question>"
394- },
395- {
396-"command": "/usage",
397-"description": "Control the usage footer or show cost summary",
398-"usage_hint": "off|tokens|full|cost"
399- }
400- ]
286+{
287+"slash_commands": [
288+ {
289+"command": "/new",
290+"description": "Start a new session",
291+"usage_hint": "[model]"
292+ },
293+ {
294+"command": "/reset",
295+"description": "Reset the current session"
296+ },
297+ {
298+"command": "/compact",
299+"description": "Compact the session context",
300+"usage_hint": "[instructions]"
301+ },
302+ {
303+"command": "/stop",
304+"description": "Stop the current run"
305+ },
306+ {
307+"command": "/session",
308+"description": "Manage thread-binding expiry",
309+"usage_hint": "idle <duration|off> or max-age <duration|off>"
310+ },
311+ {
312+"command": "/think",
313+"description": "Set the thinking level",
314+"usage_hint": "<level>"
315+ },
316+ {
317+"command": "/verbose",
318+"description": "Toggle verbose output",
319+"usage_hint": "on|off|full"
320+ },
321+ {
322+"command": "/fast",
323+"description": "Show or set fast mode",
324+"usage_hint": "[status|on|off]"
325+ },
326+ {
327+"command": "/reasoning",
328+"description": "Toggle reasoning visibility",
329+"usage_hint": "[on|off|stream]"
330+ },
331+ {
332+"command": "/elevated",
333+"description": "Toggle elevated mode",
334+"usage_hint": "[on|off|ask|full]"
335+ },
336+ {
337+"command": "/exec",
338+"description": "Show or set exec defaults",
339+"usage_hint": "host=<auto|sandbox|gateway|node> security=<deny|allowlist|full> ask=<off|on-miss|always> node=<id>"
340+ },
341+ {
342+"command": "/model",
343+"description": "Show or set the model",
344+"usage_hint": "[name|#|status]"
345+ },
346+ {
347+"command": "/models",
348+"description": "List providers/models",
349+"usage_hint": "[provider] [page] [limit=<n>|size=<n>|all]"
350+ },
351+ {
352+"command": "/help",
353+"description": "Show the short help summary"
354+ },
355+ {
356+"command": "/commands",
357+"description": "Show the generated command catalog"
358+ },
359+ {
360+"command": "/tools",
361+"description": "Show what the current agent can use right now",
362+"usage_hint": "[compact|verbose]"
363+ },
364+ {
365+"command": "/agentstatus",
366+"description": "Show runtime status, including provider usage/quota when available"
367+ },
368+ {
369+"command": "/tasks",
370+"description": "List active/recent background tasks for the current session"
371+ },
372+ {
373+"command": "/context",
374+"description": "Explain how context is assembled",
375+"usage_hint": "[list|detail|json]"
376+ },
377+ {
378+"command": "/whoami",
379+"description": "Show your sender identity"
380+ },
381+ {
382+"command": "/skill",
383+"description": "Run a skill by name",
384+"usage_hint": "<name> [input]"
385+ },
386+ {
387+"command": "/btw",
388+"description": "Ask a side question without changing session context",
389+"usage_hint": "<question>"
390+ },
391+ {
392+"command": "/side",
393+"description": "Ask a side question without changing session context",
394+"usage_hint": "<question>"
395+ },
396+ {
397+"command": "/usage",
398+"description": "Control the usage footer or show cost summary",
399+"usage_hint": "off|tokens|full|cost"
400+ }
401+ ]
402+}
401403```
402404403405 </Tab>
404406 <Tab title="HTTP Request URLs">
405407 Use the same `slash_commands` list as Socket Mode above, and add `"url": "https://gateway-host.example.com/slack/events"` to every entry. Example:
406408407409```json
408-"slash_commands": [
409- {
410-"command": "/new",
411-"description": "Start a new session",
412-"usage_hint": "[model]",
413-"url": "https://gateway-host.example.com/slack/events"
414- },
415- {
416-"command": "/help",
417-"description": "Show the short help summary",
418-"url": "https://gateway-host.example.com/slack/events"
419- }
420-// ...repeat for every command with the same `url` value
421- ]
410+{
411+"slash_commands": [
412+ {
413+"command": "/new",
414+"description": "Start a new session",
415+"usage_hint": "[model]",
416+"url": "https://gateway-host.example.com/slack/events"
417+ },
418+ {
419+"command": "/help",
420+"description": "Show the short help summary",
421+"url": "https://gateway-host.example.com/slack/events"
422+ }
423+// ...repeat for every command with the same `url` value
424+ ]
425+}
422426```
423427424428 </Tab>
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。