@deftai/directive-content 0.55.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (250) hide show
  1. package/.agents/skills/deft/SKILL.md +6 -0
  2. package/.agents/skills/deft-directive-article-review/SKILL.md +11 -0
  3. package/.agents/skills/deft-directive-build/SKILL.md +10 -0
  4. package/.agents/skills/deft-directive-cost/SKILL.md +12 -0
  5. package/.agents/skills/deft-directive-debug/SKILL.md +13 -0
  6. package/.agents/skills/deft-directive-gh-arch/SKILL.md +11 -0
  7. package/.agents/skills/deft-directive-gh-slice/SKILL.md +10 -0
  8. package/.agents/skills/deft-directive-glossary/SKILL.md +10 -0
  9. package/.agents/skills/deft-directive-interview/SKILL.md +9 -0
  10. package/.agents/skills/deft-directive-pre-pr/SKILL.md +9 -0
  11. package/.agents/skills/deft-directive-refinement/SKILL.md +10 -0
  12. package/.agents/skills/deft-directive-release/SKILL.md +12 -0
  13. package/.agents/skills/deft-directive-review-cycle/SKILL.md +10 -0
  14. package/.agents/skills/deft-directive-setup/SKILL.md +10 -0
  15. package/.agents/skills/deft-directive-swarm/SKILL.md +10 -0
  16. package/.agents/skills/deft-directive-sync/SKILL.md +9 -0
  17. package/.agents/skills/deft-directive-triage/SKILL.md +9 -0
  18. package/.agents/skills/deft-directive-write-skill/SKILL.md +9 -0
  19. package/LICENSE.md +22 -0
  20. package/QUICK-START.md +167 -0
  21. package/UPGRADING.md +517 -0
  22. package/coding/build-output.md +28 -0
  23. package/coding/coding.md +235 -0
  24. package/coding/debugging.md +110 -0
  25. package/coding/holzmann.md +96 -0
  26. package/coding/hygiene.md +127 -0
  27. package/coding/security.md +158 -0
  28. package/coding/testing.md +162 -0
  29. package/coding/toolchain.md +44 -0
  30. package/commands.md +300 -0
  31. package/context/context.md +57 -0
  32. package/context/deterministic-split.md +67 -0
  33. package/context/examples.md +26 -0
  34. package/context/fractal-summaries.md +69 -0
  35. package/context/long-horizon.md +46 -0
  36. package/context/spec-deltas.md +177 -0
  37. package/context/tool-design.md +34 -0
  38. package/context/working-memory.md +62 -0
  39. package/contracts/boundary-maps.md +65 -0
  40. package/contracts/deterministic-questions.md +59 -0
  41. package/contracts/hierarchy.md +77 -0
  42. package/conventions/content-manifest.json +399 -0
  43. package/conventions/machine-generated-banner.md +130 -0
  44. package/conventions/references.md +120 -0
  45. package/conventions/rule-ownership.json +382 -0
  46. package/conventions/task-caching.md +43 -0
  47. package/conventions/vbrief-filenames.md +70 -0
  48. package/deployments/README.md +37 -0
  49. package/deployments/agentuity/README.md +138 -0
  50. package/deployments/agentuity/via-cli.md +380 -0
  51. package/deployments/agentuity/via-cloud.md +425 -0
  52. package/deployments/agentuity/via-github-actions.md +664 -0
  53. package/deployments/agentuity/via-gravity-network.md +606 -0
  54. package/deployments/agentuity/via-vpc.md +607 -0
  55. package/deployments/aws/README.md +38 -0
  56. package/deployments/aws/via-app-runner.md +612 -0
  57. package/deployments/aws/via-ecs-fargate.md +561 -0
  58. package/deployments/aws/via-elastic-beanstalk.md +628 -0
  59. package/deployments/aws/via-lambda.md +649 -0
  60. package/deployments/azure/README.md +37 -0
  61. package/deployments/azure/via-aks.md +390 -0
  62. package/deployments/azure/via-app-service.md +564 -0
  63. package/deployments/azure/via-container-apps.md +599 -0
  64. package/deployments/azure/via-functions.md +552 -0
  65. package/deployments/cloud-gov/README.md +63 -0
  66. package/deployments/cloud-gov/agents/compliance-docs.md +154 -0
  67. package/deployments/cloud-gov/agents.md +39 -0
  68. package/deployments/cloud-gov/cicd.md +64 -0
  69. package/deployments/cloud-gov/deployment.md +150 -0
  70. package/deployments/cloud-gov/logging.md +43 -0
  71. package/deployments/cloud-gov/manifest.md +121 -0
  72. package/deployments/cloud-gov/overview.md +58 -0
  73. package/deployments/cloud-gov/security.md +46 -0
  74. package/deployments/cloud-gov/services.md +72 -0
  75. package/deployments/cloud-gov/upstream/README.md +18 -0
  76. package/deployments/cloudflare/README.md +33 -0
  77. package/deployments/cloudflare/via-dashboard.md +83 -0
  78. package/deployments/cloudflare/via-git.md +90 -0
  79. package/deployments/cloudflare/via-github-actions.md +185 -0
  80. package/deployments/cloudflare/via-terraform.md +157 -0
  81. package/deployments/cloudflare/via-wrangler.md +165 -0
  82. package/deployments/fly-io/README.md +37 -0
  83. package/deployments/fly-io/via-dockerfile.md +648 -0
  84. package/deployments/fly-io/via-flyctl.md +653 -0
  85. package/deployments/fly-io/via-github-actions.md +695 -0
  86. package/deployments/fly-io/via-multi-region.md +598 -0
  87. package/deployments/google/README.md +34 -0
  88. package/deployments/google/via-app-engine.md +42 -0
  89. package/deployments/google/via-cloud-functions.md +23 -0
  90. package/deployments/google/via-cloud-run.md +330 -0
  91. package/deployments/google/via-gke.md +23 -0
  92. package/deployments/netlify/README.md +99 -0
  93. package/deployments/netlify/via-cli.md +17 -0
  94. package/deployments/netlify/via-functions.md +19 -0
  95. package/deployments/netlify/via-git.md +25 -0
  96. package/deployments/vercel/README.md +90 -0
  97. package/deployments/vercel/via-api.md +16 -0
  98. package/deployments/vercel/via-cli.md +17 -0
  99. package/deployments/vercel/via-git.md +24 -0
  100. package/docs/BROWNFIELD.md +179 -0
  101. package/docs/getting-started.md +137 -0
  102. package/docs/good-agents-md.md +137 -0
  103. package/events/README.md +89 -0
  104. package/events/event-record.schema.json +26 -0
  105. package/events/registry.json +166 -0
  106. package/events/registry.schema.json +71 -0
  107. package/glossary.md +145 -0
  108. package/incidents/README.md +81 -0
  109. package/incidents/_template.md +38 -0
  110. package/interfaces/cli.md +104 -0
  111. package/interfaces/rest.md +212 -0
  112. package/interfaces/tui.md +242 -0
  113. package/interfaces/web.md +123 -0
  114. package/languages/6502-DASM.md +132 -0
  115. package/languages/c.md +235 -0
  116. package/languages/commands.md +23 -0
  117. package/languages/cpp.md +132 -0
  118. package/languages/csharp.md +259 -0
  119. package/languages/dart.md +183 -0
  120. package/languages/delphi.md +218 -0
  121. package/languages/elixir.md +208 -0
  122. package/languages/go.md +78 -0
  123. package/languages/java.md +278 -0
  124. package/languages/javascript.md +163 -0
  125. package/languages/julia.md +175 -0
  126. package/languages/kotlin.md +193 -0
  127. package/languages/markdown.md +168 -0
  128. package/languages/mermaid.md +146 -0
  129. package/languages/officejs.md +392 -0
  130. package/languages/python.md +209 -0
  131. package/languages/r.md +163 -0
  132. package/languages/rust.md +216 -0
  133. package/languages/sql.md +216 -0
  134. package/languages/swift.md +153 -0
  135. package/languages/typescript.md +132 -0
  136. package/languages/vba.md +279 -0
  137. package/languages/vhdl.md +180 -0
  138. package/languages/visual-basic.md +151 -0
  139. package/languages/zig.md +196 -0
  140. package/meta/SOUL.md +27 -0
  141. package/meta/code-field.md +44 -0
  142. package/meta/morals.md +40 -0
  143. package/meta/philosophy.md +39 -0
  144. package/meta/project.md +49 -0
  145. package/meta/ralph.md +223 -0
  146. package/meta/security.md +80 -0
  147. package/meta/versioning.md +326 -0
  148. package/package.json +22 -0
  149. package/packs/lessons/lessons-pack-0.1.json +553 -0
  150. package/packs/patterns/patterns-pack-0.1.json +57 -0
  151. package/packs/rules/rules-pack-0.1.json +4767 -0
  152. package/packs/skills/skills-pack-0.1.json +262 -0
  153. package/packs/strategies/strategies-pack-0.1.json +167 -0
  154. package/packs/swarm-spec/swarm-spec-pack-0.1.json +17 -0
  155. package/patterns/executor-layer-credentials.md +227 -0
  156. package/patterns/llm-app.md +156 -0
  157. package/patterns/multi-agent.md +278 -0
  158. package/patterns/prompt-assembly-layer-ordering.md +154 -0
  159. package/patterns/role-as-overlay.md +179 -0
  160. package/platforms/2600.md +137 -0
  161. package/platforms/unity.md +329 -0
  162. package/references/composer-skill-porting.md +152 -0
  163. package/references/cost-models.md +163 -0
  164. package/references/ip-risk.md +246 -0
  165. package/references/plain-english-ux.md +275 -0
  166. package/resilience/context-pruning.md +67 -0
  167. package/resilience/continue-here.md +62 -0
  168. package/scm/changelog.md +276 -0
  169. package/scm/git.md +139 -0
  170. package/scm/github.md +265 -0
  171. package/secrets/.gitkeep +0 -0
  172. package/skills/deft-build/SKILL.md +20 -0
  173. package/skills/deft-directive-article-review/SKILL.md +156 -0
  174. package/skills/deft-directive-build/SKILL.md +302 -0
  175. package/skills/deft-directive-cost/SKILL.md +201 -0
  176. package/skills/deft-directive-debug/SKILL.md +140 -0
  177. package/skills/deft-directive-decompose/SKILL.md +96 -0
  178. package/skills/deft-directive-gh-arch/SKILL.md +160 -0
  179. package/skills/deft-directive-gh-slice/SKILL.md +199 -0
  180. package/skills/deft-directive-glossary/SKILL.md +118 -0
  181. package/skills/deft-directive-interview/SKILL.md +528 -0
  182. package/skills/deft-directive-pre-pr/SKILL.md +131 -0
  183. package/skills/deft-directive-probe/SKILL.md +127 -0
  184. package/skills/deft-directive-refinement/SKILL.md +403 -0
  185. package/skills/deft-directive-release/SKILL.md +266 -0
  186. package/skills/deft-directive-review-cycle/SKILL.md +401 -0
  187. package/skills/deft-directive-setup/SKILL.md +717 -0
  188. package/skills/deft-directive-swarm/SKILL.md +989 -0
  189. package/skills/deft-directive-sync/SKILL.md +288 -0
  190. package/skills/deft-directive-triage/SKILL.md +137 -0
  191. package/skills/deft-directive-write-skill/SKILL.md +169 -0
  192. package/skills/deft-interview/SKILL.md +16 -0
  193. package/skills/deft-pre-pr/SKILL.md +16 -0
  194. package/skills/deft-review-cycle/SKILL.md +16 -0
  195. package/skills/deft-roadmap-refresh/SKILL.md +16 -0
  196. package/skills/deft-setup/SKILL.md +20 -0
  197. package/skills/deft-swarm/SKILL.md +16 -0
  198. package/skills/deft-sync/SKILL.md +16 -0
  199. package/strategies/README.md +83 -0
  200. package/strategies/artifact-guards.md +85 -0
  201. package/strategies/bdd.md +115 -0
  202. package/strategies/brownfield.md +7 -0
  203. package/strategies/discuss.md +129 -0
  204. package/strategies/emit-hints.md +69 -0
  205. package/strategies/enterprise.md +193 -0
  206. package/strategies/interview.md +551 -0
  207. package/strategies/map.md +179 -0
  208. package/strategies/probe.md +151 -0
  209. package/strategies/rapid.md +155 -0
  210. package/strategies/research.md +155 -0
  211. package/strategies/roadmap.md +9 -0
  212. package/strategies/speckit.md +437 -0
  213. package/strategies/v0-20-contract.md +134 -0
  214. package/strategies/yolo.md +169 -0
  215. package/swarm/swarm.md +300 -0
  216. package/templates/COST-ESTIMATE.md +114 -0
  217. package/templates/PULL_REQUEST_TEMPLATE.md +35 -0
  218. package/templates/agent-prompt-preamble.md +409 -0
  219. package/templates/agents-entry.md +211 -0
  220. package/templates/agents-entry.placeholders.md +75 -0
  221. package/templates/embed.go +20 -0
  222. package/templates/embed_test.go +36 -0
  223. package/templates/make-spec-example.md +9 -0
  224. package/templates/make-spec.md +246 -0
  225. package/templates/project.md.template +52 -0
  226. package/templates/specification.md +1 -0
  227. package/templates/swarm-greptile-poller-prompt.md +556 -0
  228. package/templates/user.md.template +31 -0
  229. package/tools/RWLDL.md +80 -0
  230. package/tools/greptile.md +141 -0
  231. package/tools/installer.md +23 -0
  232. package/tools/taskfile-migration.md +32 -0
  233. package/tools/taskfile.md +185 -0
  234. package/tools/telemetry.md +285 -0
  235. package/vbrief/schemas/cache-meta.schema.json +137 -0
  236. package/vbrief/schemas/candidates.schema.json +130 -0
  237. package/vbrief/schemas/codebase-map.schema.json +213 -0
  238. package/vbrief/schemas/lessons-pack.schema.json +134 -0
  239. package/vbrief/schemas/patterns-pack.schema.json +84 -0
  240. package/vbrief/schemas/rules-pack.schema.json +105 -0
  241. package/vbrief/schemas/skills-pack.schema.json +94 -0
  242. package/vbrief/schemas/slices.schema.json +87 -0
  243. package/vbrief/schemas/strategies-pack.schema.json +89 -0
  244. package/vbrief/schemas/swarm-spec-pack.schema.json +84 -0
  245. package/vbrief/schemas/vbrief-core.schema.json +1022 -0
  246. package/vbrief/vbrief.md +684 -0
  247. package/verification/integration.md +76 -0
  248. package/verification/plan-checking.md +85 -0
  249. package/verification/uat.md +60 -0
  250. package/verification/verification.md +117 -0
