Working from a coding agent¶
This page shows how the same sfe works inside a coding agent. A coding agent is a program such as Claude Code or Codex, where we ask a question in plain words and it runs commands for us. When sfe is connected to it, the agent reads Jira, Copado, Salesforce and the rest through sfe, so it gets the same answers we get in the terminal. Everything on this page only reads.
Video, about two and a half minutes, with narration and captions.
Words we use on this page¶
- Coding agent: a program that takes a request in plain words and uses tools, such as running commands, to answer it. Claude Code and Codex are two of them.
- Tool: one thing an agent may call. sfe gives an agent tools such as
where,searchandrecall. - MCP server: the small program that hands sfe's tools to an agent. "MCP" is the name of the standard way agents find tools.
- Skill: a page of instructions the agent reads, written from our team's setup, so it knows what our systems are.
- Guard: a check that runs before each command an agent wants to run. It refuses a change that nobody allowed.
- Print mode:
claude -pasks one question, prints the answer and stops. It is the quickest way to try an agent from a terminal.
Before you start¶
- sfe is installed and our pack is on. If it is not, we do that first: The path at a glance.
- sfe is connected to Claude Code. Connect your agents shows how. We check it in step 1.
- We have a Jira key. We use
ENG27-6254again, the finished ticket from Look into a ticket or incident.
Tip
The agent can only read what our own sign-ins can read. If a sign-in is missing, the agent gets the same login needed message we would get. We fix it the same way, with sfe doctor.
Steps¶
1. See which agents have sfe¶
We type sfe agent list and press Enter.

Each row is an agent. present says sfe found that agent's settings on this Mac. Then three columns say what sfe put there:
| Column | What it means |
|---|---|
mcp |
The agent can call sfe's tools |
skill |
The agent has read how our team and systems work |
guard |
A check runs before each command the agent wants to run |
Claude Code shows yes in all three. The rows for agents we do not use are there too, and we can ignore them.
2. Ask the question in the terminal¶
First we ask the question ourselves, so that we know what the right answer looks like. We want to know where the change for ENG27-6254 is.

The answer says the Copado story is live in Production, and the table shows that it was promoted on 2026-11-25.
3. Ask the same question in Claude Code¶
We stay in the terminal and ask Claude Code with print mode.
claude -p "Where is ENG27-6254 right now? Use sfe, read only. Answer in three short lines, and name the sfe tool you used."

It takes about twenty seconds, because the agent first calls sfe's where tool and then writes the answer. It names the tool it used (mcp__sfe__where, the same as sfe where ENG27-6254), and says it only read. The wording is different each time, but the facts are the same.
We can also open claude without -p, and type the question as a normal message. The answer is the same.
4. Compare the two answers¶
Here are the two answers next to each other. The left is the terminal and the right is Claude Code.
Both say that the story is in Production, and was last promoted on 2026-11-25. Claude Code adds what it read from the other places: no pull request names the ticket, and the newest ORC build is not this change. Click the picture to see it larger.
Two things make this work:
- Every result carries the command and the story. When the agent calls a tool, sfe sends back the exact command that ran and the plain-words narration, the same as in the terminal. The agent can show us what it did, and we can copy the command and run it ourselves.
- The guard stands in front of both. A coding agent may read freely. A command that would change a WGU system is refused unless a person allowed it. How changes work explains what happens then.
5. How an agent gets connected¶
A person connects an agent once, with sfe agent install. We do not run it on this page, because it changes the agent's own settings. We read its help instead:

--for names the agent, or all. --dry-run shows every line it would change and writes nothing, so we can look first.
Codex works the same way. After sfe agent install --for codex, the same sfe tools appear in Codex, with the same skill and the same guard. Codex is not on the Mac we made this page on, so there is no Codex screen here.
What we should see¶
yesundermcp,skillandguardfor Claude Code insfe agent list.- An answer from Claude Code that names an sfe tool and says it read.
- The same facts in the agent's answer and in the terminal.
Troubleshooting¶
| What we see | Likely cause | What to do |
|---|---|---|
| Claude Code does not use sfe, and answers from its own knowledge | sfe is not connected to it, or the agent was open before we connected it | Check sfe agent list. Restart Claude Code so it sees the tools |
The agent says login needed |
The sign-in for that system has expired | Run sfe doctor. It lists the system and the fix. Passwords and codes are always typed by us |
| The agent says a command was refused, exit code 3 | The agent tried a change that nobody allowed | Nothing to fix. This is the guard working. See How changes work |
| The agent's answer differs a little from the terminal | An agent words things in its own way | Compare the facts, not the words. Ask it to show the sfe command it ran |
claude: command not found |
Claude Code is not installed on this Mac | Install it first, then run sfe agent install --for claude |
Next¶
- How changes work, for what happens when we do want to change something.
- Notes sfe remembers, which an agent can read too.
Last reviewed: 2026-12-01
