Adopt the repo
Adopt the solutions repo
This page is the single entry point for solutions engineers adopting this repository. Pick one path below and follow the numbered steps — you do not need to read everything on the site first.
New here? Gather credentials: Prerequisites. Unfamiliar terms: Glossary.
Should I use this repo at all?
| Situation | Use this repo? | Why |
|---|---|---|
| Pre-sales demo: you have 15–30 min on Zoom and need a working Aiden in front of a prospect. | Yes — run a scenario | One make demo SCENARIO=… gets you to “first agent reply” faster than clicking through the UI. |
| Fast Agent/Workflow/Skill without Terraform: kubectl-style YAML apply. | Yes — Path 4 | Kinded YAML apply with stackgen-beta ≥ v0.82.0-rc.1. |
| PoC handoff: you configured a tenant in the UI and the customer wants it in code. | Yes — capture it | Use aios-export to snapshot the tenant to HCL the customer can own. |
| Multi-env rollout: the customer wants dev / staging / prod tenants from the same baseline. | Yes — clone the scenario | Each scenario is parameterized by stackgen_url / stackgen_token; same root, different terraform.tfvars. |
| Discovery call, no Aiden yet: the prospect wants to see what an “agent” even is. | No — open Aiden OS UI | Modules add latency you do not need. Come back here once they nod at the concept. |
| Internal eng explaining the platform to another eng team. | Maybe — link Architecture | The diagram doc is faster than reading 15 module READMEs. |
Path 1 — Demo Aiden today (pre-sales)
Best when: you have a prospect on Zoom and need a working agent in under 30 minutes.
- Check credentials — run
make demo-doctorfrom the repo root. It reports missing StackGen URL/token, LLM keys, or integration secrets before the prospect sees a stack trace. - Pick a scenario — open the SE Playbook prospect-question table, or browse the scenario index.
- Run the demo —
make demo SCENARIO=<name>(wrapper overtofu init && applyinexamples/scenarios/<name>/). - Walk the talk track — each scenario README has a Talk track section (5 bullets). Open the Aiden URL from
tofu output. - Reset between calls —
make demo-reset SCENARIO=<name>so the next prospect starts clean.
Full stack fallback: if the prospect needs every integration wired, point at examples/complete/ — but lead with a single scenario first.
Path 2 — Capture a UI-clicked tenant (PoC handoff)
Best when: you or the customer configured agents in the Aiden OS UI and now need version-controlled Terraform.
- Export the tenant — follow aios-export (
tools/aios-export/export.shwithSTACKGEN_URLandSTACKGEN_TOKEN). - Review outputs —
out/tenant-snapshot.json(diff-friendly),out/tenant.tf(rawsg_*HCL),out/import.sh(import commands). - Create a customer root — copy
tenant.tf, addprovider.tf, runtofu init. - Import existing resources —
bash out/import.sh, thentofu plan. - Hand-merge gaps — Phase 1 does not export integrations, policies, schedules, secrets, or webhooks. Add those from module READMEs or keep them in the UI until Phase 2 capture ships.
- Optional module rewrite — compare
out/tenant.modules.tf(Phase 2 pattern-matching) against rawtenant.tfand commit whichever representation the customer prefers.
Path 3 — Compose modules in your own Terraform root
Best when: you are building or extending a customer stack from aios-* modules (not clicking through the UI).
New to Agent as Code? Start with the progressive tutorial Agent as Code — Zero to Hero (basic Terraform assumed). Then return here for module composition.
- Prerequisites — credentials checklist (StackGen PAT, provider registry token, LLM keys).
- Minimal pattern — Onboarding step 4: foundation → policies → agent, with
provider "sg"in your root. - Plan and apply —
tofu init,tofu plan,tofu apply; verify agents appear in the Aiden OS UI. - Pick modules by customer shape — Use-case catalog or Module Catalog.
- Full reference —
examples/complete/wires every layer; CI validates it viamake validate.
Contributor path: if you are changing modules in this repo, continue with Onboarding steps 2–5 for local CI parity.
Path 4 — Apply kinded YAML (stackgen ai apply)
Best when: you want a kubectl-style Agent / Workflow / Skill pack for a demo or local bring-up without writing Terraform for those resources. Requires stackgen-beta ≥ v0.82.0-rc.1.
- Read the hub — Kinded YAML apply (envelope, dual-controller warning, commands).
- Pick an example — start with Product idea → requirements + market fit (scenario tree).
- Dry-run then apply —
stackgen ai apply -f manifests/… --dry-run, then--approvefor workflows. - Run —
stackgen ai run workflow/<name> --input 'idea=…'. - Do not dual-control — the same resource name must not also be managed by
sg_*Terraform in the same tenant.
Production customer roots still prefer Path 3 (aios-* modules). Use Path 4 for fast demos and iteration.
Migration paths (which guide do I need?)
Two different “migrations” exist — pick the row that matches your starting point:
| Starting point | Guide | When to use |
|---|---|---|
| Tenant built in Aiden OS UI (SE-clicked demo) | aios-export | PoC handoff, customer wants IaC snapshot + import |
Existing monolithic terraform/guild/main.tf |
Migration guide | Refactor inline sg_* into composable aios-* modules |
| Fresh empty tenant | Path 1 (scenario) or Path 3 (onboarding) above | Greenfield demo or greenfield module composition |
These guides are complementary, not interchangeable. Export captures what exists; the migration guide restructures Terraform you already maintain.
Production checklist
Before handing a root to a customer for prod:
- Pin module
ref=— use a tag or commit SHA, notref=main, in everymoduleblocksource. - Separate environments — same root, different
terraform.tfvars(or workspaces) per dev / staging / prod tenant. - Secrets via env vars — prefer
TF_VAR_stackgen_tokenandTF_VAR_*over committingterraform.tfvars. - Enterprise rollout — see Enterprise deployment profile for webhooks, skills sync, LLM egress, and milestone checklist.
- New module/scenario from a customer ask — obfuscate names first, then Onboarding step 6 / Cursor skill
author-aios-module-scenario. Skill card publish: Skills sync.
Where to get help
- Scenario missing for a prospect question? — SE feedback and the
scenario-requestissue template; the scenario-author agent triages within minutes. - Module variable questions? — each module’s
variables.tfandREADME.mdundermodules/<name>/. - IDE / agent composition rules? —
AGENTS.mdat the repo root.