DevHub · For AI agents
Workflows
Each workflow lists the calls in order. Take every id from a result, never from memory.
Answer how or why something works
Section titled “Answer how or why something works”vault_listif you have novaultId. Choose the repository vault for a question about one repository.knowledge_searchwith the question. Userag_contextinstead when you need grounded context to reason from.- Read the best hit:
knowledge_getfor a hit,vault_file_readfor a note path. - Empty result:
vault_overviewshows which folders feed the search,vault_files_searchreads all folders,knowledge_index_statussays whether the index is ready. - Open source only after the vault, and only for what the vault does not say. When the two disagree, the code is right; record the correction (see “Record knowledge”).
Change code
Section titled “Change code”context_pull.workspace_listfor theworkspaceId;vault_listfor the vault.vault_overviewon the repository vault. Thenknowledge_searchfor the rules of this repository.repo_index_status;repo_index_refreshif stale.repo_symbol_searchto find the place,repo_filefor its neighbours,repo_impactandrepo_callersbefore you change a signature.file_read, thenfile_replaceorfile_edit. Usefile_createfor a new file.npm_script_list, thennpm_script_runwith the project’s own check or test script.repo_index_refresh, thenrepo_changedto see that your files reached the index.- Report what changed and the result of the checks.
Look into something before building it
Section titled “Look into something before building it”investigation_list. The ground may be covered already, and a rejected variant is worth knowing.investigation_createwith a title and the repositories.- After each finished piece of the looking,
investigation_add. Use one document per way of doing the thing: an analysis (what is there), a variant (a way in), a plan (what to do), a finding (what was settled). - You cannot close an investigation. Say in your answer that it is ready to close.
Work from a plan
Section titled “Work from a plan”plan_ready, with noplanIdto see every plan. Never assume a step is free because it looks next.plan_claimwithplanId,stepId. Givebyif your endpoint does not identify you. The answer carries the step, its resume and a working tree.- Read the step’s assignment and
nextSteps. Decisions the owner pushed there override the assignment. - Work only in the working tree the claim returned.
- During a long step,
plan_renew. A claim nobody renews lapses and the step goes to someone else. - Commit with the step trailer, then
plan_closewith the commit shas. It merges the working tree back and records what landed. Useas: "withdrawn"for a step that will not happen; nothing is merged. step_logat the end of every stint, including one that failed: what you did and what comes next.step_updateif the status or the next steps changed.
To open a plan yourself: plan_create once an investigation has settled what to do, then step_add for each piece. Size a step to land as one commit. Name the steps it waits on (gates) and the files it touches (scope).
Record knowledge
Section titled “Record knowledge”vault_overvieworvault_files_searchto find where the note belongs and whether it exists. Take the path from the result.vault_file_replaceto correct a note,vault_file_createfor a new one. The vault must allow writing over MCP.knowledge_index_refreshifknowledge_searchdoes not return your note yet.- Something went wrong and the reason is worth stating:
learning_note, one note per lesson. A standing fact about the work or the user:memory_note.
Ask another agent
Section titled “Ask another agent”agent_list. It shows each agent, which client runs it and whether it can run at all.agent_runwithagentIdand thetask. After 45 seconds it can answerRUNNING <runId>. That is not a failure.agent_run_statuswithwait. Do not run the task again.
Verify what you did
Section titled “Verify what you did”audit_summaryfor “is anything broken now”,audit_listfor one failed call.display_screenshotafterdisplay_listto see the result on screen, when the user allows it.