sfe learns your team¶
sfe gets better the longer a team uses it. It keeps four things on this Mac, and every coding agent reads them through sfe before it guesses:
- The team's own docs, read once from where the team keeps them: Set up sfe for a new team.
- Notes: short facts, lessons and pointers we or an agent write down, which count only after a person approves them.
- Case files: a ticket and everything it links to, read from every system and put on one timeline.
- Runbooks: a task the team does again and again, written down once as steps sfe can run.
Video, about one and a half minutes, with narration and captions.
Words we use on this page¶
- Note: one short piece of knowledge with a topic, a kind (fact, lesson, pointer or status) and a source.
- Approved: a person read the note and said yes. A note waiting for approval is used only as a hint.
- Case file: a folder for one ticket that holds what sfe read about it, with a timeline.
- Runbook: a named list of steps with values to fill in, such as an email address.
Before you start¶
- sfe is installed and a pack is on. Step 1 is on the practice Mac; the others are from a working install.
Steps¶
1. Write down what we learned¶
When we find out something that will help next time, we keep it in one sentence, with what it is about and where it came from.
sfe learn "Ledger exports to S3 finish by 03:00 UTC on weekdays" --topic ledger --source "Ops handbook, Backups"
sfe recall ledger

A note we write at our own terminal counts at once: approved · written by a person. An agent writes notes the same way as it works, and those wait: the last note here is hint (not approved) · written by an agent, used only as a hint until a person approves it with sfe knowledge approve <id>. --verify adds a command that checks the note still holds, and --replaces puts a new note in place of an old one.
2. Ask what sfe remembers¶

The best matches come first, with their kind, their source and when they were written. Agents run the same search before they start, so a lesson learned once is not learned again. Notes sfe remembers has more.
3. Open a case file¶
sfe case <ticket> reads a ticket and everything it links to (Jira, GitHub, Copado, ServiceNow and the team's chats) and keeps it in a folder. sfe case show reads it back without asking any system again.

The top lists everything linked to the ticket, with its status. Below is one timeline across the systems: when each ticket was created, when the pull request was opened and merged, the test comments, and the status changes. sfe case note adds what we found, and sfe case list shows every case on this Mac.
4. Run a runbook¶

Each runbook says what it takes and what it does. sfe runbook show <name> prints its steps; sfe runbook run <name> runs them: reads run, a step that is a person's stops and says what to do, and a change is written down as a plan for a person to apply. A team keeps its runbooks in the pack, so a new engineer has them on day one.
What each read found comes back in the run's answer and is kept in its trace in ~/.sfe/runbooks/runs, so nobody runs the reads again to see the data. A very long answer is kept in a file beside the trace, with the start of it in the trace.
A step can also be a note: text shown on the way, such as what a value means, after which the run goes on:
{ "title": "Read the DLQ depth", "note": "More than 50 messages means the consumer is down, not slow." }
sfe investigate names the runbooks whose name and summary match a question, so the right one turns up when it is needed.
5. See what an agent is handed when it starts¶
One line for each topic, with the title and id of every note a person approved, within 9,000 characters. Claude Code gets these lines when a session starts (sfe agent install adds the hook), and every agent's sfe server names the topics. So an agent knows what the team has written down before it asks anything, and reads only the note it needs, by its id. A note an agent wrote and nobody has approved is not in the index.
sfe can also draft a lesson of its own: when a call fails and the next call of the same command works, it writes down what changed, by shape only. These drafts are off unless the pack or the personal file says "learning": { "lessons": true }. A draft waits like any other, and sfe knowledge approve all leaves sfe's own drafts out: each is approved by its id after a person reads it.
Search reads whole words, rare words first, and the title above the topic above the body; "promote", "deploy" and "release" find one another, and so do "prod" and "production". On 112 real notes, the right note came first for 93% of 45 questions, and was in the top three for all of them.
If something goes wrong¶
| What we see | What it means | What we do |
|---|---|---|
A note does not come back in sfe recall |
It may still wait for approval, or its words do not match. | sfe recall --topic <topic> lists every note of a topic. |
| A case file looks old | It shows what sfe read last time. | sfe case <ticket> --refresh reads it again. |