Skip to content

Set up sfe for a new team

sfe has no company built in. Every team describes its own systems once, in a folder called a pack, and everyone on the team then works from the same pack. This page is for the person who brings sfe to a new team, and for each teammate who joins after. The screens here come from a practice Mac that runs the example pack of sfe, made for an invented company called Brindlewick Freight, so they look the same for any team.

Video, about two minutes, with narration and captions.

Words we use on this page

  • Pack: the folder that describes a team: its systems, where each one points, which environments are production, its own words, notes and runbooks. Nothing secret is in it.
  • Lane: a name for a group of environments, such as dev, qa, stage or prod. sfe use prod points every system at production at once.
  • Team docs: the places a team keeps its own pages, such as a wiki, a Confluence space or a repository. sfe reads them once and keeps them on this Mac.
  • Draft: a pack that is still being written. It does nothing until it is written and turned on.

Before you start

  • sfe is installed: Install sfe.
  • The tools the team uses are on this Mac and signed in, as far as we can. sfe finds most of the answers from them.

Steps for the first person

1. Make the pack

One person makes the pack, with the questions of sfe start. Every question and its answer are on Make your pack. The same steps can be run one at a time, which is how a coding agent does it:

sfe init detect                               # what is on this Mac
sfe init start --name acme --label "Acme"     # start a draft
sfe init propose --name acme                  # sfe's guesses, and its questions
sfe init set <question> <answer>              # one answer at a time
sfe init show --name acme                     # look at it
sfe init write --name acme                    # write the pack

An agent can do all of it from one sentence, because sfe agent install gives every agent the setup skill:

set up sfe from this folder, follow setup/SETUP.md

The agent asks only what it cannot find, and stops at the step that is a person's: every question about production, and turning the pack on.

2. Check the pack

sfe pack check reads the pack the way sfe will, and names anything wrong in it before anyone turns it on.

sfe pack check

sfe pack check on the example pack

3. Share it with the team

The pack is a plain folder, so the team keeps it where it keeps code: a Git repository is best, because every change to it is then reviewed like any other. A teammate puts the folder in ~/.sfe/packs/<name> on their own Mac. If the pack brings code of its own (a system the team wrote, see Bring your own tools), each person accepts that code once with sfe pack trust <name>.

Steps for each teammate

4. See what belongs to this Mac

The team's answers are already in the pack. What is left is each person's own sign-ins. sfe init propose lists them, with the exact command for each one.

sfe init propose

What still belongs to this Mac: one row for each sign-in, with its command

Each row is one system and environment, what is missing, the command that fixes it, and who runs it. Here every row says person, because only we can type our passwords. sfe never asks for one.

5. Turn the pack on

This step is a person's, in their own terminal: Turn on your pack. After it, the sign-ins and the agents are the same for everyone.

Teach sfe how the team works

6. Name where the team keeps its docs

A new engineer, and their agent, learn faster from the team's own pages than from tickets alone. We name each place once.

sfe docs add confluence:ENG                 # a Confluence space
sfe docs add acme/handbook                  # a GitHub repository
sfe docs add https://wiki.example.com       # any address
sfe docs gather                             # read them all

sfe docs gather reads Confluence through sfe confluence, a repository through sfe gh, and any other address in the sfe Chrome. It takes out anything that looks like a password, a key or a token, and keeps the pages on this Mac with where each came from and when.

A page sfe cannot reach is listed as not read. A coding agent with its own browser reads it and hands the text back with sfe docs keep, and sfe docs prompt prints that request for any agent. On the practice Mac we keep one page of this wiki that way:

sfe docs add, sfe docs keep and sfe docs list

7. Search the team's docs

sfe docs search production

The lines of the kept pages that answer the words best, with the page each is on

The answer comes page by page, best first: a page that answers in several lines comes before one stray line, and a line does not need every word, so a question asked in our own words, such as "which questions does sfe start ask about production", still finds its page. Agents search the same pages before they guess. From the pages, an agent proposes short notes one at a time, and each note counts only after a person approves it: sfe learns your team.

If something goes wrong

What we see What it means What we do
sfe is not set up yet: it needs a pack No pack is turned on. Make one (step 1) or put the team's folder in place (step 3), then turn it on.
the pack ... brings its own code ... not loaded The pack has a system written by the team, and nobody on this Mac has accepted its code. Read the code, then sfe pack trust <name>.
A docs page is listed as not read sfe had no sign-in for that page. Let a coding agent read it and keep it with sfe docs keep.