Agent package manifest
Every key an agent package's manifest takes, what each one does, and the lists its values come from.
An agent package is a plugin whose plugin.json has an agent key, with schema set to taiku.agent.v1. taiku checks that key when the package is installed. A problem refuses the install and names its key and one of the codes at the end of this page. Each key below says what it does. Where taiku checks a key but doesn't act on it yet, its row says so.
Keys
| Key | Takes | Does |
|---|---|---|
schema | taiku.agent.v1 | Names this version of the manifest. Required; any other value is refused. |
agentType | 1 to 32 lowercase letters, digits or dashes, not system | The agent's role. Turning the package on makes one agent of this type in each place, and other packages' lists name the agent by it. A built-in's role names that built-in only, never another package declaring it. Required. |
name | 1 to 60 characters that don't spell taiku | What the agent is called in the app, and in the line that says what woke a run. Required. |
instances | account or project | Where the agent runs: once for the account, or once in each project it is turned on in. Turning it on in the other kind of place is refused. Left out, it runs for the account. |
prompt | a .md file in the package, at most 32 KiB | The agent's instructions, which each of its runs starts from. Required. |
model | an object | How its runs' model works. Which model it is, its owner chooses. |
model.default | nothing | Refused: an agent's owner chooses its model, in the agent's settings. Leave it out. |
model.by_trigger | nothing | Refused: a run takes the one model its agent's owner chose. Leave it out. |
model.effort | low, medium or high | How hard the model works on each turn, unless the owner has chosen. |
model.user_override | true | Whether the agent's owner may change its model. An owner always can, so false is refused. Leave it out. |
placement | an object | Where its runs execute. |
placement.default | shared, box, lease or local | Where a new agent runs. Required in placement. |
placement.fallback | a list of those places, none twice, not the default or in never | The other places its owner may move it to. |
placement.never | a list of those places, none twice, not the default | Places its owner may never move it to. |
inputs | an object | What its runs take in. |
inputs.mode | isolated | Each run starts on its own, with nothing of another run's context. The one mode there is. |
inputs.accept | a list of user, events, tool_results and untrusted | What a run takes in. With untrusted, the consent sheet lists every action its tools grant but ask.raise as asking the owner first while untrusted input is in the run. A run doesn't ask by that list yet. |
inputs.mail_from | a list of agentTypes, owner and agent:mine | Whose mail wakes it. Mail from anyone else that links.receive lets in is delivered and waits for its next run. Left out, any mail it takes wakes it. |
inputs.untrusted | data | Text a stranger wrote reaches a run marked as data, never as instructions. The one value. |
triggers | a list of at most 32 | What wakes it. Each trigger is exactly one of event, mail, ask_answered, invariant and schedule, and makes one job. |
triggers[].event | a taiku event (Events, below) | Wakes it when the event happens in its project. An event nothing on the server sees yet makes no job, and turning the agent on says which. |
triggers[].branches | a list of at most 32 branch names; $default is the project's default branch | Only events on these branches: a pull request's base, a CI run's head. |
triggers[].conclusions | a list of at most 32 CI conclusions, such as failure | Only CI results that ended this way. |
triggers[].paths | an empty list | Refused when it names a path: an event doesn't say which files changed, so nothing filters on them. Leave paths out. |
triggers[].urgent | true or false | An urgent event starts its run at once, past the package's coalesce window. |
triggers[].mail | true | Wakes it on mail from another of the owner's agents, as inputs.mail_from and links.receive allow. |
triggers[].ask_answered | true | Is to wake it when one of its asks is answered. Nothing does yet, so this trigger makes no job, and turning the agent on says so. |
triggers[].invariant | nothing | Refused: nothing sweeps for invariants yet, so none can wake an agent. Wake it with an event or a schedule. |
triggers[].schedule | a 5-field cron, at most every 5 minutes | Wakes it on that schedule. |
triggers[].tz | account, UTC or an IANA time zone, on a schedule only | The schedule's time zone. account is its owner's, read when the agent is turned on. Left out, UTC. |
coalesce | an object | How a burst of GitHub events becomes one run. |
coalesce.window_s | 0 to 3600 | Seconds a wake waits for more before its run starts; that run reads every event that came in the meantime. Required in coalesce. |
coalesce.key | repo | What shares a window: the agent's repository, since an agent has one job per repository. pr is refused. Required in coalesce. |
coalesce.urgent | a list of taiku events | These events start their run at once, as triggers[].urgent does. |
tools | a list of at most 16, each connector once | What its runs can use (Connectors, below). |
tools[].connector | a connector | Grants the connector's own actions. Required in each tool. |
tools[].scopes | that connector's scopes | Grants each scope's actions. A package whose GitHub scopes write can't be turned on yet. |
never | a list of actions, none of them a tool grants | What the agent may never do, shown on the consent sheet. |
gates | a list of at most 32 | Conditions an action needs. Shown on the consent sheet; taiku doesn't check them yet, and no package whose tools write to GitHub can be turned on until it does. |
gates[].action | an action a tool grants | The action the gate is for. Required. |
gates[].require | a list of at most 16 conditions, each naming exactly one predicate | The conditions, all of which are to hold. |
gates[].require[].head | text | Shown on the consent sheet; taiku doesn't check it yet. |
gates[].require[].checks | text | Shown on the consent sheet; taiku doesn't check it yet. |
gates[].require[].verdict | an object | Shown on the consent sheet; taiku doesn't check it yet. |
gates[].require[].verdict.from | an agentType | Shown on the consent sheet; taiku doesn't check it yet. |
gates[].require[].verdict.at | text | Shown on the consent sheet; taiku doesn't check it yet. |
gates[].require[].verdict.in | a list of text | Shown on the consent sheet; taiku doesn't check it yet. |
gates[].require[].not | text | Shown on the consent sheet; taiku doesn't check it yet. |
gates[].require[].class | text | Shown on the consent sheet; taiku doesn't check it yet. |
gates[].require[].evidence_quotes_added_lines | true or false | Shown on the consent sheet; taiku doesn't check it yet. |
gates[].require[].evidence_at | text | Shown on the consent sheet; taiku doesn't check it yet. |
gates[].require[].branch_prefix | text | Shown on the consent sheet; taiku doesn't check it yet. |
gates[].require[].paths_not | text or a list of text | Shown on the consent sheet; taiku doesn't check it yet. |
gates[].require[].at | text | Shown on the consent sheet; taiku doesn't check it yet. |
gates[].require[].in | text or a list of text | Shown on the consent sheet; taiku doesn't check it yet. |
gates[].require[].if | text, at most 200 characters | Shown on the consent sheet; taiku doesn't check it yet. |
gates[].rate | an object | Shown on the consent sheet; taiku doesn't check it yet. |
gates[].rate.max | a count, or a $scope. reference | Shown on the consent sheet; taiku doesn't check it yet. |
gates[].rate.per | a taiku event | Shown on the consent sheet; taiku doesn't check it yet. |
approvals | an object | When an action is to ask the owner first. The consent sheet lists it and the agreement keeps it, but a run doesn't ask by it yet, so a package whose tools write to GitHub can't be turned on. |
approvals.ask | a list | Actions that are to ask. |
approvals.ask[].action | an action a tool grants | The action that asks. Required. |
approvals.ask[].when | first or always | Whether it is to ask the first time or every time. Required. |
approvals.ask[].ttl | text, at most 32 characters; the sheet words until_quit | How long an answer is to last. |
approvals.when_tainted | a list of actions tools grant | Actions that are to ask while untrusted input is in the run. |
asks | a list of at most 32, ids unique | Checked at install; taiku doesn't act on it yet. |
asks[].id | 1 to 32 lowercase letters, digits or dashes | Checked at install; taiku doesn't act on it yet. |
asks[].kind | approval or input | Checked at install; taiku doesn't act on it yet. |
asks[].title | at most 120 characters, its {placeholders} from Ask placeholders, below | Checked at install; taiku doesn't act on it yet. |
asks[].options | a list of at most 4, each at most 40 characters | Checked at install; taiku doesn't act on it yet. |
asks[].action | an action a tool grants | Checked at install; taiku doesn't act on it yet. |
memory | an object | Which memory its runs reach, each none, read or write. |
memory.session | none | read and write are refused: taiku keeps no memory per conversation yet. Set it to none, and use memory.project or memory.account. |
memory.project | none, read or write | The memory of the project a run works in, at /project. |
memory.account | none, read or write | The account's memory, at /memories. |
budgets | an object, each amount at most the account's own ceiling | What its runs may spend. A run past a budget is stopped, and a day's budget stops new runs. |
budgets.per_run | an object | One run's budget. |
budgets.per_run.minutes | 0 to 120 | The longest a run goes. |
budgets.per_run.usd | dollars, zero or more | The most a run spends; its next model call past it is refused. |
budgets.per_run.tokens | a count | The most tokens a run uses. |
budgets.per_day | an object | A day's budget for the package's agents together: its agents in different projects share it. |
budgets.per_day.usd | dollars, zero or more | The most they spend in a day; past it, none of them starts a new run. |
budgets.per_day.runs | a count | The most runs they start in a day, together. |
budgets.per_repo_day | an object | One agent's budget for a day in one repository. |
budgets.per_repo_day.usd | dollars, zero or more | The most it spends in a day in one repository. |
budgets.on_exhausted | pause, ask or pause_and_ask | Checked at install; taiku doesn't act on it yet. |
report | an object | Checked at install; taiku doesn't act on it yet. |
report.to | an agentType, owner, agent:mine or none | Checked at install; taiku doesn't act on it yet. |
report.kinds | a list of ask, urgent and digest | Checked at install; taiku doesn't act on it yet. |
report.urgent | a list of at most 32 short snake_case names | Checked at install; taiku doesn't act on it yet. |
report.digest | an object | Checked at install; taiku doesn't act on it yet. |
report.digest.every | a count of minutes or hours, such as 30m or 1h | Checked at install; taiku doesn't act on it yet. |
report.digest.max_chars | at most 4000 | Checked at install; taiku doesn't act on it yet. |
report.digest.skip_if_unchanged | true or false | Checked at install; taiku doesn't act on it yet. |
links | an object | Which of the owner's agents it mails, hears from, starts and is told about, shown on the consent sheet. |
links.send | a list of agentTypes, owner and agent:mine | Who it may mail. A package with no list mails no one. |
links.receive | a list of agentTypes, owner, agent:mine and plugin:mine | Whose mail it takes; plugin:mine lets the owner's plugins leave it a note. |
links.spawn | an object | Subagents it may start. |
links.spawn.max | 0 to 10 | How many subagents a run may have going at once; one that ends frees its place, and 0 gives it no tool to start one. |
links.observe | a list of agentTypes, owner and agent:mine | Which of the owner's other agents in its project a run is told of: those it names, agent:mine for all of them. A list that names any turns this on for its conversations; the owner can turn it off for each. |
renderers | a list, ids unique | Panels of this package drawn in the agent's tile. |
renderers[].id | a panel of this package | The panel to draw. |
renderers[].slot | stack | Where it draws: the tile's stack. |
renderers[].summary | at most 200 characters | Checked at install; taiku doesn't act on it yet. |
renderers[].when | at most 200 characters | Checked at install; taiku doesn't act on it yet. |
blocks | a list of at most 8, ids unique | Cards the agent can show in its replies, listed on the consent sheet. |
blocks[].id | 1 to 32 lowercase letters, digits or dashes | What a run names the card by. |
blocks[].file | an .html file in the package, at most 512 KiB | The card, drawn in the reply with the data the run passes. |
blocks[].title | 1 to 60 characters | The card's header, unless the run gives its own. |
blocks[].fallback | 1 to 200 characters | The line shown where the card can't be, unless the run gives its own. |
outputs | a list of at most 32 short lowercase names | Checked at install; taiku doesn't act on it yet. |
treatment | an object | Checked at install; taiku doesn't act on it yet. |
treatment.tag | at most 24 characters | Checked at install; taiku doesn't act on it yet. |
treatment.style | at most 24 characters | Checked at install; taiku doesn't act on it yet. |
state | a list of states (States, below) | Checked at install; taiku doesn't act on it yet. |
suggest | an object | When the app offers this agent, with a sentence and a recording. Read for taiku's own packages only. |
suggest.signal | at most 32 characters | The usage the offer waits for. |
suggest.threshold | a number | How much of the signal it waits for. |
suggest.days | a number | Over how many days. |
suggest.toast | at most 80 characters | The offer's sentence. Without it, nothing is offered. |
suggest.video | an https:// address, at most 300 characters | The recording Learn more plays. |
suggest.poster | an https:// address, at most 300 characters | The picture shown until it plays. |
suggest.phone | an object | The take a phone plays instead, on a screen under 700 pixels wide. |
suggest.phone.video | an https:// address, at most 300 characters | The phone's recording. |
suggest.phone.poster | an https:// address, at most 300 characters | The picture shown until it plays. |
suggest.phone.width | 1 to 8192 | The recording's width in pixels, the shape its frame takes before it loads. |
suggest.phone.height | 1 to 8192 | Its height in pixels. |
coach | an object | Checked at install; taiku doesn't act on it yet. |
coach.on | at most 32 characters | Checked at install; taiku doesn't act on it yet. |
coach.steps | a list of at most 8 | Checked at install; taiku doesn't act on it yet. |
coach.steps[].anchor | renderer: and one of this agent's renderers | Checked at install; taiku doesn't act on it yet. |
coach.steps[].title | at most 60 characters | Checked at install; taiku doesn't act on it yet. |
coach.steps[].body | at most 200 characters | Checked at install; taiku doesn't act on it yet. |
coach.steps[].pose | a pose (Coach poses, below) | Checked at install; taiku doesn't act on it yet. |
branches | an object | The project's branches besides its default one, by what each is for. |
branches.prod | a branch name | Where it ships to production from: a project's CI and its agents' work on it are labelled prod. |
branches.staging | a branch name, not another key's | Where it ships to staging from, labelled so. |
branches.dev | a branch name, not another key's | Its development branch, labelled so. |
Lists
Events, for triggers[].event, coalesce.urgent and gates[].rate.per: pr.opened, pr.updated, pr.review_requested, pr.reviewed, pr.closed, pr.commented, ci.finished, ci.check_finished, queue.entered, queue.ejected, merge.landed, deploy.finished.
Event filters besides urgent: branches, conclusions, paths.
Invariants, which no trigger can name yet: ready_not_queued_30m, hold_release_met, head_unverdicted_30m, ask_past_ttl.
Connectors, for tools[], with the scopes each offers and the actions each grants:
| Connector | Grants by being listed | Scopes, and what each grants |
|---|---|---|
github | nothing | pulls.read, contents.read, checks.read, actions.read, statuses.read, merge_queue.read, merge_queue.write (merge_queue.enqueue, merge_queue.dequeue, merge_queue.jump), comments.write (comments.write), labels.write_own (labels.write_own), pulls.write_draft (pulls.write_draft), reviews.write (reviews.write) |
taiku.verdicts | nothing | read, write (verdict.write) |
taiku.repo_state | nothing | read, pr_state.write (pr_state.write), holds.write (holds.write) |
taiku.scope | nothing | read |
taiku.render | nothing | this agent's renderer ids |
taiku.mail | mail.send | unasked (mail.unasked) |
taiku.work_items | work_items.read | assign (work_items.assign) |
taiku.asks | ask.raise | none |
taiku.sessions | session.start | none |
taiku.machines | spawn.new_machine | none |
taiku.handoff | handoff.send | none |
taiku.decisions | decision.record | none |
taiku.mail's unasked and taiku.work_items's assign act for a package taiku ships only: another package may list them, and its runs get nothing from them.
Actions no connector grants, which never may still list so the owner sees them refused: pulls.merge, pulls.merge_admin, repo.settings, repo.rulesets, repo.secrets, repo.environments, push.default_branch, push.force, branch.delete, workflows.write, reviews.approve, deploy.
Actions the consent sheet lists as asking every time, whatever approvals says: session.start, spawn.new_machine, merge_queue.jump. A run doesn't ask by the sheet's lists yet.
Gate predicates: head, checks, verdict, not, class, evidence_quotes_added_lines, evidence_at, branch_prefix, paths_not, qualified by at, in, if.
Ask kinds: approval, input. Ask placeholders: repo, pr, class, check, head, question.
States: working, waiting_on_you, idle, paused, blocked, stalled, failed.
Places: shared, box, lease, local. Memory levels: none, read, write. Input kinds: user, events, tool_results, untrusted. Input modes: isolated. Coalesce keys: repo.
Efforts: low, medium, high. When a budget runs out: pause, ask, pause_and_ask. Instances: account, project.
Report kinds: ask, urgent, digest. Renderer slots: stack. Coach poses: welcome, lead, point, approve.
Targets besides another agent's agentType: owner, agent:mine, plugin:mine; plugin:mine is for links.receive only.
Time zones: account, or any of the 597 IANA zones the server knows.
Limits
| Limit | At most |
|---|---|
An agentType or an id, in characters | 32 |
| A name, in characters | 60 |
| The prompt file, in bytes | 32768 |
| Triggers | 32 |
| Tools | 16 |
| Asks | 32 |
| An ask's title, in characters | 120 |
| An ask's options | 4 |
| Gates | 32 |
| A gate's conditions | 16 |
| Short text, in characters | 200 |
A trigger's branches or conclusions, report.urgent, or outputs | 32 |
| The coalesce window, in seconds | 3600 |
| A run, in minutes | 120 |
| Subagents a run has going at once | 10 |
| How often a schedule runs, in minutes apart (at least) | 5 |
| Coach steps | 8 |
| A model, in characters | 200 |
| Cards in replies | 8 |
| A card's file, in bytes | 524288 |
| A recording's width or height, in pixels | 8192 |
Problems
| Code | Means |
|---|---|
unknown_field | A key no part of the manifest takes. |
missing_field | A required key is left out. |
wrong_type | A value of the wrong kind: text for a list, a list for a number. |
bad_value | A value outside what the key takes. |
bad_slug | Not lowercase letters, digits and dashes, or too long. |
too_long | Text longer than the key takes. |
too_many | A list longer than the key takes. |
duplicate | The same entry twice where each must be unique. |
bad_path | Not a path in the package, or not the kind of file the key wants. |
missing_file | A path the package doesn't hold. |
too_large | A file larger than the key takes. |
bad_model | Not a model written provider/model, or a provider the server can't reach. |
placement_conflict | A place listed both as allowed and as never. |
one_trigger_kind | A trigger that isn't exactly one kind. |
unknown_event | Not one of taiku's events. |
filter_without_event | A filter on a trigger that isn't an event, or a time zone on one that isn't a schedule. |
unknown_invariant | Not one of the invariants. |
bad_schedule | Not a 5-field cron. |
schedule_too_frequent | A schedule more often than every 5 minutes. |
unknown_connector | Not one of taiku's connectors. |
unknown_scope | Not a scope the connector offers. |
unknown_action | Not an action anything names. |
action_not_granted | An action none of the package's tools grants. |
never_conflicts_grant | An action listed as never that a tool grants. |
unknown_predicate | A gate condition that doesn't name exactly one predicate. |
bad_placeholder | A placeholder that isn't one of the fields, or unpaired braces. |
bad_target | Not an agentType, owner or agent:mine where one is wanted. |
unknown_panel | A panel this package doesn't have. |
unknown_renderer | A renderer this agent doesn't have. |
over_ceiling | A budget above the account's own ceiling. |
not_supported | A key or value the manifest names that taiku doesn't act on: the problem's words say what to use instead. |