What is Safran
Safran is a local toolkit that gives coding agents the context of one company (its tickets, its
code across repositories, who owns what, the words people use, and the work that was done
before), all driven by a single profile file, safran.yaml.
This page says what you get, what you do not get, and which page to read next.
The problem it solves
A coding agent opened in one repository knows that repository. It does not know that a ticket
written in Turkish about "iade" is about the code that says refund, that the fix probably
spans payments-api and ledger, that the Payments team owns both, or that a similar ticket
was closed three months ago by a pull request touching src/refund/policy.ts.
Teams usually solve this by wiring tracker tools, a code index and prompts together for their own company. Project keys, repository names and team names then end up inside code and prompts, and the result cannot be moved to another company without a rewrite.
Safran keeps everything company-specific in one file. The index, the MCP server, the skills and the evaluation all read that file. A second company needs a second profile, not a second codebase.
version: 1
company: acme
languages:
tickets: tr
code: en
trackers:
- id: jira
type: jira
url: https://jira.acme.example
email_env: JIRA_EMAIL
token_env: JIRA_TOKEN
projects: [PAY, MOB, WEB]
code:
hosts:
- id: azure
type: azure-repos
organization: acme
project: Platform
token_env: AZURE_DEVOPS_PAT
groups:
backend: [payments-api, ledger]
teams:
- name: Payments
projects: [PAY]
repos: [payments-api, ledger]
glossary:
- term: İade
code: [refund, chargeback]What you get
| Capability | What it does | Where it comes from |
|---|---|---|
| Tickets | Reads a ticket, its comments, attachments (spreadsheets as tables), links and history; its family, whether linked work blocks it, what changed since it last moved, and the time logged on it; searches tickets by text | A tracker connector: Jira, Azure Boards, Linear or GitHub Issues |
| Code across repositories | Clones or reads every repository the profile names and searches all of them at once, by meaning and by words; exact grep and file reads over the same set | A code host connector (Azure Repos, GitHub, GitLab, a local directory) and a local index |
| Ownership | Answers "which team owns this repository or this project" | teams in the profile, or inferred from merged pull requests when the profile does not say |
| Vocabulary | Expands ticket words into the words the code uses before searching | glossary in the profile |
| Past work | Which merged pull requests belonged to which ticket and which files they changed | A local store filled from the code hosts' pull requests |
| Pull requests | Finds the pull request of a ticket, a link or a branch as it is now; reads reviewers and votes, changed files, review threads and the diff | Azure Repos, GitHub or GitLab, at the moment you ask |
| Guarded writes | Posts a ticket comment, a child ticket, a pull request comment or a thread reply: off by default, opt-in per kind, each one previewed and confirmed | writes in the profile |
| Linked documents | Fetches a wiki page a ticket links to | A doc source connector (Confluence) |
| Evaluation | Builds a question → files set from your own merged pull requests and measures search against it | safran eval |
| Agent jobs | Runs an existing agent CLI unattended over a queue of jobs: a worktree per job, the project's own checks, an independent review, and a local branch a person approves. It never pushes | harness in the profile, safran harness |
All of it is delivered three ways, over the same core:
- A CLI.
safran sync,safran search,safran ticketand the rest. See the CLI reference. - An MCP server for Claude Code, with 29 read tools (and 2 write tools that exist only when the profile enables writes), and sixteen skills that use them: from setting Safran up, through readiness, analysis, breakdown and estimate, to implementing a ticket, reviewing a pull request, answering review comments and verifying acceptance criteria. See the Claude Code plugin, the skills reference and the MCP reference.
- A TypeScript SDK.
createSafran()returns the same object the CLI and the server use. See the SDK guide.
There is also a local dashboard, safran dashboard, that shows the same instance in a browser.
What it is not
These are limits by design. They are stated here so you do not find them later.
- Not an agent framework. Safran does not implement the agent loop (models, tool use, context). It feeds an agent that already exists (Claude Code first) with tools and skills. The job harness starts such an agent CLI unattended and is the process around it: a queue, a worktree per job, the project's own checks, an independent review and a person's approval. It adds no model call of its own.
- Not hosted, not multi-tenant. One install serves one company and runs on your machine. Source code and tickets are read from your trackers and code hosts directly; nothing passes through a Safran service, because there is none. With the default embedder (Ollama) the embeddings are computed locally too. If you configure a remote embedding endpoint instead, code chunks are sent to that endpoint.
- Not a bot that acts on its own. Safran is read-only by default: a default install has no write tool and skills draft text for you to paste. Where a profile enables writes, four narrow kinds exist and each post needs a preview and your explicit yes. It never changes a status, approves a pull request or merges. See Writes.
- Not published to a package registry. You clone the repository and run it with Bun. There
is no
npm installfor it. - Not a sandbox. The replay evaluation and the job harness run agent commands as ordinary processes, and the harness's guard is a text filter; see Status and limitations.
Who it is for
- An engineer who wants Claude Code to answer "where is this done, and who owns it" across every repository of the company instead of the one that is open.
- A team that receives tickets in one language and writes code in another.
- Someone building their own tooling on company context who wants a typed API instead of a pile of scripts: the SDK is the same code the CLI runs.
It is less useful when all your code is one small repository and your tickets already name the files: the agent can read that on its own.
Where to go next
| You want to | Read |
|---|---|
| Run it now | Quickstart |
| Understand the moving parts first | Concepts |
| Check what must be installed | Requirements |
| Write or review the profile | The profile and its reference |
| Connect a tracker, a code host or an embedder | Connectors |
| Use it from Claude Code | Plugin, Setting up, Skills, MCP server |
| See one ticket go from link to merge | From a ticket link to a merged change |
| Call it from your own code | SDK guide, API reference |
| Set it up for a company from scratch | A new company |
| Know what is unfinished | Status and limitations |