Asking an agent and following the work
Last updated November 5, 2026
On this page
- Before you start
- Asking an agent
- Asking from the command line
- Reading the run card
- When no model may take the data
- Try it
- Watching an agent work
- Stopping a run
- When a run ends while you are elsewhere
- Following a run from the API
- Rating an answer and asking again
- What your agents spent this month
- Without a model: the stub planner
- Single and loop runs
- Following a loop run
- When an agent asks you a question
- Who answers an agent's questions
- Passing a question on, and answering for someone
- When nobody answers
- Try it
- The Work page
- Tasks
- New task
- Whom a task acts for
- Runs
- From the command line
- Asking about files
- Not possible yet
- For developers
- Explicit plans
- API
You ask an agent for something in plain words. The agent picks one of its skills (a playbook for one kind of work, see Packs and skills), plans the steps, and the kernel (the core of OrchKernel that checks and runs every step) carries them out one at a time under your company's policy. Everything it did comes back to you as a run card in the conversation, and every task and run is listed on the Work page, where you can open the steps, the output and the events behind them.
Each ask creates a task (the piece of work, owned by you) and starts a run (one attempt by an agent at it, with its steps, cost and output). This page covers asking, reading what comes back, answering an agent's question, and following and replaying the work. Asking two or more agents at once is in Asking several agents together, and setting an ask to run again on a schedule in Repeats. Threads with several people are in Threads; approvals are in Inbox and approvals.
Before you start#
The examples use the demo company from the
quickstart. In an empty directory run ok demo, then
ok demo serve from the same directory, open the printed workspace address
and pick a person under Demo people on the sign-in page. The API tokens
ok demo serve prints are for curl and scripts only (see
Tokens); each start prints new ones and revokes the
old ones.
Without a model key, the demo answers with a stub planner: fixed plans
for the walkthrough's asks, not a model. The Model line printed by
ok demo serve says which you have. See Without a model
for what the stub can answer. Steps that need a real model say so.
Asking an agent#
Sign in as maya (support lead).
- Click Threads. Under Talk to an agent you see the agents you work with, grouped by team, your own team first ("Support · your team": Churn-risk watcher, Knowledge-base writer, QA reviewer, Support Agent, Triage), then No team: Coordinator.
- Click Support Agent. The page reads New conversation with Support Agent and "Ask Support Agent anything. The reply, its plan, and every step land here." The message box starts with the agent's chip (Support Agent), and the line under it reads "Send runs Support Agent." Send is grayed out; hovering it says "Write a message first".
- Type
What is open?and press Send (or ⌘/Ctrl+Enter). - The address changes to the new conversation, titled Conversation with Support Agent. Your message reads "@Support Agent What is open?", and under it the agent's reply: a table of the four open tickets (T-1042 to T-1045), then the folded Details line with a Done badge.
You can also start from New conversation at the top of the sidebar: the
page asks you to "Pick an agent to talk to", and @ Ask an agent opens
the agent picker, where you search by name or by what an agent does
(coaching finds the QA reviewer). See
Picking an agent or a person.
Clicking the same agent again later reopens your latest conversation with it. To start fresh, choose New conversation with Support Agent in the menu on the conversation's title. Each conversation is a private thread between you and that agent; the avatars in its header open In this thread, which lists the Support Agent and its last run.
Who you can ask:
- Only agents you work with: the agents of your teams, and agents you have delegated to (see Delegations). Alice (sales rep) sees the Sales agents; Maya sees Support's. Asking any other agent is refused: through the API, maya asking the Sales Assistant gets "You have not delegated to Sales Assistant".
- The agent acts for you and only with what you may do. As alice, the Sales
Assistant's answer to
Show my pipelinelists her four leads only; as sam (sales lead) it lists all seven. - An agent whose app an admin paused shows "paused" and cannot be clicked; hovering it says "Paused by an admin".
- Coordinator, a built-in agent, is listed for everyone ("Built in"). With other agents it combines what they found; asked alone it decides whom to ask, asks them and combines their answers (see Coordinator).
- Before you send, the box shows the dates your words name ("Period: 10 Sep to 7 Oct 2026 (change)"), read in the company's time zone, and the agent is told them; see The dates the ask covers. An agent's sense of "today" is the company's date and time too.
- Questions: you beside the chip says who the agent asks when something is unclear; see Who answers an agent's questions.
Asking from the command line#
ok --state orchkernel-demo/state.db --as maya ask --agent support-agent "What is open?"
The answer lands in your conversation with that agent, as in the workspace.
The command line uses a real model or an explicit plan (--plan); the stub
planner answers only inside ok demo serve, so with no key a plain ok ask
fails with "run ... failed: llm: no model provider is configured". Run the
command from the directory where you ran ok demo, and stop the demo server
first (Ctrl+C in its window). ok ask writes the state file, so while the
server runs it is refused and writes nothing: "The server is running on
orchkernel-demo/state.db (pid 4121, since 09:30 UTC). Use the workspace or
the API (add --server http://127.0.0.1:8080), or stop the server, then run
this again." (ok ask itself has no --server: use the workspace or
POST /api/ask.) See Where a command works.
With the plan file the demo ships, it works without a key:
ok --state orchkernel-demo/state.db --as maya ask --agent support-agent --plan orchkernel-demo/plans/tickets.json "What is open?"
It prints "run ... done" and the tickets as JSON.
Repeat --agent to ask several agents together; see
Asking several agents together.
Reading the run card#
| Part | What it shows |
|---|---|
| The answer | A done or stopped run's output. Text reads as a message; a list of records as a table; a record as a short list of its fields, with amounts as money. An answer that is only a record's id reads as that record's name, linked to it ("Rachna", not "9c43aaa3-..."); in a table, a column that points at another record (a contact's lead) shows that record's name and a person column the person's name, each linked, with the id on hover. A record you may not read stays its short id. |
| State | On the Details line: Done, Failed, Stopped (a person stopped it), Stopped at its limit (a loop run's cap), Working, Waiting for approval, or Rejected when an approver said no. A declined card also reads "Rejected by Alice Chen", the time and the approver's note, then "Nothing was done." (or that what the run did before is under Details). |
| Status line | Beside the state on the Details line, only what it adds: a stopped run's "Stopped at asks: ...", or the note on a step an approver rejected. "Done" or "Failed" and the question are not repeated (the state says the one, your message above the other), and a failure's reason shows on the card. |
| Details | The folded line under the answer: "Details · Done · 5 steps · $0.00 · 1,820 tokens". Opens the numbered steps (what each did, the tool or model it used in small type, its time and cost), then "Acting for Alice Chen · started 9:41 AM" and Open the run. The model the run used shows as a chip beside the agent's name. |
| Copy | Under the answer: copy its text. |
| Plan | Under Details, only when you supplied an explicit plan: its summary and each operation. A model's plan appears as a step instead: "plan: List the open tickets (2 ops)". |
| Open the run | Opens the run in a drawer over the conversation: who it acted for, cost, tokens, the trace and the output. |
| Model | Next to the agent's name: the model the run's last model call went to. None when the run called no model (an explicit plan). With the demo's stub planner it reads mock-default. |
| Good answer, Bad answer, Ask again | Under the answer; see Rating an answer and asking again. |
The steps, numbered from 1. Each reads in words, with its kind in small type under it (and the tool, model, skill or collection it used: "Tool · support-ops.billing.account"):
| Step | What it means |
|---|---|
| Skill | "Used the skill Ticket support": the skill the agent chose for your ask. |
| Model | "Planned the next step · 1,049 tokens": a call to the model (or the stub). |
| Note | The plan's summary, a question it asked ("asked alice: Which ICP should I score against?"), or a plan read leniently or repaired. |
| Read data | "Read Tickets: 4 rows". |
| Write data | "Wrote a leads record (version 2)". |
| Tool | A tool call, such as "Billing account", with ok or failed. |
| Round | A loop round: "Round 1 · 2 operations · 1,453 tokens". |
| Approval / Decision | The run asked for approval; the approval was approved or rejected. |
| Answer | "Alice Chen answered" a question the run asked. |
| Refused | An operation the policy refused, with the reason. A refused change of a record's owner reads in plain words, naming who may ("Sales Assistant can't give the lead Rachna to Alice Chen: only its owner, the sales lead or an admin can reassign it."), with the technical line under details. It names the record only when the run may read it; otherwise it says "this lead". |
| Hand-off, Message | A task handed to another actor; a message posted in the thread. |
| Memory | "Kept 1 lesson": what the run remembered for next time. |
The cost of each step that cost something shows on the right, with how long the step took. A step's time runs from the end of the step before it (for the first, from the start of the run) to its own end, so the step that records an approval's decision or your answer to a question counts the time the run waited. Costs are kept in whole cents: a step that cost less than a cent shows $0.00, and the run's total is the sum of its steps. With the stub planner every run costs $0.00, though token counts still show.
References are filled in. A plan may write $today, $me, $lead.name
or {{lead.name}} inside the text it posts or answers with. They are filled in
before anyone reads the text: "next_follow_up: $today" reads "next_follow_up:
2026-10-06". A reference that names nothing reads "(not available)", never
the reference itself or a blank, or "(no date)" right after a date word ("Follow-ups
due on {{missing}}:" reads "Follow-ups due on (no date):"). Text is filled once:
a value that itself holds {{...}} or $name (a lead someone named
"{{contacts}}") shows as written and pulls in nothing else. A plan whose last
step posts a message has no separate answer: the message is the answer, not
its id.
What a reference fills in reads as a person knows it. A person's id reads as
their name ("On call: Eli Novak", not "eli"), a record's id as the record's
name (also an id the model copied into the text as it is), money as money
("$21,000.00", not 2100000). An answer that is a whole aggregate ("$by_rep")
shows each group under words: the rep by name, the sum as money. Reference
syntax a model invents reads as the reference it means: ${lead.name} as
{{lead.name}}, and [[leads:$lead.0.id]] or [[Litware]] as the record's
name, without brackets. When a reference names a read that was refused, the
answer says what could not be read ("you may not read leads").
An upsert whose id is a reference that named nothing (the read before it
found no such record, or none you may see) is refused rather than made a new
record, and the agent is told so once to correct its plan: asking to take a
colleague's lead you cannot see never makes a second one of yours.
An agent asks you something only when your request is unclear after it has looked: the planner is told to answer what the data answers and state its assumptions. A loop agent's multiple-choice question before it has read anything goes back to it once, to read first; asked again, it reaches you.
The run card appears as soon as the run starts, with a live status line while it works or waits (next section), and keeps its answer once it ends (done, failed, stopped or rejected). The answer's steps stay folded under Details, as before.
When no model may take the data#
A model is cleared for certain kinds of data, and a run's model calls go only to a model cleared for what the run is working with (see Which model may see which data). When none the agent may use is cleared for it, the run cannot go on. The card never shows the gate's raw refusal ("policy denied llm.complete: no allowed model for data class pii.candidate"); that stays under Details. It shows a sentence naming the agent, the kind of data and what to do:
| Why | The sentence |
|---|---|
| No model the company has set up is cleared for it | "Hiring Coordinator could not answer: it was working with candidates' personal details, and none of the AI models your company has set up is cleared for that kind of data." |
| Cleared models exist, but none is on the agent's own list | "Hiring Coordinator could not answer: it was working with candidates' personal details, and none of the models Hiring Coordinator may use is cleared for it." |
| The agent's skill is not set up for that kind of data | "Hiring Coordinator could not answer: its skill is not set up for candidates' personal details." |
| No model that reads images is cleared for it | "Hiring Coordinator could not look at the image: no model that reads images is cleared for everyday company data." |
The kind of data reads in plain words: "customers' personal details", "candidates' personal details", "financial figures", or, for a class with no words of its own, "the most sensitive kind of data (restricted)", "customer and deal data (confidential)", "everyday company data (internal)". A pack may add words for its own classes.
Under the sentence, one button:
- Fix this, for admins (and, when the agent's own model list is the cause, the lead of its team). It goes to the place that fixes it: the Clearance part of Models, with a note at the top ("Sales Assistant needs a model cleared for customers' personal details (restricted)") and the kind of data highlighted; the agent's page for its model list; its skill for a skill that is not set up for the data. On Models, Raise to Restricted raises a connected model's clearance in one step; for restricted data you confirm "Our agreement with this vendor covers restricted data." first. The change is recorded with the run that prompted it.
- Ask an admin, for everyone else. It sends every admin an inbox item, "Sam Ortiz needs a model for customers' personal details so Sales Assistant can answer · Fix this", which opens Models at the right place. The button then reads "Admins told at 10:14"; pressing it again within a day tells nobody twice.
Once a model may take the data, everyone who asked an admin in the last 7
days is told "Sales Assistant can now answer · Try again", and the card
offers Try again. An admin may instead keep things as they are, with a
note: Keep as is on the request in their inbox (or
POST /models/help/:id/keep). The card then reads "Ada Park chose not to
allow this: ", and Ask an admin is no longer offered for that agent
and kind of data.
The same sentence shows on an agent's row in an ask to several agents, in
the combined answer's note when a part is missing because of it, on a
repeat's Needs attention, and in ok ask (the technical line only with
--verbose). Before you send, the agent's chip warns with an amber dot
when its skills read data no model it may use takes: "Sales Assistant may
not be able to answer: no model is cleared for customers' personal
details". It does not block: your ask may never touch that data.
Try it#
This needs a real model: the demo's stub planner has no clearance to change.
- As ada, open Models and connect a model whose clearance is Confidential (OpenAI's and Gemini's presets are; see Connect a model in the workspace), and no model cleared for restricted data.
- As sam, ask the Sales Assistant
list my open leads. Before Send its chip carries the amber dot and the warning. After Send, the card reads "Sales Assistant could not answer: it was working with customers' personal details, and none of the AI models your company has set up is cleared for that kind of data." with Ask an admin. Press it: "Admins told at …". - As ada, open Inbox: "Sam Ortiz needs a model for customers' personal details so Sales Assistant can answer · Fix this". Click it: Models opens with the note and the restricted clearance highlighted. Raise a model to Restricted and confirm the vendor's agreement.
- As sam, the card reads "Sales Assistant can now answer" with Try again.
Watching an agent work#
While a run is under way its card, in the conversation, says what the agent is doing right now, the way a chat app shows that someone is typing:
| Part | What it shows |
|---|---|
| The dot | A small orange dot that breathes slowly while the agent works, and a still yellow dot while it waits on a person. It never flashes; with reduce motion set in your system it stays still. |
| What it is doing | One line in plain words, from the step it is on: "Starting" before its first step, then "Planning the next step", "Reading Northwind's invoices", "Reading ticket T-1042", "Searching CMS pages", "Saving the article", "Checking billing account", "Waiting for Ada Park to approve $250.00", "Waiting for you to approve “Send email”", "Waiting for Ada Park to approve saving a lead", "Waiting for your answer". The words shimmer slowly while it works. |
| Time and steps | How long the run has taken so far, ticking ("1 min 05 s"), and its steps so far ("7 steps"). |
| Stop | On the right, for the people who may stop the run (below). |
The line updates by itself. Every run, in single and loop mode, records each step the moment it happens and announces it, and the page hears of it over the live event stream (it falls back to reading every two seconds when the stream is not available). A run the workspace started, and every loop run, also saves each step to disk as it goes. Under Details the steps grow as they happen. The same line shows on the run in the Work page's Runs table and in the run drawer, and a small dot marks the conversation in the sidebar and on the Threads page while one of its agents works (orange) or waits (yellow). The status line goes away when the run ends.
Stopping a run#
Stop ends a running or waiting run cleanly. It is offered to the person the run acts for, the owner of its task, the lead of the agent's team, and admins; nobody else sees it, and the server refuses anyone else ("Only the person Sales Assistant works for here, the task's owner, its team lead or an admin can stop this run"). A team lead sees their team's agents' runs on Work > Runs while they work or wait, so they can stop one even in a conversation they are not part of; once a run ended it is visible again only to those who see its conversation or task.
- A waiting run stops at once. The approval it waited on is withdrawn (it leaves the approver's inbox, the card reads Withdrawn and deciding it does nothing), and its question can no longer be answered.
- A running run is marked stopped at once and its agent's slot is free. It goes no further than what it is doing: a model or tool call already sent finishes (it is not undone) and its result is not acted on. That call shows in Details as "finished after stop", just before the last step, "Stopped by Maya Patel".
- The run reads Cancelled, its task Cancelled, and the card reads
"Stopped by Maya Patel" (or "Stopped by you"). The event
run_cancellednames who stopped it, and the person who asked is told in their inbox when someone else did.
When a run ends while you are elsewhere#
When a run you asked for finishes, fails or is stopped by someone else, or a run starts waiting on you (an approval or a question for you), while you are on another page or another browser tab:
- the browser tab's title counts it: "(1) Work · OrchKernel";
- the conversation gets the unread dot in the sidebar and on the Threads page;
- a quiet note appears at the bottom right ("Knowledge-base writer finished"); clicking it opens the conversation.
Nothing of this happens while you are looking at that conversation, and opening it clears its count. Answers still arrive whole: the text does not stream in as the model writes it (that is next, see the roadmap).
Following a run from the API#
A live run carries activity, { text, since, waiting_for? }: what it is
doing in words, since when, and whom a parked run waits for (the approver,
or whom its question went to; the workspace says "you" when that is the
viewer). It is cleared when the run ends. Three events follow a run live,
each with the run's task and thread:
| Event | When | Fields |
|---|---|---|
run_step |
Each step, the moment it is recorded, in single and loop mode | run, step (its index), summary (its kind) |
run_activity |
What the run is doing changed: an operation or model call started, or it parked | run, text (its activity), waiting_for when it parked |
run_cancelled |
A person stopped the run | run, by |
A client follows them on GET /events/stream (server-sent events) and falls
back to polling GET /runs/:id or GET /threads/:id. Send detach: true
on an ask, Ask again, Run now or an answer so the request returns 202
running at once and the steps follow as events (the workspace does).
Rating an answer and asking again#
Under an agent's answer:
- Good answer and Bad answer rate it. The person the run worked for
and anyone in the thread may rate it, one rating each; rating again
replaces your earlier one; the pressed one is yours. Through the API
(
POST /runs/:id/feedback) a rating can carry a note. The agent's scorecard counts the ratings (see Scorecards); the note stays with the run, and the event the rating writes (feedback_given) carries only good or bad. Agents do not rate. - Ask again asks the same agent the same thing again, in the same thread, for the same person. Only the person who asked may. It is a new ask: your text is posted again, it passes every check an ask does (you must still be allowed to ask the agent, and the thread must be open), and it starts a new run with its own card. Only a run someone asked for can be asked again; a task's run or a scheduled run cannot ("Only a run someone asked for in a thread can be asked again").
What your agents spent this month#
The card at the top of the sidebar, under New conversation, shows what the runs that acted for you cost this calendar month (UTC) and how many there were ("$0.03 · 3 runs · What your agents spent this month"). When your team has a budget it shows how much of it is left instead ("$45.00 left of $50.00", a bar, and "Sales's budget · your agents spent $0.03 this month"). Until an agent has run for you and with no team budget, there is no card. The month's figure counts every run started this month whose agent acted for you, finished or not. The team budget counts everything charged to the team since an admin set it, not only this month, and everyone on the team shares it.
Without a model: the stub planner#
The demo's stub planner is not a model and does not read your words beyond a few keywords. With no key set:
| Agent | Ask | What comes back |
|---|---|---|
| Support Agent, Triage | Anything | The open tickets as a table |
| Sales Assistant | Containing "email" or "follow" | Emails the first contacted lead, which parks for the rep's approval (quickstart) |
| Sales Assistant | Anything else | The leads you may read |
| Churn-risk watcher | Containing "refund" | Reads ticket T-1042 and the billing account, then asks to refund 250.00, which waits for an admin |
| Any other agent, or any other ask | Anything | A note: "No model is configured, so the demo's stub planner answered. ..." with how to set a key or paste an explicit plan |
"Draft a reply to T-1044" to the Support Agent therefore lists the tickets
too. To see agents plan for real, set ANTHROPIC_API_KEY (or
OPENAI_API_KEY, GEMINI_API_KEY, OLLAMA_HOST) or an llm.yaml and start
ok demo serve again; see Models.
Single and loop runs#
Each skill runs in one of two modes, set in its playbook.
| Single | Loop | |
|---|---|---|
| How it plans | Once: the whole plan, then the kernel runs it | One round at a time, at most 8 operations a round; the model sees each round's results before planning the next, until it says it is done |
| In the demo | Support Agent, Triage, Sales Assistant, Product Agent, Proposal Writer, Content Writer | Churn-risk watcher, SDR Outreach, Deal Desk, Forecast Analyst, Lead Qualifier, Chief of Staff, Feedback miner and others |
| A refused operation | Fails the run | Becomes a result the model sees, so it can try something else |
| Your ask | Answers when the run ends or parks | Answers at once that the run is running; it carries on in the background |
| Caps | The agent's budget, and 3 questions | max_steps (1 to 50 rounds), max_minutes (time spent running, not waiting), max_handoffs (at most 20), optional max_cost and max_tokens, the agent's budget, and 3 questions |
When a cap is reached the run stops with the Stopped at its limit badge, the cap's name ("Stopped at max_steps") and the last output the model chose. A run that waits for an approval or an answer releases its slot; it carries on from the same round once the person responds, even after a restart.
Following a loop run#
As maya:
- Talk to an agent, Churn-risk watcher, type
Northwind wants a refund for the double charge, Send. - The conversation shows the run card with its live line, "Waiting for Ada
Park to approve $250.00", the time ticking, "7 steps" and Stop, and
under it the approval card: Waiting for Ada Park, Issue a refund or
credit, Amount $250.00, Invoice
inv-2026-09-1042, the rule ("Goodwill credits by agents over the cap of 100.00 ... need an admin") and "An admin (Ada Park) decides". - Click Work. The task shows Parked. Click Details: the run's steps so far are Skill, Model, Read data (1 row), Tool (Billing account, ok), Round 1, Model, Approval.
- Once ada approves it (see Inbox and approvals),
the approval card shows Approved and "Approved by Ada Park", and the
run finishes round 2. Maya's conversation now has the run card:
"Refunded after an admin approved it.", Amount $250.00, Refund
re_3Rk0a1Lq, Done, and under Details "12 steps": the steps above, then Decision (Approval Approved), Tool (Issue a refund or credit, ok), Round 2, Model, Memory.
The demo refunds invoice inv-2026-09-1042 only once. Ask the same again
and the refund is refused ("Invoice inv-2026-09-1042 was already refunded"),
with no approval card, yet the stub's run card still says Done and
"Refunded after an admin approved it." with no refund id. Read the
Refused step under Details, not the stub's text.
When an agent asks you a question#
An agent that needs something from you before it can act (a choice, a missing detail) asks instead of guessing. The run parks until someone answers.
- The question goes to whoever asked: the person the run acts for (usually you), else you as the person who asked, by an ask, an @ mention, a task you made or Run now on your task, even when the agent does not work for you (an admin asking the Sales Assistant "how much sales today?" in a conversation with Fiona gets its question, not a sales rep). Work an agent hands to another agent keeps the person who asked for the first run. Only work nobody asked for (a schedule, a webhook, a record change) goes to the people the agent's app acts for, else its manager or team lead. Whoever asked may always answer their own question.
- It appears in the conversation as a question card: "Waiting for you" (or "Waiting for Alice Chen"), "Sales Assistant asks Alice Chen", the question, and in that person's Inbox as "Sales Assistant asks: Which ICP should I score against?", with the same card under Waiting on you.
- The person asked answers on the card, in the conversation or the inbox: one click on a suggested answer ("SMB", "Enterprise"), or their own words in the box and Answer (Cmd or Ctrl+Enter). Without suggested answers the card has the box only.
- The card names whose work it is: "Sales Assistant, working for Maya Patel, asks you". People who may read the conversation also read what the agent was asked to do ("About: Score my new leads").
- Everyone else in the conversation reads "Waiting for Alice Chen to answer" on the card, and the run's live line says the same ("Alice Chen or Carol Diaz" once escalated). For the person asked, and anyone it was escalated to, the live line reads "Waiting for your answer" with an Answer button that brings the card into view (or opens it in a sheet where the card is not on the page, such as Work).
- Once answered, the card shows the answer, who gave it and when, and the run carries on: its live line picks up and the answer follows in the conversation. The step "Alice Chen answered" is added and the inbox item is marked read.
- The recipient, the person who asked and anyone the task was escalated to
may answer in the workspace; admins may answer through the API. Anyone
else is refused. The person asked reads the question even when they are not in the
conversation and cannot see the run: their inbox's Open in thread
shows them the question put to them and nothing else of the conversation.
They hear when it is answered (the
question_answeredevent is theirs too), so the card stops waiting for them when someone it was escalated to answers first. - A second answer is refused ("Alice Chen already answered this question: Enterprise"); the card then shows the first.
- An answer is free text, at most 4,096 bytes, even when options are suggested. A longer one is refused ("answer is 5000 bytes; at most 4096 are accepted"). It reaches the agent as data, never as instructions.
- A run may ask 3 questions. A fourth stops it: the card shows Stopped and "Stopped at asks: ...".
Agents are prompted to offer the choices of a yes-or-no question as suggested answers worded as what they will do (for example "Overwrite" and "Keep the existing snapshot"), so the person answers with one click.
While an agent in a thread waits on your answer, a banner above the message box reads "Analytics Analyst is waiting for your answer: …" with Answer. Typing in the box and pressing Send then asks whether it is your answer or something new; see When an agent waits on your answer.
Who answers an agent's questions#
When you ask, Questions: you beside the chip says who the agent asks. Click it to send its questions to the thread's owner, each agent's team lead or a person you pick, how long to wait for them, and what then (ask you, keep waiting, go on with its best guess, or stop that agent). The choice is the ask's rule; it covers every agent of the ask. A person you pick gets only the questions, in their inbox, not the conversation; the card names whose work it is ("Analytics Analyst, working for Sam Ortiz, asks you") and shows the ask's title and a link only when they may see the thread.
A question reaches someone other than you only if they may read everything the agent's run is carrying at that moment: the collections it read, the tools it used, the answers and messages it carries. Otherwise it comes to you first, with a note: "Sales Assistant wanted to ask Pat Kim. Its question may hold data Pat may not read (Leads), so it came to you. Answer it, or pass it to Pat." The same check runs every time a question moves on.
Passing a question on, and answering for someone#
- Pass it on, on the question card, sends the question to another active person, with an optional note. The sheet shows exactly what they will see, the question and its choices, and the kinds of data its run read ("This question was written by a run that read …"), and that they get only the question. The thread reads "Sam Ortiz passed Analytics Analyst's question to Alice Chen", without bringing Alice in. A question can be passed on 3 times ("This question was passed on 3 times already").
- Someone a question came to who is not the person the work is for can always Pass it back to Sam.
- Answering for someone. The person the work is for, anyone the question was passed to, and admins may answer; the card then reads "Sam Ortiz answered for Alice Chen". The first answer counts; a later one is refused ("Alice Chen already answered this question").
When nobody answers#
With a time on the rule, the card says how long it waits and what then: "Waiting for Alice Chen until 11:00, then you". At that time:
| Then | What happens |
|---|---|
| The next person | The question also goes to them; the thread reads "No answer from Alice Chen in 1 hour, so the question also went to Sam Ortiz". Either may answer. |
| Keep waiting | Nothing more, until someone answers or the ask's time runs out |
| Go on with its best guess | OrchKernel answers for you: "Nobody answered within 1 hour. Go on with your best assumption, and say in your answer what you assumed." The card reads "Nobody answered in time: Analytics Analyst went on with its best assumption". Answering after that is refused; with an ask to several agents the card offers Ask it again with your answer. |
| Stop that agent | The run stops: "Stopped: nobody answered within 1 hour" |
The time is clock time, nights and weekends included. After the server was down, every due time moves on by as long as it was down. A person who is deactivated while a question waits on them is skipped. Questions from before a restore read "From before the restore: it needs a fresh answer."
The command line answers too, with the server stopped (while it runs,
ok answer is refused and writes nothing):
ok --state orchkernel-demo/state.db --as alice answer <run-id> "Enterprise"
When a run parks on a question, ok ask prints "run ... is waiting on
question ... Answer with: ok --as answer """; add
--state orchkernel-demo/state.db as above.
Try it#
The stub planner never asks a question, so in the demo you make the agent ask with an explicit plan (see For developers). As alice:
-
Open
/threads/new?agent=sales-assistant&dev=1in the workspace. An Explicit plan appears in the message box's + menu. -
Type
Score my new leads, choose +, Explicit plan, and paste:{"summary": "Ask which ICP, then answer", "ops": [ {"op": "ask", "question": "Which ICP should I score against?", "options": ["SMB", "Enterprise"], "bind": "icp"}, {"op": "output", "value": {"answer": "Scoring against {{icp}}"}}]} -
Press Send. The conversation shows the Sales Assistant's question card: "Waiting for you", "Sales Assistant asks you", the question, the buttons SMB and Enterprise and a box for your own words. The run's live line reads "Waiting for your answer" with Answer. The Inbox count in the sidebar goes up by one, and the task shows Parked under Tasks beside the conversation and on the Work page.
-
Click Enterprise (or open Inbox and answer from the card under Waiting on you). A toast says "Answered. Sales Assistant goes on."
-
The card now shows "Enterprise", "You answered" and the time, and the conversation gets the run card "Scoring against Enterprise", Done. Its Details show your plan, then the steps Skill, Note (the plan), Note (asked alice), Answer ("Alice Chen answered"), Memory.
The question follows whoever asked. Sign in as ada, an admin who never
delegated to the Investor-Update Writer (it works for fiona), and ask it
with an explicit plan that asks ({"op": "ask", "question": "A draft already exists for 2026-10. Overwrite it?", "options": ["Overwrite", "Keep the existing draft"], "bind": "a"}): the card reads "Waiting for you", and
fiona is not asked.
Only work nobody asked for puts a question to someone outside the
conversation. As ada, make the same plan a task the writer owns itself
(POST /api/tasks with "acting_for": "investor-update-writer", the
conversation as its thread and the plan as inputs.plan) and press Run
now on the Work page: the writer works for nobody, so the question goes to fiona,
who leads the Founder's office, and ada's card reads "Waiting for Fiona
Reyes to answer". Sign in as fiona: the card is under Waiting on you in
her inbox, and Open in thread shows her the question alone, since she is
not in ada's conversation.
The Work page#
Work lists your tasks and runs, newest first, a page at a time (Load more under the list fetches the next). An admin sees everyone's. A task is created for every ask, so each conversation's asks are listed here too. Its tabs are Open tasks and Runs, each with its count, and Repeats (your asks that run on a schedule; see Repeats).
Tasks#
Beside the tabs, "4 done" counts your finished tasks. Three filters:
| Filter | Shows |
|---|---|
| Open | Tasks not done, failed or cancelled. Empty: "No open tasks. 4 done: see All." |
| Mine | Tasks you own or that are assigned to you |
| All | Every task you can see |
Each task card shows its title, state (Assigned, Running, Parked, Done, Failed, Cancelled), who it is assigned to, when it was made, and its owner. Its buttons:
| Button | Shown when | What it does |
|---|---|---|
| Details | Always | Opens the task drawer (below). |
| Run now | The task is assigned to an agent and is open, assigned or escalated, and you own it, lead the agent's team or are an admin | Starts a run at once, acting for the task's owner (not for whoever pressed it). A toast gives the outcome, such as "Run done". |
| Mark done | You own the task or it is assigned to you, it is not finished, and it is not assigned to an agent | Marks it done. The toast says "Done". |
| Reassign | You own the task, or you are an admin | Opens Reassign task: pick a person, or an agent you may ask (the others are grayed out with the reason). "Reassigned to Maya Patel". |
The task drawer (Details) shows the task card, then:
- Plan: an explicit plan given with the task, operation by operation;
or Inputs when the task has other inputs (a task made by an ask
shows
{}). - Outputs: the result of the last run.
- Runs: every run of the task with its state, agent, cost, time and steps.
- Events: the task's events from the log, such as
task_created,run_started,policy_evaluated,tool_called,approval_requested,run_parked.
New task#
- Press New task.
- Give it a Title ("Call Northwind about the refund") and pick Assign to: Nobody yet, an agent ("Support Agent (agent)") or a person. Only the agents you may ask can be picked; the others are grayed out with the reason, such as "Sales Assistant (agent): You have not delegated to Sales Assistant".
- Press Create task. The toast says "Task created for Tom Becker", and about a second later the task is in the list, Assigned, with Details, Mark done and Reassign.
A task assigned to a person waits for them; they see it on their Work page and mark it done. A task assigned to an agent starts by itself on the next clock tick (within half a minute in the demo) and acts for you; Run now starts it at once. Its result is on the task and in its Details, not in a conversation.
Whom a task acts for#
A task given to an agent acts for its owner: you, when you make it. The agent then has your rights and no more (see Delegations). So the same rule as asking holds: an agent that acts for other people takes a task only from someone who delegated to it.
- Giving an agent a task you may not ask it is refused with 403, "You have not delegated to Sales Assistant", and nothing is created. Maya cannot get the Sales Assistant to read Sam's leads through a task.
- An explicit plan in the task's inputs is held to your own rights, as an ask's is: "You cannot read tickets, so you cannot ask an agent to".
- Only the owner or an admin gives a task to an agent (Reassign too). An
admin may make a task for someone else (
acting_forin the API): the agent then acts with that person's rights, not the admin's. - A task that reaches the agent anyway without anyone to act for (one made before these rules) is refused when its run would start, "maya has not delegated to sales-assistant, so sales-assistant may not run their task", and fails, so the clock tick does not retry it.
- A task given to a team's queue (
assign_to: "team:sales") is not checked when it is made. An agent of the team takes it only when it may act for the task's owner; until one may, the task waits in the queue.
Work that is nobody's own request acts as follows:
| Work | Acts for |
|---|---|
| An ask, a mention | The asker or the person who mentioned it, when they delegated to the agent; else nobody, capped at the asker (below) |
| A task another agent's run handed over | The task's owner when they delegated to the agent; else nobody, capped at the owner |
| A trigger's task (schedule, webhook, data change) | One person, chosen the same way every time, among those the app's Acts for names (its app delegations) and the people of the agent's own team (its team, or a team that lists it) who delegated to it: the team's lead when among them, else the one with the lowest id. Never someone outside the team who only chose Let agent act for me. With nobody left, the run is for nobody. |
| An admin's own task, or a task an admin made owned by the agent itself | Nobody: the agent's own access, as an admin's ask does |
| A task for an agent nobody delegated to | Nobody, capped at the task's owner |
| The Curator, the Distiller, the steward | Nobody: their own principal, or the Context app's own system principal for capture and curation of shared items. The Curator acts for a person only for that person's own captured items, under their opt-in. |
Capped at the asker. A run for nobody that a person other than an admin asked for (their ask, mention or task) never reads more than that person may: a collection must admit both the agent and them, and rows count their role and teams, as when the agent acts for them. Asking a built-in agent, or an app agent set to act for nobody, does not reach its team's collections for someone outside the team.
The asker's own records. In a collection scoped to owners (Leads), a run for nobody counts the records its asker owns as its own, an admin's too, and a record it adds is the asker's, never the agent's. (Only an agent's own work with nobody behind it, a schedule or a webhook, keeps what it adds as the agent's.) So Ada, the admin, asks the Sales Assistant without delegating to it: "lets add a new lead. Rachna 9764092911" makes a lead Ada owns, and "lets assign this lead to @Alice Chen" then gives it to Alice, since Ada owns it. A lead someone else owns is refused, saying who may, and naming no lead the run cannot read: "Sales Assistant can't give this lead to Alice Chen: only its owner, the sales lead or an admin can reassign it. Sales Assistant works for nobody on this request; the owner, the sales lead or an admin can do it on the lead's page, or let Sales Assistant act for them." Personal records (a collection whose rows are personal or shared with a team) never count the asker's. See Who owns a record. The run's questions go to the same person (When an agent asks you a question).
Runs#
The Runs tab is a table: State, Agent, Task, Model, Steps, Cost, Tokens, Started. On a phone the table scrolls sideways. Click a row to open the run drawer:
- the agent, who it acted for ("Churn-risk watcher acting for Maya Patel"), cost, tokens and start time, and the reason if it failed;
- Trace: the steps, as in the run card;
- Output;
- for admins, Replay (raw events): the run rebuilt from the event log,
one line per event (
run_started,policy_evaluated,llm_called,tool_called,approval_requested,run_parked, ...).
From the command line#
Name the state file and a person. The commands that only read (ok tasks, ok runs, ok replay, ok group) work while the server runs, on a
snapshot of what it has saved; the ones that change something (ok ask,
ok answer, ok tick) need the server stopped and are refused while it
runs (see Where a command works).
ok tasks and ok runs read the whole state file: they list every task and
run, whoever --as names.
| Command | What it does |
|---|---|
ok ask --agent <id> "<text>" |
Asks an agent in your latest conversation with it, as in the workspace. --plan <file or JSON> runs an explicit plan. Prints the run's state and output, or how to answer its question; a model gap reads as its sentence, with the technical line only with --verbose. Repeat --agent to ask several agents together (--each, --combine, --ask-whom, --wait, --limit, --from/--to and --no-wait apply then; see Asking several agents together). |
ok group <id> |
An ask to several agents: its state, each agent's, and its note. |
ok tasks |
One line per task: id, state, priority, title, assignee. --archived lists finished tasks archived out of memory. |
ok runs |
One line per run: id, state, agent, steps, cost. --archived as above. |
ok replay --run <id> |
The run's events from the log. --task <id> and --thread <id> replay a task or a thread; with none, the whole log. |
ok answer <run> "<text>" |
Answers the question the run waits on, as --as. |
ok tick |
Advances the clock once: due triggers, SLA escalations, stalled threads, expired knowledge, and runs of tasks waiting for an agent. Prints fired=0 escalated=0 stalled=0 expired_knowledge=0 ran=0. --now <time> ticks as if at that time. The server ticks by itself every 30 seconds. |
ok --state orchkernel-demo/state.db --as maya tasks
ok --state orchkernel-demo/state.db --as ada replay --run <run-id>
ok tasks and ok runs list in id order, not newest first as their help
says.
Asking about files#
Attach files to your message (the paperclip, a pasted screenshot, or a file dropped on the conversation) and ask: "@Sales Assistant what changed in this report?". The agent sees, in the first step of its plan:
- a list of the files, each with its name, type, size, page count and id;
- the text of PDFs, Word documents, plain text, CSV and Markdown files, 20,000 characters in all, marked as data, never as instructions to it;
- images, when a model that reads them may see the conversation's data (see Models that read images). When it may not, image reading is off, or the policy keeps that class of file from the agent, the answer says so under it: "Sales Assistant did not see Screenshot ….png: images are not read in this workspace."
A longer file is read further with the read_file step, 40,000 characters
at a time. A scanned PDF has no text to read, and the agent is told so;
spreadsheets and images have no text either. Each file read is checked by
the gate like any other read (your company's policy may refuse or hold
it), shows as a step read file q3-report.pdf on the run, and is recorded
in the audit log. The model call carries the most sensitive class of the
files it read: a restricted file goes only to a model cleared for
restricted data.
Later in the conversation the agent sees which files earlier messages carried, by name and id, and reads one again only when it needs to.
Agents make files too: "Export my open leads as CSV" leaves
open-leads.csv attached to the agent's answer. An agent can make CSV,
Markdown, plain text, JSON and Word files, up to 5 MB, in the conversation
it works in.
Not possible yet#
- Reading text in images or scanned PDFs (no OCR), and reading spreadsheets.
- Questions that wait only during working hours.
- An answer streamed word by word as the model writes it: it arrives whole when the run ends (next on the roadmap).
- Cancelling a model or tool call already sent: a stopped run lets it finish and does not act on its result.
- An explicit plan for an agent in loop mode: it is ignored (see below).
- Replay in the workspace for anyone but an admin.
For developers#
Explicit plans#
In developer mode you can give the exact plan instead of letting the model
write it. Add ?dev=1 to a conversation's or thread's address (the Threads
list itself does not switch it on); the setting stays in that browser until
you open a conversation or thread with ?dev=0. Signing in with ok demo serve --dev-auth
also shows it.
- Explicit plan (in the message box's + menu) opens a second box for the JSON plan, used with the next Send.
- An explicit plan is held to your own rights: a plan that reads or writes a collection you may not is refused ("You cannot read leads, so you cannot ask an agent to").
- Text that is not JSON is refused before sending, with the browser's error
(for
{: "SyntaxError: Expected property name or '}' in JSON at position 1 ..."); an unknown operation fails the run ("plan invalid: unknown variantfrobnicate, expected one of ..."). - The demo directory has three ready plans in
orchkernel-demo/plans/:follow-up.json,leads.json,tickets.json. - An agent whose skill runs in loop mode (the Churn-risk watcher, for example) ignores the explicit plan and plans with the model, or the stub, while its run card still shows your plan under Plan. Use a single-mode agent.
A plan is {"summary": "...", "ops": [...]}. Values an operation produces
are kept under its bind name and used later as $name, $name.0.id,
$name.length or {{name.path}} inside text; $me, $today and $now
are always there. The operations (fields in plans.md):
| Operation | What it does |
|---|---|
query |
Read the records of a collection you may see, filtered and ordered |
aggregate |
Count, sum, average, min or max over records, grouped |
search |
Keyword search over records and knowledge you may read |
upsert |
Create or update a record, as a new version |
rollback |
Restore an earlier version of a record |
tool |
Call a tool; external effects may need approval |
llm |
A governed model call |
post |
A message in the run's thread |
artifact |
Create or version a thread artifact |
decide |
Log a decision (thread approvers only) |
task |
Hand a task to another actor |
delegate |
Give another actor a narrower delegation |
find |
Find skills or people in the directory |
remember, recall |
Propose knowledge; read knowledge you may see |
ask |
Ask a person and park until they answer |
traces |
Read summaries of past runs, decisions and approvals (skills allowed to) |
propose_playbook |
Propose a change to the skill's playbook (last operation only) |
output |
The run's result |
API#
All under /api, with Authorization: Bearer <token>: a token from
Profile › API tokens, or one ok demo serve printed (see
Tokens). Tokens reach the API only; the workspace
signs people in with a password.
| Method and path | Body | Notes |
|---|---|---|
GET /me/agents |
The agents you may ask, your teams first, and the built-in Coordinator (why: "built_in"). Each: { agent, name, team, team_name, mine, why, model, models, description, skills }, where description is what the agent does and skills is [{ id, name, description }] (what the composer's picker searches). model is the model its calls go to for internal data as model governance routes them (its preferred model when allowed, else the company's default, else the first allowed one), or null when none may take internal data; models lists every chat model it may use, model first. A call carrying more sensitive data may go to another allowed model. An ask does not take a model choice. model_gaps lists { class_label, words, cause, sentence, fix, fix_link } for each kind of data the agent's skills read that no model it may use takes (the chip's warning). recent_cost_cents is the median cost of its last 20 answered runs still in memory (about a week), or null with fewer than 3 (the composer's estimate). |
|
GET /me/spend |
{ since, spent_cents, runs, currency, budget, partial }: the cost and count of runs acting for you started since since (the first of this month, 00:00 UTC), live and archived. budget is your team's, { scope: "team", team, team_name, limit_cents, spent_cents, remaining_cents, alert_pct }, or null. partial: true when more archived runs matched than one read scans (5,000). |
|
POST /ask |
{ agent, text, plan?, new_thread?, detach?, rule?, period?, attachments? } |
Asks in your conversation with the agent; new_thread: true starts a new one. rule is who answers its questions ({ ask: ["asker" | "thread_owner" | "team_lead" | "person:<id>"], answer_within_minutes?, then: "wait" | "assume" | "stop" }); period overrides the dates read from the text. With agents (two to six) it asks several together: see Asking several agents together. 200 with the outcome (done, parked, asked, stopped, failed, cancelled) and the run, task and thread; 202 running for a loop, and for any run with detach: true, which runs off the request so its steps and activity follow as events (the workspace sends it). 403 denied when you may not ask the agent. |
GET /tasks, GET /tasks/:id |
Tasks you may see, paged; one task with its runs and events. | |
GET /me/assignable |
Every agent you see, { agent, name, team, team_name, description, reason?, how? }: reason when you may not ask it or give it a task ("You have not delegated to Sales Assistant"), and how you could ("Ask Carol Diaz, who leads Sales, to add it to this thread, or ask an admin"; for an agent that acts for the people who delegated to it, "delegate to it from Delegations, or ask an admin"). |
|
POST /tasks |
{ title, assign_to?, inputs?, description?, priority?, thread?, acting_for? } |
You are the owner; an admin may name another person in acting_for. With assign_to an agent, 403 when the owner may not ask it or inputs.plan reaches a collection the owner may not. |
POST /tasks/:id/assign |
{ to } |
Reassign. To an agent: the owner or an admin only, and the owner must be someone who may ask it (403). |
POST /tasks/:id/run |
{ agent?, detach? } |
Run now: the owner, the lead of the agent's team or an admin; agent other than the assignee is an admin's (403). |
POST /tasks/:id/complete |
Mark done. | |
GET /runs, GET /runs/:id |
Runs you may see, paged with x-next-cursor; one run with its events and replay transcript, and model_gap (the sentence, fix: fix, ask or null for you, fix_link, told_at, declined, fixed) when it failed for want of a model. A run carries model (its last model call's model, or null), cost and tokens_used, feedback ([{ by, rating, note?, at }], absent when empty) and steps, each with index, at, kind, cost in cents and duration_ms (absent on steps recorded before durations). A live run carries activity, { text, since, waiting_for? }: what it is doing now in words and since when, and for a parked run the person it waits for (the approver, or whom its question went to); absent once it ended. A stopped run is { state: "cancelled", reason: "Stopped by Maya Patel", by }, its last step { kind: "cancelled", by }. |
|
POST /runs/:id/feedback |
{ rating: "good" | "bad", note? } |
The person the run acted for or anyone in its thread; one rating each, the latest kept. { ok, run, feedback, counts: { good, bad } }. 404 for a run you cannot see, 403 denied for someone else (or an agent), 422 for a note over 1,000 characters. |
POST /runs/:id/retry |
{ detach? }, optional |
Ask again: the same agent, text and inputs, in the same thread, for the same person. Answers as POST /threads/:id/ask (200 with the outcome, 202 running for a loop or with detach). 403 denied for anyone but the person who asked or when they may no longer ask the agent; 409 not_an_ask for a run that was not an ask; 404 for a run you cannot see or one archived. |
POST /models/help |
{ run } |
Ask an admin: one inbox item to every admin for that agent and kind of data. 200 { told_at }; the same told_at within 24 hours. For whoever sees the run. |
POST /models/help/:id/keep |
{ note } |
Keep as is: an admin declines, with a note shown to whoever asked (human admins). |
POST /runs/:id/stop |
Stop a running or parked run: the person it acts for, the owner of its task, the lead of the agent's team or an admin. 200 { ok, run } with the run cancelled with by; its pending approvals are withdrawn (approval_closed with the reason run_stopped) and its open questions too (withdrawn_at); run_cancelled is recorded. 404 for a run you cannot see; 403 denied for anyone else, or an agent; 409 not_running for a run that ended; 409 work_session for an outside agent's work session. |
|
POST /runs/:id/answer |
{ answer, detach? } |
Answers whatever question the run waits on now. 409 not_waiting when the run is not waiting on a question; 409 module_paused when the agent's app is paused (the code keeps its name from before apps were renamed; see Apps); 422 for an empty answer or one over 4,096 bytes; 404 for a run you cannot see, unless its question was put to you. |
GET /questions, GET /questions/:id |
The questions put to you (?open=true, ?thread=, ?run=), and one question with state, answer, can_answer and where it was asked. See Inbox and approvals. |
|
POST /questions/:id/forward |
{ to, note?, confirm? } |
Pass the question on (see Passing a question on). 403 when you may not answer it, or to may not read what its run carries and you are not the person the work is for confirming it; 422 for someone not active; 409 answered, withdrawn; 429 after the third pass. |
POST /questions/:id/answer |
{ answer, detach? } |
Answers this question only (what the workspace's cards use): 409 answered once someone answered it, withdrawn once its run was stopped, not_waiting when the run moved on; 403 denied for someone it was not put to; 404 for someone who may not read it. |
The run events (run_started, run_step, run_activity, run_parked,
run_finished, run_cancelled, question_asked, question_answered,
feedback_given and others) are on the Events page under Runs; see
Events and the audit log, and
Following a run from the API for the three
that follow a run live.