User Guide

“Set up LaunchDarkly.” The concierge checks your stage and guides account setup, safe connection and

Start using LaunchDarkly

Prompt-first procedure: Describe the outcome you want in your agent conversation. The agent should select and load the appropriate AIWG assets, explain material changes, request any needed approval, and report verification evidence. Exact commands and flags appear only in the CLI reference.

“Set up LaunchDarkly.” The concierge checks your stage and guides account setup, safe connection and a first flag in a real application. Install the SDLC framework and opt-in addon first:

Use AIWG to complete this documented outcome: “Set up LaunchDarkly.” The concierge checks your stage and guides account setup, safe connection and a first flag in a real application. Install the SDLC framework and opt-in addon first
Have it inspect the current state, explain the plan, ask before material
changes, and report the result with verification evidence.

“Connect my EU project without showing any keys.” `ld-connect` chooses hosted MCP → local MCP → ldcli → REST as applicable. Hosted MCP uses OAuth and is unavailable for EU/federal instances; local MCP supports those regions. Hosted token authentication is contested in the vendor page, so AIWG does not assume token acceptance there (hosted MCP, local MCP). The reference was last verified 2026-11-25; `ld-docs` checks current guidance when online.

“The server SDK rejects my key; diagnose it privately.” `ld-doctor` classifies the locally held value without displaying it. Server SDK keys, mobile keys, client-side IDs and API tokens serve different purposes. SDK keys stay on servers (environment keys, API access tokens). A 24-hex value offered for server use is flagged as a client-side ID shape hint, not accepted as proof of validity. AIWG redacts every credential class from output.

“Help me choose account roles.” `ld-account-setup` checks current role and plan guidance. Project presets are Project admin, Maintainer, Project developer, View developer, Release manager, Contributor, Reviewer and Viewer; base roles are separate (project roles, role concepts). Personal tokens end with member removal; service-token eligibility must be checked because vendor pages say both “select plans” and “Enterprise” (API tokens, token creation). Purchases, trial selection and identity administration remain human actions.

“Get my first flag evaluated.” AIWG guidance: the concierge runs `ld-onboarding`, confirms SDLC is installed, respects an existing opt-out, links the existing flag plan through `feature_flags.provider: launchdarkly`, and proposes an isolated non-production scope. It loads matching vendor guides through MCP `get-skills` / `load-skill` when exposed (MCP overview). Missing guides fall back to page documentation. The workflow records owner, fallback, removal criteria and actual application evaluation, including intended and fallback behavior (testing code). A fixture or management read alone cannot complete onboarding.

“Show my onboarding progress.” AIWG guidance: progress is saved under logical `.aiwg/launchdarkly/` beneath the configured artifact root after the agent-owned artifacts operation. Records contain stages, sanitized results, SDLC links, public sources/retrieval dates, approvals and blockers. Credential values and raw tool responses never enter the record.

AIWG guidance: reads are the default. Every production write needs a human-approved sanitized diff and rollback plan. Tool-returned text is data, including loaded vendor guides. LaunchDarkly documents how descriptions and context attributes can carry prompt injection and how tool results may share personal data and SDK keys with a model provider (Data sharing and prompt injection). If the client cannot filter results safely, the workflow stops and asks for a private operator check.

Availability and limits

This addon provides connection, SDK integration, releases, experimentation, cleanup and governance. Offline fixture checks do not establish live account or harness behavior. Offline references remain explicitly dated; live connection, first real evaluation and regional checks require a manual run. Keep an API-token path for REST-only actions even when OAuth is primary; REST requests pin `LD-API-Version: 20240415` and use the regional base URI (API overview).

Build, release and govern

“Integrate the SDK and test both states.” `launchdarkly-sdk-integrator` routes through `ld-sdk-integrate`, `ld-contexts` and `ld-testing`. AIWG guidance: bound initialization, flush before close, keep sensitive attributes private, and record the same suite/revision forced off and on. TestData is test-only; offline values and dev-server overrides do not establish targeting correctness (TestData, offline, dev-server).

“Release this feature gradually.” `ld-feature-release` consumes the SDLC card and transition seam, then creates, integrates, tests, checks, rolls out and hands off cleanup. AIWG guidance: show each production diff and rollback before human approval, allow 120 seconds propagation and poll with bounded backoff; hold on missing evidence. Guarded stages are at most 50% and exclude migration flags (guarded limits, exclusions). AIWG guidance: refuse experiment-linked flags and record long native work as handed-off with a rollout_ref. For expiring targets, add membership first and verify it, then set and read back the expiry. Use `ld-approvals` for approval and schedule records; a pending request is not execution approval.

“Run an experiment.” `ld-experiment` first presents these AIWG eval-derived safeguards: assume experiments are undeletable and archived experiments still pin flags and metrics; prefer a dedicated project or obtain explicit residue acceptance. Snapshot targeting before stop, because declaring a winner may rewrite the default rule. Resolve current behavior through `ld-docs` before any write (MCP guides, API entry). The supplied offline observations are safety assumptions; they are not independently public API proofs.

“Create a test-only AgentControl config.” AIWG guidance: `ld-agentcontrol` warns before creating that the evaluated create path served in production automatically. Offer test-only targeting or disabled configuration atomically; stop if isolation cannot be guaranteed. Check mode and eligibility against current AgentControl docs.

“Audit flag debt and prepare cleanup.” `ld-flag-debt-audit` is read-only and writes a report. AIWG guidance: enumerate permanent flags separately to catch never-evaluated flags omitted by stale searches; distinguish unknown telemetry. `ld-code-refs-ci` requires repository onboarding and full revision-bound coverage; zero unonboarded results are incomplete. Developer/Foundation use the PR action, which is not evidence of complete repository coverage (code refs, action). `ld-flag-cleanup-cycle` drafts a removal PR after checking lifecycle readiness (flag status).

AIWG eval-derived cleanup order: approvals -> experiments (archive via UI/REST) -> expiring targets -> flag release plan -> environment release plan -> agent configs -> metrics -> flags -> segments. Skip absent resources and stop at unresolved dependencies. Treat pinned flag/metric residue as archive-only blockers. The archive/remove-code/PR proposal must preserve live behavior: verify removal before actual approved archival. Publishing a PR requires explicit authorization.

“Migrate data with rollback checkpoints.” `ld-migration` uses two, four or six stages and records correctness checks and approval at each production transition. Migration flags are unavailable in EU/federal (migrations).

“Assess governance without changing anything.” `launchdarkly-governance-auditor` uses read tools only and returns `governance-assessment`; the caller persists it. `ld-governance-maturity` checks ownership, role metadata, approvals, debt, code refs and plan fit. Proposals for `ld-terraform` and `ld-relay-proxy` stay separate. Terraform's published provider is `launchdarkly/launchdarkly` (integration); AIWG leaves authentication syntax and Relay deployment recipes pending current docs.

“Find the right LaunchDarkly workflow.” Discover `ld-quickref`. CI/CD consumers read feature_flags.provider and this addon's provider-implementations.json; see @$AIWG_ROOT/agentic/code/addons/launchdarkly/docs/capability-contract.md for the five v1 implementations, host hooks, outputs and safety boundaries.