Soul-driven AI agent with permission-hardened tools, token budgets, and multi-channel access. Runs 24/7 from CLI, Telegram or More.
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([["8738"],{3771(e,d,n){n.r(d),n.d(d,{metadata:()=>a,default:()=>h,frontMatter:()=>t,contentTitle:()=>i,toc:()=>o,assets:()=>c});var a=JSON.parse('{"id":"integrations/kanban-boards","title":"Kanban Boards (Beta)","description":"Kanban Boards are a beta feature in v1.1.9. The data model and API surface are stable, but expect UI refinements in subsequent releases. The web dashboard labels this section \\"Kanban Boards (Beta mode)\\".","source":"@site/docs/integrations/kanban-boards.mdx","sourceDirName":"integrations","slug":"/integrations/kanban-boards","permalink":"/docs/integrations/kanban-boards","draft":false,"unlisted":false,"editUrl":"https://github.com/cosmicstack-labs/mercury-agent/tree/main/website/docs/integrations/kanban-boards.mdx","tags":[],"version":"current","frontMatter":{"title":"Kanban Boards (Beta)","sidebar_label":"Kanban Boards"},"sidebar":"docsSidebar","previous":{"title":"Mercury Bots \u2014 The Fleet","permalink":"/docs/integrations/mercury-bots"},"next":{"title":"GitHub Companion","permalink":"/docs/integrations/github-companion"}}'),s=n(74848),r=n(28453);let t={title:"Kanban Boards (Beta)",sidebar_label:"Kanban Boards"},i="Kanban Boards (Beta)",c={},o=[{value:"Cards",id:"cards",level:2},{value:"Status meanings",id:"status-meanings",level:3},{value:"Web Dashboard UI",id:"web-dashboard-ui",level:2},{value:"Board list (<code>/board</code>)",id:"board-list-board",level:3},{value:"Board view (<code>/board/:boardId</code>)",id:"board-view-boardboardid",level:3},{value:"Agent Execution",id:"agent-execution",level:2},{value:"Cascade execution",id:"cascade-execution",level:3},{value:"Smart execution",id:"smart-execution",level:3},{value:"Board Context",id:"board-context",level:2},{value:"API Surface",id:"api-surface",level:2},{value:"Boards",id:"boards",level:3},{value:"Cards",id:"cards-1",level:3},{value:"Comments, attachments, labels, hierarchy",id:"comments-attachments-labels-hierarchy",level:3},{value:"Context",id:"context",level:3},{value:"Feedback (<code>question</code> status)",id:"feedback-question-status",level:3},{value:"Real-time updates (SSE)",id:"real-time-updates-sse",level:3}];function l(e){let d={code:"code",em:"em",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",ol:"ol",p:"p",pre:"pre",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",ul:"ul",...(0,r.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(d.header,{children:(0,s.jsx)(d.h1,{id:"kanban-boards-beta",children:"Kanban Boards (Beta)"})}),"\n",(0,s.jsxs)(d.p,{children:[":::caution Beta\nKanban Boards are a beta feature in v1.1.9. The data model and API surface are stable, but expect UI refinements in subsequent releases. The web dashboard labels this section ",(0,s.jsx)(d.strong,{children:'"Kanban Boards (Beta mode)"'}),".\n:::"]}),"\n",(0,s.jsxs)(d.p,{children:["Mercury's Kanban system provides persistent task management with agent-driven execution. Boards are stored in SQLite (with JSON fallback) and accessible via the Web Dashboard (",(0,s.jsx)(d.code,{children:"/board"}),") or the REST/SSE API."]}),"\n",(0,s.jsx)(d.h2,{id:"cards",children:"Cards"}),"\n",(0,s.jsxs)(d.table,{children:[(0,s.jsx)(d.thead,{children:(0,s.jsxs)(d.tr,{children:[(0,s.jsx)(d.th,{children:"Property"}),(0,s.jsx)(d.th,{children:"Description"})]})}),(0,s.jsxs)(d.tbody,{children:[(0,s.jsxs)(d.tr,{children:[(0,s.jsx)(d.td,{children:"Title"}),(0,s.jsx)(d.td,{children:"Card name"})]}),(0,s.jsxs)(d.tr,{children:[(0,s.jsx)(d.td,{children:"Description"}),(0,s.jsx)(d.td,{children:"Markdown-rendered task description"})]}),(0,s.jsxs)(d.tr,{children:[(0,s.jsx)(d.td,{children:"Status"}),(0,s.jsxs)(d.td,{children:[(0,s.jsx)(d.code,{children:"pending"}),", ",(0,s.jsx)(d.code,{children:"running"}),", ",(0,s.jsx)(d.code,{children:"paused"}),", ",(0,s.jsx)(d.code,{children:"done"}),", ",(0,s.jsx)(d.code,{children:"failed"}),", ",(0,s.jsx)(d.code,{children:"question"})]})]}),(0,s.jsxs)(d.tr,{children:[(0,s.jsx)(d.td,{children:"Priority"}),(0,s.jsxs)(d.td,{children:[(0,s.jsx)(d.code,{children:"critical"}),", ",(0,s.jsx)(d.code,{children:"high"}),", ",(0,s.jsx)(d.code,{children:"normal"}),", ",(0,s.jsx)(d.code,{children:"low"})]})]}),(0,s.jsxs)(d.tr,{children:[(0,s.jsx)(d.td,{children:"Labels"}),(0,s.jsx)(d.td,{children:"Arbitrary tags for categorization"})]}),(0,s.jsxs)(d.tr,{children:[(0,s.jsx)(d.td,{children:"Comments"}),(0,s.jsx)(d.td,{children:"Threaded comments with author tracking"})]}),(0,s.jsxs)(d.tr,{children:[(0,s.jsx)(d.td,{children:"Attachments"}),(0,s.jsx)(d.td,{children:"Linked files (stored on disk, downloadable)"})]}),(0,s.jsxs)(d.tr,{children:[(0,s.jsx)(d.td,{children:"Dependencies"}),(0,s.jsx)(d.td,{children:"Blocks/blocked-by relationships"})]}),(0,s.jsxs)(d.tr,{children:[(0,s.jsx)(d.td,{children:"Parent\u2013child"}),(0,s.jsx)(d.td,{children:"Hierarchical card grouping"})]})]})]}),"\n",(0,s.jsx)(d.h3,{id:"status-meanings",children:"Status meanings"}),"\n",(0,s.jsxs)(d.table,{children:[(0,s.jsx)(d.thead,{children:(0,s.jsxs)(d.tr,{children:[(0,s.jsx)(d.th,{children:"Status"}),(0,s.jsx)(d.th,{children:"Meaning"})]})}),(0,s.jsxs)(d.tbody,{children:[(0,s.jsxs)(d.tr,{children:[(0,s.jsx)(d.td,{children:(0,s.jsx)(d.code,{children:"pending"})}),(0,s.jsx)(d.td,{children:"Not yet picked up \u2014 waiting to be run"})]}),(0,s.jsxs)(d.tr,{children:[(0,s.jsx)(d.td,{children:(0,s.jsx)(d.code,{children:"running"})}),(0,s.jsx)(d.td,{children:"The agent is actively working on it"})]}),(0,s.jsxs)(d.tr,{children:[(0,s.jsx)(d.td,{children:(0,s.jsx)(d.code,{children:"paused"})}),(0,s.jsx)(d.td,{children:"Execution paused (often after token-budget exhaustion or manual halt)"})]}),(0,s.jsxs)(d.tr,{children:[(0,s.jsx)(d.td,{children:(0,s.jsx)(d.code,{children:"done"})}),(0,s.jsx)(d.td,{children:"Completed successfully"})]}),(0,s.jsxs)(d.tr,{children:[(0,s.jsx)(d.td,{children:(0,s.jsx)(d.code,{children:"failed"})}),(0,s.jsx)(d.td,{children:"The agent could not complete the card"})]}),(0,s.jsxs)(d.tr,{children:[(0,s.jsx)(d.td,{children:(0,s.jsx)(d.code,{children:"question"})}),(0,s.jsx)(d.td,{children:"The agent has a clarifying question and is awaiting human feedback"})]})]})]}),"\n",(0,s.jsxs)(d.p,{children:["The ",(0,s.jsx)(d.code,{children:"question"})," status is what powers the ",(0,s.jsx)(d.strong,{children:"Feedback"})," loop \u2014 when the agent needs input, it parks the card in ",(0,s.jsx)(d.code,{children:"question"})," and waits for you to respond from the UI or via ",(0,s.jsx)(d.code,{children:"POST /api/boards/:id/feedback/:feedbackId/respond"}),"."]}),"\n",(0,s.jsx)(d.h2,{id:"web-dashboard-ui",children:"Web Dashboard UI"}),"\n",(0,s.jsxs)(d.h3,{id:"board-list-board",children:["Board list (",(0,s.jsx)(d.code,{children:"/board"}),")"]}),"\n",(0,s.jsxs)(d.ul,{children:["\n",(0,s.jsxs)(d.li,{children:["Header reads ",(0,s.jsx)(d.strong,{children:'"Kanban Boards (Beta mode)"'}),"."]}),"\n",(0,s.jsx)(d.li,{children:"Create new boards, generate boards from a natural-language description, archive, delete, activate / deactivate."}),"\n"]}),"\n",(0,s.jsxs)(d.h3,{id:"board-view-boardboardid",children:["Board view (",(0,s.jsx)(d.code,{children:"/board/:boardId"}),")"]}),"\n",(0,s.jsxs)(d.ul,{children:["\n",(0,s.jsxs)(d.li,{children:[(0,s.jsx)(d.strong,{children:"Columns"})," \u2014 one per status, each scrollable independently (Trello-style). The whole row scrolls horizontally if you have many statuses."]}),"\n",(0,s.jsxs)(d.li,{children:[(0,s.jsx)(d.strong,{children:"Cards"})," \u2014 drag and drop a card between columns to change status. The drag handler calls ",(0,s.jsx)(d.code,{children:"PATCH /api/boards/:boardId/cards/:cardId"})," with the new status."]}),"\n",(0,s.jsxs)(d.li,{children:[(0,s.jsx)(d.strong,{children:"Description rendering"})," \u2014 card descriptions are full Markdown (lists, code, headings). Descriptions longer than 280 characters are truncated with a ",(0,s.jsx)(d.strong,{children:'"See more"'})," link.","\n",(0,s.jsxs)(d.ul,{children:["\n",(0,s.jsx)(d.li,{children:'Clicking the truncated text (or "See more") opens the full description in a modal with scrolling and full Markdown.'}),"\n",(0,s.jsxs)(d.li,{children:["The ",(0,s.jsx)(d.strong,{children:"pencil icon"})," next to the description is the only way to enter edit mode \u2014 clicking the description body itself just opens the read-only modal. This prevents accidental edits."]}),"\n"]}),"\n"]}),"\n",(0,s.jsxs)(d.li,{children:[(0,s.jsx)(d.strong,{children:"AI Plan"})," \u2014 click ",(0,s.jsx)(d.em,{children:"Plan"})," on a card and Mercury drafts an execution plan (",(0,s.jsx)(d.code,{children:"GET /api/boards/:id/execution-plan"}),") you can review before running. Smart execution runs the plan card-by-card respecting dependencies."]}),"\n",(0,s.jsxs)(d.li,{children:[(0,s.jsx)(d.strong,{children:"Run / Halt"})," \u2014 per-card ",(0,s.jsx)(d.code,{children:"Run"})," (\u25B6) and ",(0,s.jsx)(d.code,{children:"Halt"})," (\u25A0) buttons. Board-level ",(0,s.jsx)(d.code,{children:"Run all"})," and ",(0,s.jsx)(d.code,{children:"Halt all"})," buttons in the toolbar."]}),"\n",(0,s.jsxs)(d.li,{children:[(0,s.jsx)(d.strong,{children:"Feedback"})," \u2014 when a card is in ",(0,s.jsx)(d.code,{children:"question"})," status, a callout appears at the top with the question text and a response field."]}),"\n"]}),"\n",(0,s.jsx)(d.h2,{id:"agent-execution",children:"Agent Execution"}),"\n",(0,s.jsx)(d.p,{children:"When a card is run, the agent autonomously processes the task:"}),"\n",(0,s.jsxs)(d.ol,{children:["\n",(0,s.jsxs)(d.li,{children:["Card status moves to ",(0,s.jsx)(d.code,{children:"running"}),"."]}),"\n",(0,s.jsxs)(d.li,{children:["Agent executes the described task within a configurable ",(0,s.jsx)(d.strong,{children:"token budget"}),"."]}),"\n",(0,s.jsxs)(d.li,{children:["On completion the status moves to ",(0,s.jsx)(d.code,{children:"done"})," and a comment is appended with results."]}),"\n",(0,s.jsxs)(d.li,{children:["If the token budget is exhausted, execution auto-pauses (",(0,s.jsx)(d.code,{children:"paused"}),")."]}),"\n",(0,s.jsxs)(d.li,{children:["If the agent needs human input, status moves to ",(0,s.jsx)(d.code,{children:"question"})," and a feedback record is created."]}),"\n"]}),"\n",(0,s.jsx)(d.h3,{id:"cascade-execution",children:"Cascade execution"}),"\n",(0,s.jsxs)(d.p,{children:[(0,s.jsx)(d.code,{children:"POST /api/boards/:boardId/cards/:cardId/cascade"})," runs the selected card and recursively all of its dependents in dependency order."]}),"\n",(0,s.jsx)(d.h3,{id:"smart-execution",children:"Smart execution"}),"\n",(0,s.jsxs)(d.p,{children:[(0,s.jsx)(d.code,{children:"POST /api/boards/:id/smart-execute"})," walks the whole board, picking up ",(0,s.jsx)(d.code,{children:"pending"})," cards whose dependencies are ",(0,s.jsx)(d.code,{children:"done"}),", until either the board is fully ",(0,s.jsx)(d.code,{children:"done"})," or it hits an unresolved blocker."]}),"\n",(0,s.jsx)(d.h2,{id:"board-context",children:"Board Context"}),"\n",(0,s.jsx)(d.p,{children:"Each board can define context that is injected into every card's prompt:"}),"\n",(0,s.jsxs)(d.ul,{children:["\n",(0,s.jsxs)(d.li,{children:[(0,s.jsx)(d.strong,{children:"Working directory"})," \u2014 where file operations execute (",(0,s.jsx)(d.code,{children:"POST /api/boards/:id/context/directory"}),")"]}),"\n",(0,s.jsxs)(d.li,{children:[(0,s.jsx)(d.strong,{children:"Custom variables"})," \u2014 key-value pairs (",(0,s.jsx)(d.code,{children:"/context/variables"}),")"]}),"\n",(0,s.jsxs)(d.li,{children:[(0,s.jsx)(d.strong,{children:"Instructions"})," \u2014 system-level guidance (",(0,s.jsx)(d.code,{children:"/context/instructions"}),")"]}),"\n",(0,s.jsxs)(d.li,{children:[(0,s.jsx)(d.strong,{children:"Structure definition"})," \u2014 expected project layout (",(0,s.jsx)(d.code,{children:"/context/structure"}),")"]}),"\n",(0,s.jsxs)(d.li,{children:[(0,s.jsx)(d.strong,{children:"Knowledge base"})," \u2014 reference material (",(0,s.jsx)(d.code,{children:"/context/knowledge"}),")"]}),"\n"]}),"\n",(0,s.jsx)(d.h2,{id:"api-surface",children:"API Surface"}),"\n",(0,s.jsx)(d.h3,{id:"boards",children:"Boards"}),"\n",(0,s.jsx)(d.pre,{children:(0,s.jsx)(d.code,{children:"GET /api/boards\nPOST /api/boards\nGET /api/boards/:id\nPATCH /api/boards/:id\nDELETE /api/boards/:id\nPOST /api/boards/:id/activate\nPOST /api/boards/:id/deactivate\nPOST /api/boards/:id/generate # natural-language board generation\nGET /api/boards/:id/execution-plan\nPOST /api/boards/:id/smart-execute\nPOST /api/boards/:id/run-all\nPOST /api/boards/:id/halt-all\n"})}),"\n",(0,s.jsx)(d.h3,{id:"cards-1",children:"Cards"}),"\n",(0,s.jsx)(d.pre,{children:(0,s.jsx)(d.code,{children:"POST /api/boards/:id/cards\nPOST /api/boards/:id/cards/bulk\nPATCH /api/boards/:boardId/cards/:cardId\nDELETE /api/boards/:boardId/cards/:cardId\nPOST /api/boards/:id/cards/reorder\nPOST /api/boards/:id/cards/clear-done\nPOST /api/boards/:boardId/cards/:cardId/run\nPOST /api/boards/:boardId/cards/:cardId/halt\nPOST /api/boards/:boardId/cards/:cardId/cascade\n"})}),"\n",(0,s.jsx)(d.h3,{id:"comments-attachments-labels-hierarchy",children:"Comments, attachments, labels, hierarchy"}),"\n",(0,s.jsx)(d.pre,{children:(0,s.jsx)(d.code,{children:"GET /api/boards/:boardId/cards/:cardId/comments\nPOST /api/boards/:boardId/cards/:cardId/comments\nDELETE /api/boards/:boardId/cards/:cardId/comments/:commentId\nGET /api/boards/:boardId/cards/:cardId/attachments\nPOST /api/boards/:boardId/cards/:cardId/attachments\nDELETE /api/boards/:boardId/cards/:cardId/attachments/:attachmentId\nGET /api/boards/:boardId/cards/:cardId/attachments/:attachmentId/content\nGET /api/boards/:boardId/cards/:cardId/attachments/:attachmentId/download\nPOST /api/boards/:boardId/cards/:cardId/labels\nDELETE /api/boards/:boardId/cards/:cardId/labels/:labelId\nPOST /api/boards/:boardId/cards/:cardId/parent\nPOST /api/boards/:boardId/cards/:cardId/dependencies\nDELETE /api/boards/:boardId/cards/:cardId/dependencies/:depId\n"})}),"\n",(0,s.jsx)(d.h3,{id:"context",children:"Context"}),"\n",(0,s.jsx)(d.pre,{children:(0,s.jsx)(d.code,{children:"GET /api/boards/:id/context\nPOST /api/boards/:id/context/directory\nPOST /api/boards/:id/context/variables\nPOST /api/boards/:id/context/instructions\nPOST /api/boards/:id/context/structure\nPOST /api/boards/:id/context/knowledge\n"})}),"\n",(0,s.jsxs)(d.h3,{id:"feedback-question-status",children:["Feedback (",(0,s.jsx)(d.code,{children:"question"})," status)"]}),"\n",(0,s.jsx)(d.pre,{children:(0,s.jsx)(d.code,{children:"GET /api/boards/:id/feedback\nPOST /api/boards/:boardId/feedback/:feedbackId/respond\n"})}),"\n",(0,s.jsx)(d.h3,{id:"real-time-updates-sse",children:"Real-time updates (SSE)"}),"\n",(0,s.jsx)(d.pre,{children:(0,s.jsx)(d.code,{children:"GET /api/boards/:id/events\n"})}),"\n",(0,s.jsx)(d.p,{children:"Subscribe to a Server-Sent Events stream for live status updates as cards are processed (status changes, comments added, feedback raised)."})]})}function h(e={}){let{wrapper:d}={...(0,r.R)(),...e.components};return d?(0,s.jsx)(d,{...e,children:(0,s.jsx)(l,{...e})}):l(e)}},28453(e,d,n){n.d(d,{R:()=>t,x:()=>i});var a=n(96540);let s={},r=a.createContext(s);function t(e){let d=a.useContext(r);return a.useMemo(function(){return"function"==typeof e?e(d):{...d,...e}},[d,e])}function i(e){let d;return d=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:t(e.components),a.createElement(r.Provider,{value:d},e.children)}}}]);