Skip to content

Notes sfe remembers

This page shows how sfe remembers what we learn. When we find out something that will help next time, such as where a release gets promoted or which region a lane lives in, sfe can keep it as a short note. Later, anyone on this Mac, and any coding agent we use, can ask sfe for it again. The notes stay on this machine. A new note only counts after a person has read it and approved it.

Video, about two and a half minutes, with narration and captions.

Words we use on this page

  • Note: one short piece of knowledge, kept as a small text file. All notes live in the knowledge folder inside the sfe folder (~/.sfe/knowledge) on this Mac.
  • Topic: what a note is about, in one word, such as orc, copado or aws.
  • Kind: what sort of note it is. A fact is something true. A lesson is something someone learned the hard way. A pointer says where to look. A status says where something stands right now.
  • Source: where the note came from, such as a ticket, a page or a person.
  • Draft: a note that has been written but not yet approved. A draft is never used.
  • Approved: a person read the note and said yes.

Before you start

  • sfe is installed and our pack is on. If it is not, we do that first: The path at a glance.
  • Nothing else. Finding notes needs no sign-in, because the notes are on this Mac.

Note

The notes on a different Mac are different. Each person's notes are kept on their own machine.

Steps

1. See what sfe remembers

We type sfe recall with nothing after it. sfe prints a map of everything it holds.

sfe recall

A map of the notes, one row for each topic

Each row is a topic. The columns say how many notes it holds, how many of those are approved, and which kinds they are. The last line says how many notes there are in all and how many are waiting for a person.

2. Find a note by its words

We type sfe recall and then some words in quotes. The option --limit 1 keeps only the best match, so the answer stays short.

sfe recall "region oregon" --limit 1

One lesson about the AWS region

We get the note that matches best. It is a lesson: the lower AWS lanes are in Oregon, so we switch the region before we look for anything. Without --limit, sfe prints several matches. To look at one topic only, we use --topic, for example sfe recall --topic orc.

3. Read what a note holds

Every note has the same parts. Here they are, for the note we found:

The parts of a note

Number 5 matters most. approved means a person read the note and said yes. by an agent means a coding agent wrote it, which is normal, because agents are the ones that notice things while they work. The source (number 6) tells us where to check.

If we want the whole note, we give sfe recall its id, for example sfe recall 20261201-2bf466.

4. Notes that say how to check themselves

Some notes end with check it with: and an sfe command. If a note looks out of date, we run that command and compare.

sfe recall "orc deploy" --limit 1

A note that ends with a command that checks it

Here the note says how an ORC release is promoted, and ends with check it with: sfe deploy status orc.

5. See the notes that wait for a person

A new note is first written as a draft. sfe knowledge list --pending lists the drafts.

sfe knowledge list --pending

Drafts that are waiting for a person

The state column says draft and the used column says 0. Some drafts are written by an agent. Others are written by sfe itself, when a command failed and the next try worked. sfe recall <words> never returns a draft, so nothing that nobody checked is used in an answer. To read one draft in full, we give sfe recall its id.

6. How a new note is kept, and approved

We do not run these two commands on this page. We read their help, so we know what they do before we ever use them.

sfe learn keeps one new note:

sfe help learn

The help for sfe learn

We give it the fact in quotes, and we can add a kind (--kind), a topic (--topic), a title (--title) and a source (--source). A good note always has a source. --replaces takes the place of an older note, and --verify says how to check the note later. sfe learn writes a file on this Mac only. It never changes a WGU system.

sfe knowledge approve is for a person:

sfe help knowledge approve

The help for sfe knowledge approve

It takes a note id, or all for every note that is waiting. The help says it plainly: approve notes an agent wrote, after reading them. A coding agent can suggest a note, but the note counts only after we have read it and run this command ourselves. We read a draft first with sfe recall <id>, and approve it after.

What we should see

  • A map of topics from sfe recall, and one or more notes from sfe recall "<words>".
  • Each note shows a title, [kind ยท topic], an id, and approved.
  • No student names, emails or ids. A note holds a fact about how the team works, not a record about a person.

Troubleshooting

What we see Likely cause What to do
(nothing learned yet about "...") No approved note matches those words, or the only match is still a draft Try fewer or different words, or sfe recall to see the topics. Check the drafts with sfe knowledge list --pending
We ran sfe learn and sfe recall does not find the note A new note is a draft until a person approves it Read it with sfe knowledge list --pending, then run sfe knowledge approve <id>
A note looks out of date The system changed after the note was written Run the command after check it with: and compare. When it no longer holds, sfe learn "<new fact>" --replaces <id> writes the new one
A coding agent says it cannot run sfe knowledge approve The command is for a person, on purpose We run it in our own terminal

Next


Last reviewed: 2026-12-01