You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 84959e5
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/ai/playbook.md
+26-8Lines changed: 26 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
---
2
-
description: Recipes for a coding agent - check whether an app is running, find a service's URL, start a stack in the background and wait for it, run tests in the test profile, restart a service, bring back one that is down, run one-off commands, use infra, read logs and onboard a new service.
2
+
description: Recipes for a coding agent - check whether an app is running, find a service's URL, start a stack in the background and wait for it, run tests in the test profile, restart a service, bring back one that is down, run one-off commands, run a script across a tag, use infra, read logs and onboard a new service.
3
3
---
4
4
5
5
# Agent playbook
@@ -17,8 +17,8 @@ reference page with the details.
17
17
run in. stackctl refuses an agent's command that leaves the profile to the default.
18
18
-**Never `kill`, `pkill` or `lsof … | kill` a stackctl process or its port.** Stop a session
19
19
you started with `stackctl --profile <profile> stop`, and restart a service with
20
-
`stackctl --profile <profile> service restart -s <name>`. A killed session leaves its services
21
-
running.
20
+
`stackctl --profile <profile> service restart -s <service>`. A killed session leaves its
21
+
services running.
22
22
-**Check before you start anything.** Starting a session in a profile quits the one already
23
23
running in it. stackctl refuses that when a person started it.
24
24
-**Never guess a port or hostname.**`stackctl --profile <profile> show-config` prints the
@@ -148,10 +148,10 @@ Don't run the service's command yourself while the session runs it: your copy ta
148
148
149
149
Read the service's `command` in `stackctl --profile <profile> show-config`:
|`services`| Your application services, keyed by name. See [Services](./services.md). Without it, the config sets the environment of `exec` and `run` alone. |
31
-
|`serviceRootDir`| The directory services live under, e.g. `'apps'`: each service is at `<serviceRootDir>/<name>`. **Recommended.** Without it, every service sets `targetDir`. |
31
+
|`serviceRootDir`| The directory services live under, e.g. `'apps'`: each service is at `<serviceRootDir>/<name>`. **Recommended.** Without it, every service sets `dir`. |
32
32
|`env`| Variables of the config's own, and how `.env` files load. See [Environment](./env.md). |
33
33
|`logs`| On-screen timestamps. See [Logs](./logs.md). |
34
34
|`infra`| Databases, caches and other Docker Compose services. See [Infra](./infra.md). |
0 commit comments