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 (the latter is behind the agent-skills preview flag — see Feature flags).
Worker Agents
Section titled “Worker Agents”Ask the WIQD Skill to add or connect a Worker. Until friendly-name resolution ships, provide the
canonical worker_agents[].id value directly. Once the resolver is available, the Skill will use it
automatically; you do not need to invoke the resolver or supply an internal workflow ID. The Skill
will not guess from a friendly name or truncate a full composite agent ID. Worker authoring requires
a schema version that supports worker_agents (v1.6 or later), and it adds only { "id": "..." }
entries; local { "file": "..." } Workers are not supported.
You can also ask the Skill to remove or disconnect a Worker. It confirms the exact ID and removes
only the matching manifest reference; it never deletes the deployed Worker. When the last reference
is removed, the Skill removes the worker_agents property instead of leaving an empty array. This
keeps v1.6 manifests valid and normalizes the same state for later schema versions. Adding an
existing ID or removing an absent ID is a no-op. In either flow the Skill preserves unrelated
manifest content and validates the project before editing and again after a changed edit. An invalid
project remains unchanged. Validation does not deploy the change: provisioning happens only when
you explicitly ask to deploy or provision. Test and evaluate requests use the eval workflow and do
not implicitly provision.
3. Validate
Section titled “3. Validate”Catch problems before deploying.
wiqd agent validate # fast static checkswiqd agent validate --mode deep # full Microsoft 365 project validationStatic mode runs the Microsoft Validation Layer (MVL) engine offline — no network, no auth, sub-second. Deep mode adds semantic project checks through the validation/core extension boundary. 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- wiqd Core extension — implements most of these phases
- Eval extension — quality evaluations on deployed agents