Skip to content

Add a how-to guide for beamctl/beam-init - #69647

Open
ptgott wants to merge 2 commits into
masterfrom
paul.gottschling/2026-08-12-beamctl
Open

Add a how-to guide for beamctl/beam-init#69647
ptgott wants to merge 2 commits into
masterfrom
paul.gottschling/2026-08-12-beamctl

Conversation

@ptgott

@ptgott ptgott commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

The goal of this guide is to illustrate beamctl in action in order to demonstrate its primary workflows as well as its value and relevance for long-running agentic use cases. For readers who only want a short reference of beamctl commands, there is a table in the "How it works" section. Later work can add conceptual and reference documentation for beamctl.

The guide includes an example of developing an app with dedicated coding and testing agents. The app is designed to be small but outside the scope of typical LeetCode problems or computer science coursework (i.e., as opposed to tic-tac-toe and Conway's Game of Life), so it makes more sense for an adversarial testing setup instead of a one-shot prompt.

Closes gravitational/beams#58

@ptgott ptgott added no-changelog Indicates that a PR does not require a changelog entry backport/branch/v18 labels Aug 13, 2026
@github-actions

github-actions Bot commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Amplify deployment status

Branch Commit Job ID Status Preview Updated (UTC)
paul.gottschling/2026-08-12-beamctl 23d4c63 5 ✅SUCCEED paul-gottschling-2026-08-12-beamctl 2026-08-14 16:03:09

Preview links for changed docs pages

@ptgott
ptgott force-pushed the paul.gottschling/2026-08-12-beamctl branch from e72b252 to 6408edf Compare August 13, 2026 19:53
@ptgott
ptgott deployed to docs-amplify August 13, 2026 19:53 — with GitHub Actions Active
The goal of this guide is to illustrate `beamctl` in action in order to
demonstrate its primary workflows as well as its value and relevance for
long-running agentic use cases. For readers who only want a short
reference of `beamctl` commands, there is a table in the "How it works"
section. Later work can add conceptual and reference documentation for
`beamctl`.

The guide includes an example of developing an app with dedicated coding
and testing agents. The app is designed to be small but outside the
scope of typical LeetCode problems or computer science coursework (i.e.,
as opposed to tic-tac-toe and Conway's Game of Life), so it makes more
sense for an adversarial testing setup instead of a one-shot prompt.
@ptgott
ptgott force-pushed the paul.gottschling/2026-08-12-beamctl branch from 6408edf to e10b040 Compare August 13, 2026 19:57
@ptgott
ptgott deployed to docs-amplify August 13, 2026 19:57 — with GitHub Actions Active
@ptgott
ptgott marked this pull request as ready for review August 13, 2026 20:05

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e10b0400b4

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread docs/pages/beams/long-running-agents.mdx Outdated
Comment thread docs/pages/beams/long-running-agents.mdx Outdated
<details>
<summary>Deleting a service</summary>

To remove a service from the list of services `beam-init` tracks, run the

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This wording kind of sounds like it removes the process from management but lets it continue to run.

beamctl stop terminates the process, right?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've added a sentence of clarification.

forces the agents to adopt a test-driven development (TDD) workflow and prevents
the agent writing the application code from adding trivial tests.

## Step 1/3. Create a demo user

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this step absolutely necessary? Creating a user, accepting the invite, setting up MFA, etc. all adds extra friction and takes away from the key points in this guide (beamctl).

Can we simplify?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've removed the step. Unlike the database guide, the demo in this one doesn't interact with Teleport-protected infrastructure, so it doesn't make a difference which user owns the beam.

Comment on lines +205 to +206
$ beamctl start --name=coder -- bash -c ' \
export HOME=/home/beams; \

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would be a lot easier to read if we didn't have to run under bash in order to set HOME.

Probably nothing we can do for now, but maybe good feedback for @boxofrad or @rcanderson23 to share with the team.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, this feels like something we should address. I have opened gravitational/beam-init#142

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5f6d8f3497

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread docs/pages/beams/long-running-agents.mdx Outdated
Comment thread docs/pages/beams/long-running-agents.mdx
- Remove Step 1, which is unnecessary.
- Clarify beamctl stop --prune.
- Include installing vitest. While a test run of the guide succeeded
  without this, adding vitest provides a little more reliability.
  Similarly, also ensure all agents are operating from the demo project
  directory.
- Remove the assurance about dangerously skipping permissions and
  recommend that the user authenticate with no permissions to access
  protected infrastructure before starting the guide.
@ptgott
ptgott force-pushed the paul.gottschling/2026-08-12-beamctl branch from 5f6d8f3 to 23d4c63 Compare August 14, 2026 15:57
@ptgott
ptgott deployed to docs-amplify August 14, 2026 15:57 — with GitHub Actions Active
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport/branch/v18 documentation no-changelog Indicates that a PR does not require a changelog entry size/md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants