Agent lifecycle
Agent lifecycle
Section titled “Agent lifecycle”Every declarative agent moves through the same set of phases. Work IQ Dev Tools give you one command per phase, and the phases compose into a predictable pipeline you can run locally or in CI.
The phases
Section titled “The phases”create ─▶ edit ─▶ validate ─▶ provision ─▶ package ─▶ publish ─▶ monitor ▲ │ └──────────────── iterate ─────────────────────┘1. Create
Section titled “1. Create”Scaffold a new project from a template.
wiqd agent create --name my-agentYou get a directory with the appPackage/ files described in Declarative agents, plus a m365agents.yml driver file for the lifecycle commands.
2. Edit
Section titled “2. Edit”Open the project in your editor. Tweak the instructions, add knowledge sources, attach actions, or add conversation starters with the bundled VS Code extension. You can also script edits with wiqd agent add action and wiqd agent add skill.
3. Validate
Section titled “3. Validate”Catch problems before deploying.
wiqd agent validate # fast static checkswiqd agent validate --mode deep # full ATK validationStatic mode runs the Microsoft Validation Layer (MVL) engine offline — no network, no auth, sub-second. Deep mode adds the upstream ATK semantic checks. See Validation & MVL.
4. Provision
Section titled “4. Provision”Deploy the agent to an environment. The first run creates the M365 app registration; subsequent runs update it.
wiqd agent provision --env local5. Package
Section titled “5. Package”Build the distributable .zip for sideloading or upload.
wiqd agent package6. Publish
Section titled “6. Publish”Push the package to the org catalog so other users can install it.
wiqd agent publish --env prod7. Monitor & iterate
Section titled “7. Monitor & iterate”Once the agent is live, query its usage and health, then loop back to step 2.
wiqd agent monitor # ask the Insights Agentwiqd agent ask -q "..." # send a test promptwiqd agent eval # run quality evaluationsSide branches
Section titled “Side branches”A few commands sit outside the linear pipeline but you’ll use them often:
wiqd agent show— glanceable summary of what’s in a project (local) or a deployed agent (remote).wiqd agent env— manage environment definitions.wiqd agent share— give other users access during development.wiqd agent delete— tear down cloud resources.
Go deeper
Section titled “Go deeper”- Environments —
local,dev,staging,prod wiqd agent create,provision,package,publish- Agents Toolkit extension — implements most of these phases
- Eval extension — quality evaluations on deployed agents