Repository navigation
docs(ai-agents): install Flox and onboard from the agent you already use, with the flox skill #155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
djsauble
wants to merge
8
commits into
main
Choose a base branch
from
daniel/agent-stacks-onboard-skill
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+510
−65
Open
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
9808913
docs(ai-agents): onboard from the agent you already use, with a hoste…
djsauble 9fa67d4
docs(ai-agents): make a simpler stack when flox-agent has no onboard yet
djsauble 8f09d8f
docs(ai-agents): leave Flox.app out of onboarding for now
djsauble a6b663d
docs(ai-agents): make the quickstart the onboarding, and the guide th…
djsauble 535c464
docs(ai-agents): install Flox and onboard with the flox skill, as flo…
djsauble 22a3de5
docs(ai-agents): have the agent read a saved skill, and caveat flox a…
djsauble 5e34b46
docs(ai-agents): a stack starts every agent you use, and the shortcut…
djsauble bdace2b
docs(ai-agents): say when a default environment on FloxHub includes a…
djsauble File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,120 @@ | ||
| --- | ||
| title: "Onboard your agent setup by hand" | ||
| sidebarTitle: "Onboard by hand" | ||
| description: "Set up an agent stack yourself: install Claude Code and an agent plugin into a Flox environment, then launch the agent with that plugin." | ||
| --- | ||
|
|
||
| In the [quickstart](/ai-agents/quickstart), the agent you already use does the onboarding for you. | ||
| This guide does it by hand, one step at a time. | ||
| You create an environment holding Claude Code and the `frontend-design` plugin, check what the agent will get, and launch it. | ||
| The same steps install any other plugin the catalog has, as [Add or remove plugins](#add-or-remove-plugins) shows. | ||
| For the ideas behind it (harnesses, plugins and sandboxes), see [AI coding agents](/ai-agents/overview). | ||
| You need [Flox installed](/install-flox/install), a free FloxHub account, and a Claude account. | ||
|
|
||
| ## Log in and enable the extension | ||
|
|
||
| Installing packages from the Flox Catalog needs you to be logged in to FloxHub. | ||
| Log in once per machine: | ||
|
|
||
| ```bash | ||
| flox auth login | ||
| ``` | ||
|
|
||
| `flox agent` is a beta Flox extension, and Flox only runs beta commands once you opt in. | ||
| Turn on beta features once: | ||
|
|
||
| ```bash | ||
| flox config --set features.beta true | ||
| ``` | ||
|
|
||
| ## Create the environment | ||
|
|
||
| The environment holds everything the agent gets. | ||
| Whatever you install into it is pinned in its lockfile, so anyone who activates the same environment gets the same agent and plugins. | ||
| Make a folder for your project and create an environment in it: | ||
|
|
||
| ```bash | ||
| mkdir my-agent && cd my-agent && flox init | ||
| ``` | ||
|
|
||
| Install the harness, a plugin, and the `flox agent` extension: | ||
|
|
||
| ```bash | ||
| flox install agent-stacks/claude-code agent-stacks/agent-plugin-frontend-design flox/flox-agent | ||
| ``` | ||
|
|
||
| - `agent-stacks/claude-code` is the harness: the Claude Code program. | ||
| - `agent-stacks/agent-plugin-frontend-design` is an agent plugin with a skill for building polished web interfaces. | ||
| - `flox/flox-agent` provides the `flox agent` command. | ||
|
|
||
| ## See what the agent gets | ||
|
|
||
| Activating the environment puts its packages, including `flox agent`, on your `PATH`: | ||
|
|
||
| ```bash | ||
| flox activate | ||
| ``` | ||
|
|
||
| Then list the stack. | ||
| `flox agent list` reads what is installed and shows what a launch would hand each harness, without starting anything: | ||
|
|
||
| ```console | ||
| $ flox agent list | ||
| Agent stack | ||
| 1 harness · 1 plugin · 1 skill · 0 MCP servers | ||
|
|
||
| Harnesses | ||
| ✔ claude claude-code 2.1.304 · skills, MCP, hooks | ||
|
|
||
| Plugins | ||
| ✔ frontend-design agent-plugin-frontend-design 0.0.0-unstable.2026-10-19.ga0b04d9 · 1 skill | ||
|
|
||
| --long shows each plugin's skills and MCP servers. | ||
| Shows what launch gives each harness; agent-stacks writes nothing to a harness's own config. | ||
| ``` | ||
|
|
||
| Each row names the package and version it came from. | ||
| Run `flox agent list --long` to see the skills each plugin provides. | ||
|
|
||
| ## Launch the agent | ||
|
|
||
| ```bash | ||
| flox agent launch claude | ||
| ``` | ||
|
|
||
| `flox agent launch` starts Claude Code with the environment's plugins. | ||
| It stages them inside the environment, so your own Claude Code settings in your home directory are left as they are. | ||
| Claude Code starts with the `frontend-design` skill loaded. | ||
| Ask it to build a page, and it uses the skill. | ||
|
|
||
| To pass flags to Claude Code, put them after `--`: | ||
|
|
||
| ```bash | ||
| flox agent launch claude -- --continue | ||
| ``` | ||
|
|
||
| ## Add or remove plugins | ||
|
|
||
| Plugins are packages, so you manage them with the usual commands. | ||
| Browse the available plugins with [`flox search`](/man/flox-search): | ||
|
|
||
| ```bash | ||
| flox search agent-plugin | ||
| ``` | ||
|
|
||
| Install another one with [`flox install`](/man/flox-install), or remove one with [`flox uninstall`](/man/flox-uninstall). | ||
| The next `flox agent launch` picks up the change. | ||
|
|
||
| ## If something is missing | ||
|
|
||
| `flox agent doctor` reports the plugins it found, each harness's readiness, and the package to install for a harness that is missing: | ||
|
|
||
| ```bash | ||
| flox agent doctor | ||
| ``` | ||
|
|
||
| ## Next steps | ||
|
|
||
| - [Launch an agent in a sandbox](/ai-agents/guides/launch-in-a-sandbox) | ||
| - [Audit an agent plugin](/ai-agents/guides/audit-a-plugin) before you install it | ||
| - [`flox agent launch`](/ai-agents/reference/flox-agent-launch) reference | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.