@@ -0,0 +1,425 @@
1
+ # Deploy via Agentuity Managed Cloud
2
+
3
+ The simplest deployment path — let Agentuity handle all infrastructure while you focus on building agents. Global edge network with automatic scaling and zero configuration.
4
+
5
+ ## Overview
6
+
7
+ Agentuity Managed Cloud provides:
8
+ - **Global Edge Network**: Deploy to 30+ regions worldwide
9
+ - **Sub-100ms Cold Starts**: Fast agent initialization
10
+ - **Automatic Scaling**: Scale from zero to demand
11
+ - **Managed Infrastructure**: SSL, DNS, load balancing handled automatically
12
+ - **Built-in Services**: Storage, databases, queues without setup
13
+
14
+ ## Prerequisites
15
+
16
+ - Agentuity CLI installed
17
+ - Agentuity account (free tier available)
18
+ - Agent project ready to deploy
19
+
20
+ ## Quick Deploy
21
+
22
+ ### 1. Login to Agentuity
23
+
24
+ ```bash
25
+ # Authenticate with Agentuity Cloud
26
+ agentuity auth login
27
+
28
+ # This opens browser for OAuth
29
+ # Or use API key: agentuity auth login --api-key YOUR_KEY
30
+ ```
31
+
32
+ ### 2. Deploy Your Agent
33
+
34
+ ```bash
35
+ # From your project directory
36
+ agentuity deploy
37
+
38
+ # That's it! Your agent is now live.
39
+ ```
40
+
41
+ ### 3. Get Your URLs
42
+
43
+ After deployment, you'll receive:
44
+ - **Agent Endpoint**: `https://your-agent.agentuity.run`
45
+ - **API Documentation**: `https://your-agent.agentuity.run/docs`
46
+ - **Console Dashboard**: `https://console.agentuity.com/projects/your-agent`
47
+
48
+ ## Features
49
+
50
+ ### Automatic SSL & DNS
51
+
52
+ ```bash
53
+ # SSL certificates provisioned automatically
54
+ # Custom domains supported:
55
+ agentuity domain add myagent.com
56
+
57
+ # DNS automatically configured
58
+ ```
59
+
60
+ ### Global Distribution
61
+
62
+ Your agent is automatically deployed to the edge locations closest to your users:
63
+ - North America (6 locations)
64
+ - Europe (8 locations)
65
+ - Asia Pacific (12 locations)
66
+ - South America (2 locations)
67
+ - Middle East (2 locations)
68
+
69
+ ### Auto-Scaling
70
+
71
+ - **Scale to Zero**: No cost when idle
72
+ - **Instant Scale Up**: Handle traffic spikes automatically
73
+ - **Horizontal Scaling**: Multiple instances deployed automatically
74
+ - **Vertical Scaling**: Resources adjusted based on demand
75
+
76
+ ## Built-In Services
77
+
78
+ ### Storage Services
79
+
80
+ All available without configuration:
81
+
82
+ ```typescript
83
+ // Key-Value Storage
84
+ import { kv } from '@agentuity/runtime';
85
+
86
+ await kv.set('user:123', { name: 'Alice' });
87
+ const user = await kv.get('user:123');
88
+
89
+ // Vector Storage
90
+ import { vector } from '@agentuity/runtime';
91
+
92
+ await vector.index('documents').add({
93
+ id: '1',
94
+ content: 'AI agents on Agentuity',
95
+ embedding: embeddings
96
+ });
97
+
98
+ // Object Storage (S3-compatible)
99
+ import { storage } from '@agentuity/runtime';
100
+
101
+ await storage.put('avatars/user123.png', imageBuffer);
102
+ const url = await storage.getPublicUrl('avatars/user123.png');
103
+
104
+ // Postgres Database
105
+ import { db } from '@agentuity/runtime';
106
+
107
+ const users = await db.query('SELECT * FROM users WHERE active = true');
108
+ ```
109
+
110
+ ### AI Gateway
111
+
112
+ Unified access to all major LLM providers:
113
+
114
+ ```typescript
115
+ import { ai } from '@agentuity/runtime';
116
+
117
+ // Single API key for all providers
118
+ const response = await ai.chat({
119
+ model: 'openai:gpt-4', // or 'anthropic:claude-3', etc.
120
+ messages: [{ role: 'user', content: 'Hello!' }]
121
+ });
122
+
123
+ // Automatic failover between providers
124
+ // Consolidated billing
125
+ // Usage tracking per agent
126
+ ```
127
+
128
+ ### Sandboxes
129
+
130
+ Secure code execution environments:
131
+
132
+ ```typescript
133
+ import { sandbox } from '@agentuity/runtime';
134
+
135
+ // Create, execute, destroy - fully managed
136
+ const result = await sandbox.execute({
137
+ code: userCode,
138
+ language: 'python',
139
+ timeout: 30000
140
+ });
141
+ ```
142
+
143
+ ## Monitoring & Observability
144
+
145
+ ### Console Dashboard
146
+
147
+ Access at `console.agentuity.com`:
148
+ - Real-time agent status
149
+ - Request/response logs
150
+ - Performance metrics
151
+ - Cost per request
152
+ - Error tracking
153
+
154
+ ### OpenTelemetry Integration
155
+
156
+ Automatic tracing built-in:
157
+
158
+ ```bash
159
+ # View traces
160
+ agentuity traces --agent chat --tail 20
161
+
162
+ # Export to your observability platform
163
+ # Supports: Datadog, New Relic, Honeycomb, etc.
164
+ ```
165
+
166
+ ### Logs
167
+
168
+ ```bash
169
+ # Stream live logs
170
+ agentuity logs --follow
171
+
172
+ # Filter by severity
173
+ agentuity logs --level error
174
+
175
+ # Search logs
176
+ agentuity logs --search "API timeout"
177
+ ```
178
+
179
+ ## Cost Management
180
+
181
+ ### Free Tier
182
+
183
+ - 1M requests/month
184
+ - 100GB storage
185
+ - 10GB transfer
186
+ - All features included
187
+
188
+ ### Pricing
189
+
190
+ - **Requests**: $0.10 per 1M requests
191
+ - **Compute**: $0.00002 per second
192
+ - **Storage**: $0.15 per GB/month
193
+ - **Transfer**: $0.10 per GB
194
+
195
+ ### Cost Tracking
196
+
197
+ ```bash
198
+ # View current month costs
199
+ agentuity billing current
200
+
201
+ # Cost per agent
202
+ agentuity billing by-agent
203
+
204
+ # Set budget alerts
205
+ agentuity billing alert --threshold 100
206
+ ```
207
+
208
+ ## Deployment Configuration
209
+
210
+ ### Environment Variables
211
+
212
+ ```bash
213
+ # Set via CLI
214
+ agentuity env set OPENAI_API_KEY=sk-...
215
+ agentuity env set DATABASE_URL=postgresql://...
216
+
217
+ # Or via agentuity.yaml
218
+ env:
219
+ - OPENAI_API_KEY
220
+ - DATABASE_URL
221
+ secrets:
222
+ - name: API_KEY
223
+ value: ${API_KEY} # References external secret
224
+ ```
225
+
226
+ ### Scaling Configuration
227
+
228
+ ```yaml
229
+ # agentuity.yaml
230
+ scaling:
231
+ min_instances: 0
232
+ max_instances: 10
233
+ target_cpu: 70
234
+ target_memory: 80
235
+ ```
236
+
237
+ ### Regions
238
+
239
+ ```yaml
240
+ # Deploy to specific regions
241
+ regions:
242
+ - us-east-1
243
+ - eu-west-1
244
+ - ap-southeast-1
245
+ ```
246
+
247
+ ## Advanced Features
248
+
249
+ ### Preview Deployments
250
+
251
+ ```bash
252
+ # Deploy preview from branch
253
+ agentuity deploy --preview
254
+
255
+ # Automatic preview URL
256
+ # https://pr-123-your-agent.agentuity.run
257
+ ```
258
+
259
+ ### Canary Deployments
260
+
261
+ ```bash
262
+ # Deploy with traffic splitting
263
+ agentuity deploy --canary 10
264
+
265
+ # 10% traffic to new version
266
+ # Automatic rollback if errors spike
267
+ ```
268
+
269
+ ### Production Evaluations
270
+
271
+ ```typescript
272
+ // Evals run on live traffic automatically
273
+ import { eval } from '@agentuity/runtime';
274
+
275
+ agent.registerEval({
276
+ name: 'response_quality',
277
+ fn: async (input, output) => {
278
+ return output.response.length > 10 ? 1.0 : 0.0;
279
+ }
280
+ });
281
+ ```
282
+
283
+ ## GitHub Integration
284
+
285
+ ### Auto-Deploy on Push
286
+
287
+ ```bash
288
+ # Connect GitHub repository
289
+ agentuity github connect owner/repo
290
+
291
+ # Auto-deploy on push to main
292
+ # Preview deployments for PRs
293
+ ```
294
+
295
+ ### Manual GitHub Actions
296
+
297
+ See `via-github-actions.md` for full CI/CD setup.
298
+
299
+ ## Rollbacks & Version Management
300
+
301
+ ```bash
302
+ # List deployments
303
+ agentuity deployments list
304
+
305
+ # Rollback to previous
306
+ agentuity rollback
307
+
308
+ # Rollback to specific version
309
+ agentuity rollback v1.2.3
310
+
311
+ # Instant rollback (< 1 second)
312
+ ```
313
+
314
+ ## Security
315
+
316
+ ### Authentication
317
+
318
+ - **API Keys**: Automatic generation and rotation
319
+ - **OAuth 2.0**: Built-in OAuth provider
320
+ - **CORS**: Configured per environment
321
+ - **Rate Limiting**: Automatic DDoS protection
322
+
323
+ ### Secrets Management
324
+
325
+ ```bash
326
+ # Store secrets securely
327
+ agentuity secret create API_KEY
328
+
329
+ # Reference in code
330
+ const key = process.env.API_KEY;
331
+
332
+ # Automatic encryption at rest
333
+ # Rotation without downtime
334
+ ```
335
+
336
+ ### Compliance
337
+
338
+ - SOC 2 Type II certified
339
+ - GDPR compliant
340
+ - HIPAA eligible
341
+ - ISO 27001
342
+
343
+ ## Best Practices
344
+
345
+ 1. **Use Environment Variables**: Never hardcode secrets
346
+ 2. **Enable Auto-Scaling**: Set `min_instances: 0` for cost savings
347
+ 3. **Monitor Costs**: Set up billing alerts early
348
+ 4. **Test with Previews**: Use preview deployments before production
349
+ 5. **Tag Deployments**: Use Git tags for version tracking
350
+
351
+ ## Troubleshooting
352
+
353
+ ### Deployment Fails
354
+
355
+ ```bash
356
+ # Check deployment status
357
+ agentuity deploy status
358
+
359
+ # View deployment logs
360
+ agentuity logs --deployment latest
361
+
362
+ # Validate before deploy
363
+ agentuity deploy --dry-run
364
+ ```
365
+
366
+ ### Agent Not Responding
367
+
368
+ ```bash
369
+ # Check agent health
370
+ agentuity agent health chat
371
+
372
+ # Restart agent
373
+ agentuity agent restart chat
374
+
375
+ # Scale up manually
376
+ agentuity scale chat --instances 3
377
+ ```
378
+
379
+ ### High Costs
380
+
381
+ ```bash
382
+ # Analyze usage
383
+ agentuity billing breakdown
384
+
385
+ # Optimize:
386
+ # - Reduce min_instances to 0
387
+ # - Add caching
388
+ # - Implement rate limiting
389
+ # - Use cheaper AI models
390
+ ```
391
+
392
+ ## Migration from Other Platforms
393
+
394
+ ### From AWS Lambda
395
+
396
+ - Replace Lambda handler with Agentuity agent
397
+ - Environment variables migrate 1:1
398
+ - Triggers map to Agentuity integrations
399
+
400
+ ### From Vercel/Netlify
401
+
402
+ - Keep React frontend deployment
403
+ - Move API routes to Agentuity agents
404
+ - Better for long-running agent workloads
405
+
406
+ ### From Heroku
407
+
408
+ - `Procfile` → `agentuity.yaml`
409
+ - Add-ons → Agentuity built-in services
410
+ - Dyno sizing → auto-scaling config
411
+
412
+ ## Next Steps
413
+
414
+ - **Add Integrations**: Email, SMS, webhooks, cron jobs
415
+ - **Multi-Agent**: Coordinate multiple agents
416
+ - **Custom Domain**: Point your domain to Agentuity
417
+ - **VPC Deployment**: See `via-vpc.md` for private cloud
418
+ - **CI/CD**: Automate with `via-github-actions.md`
419
+
420
+ ## References
421
+
422
+ - [Cloud Console](https://console.agentuity.com)
423
+ - [Cloud Documentation](https://agentuity.dev/Cloud)
424
+ - [Pricing](https://agentuity.com/pricing)
425
+ - [Status Page](https://status.agentuity.com)