AI Planning and Generation
Use the Developer Hub's planning conversation to turn an app idea into a saved implementation plan, review it, and hand it to a hosted coding session. Planning, generating source, publishing a release and installing it in a project are separate steps. Plan validation does not establish that the app works or that its permissions are safe.
This guide covers the app planner. Experience Plans use a separate project worklist and finalization lifecycle. Development sessions covers the hosted workspace after handoff.
Before starting
Sign in with a verified platform account, select the owning team and open an app you can manage. Its repository must finish initialization before a coding session can start. Planning can begin while repository setup is running.
New planning sessions and conversation turns require a positive effective team AI credit balance, or an unlimited AI entitlement. The platform does not reserve the cost of the entire proposed build at start. A small balance can run out during work. See features and subscriptions.
The AI retention notice is a passive banner. Its dismiss control records the current notice version and acknowledgment time on your account. A new notice version shows it again. Acknowledgment is not a blocking prerequisite for the planning endpoint.
Restricted hosted agent definitions
System AI Agents (/system/plugin-agents) manages hosted Planning, Coding and Coding Chat definitions, including global and team-scoped records. It is separate from local assistant instruction files, attendee AI interfaces and the system AI-model catalog. Access inherits the system-host super-admin/two-factor gates plus authenticated/verified account, team-context and password-confirmation middleware. This controller relies on those route gates rather than per-method resource policy calls; ordinary Developer Hub access is not permission to use these system controls. Deployed access/refusal still needs verification.
Locate and create a definition
The list shows ID, Name, Job Type, Scope, Team, Model and Active, with 25 rows by default (validated page sizes 1–100). Search matches name/description. The controller supports job type, scope, team and active filters, but this does not establish a visible control for every filter. It includes both global and team records rather than implicitly limiting the query to the current team. A blank Team or (default) model label is a display fallback, not proof of ownership, effective provider selection or readiness.
Create with Name, Job Type, Scope, the intended Team for team scope and optional Description. Team scope requires an existing team on creation; non-team creation clears team identity. The server stamps the creator and copies current job defaults for omitted provider, model, sampling, prompt, phase and tool fields. Explicitly supplied values, including nulls, are preserved. These copied defaults are saved values, not a promise the definition tracks later platform-default changes. Creation opens the detail editor; it does not select the agent for every administrator or start a session.
Edit configuration and understand inheritance
The detail page separates Configuration, Model, System Prompt, planning-only Phase Prompts and Tools. Changes use an explicit save. Job Type is read-only and is not accepted by update rules. Verify scope/team deliberately when changing audience: update clears the team for an explicitly non-team scope, but its validation does not repeat creation's team-required rule. Do not assume an invalid/incomplete team-scope transition will be repaired automatically.
Model controls offer provider/model, temperature 0–2 and max tokens 256–32768. Visible provider choices are not a provider health check; server rules accept provider/model strings without proving deployment support. Keep credentials and provider setup in the private operator configuration. A successful save does not demonstrate a usable model, quota admission or generated output.
At configuration resolution, non-null provider/model/sampling fields override platform defaults. Tools are a full replacement whenever non-null, including an empty array; an empty array is not inheritance, despite the form's empty-to-inherit hint. Null permits default tools. A nonempty system prompt overrides the default; an empty string falls back. Phase prompts overlay defaults by phase, skipping null entries; empty strings can replace a phase prompt. Reload and inspect persisted values, and verify a controlled new session before broadening availability. These fields do not independently grant platform endpoint, repository, network or attendee permissions.
Separate preferences from running sessions
Admins Using This Agent counts preference rows referencing the definition, not active sessions, unique current users, successful generations or billable calls. The internal configuration resolver uses the session administrator's preference for the requested job type and loads its chosen active definition. With no session administrator, preference or active definition, it falls back to platform defaults. Editing a definition does not prove already-running services reloaded it; compare the selected definition and a new session's resolved behavior through the authorized maintainer.
Changing scope is not established as retroactive preference invalidation: this resolver checks the selected definition's active flag but does not itself revalidate its scope/team/job type against the preference. Selection-time checks and deployed isolation need separate verification. Do not treat a scope label or hidden choice as complete enforcement.
Diagnose and retire definitions
If the expected configuration is absent, retain definition ID, job type, scope/team, saved fields, selected preference and session identity. Distinguish copied defaults, explicit nulls, empty arrays/strings, inactive fallback and an already-running session before changing prompts or retrying generation. A list row/save response is not execution acceptance. Never include credentials, private prompt content or user conversations in public diagnostic reports.
Deletion removes the model record; it does not declare soft deletion. The preference migration sets referencing agent IDs to null on deletion, which supports later default fallback rather than proving running work stopped. No dashboard Restore flow, session cancellation, repository rollback or provider cleanup is established by this delete handler. Verify affected preferences and future session selection; keep detailed recovery, provider configuration and operational interventions in private runbooks.
Restricted planning-session inspection
System Agent Planning Conversations (/system/planning-sessions) is a read-only inspector across teams. It inherits system-host super-admin/two-factor, authenticated/verified account, team-context and password-confirmation gates; the controller relies on those gates rather than per-row ownership policies. This access does not transfer the owner's planning conversation or grant ordinary developers access to other teams' transcripts. Keep private conversations, owner email and requirements out of public reports. Deployed allowed/denied access remains acceptance work.
Locate the correct planning record
The list defaults to Created descending and 25 rows, with validated page sizes 1–100. Search matches thread ID, plannable name and owner name/email; it is not transcript-content search. The handler supports status, team, plugin-page and owner filters, but the current page does not render its old team dropdown. Its Type column is marked sortable while the controller sort allowlist excludes that field; a rejected sort is not missing data. Preserve the exact request/filter/status when reporting a failure.
Confirm session/thread ID, plannable type and owning team/account rather than relying on a repeated app name. Displayed Plugin / Team can represent a polymorphic planning owner such as a plan, page, theme, tile or widget. Some legacy filters and related-build/stat paths still use the plugin-page relationship; they are not complete cross-type discovery. Blank related identity can reflect absent/deleted relationships and does not establish a global/public conversation.
Read global summaries and saved detail
Index cards are global queries independent of table search/filter/pagination. Active sessions counts rows with status active; Sessions today and Cost today use creation date, while Approved today uses approved status and approval date. These are different populations, not necessarily the visible rows or an end-to-end conversion rate. A table-only AJAX response returns paginated sessions, not refreshed card statistics. Reload the full page when comparing observations and retain the time window.
The detail page has Overview, Conversation, Plan document and Requirements tabs. Overview shows stored identity, status, phase, variant, usage/provider/model and timestamps. Phase comes from the saved plan document, separately from portal status. Token/cost fields are stored estimates; formatting missing cost as zero does not prove no provider activity or a settled invoice. Approval, plan readiness and expiry do not establish successful code generation, publication or attendee acceptance.
Conversation renders saved messages and option labels; the plan tab displays the saved document as formatted JSON/text. These are inspection views, not buttons to answer the planner, approve a plan or run a requirement. Sanitized message rendering is not privacy redaction or proof every content block was preserved. Empty messages/plan display should be checked against the saved record and owning workflow before concluding the service never ran. The plan renderer currently logs its props to the browser console; avoid sharing unredacted console exports or screenshots.
Trace builds and diagnose observations
The detail handler fetches at most ten newest coding sessions for the legacy same-plugin relationship. They are not joined to this exact planning session or filtered to its variant, and the current tab configuration does not render a Related tab. Do not treat the payload, an empty related list or a nearby build timestamp as proof of a one-to-one plan/build handoff. Match the actual plan, owner, variant and coding-session identity in the owning Developer Hub workflow.
The separate statistics handler defaults to a seven-day creation window, accepts 24-hour/7-day/30-day/90-day choices and groups by day, status or team; team grouping is limited to twenty rows and uses plugin-page joins. These are stored session/token/cost aggregates, not unique people, provider billing or complete polymorphic coverage. This endpoint does not establish a chart/filter control in the current index page.
No system create, edit, approve, revise, terminate or delete route is provided by this inspector. To continue a conversation or correct a plan, use the original owner's supported planning workflow and its permissions. For stale or contradictory observations, retain IDs, plannable type, owner/variant, status/phase, timestamps, filters and response evidence, then reload and compare the owning session. Do not start a new generation merely to refresh counters. Detailed agent/worker/provider recovery stays with the private operator runbooks.
Choose the app and variant
Create an app with Start planning with the agent. For an existing app, open Code → Start Coding Session, choose Variant in the dialog, then Plan with the agent first. A single-variant app selects its default automatically. Confirm the variant name in the planning header.
For saved work, open Code → Plans and locate your session by owner and variant. Continue resumes active planning; Revise reopens an eligible saved session and clears its approval. Returning through the start dialog with the same variant also resumes your active or ready session. If Code offers an existing coding session instead of a new start, resolve it before another generation handoff.
A saved session keeps its original variant; changing the URL selection does not retarget it. New selections must refer to a live variant belonging to the app. Saved history can retain an archived variant's identity, but that does not make it available for another build.
The page resumes your active or ready planning session for the selected variant. A duplicate start returns the existing session rather than making another planner call. Without an explicit selection, it can resume your latest active or ready session for the app, including another variant; check the header before continuing.
Planning history belongs to its initiating account. Another team member's app access does not transfer ownership of that conversation. Planning conversations for different variants can coexist, while hosted coding-session admission is app-wide: an active preview on another variant can block handoff.
Write a useful initial request
Initial requests accept 10–10,000 characters; subsequent messages accept up to 10,000. Describe behavior and constraints that make the implementation testable:
| Include | Useful detail |
|---|---|
| Audience | Guests, signed-in attendees, groups or administrators; explain who must be denied |
| Journey | First screen, actions, success and cancellation outcomes |
| Resources | Forms, collections, agenda data or attendees, with the source of each selection |
| Configuration | Values that differ per project, selectors and dependency identifiers |
| Permissions | Required operations, record scope, field visibility and write access |
| Interface | Existing AppUI/scaffold, branding, mobile layout, loading, empty and error states |
| Verification | Specific inputs and expected results, including denied access |
For example: “Build an attendee agenda app. Signed-in attendees can see sessions assigned to their group, filter by day, and view location details. Project admins select the agenda through configuration. Show a helpful empty state and mobile layout. Identify dependency permissions. Verify an attendee outside the permitted group cannot retrieve restricted data.”
State what already exists. For a revision, describe the exact change and what should still work. Ask the agent to discover operation IDs, permission metadata and configuration types from installed references.
Discuss, save and refine
- Choose Start planning, then answer clarification and feasibility questions.
- Ask to generate the plan. “Ready” or “approved” in chat does not prove a plan document was saved.
- Read the saved plan pane: overview, success criteria, tasks, paths, dependencies, configuration, API declarations, test scenarios and validation notes.
- Request concrete changes while planning remains open. For example, “Revise the agenda task to show a retry action after a failed request, and add a denial test for another group.”
- Wait for the current turn to settle and confirm the updated document. Approval is disabled while a turn is pending or refinement is in flight.
A ready plan remains editable through chat until explicitly approved. Discovery drafts, fallback documents and documents marked requires refinement need more planning. If reference catalogs are unavailable, preserve the document and retry after service recovery.
Concrete revisions to a structured plan use the saved artifact and requested change. A generic Keep refining response returns to clarification. Review every resulting document; asking for a change does not guarantee its incorporation.
During detail clarification, a simple Continue, Proceed or Go ahead can move directly to feasibility once the conversation already has at least three recorded requirements and a planner reply. This skips another clarification call; it does not approve a plan or guarantee a saved document. A message that also requests a change, such as “Continue but change Reset to remove tasks,” still needs clarification, as does a conversation without enough recorded requirements. If the feasibility response is refused or incomplete, the planner preserves the clarification phase and offers Revise the request. Review the response and revise the request rather than treating the attempted continuation as a successful phase transition.
Understand validation
Before approval, the app planner checks:
- Unique, nonempty task IDs, repository-relative non-secret paths and a create, modify or delete action.
- Dependencies that refer to existing tasks without cycles.
- Success criteria, task acceptance checks and test requirements that describe observable behavior instead of repeating requirements.
- Declared API operations, parameter names and origins, exact permission metadata, and request-body media types/origins against installed references.
- Configuration names unique within their settings, dependencies or navigation group, and types present in the installed field catalog.
Approval rechecks structure and installed references, including restored plans. A plan with no declared API operations or configuration fields can have grounding marked not applicable: those catalog checks had no declarations to examine.
Validation checks declarations. It does not execute API calls, validate all runtime payload values, inspect every future generated call, prove resources exist or test attendee authorization. Verify the implementation in its consuming project.
Review data scope and test evidence
The reviewed default planner prompts ask for the following behavior. Custom agent prompts can override defaults, and generated plans/code still require inspection; these instructions are not proof of enforcement.
- Match each dependency's declared model and parent scope. Finding a binding does not select the runtime project; do not relabel an attendee binding as a project or override team/project context to make a call succeed.
- Verify actual response fields when minimizing data. An empty
visibleFieldsvalue inherits available/unrestricted fields rather than redacting them. Hiding contact information in the UI does not prevent its transmission. A count-only requirement needs a verified aggregate or enforced response-field ceiling; inspect real response keys. - For counts, accept only nonnegative safe integers, including zero. Test malformed, fractional, negative and non-finite values. Clear stale values after a binding changes, disappears or returns a denied/error response.
- Show fixed, safe error text rather than raw upstream messages, and verify denied/not-found responses do not expose another resource's data.
- Exercise the actual UI controls/composable under acceptance, mocking the external API/store boundary. If the environment cannot load those controls, retain that acceptance as pending. When deliberate implementation-defect checks are requested, change one defect at a time, prove its behavior assertion fails, restore it and rerun affected tests; changing mock inputs alone is not that evidence.
Keep implementation and its behavior tests together in a coherent task checkpoint. Publication, installation, live operator actions and permissions outside the coding task remain explicit pending acceptance rather than simulated success. Use Permissions and Dependencies and Project Acceptance for the surrounding workflow.
Example of observable tasks
This structural example has no platform API or project configuration. It illustrates saved task fields, rather than a session-start request. The planner sets approval, contract and grounding metadata during its own review.
{
"plugin_name": "Session checklist",
"plugin_slug": "session-checklist",
"overview": "A three-item checklist whose checked items persist on this device.",
"origin": "structured",
"success_criteria": [
"Reloading on this device preserves the checked item without checking the others."
],
"api_operations": [],
"configuration_fields": [],
"tasks": [
{
"task_id": "checklist",
"title": "Render and persist the checklist",
"file_path": "src/checklist.vue",
"action": "create",
"depends_on": [],
"pseudocode": "Render three checkboxes; restore and save their state in local storage. Include src/checklist.test.js in this same task: check item one, remount with saved storage, inspect all three real checkbox controls, and test storage failure.",
"acceptance_criteria": [
"Checking item one leaves items two and three unchecked.",
"After remount, only item one remains checked; storage failure keeps controls usable and reports unavailable persistence."
]
}
],
"test_requirements": [
"Check item one, reload on the same device, and expect only item one to remain checked."
],
"error_handling": {
"storage": "Keep the current screen usable and show that persistence is unavailable if storage fails."
}
}
Use paths and tests suited to the actual scaffold. Keep the implementation and its coupled behavior tests in one task: file_path names the primary file, while pseudocode names the affected test files. Do not mark the implementation complete while its required tests are deferred. The example groups both files under one task; it is not a runnable scaffold or proof those tests passed.
Approve and generate
Choose Approve after review. The portal asks the planning service to confirm approval and return its authoritative document; a locally saved document alone is insufficient. Repeating approval for an already approved session is idempotent.
| Result | Meaning and next step |
|---|---|
| Planning is still updating / 409 | Wait for the response, then refresh the saved session |
| Plan requires refinement / 422 | Resolve validation notes through planning |
| Approval service unavailable / 502 | The saved plan remains; retry after service recovery |
| Approved | Chat is locked; review the variant before handoff |
Approval can update the app description and discovery keywords from the planner's overview. It does not publish code or change an installed version.
Before Generate code now, inspect open pull requests targeting the selected variant's trunk. The planning handoff currently skips the ordinary preview-start pull request warning. Unmerged changes are not included in the trunk used for the new session; merge required work or account for it before generating.
Generation starts an AI-assisted hosted session from that variant's production/trunk branch. It can be rejected if the repository is not ready, a preview occupies the app or the saved plan needs current validation. Already generating or completed plans reject another direct generation request.
Failed builds can retry when saved approval and the validated contract remain intact; otherwise reopen and revalidate first. The server can confirm approval inline for a ready plan whose earlier approval did not settle. Use the visible approval step as the normal workflow.
The planning handoff checks saved approval/contract/grounding state. The separate low-level preview-start endpoint accepts nonempty plan text and applies a narrower draft check; it does not replace the planner's approval process.
Recover interrupted planning
Inspect the saved session before starting replacement work. A lost connection does not prove the provider performed no work.
| State | Recovery |
|---|---|
| Saved turn awaiting reconciliation | Let the UI retry the same turn, or use its saved-turn retry control. New messages and approval stay blocked until it settles |
Planning request denied (403), at develop 25e1564 | The UI reports that the saved plan is unchanged. For a new message, it removes the optimistic user entry and restores the rejected message text if the composer is still empty; a denied recovery attempt retains the pending turn. Check the session owner, team/access and current saved state before retrying. |
| Still pending after automatic retries | Preserve the conversation, refocus or reload for current state, then retry the saved turn. Report the session ID if unresolved |
| Failed planning with no pending turn | Use Reopen session to restore conversation, requirements and document |
| Out of AI credits | Check Account & Billing, arrange a top-up, then retry the saved turn or reopen |
| Lost planner checkpoint | Recovery restores saved state. If that fails after meaningful progress, it preserves history instead of silently replacing the conversation |
| Failed code generation | Inspect the linked coding session, branch and errors before Retry build or Revise; resolve an existing preview before another start |
The 403 handling above was source-reviewed on 2026-10-19 at develop 25e1564. A recovered server session can clear a stale reconciliation error when no pending turn remains. This UI behavior does not independently prove provider execution, persisted plan content or deployed authorization; compare the saved session and document after a denial or recovery.
The UI makes two automatic reconciliation retries with delays before leaving the turn pending. A saved turn identifier prevents a duplicate conversation entry; it does not promise exactly-once provider execution across failures.
If cancelling an active planning session returns planning_cancellation_unconfirmed (503), cancellation was not confirmed. The controller preserves the session and saved work instead of expiring it. Wait for the current turn or retry cancellation later; do not assume the agent stopped or start replacement work just to dismiss the error. An inactive session or one without a planner thread follows a different path, so the error is not a universal cancellation outcome. Verify the resulting saved status before proceeding. This applies to app planning and Experience Plan planning; it does not prove hosted coding workspace cleanup.
For planning-service or credit failures, reopening restores the planner before clearing saved failure state. If restoration cannot be confirmed, it returns a retryable error and preserves the failed session. A valid review document can reopen ready for review; a discovery/refinement draft returns to active planning. Reopening clears approval.
Active planning starts with an approximately one-hour expiry. Scheduled cleanup can expire abandoned sessions and retain their transcript with a system note; actual transition timing depends on cleanup. Confirmed cancellation marks the session expired rather than deleting stored history; an unconfirmed active-thread cancellation preserves its prior state as described above.
Credits are shared at team scope. Account & Billing currently directs top-ups through support rather than a complete self-service checkout. See billing and entitlements for effective balances, reset dates and unlimited flags.
Review the generated app
Inspect source, diffs, task output and preview behavior. Use the plugin's installed AppUI library and scaffold; the Hub's internal Vue components are not automatically available to attendee apps.
Verify successful and denied API behavior, dependency bindings, configuration, mobile layout and empty/error states. Check that meaningful tests ran. Preserve the branch, build the intended trunk, publish a verified release, install that version and test the real portal.
Continue with creating an app, development sessions, variants and releases and app configuration.