agent-ix

Sapho — Development skill for Claude Code

Development community

Compound decisions with System One models like Jev: ask small questions, combine the answers with rules you write in a decision graph.

How to install Sapho

This entry records only its repository, not the path inside it, so there is no exact command to give. Open agent-ix/sapho and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Sapho does

Compound decisions with System One models like Jev: ask small questions, combine the answers with rules you write in a decision graph. Rust library and CLI.

Alternatives in Development

  • Understand Anything — Graphs that teach graphs that impress 80.7k ★
  • Understand Anything — Claude Code skills that turn any codebase into an interactive knowledge graph you can explore, search, and ask 2.5k ★
  • Fast Jev Compaction — Claude Code plugin that replaces the compaction summary with Jev decisions: every tool call and result is scor 425 ★

README

Sapho logo

Sapho

[![License: AGPL-3.0-or-later](https://img.shields.io/badge/License-AGPL--3.0--or--later-blue.svg)](LICENSE) [![Discord](https://img.shields.io/badge/Discord-Join%20us-5865F2?logo=discord&logoColor=white)](https://discord.gg/k8DVhuYBR2)

**Make compound decisions with System One models and rules you write.**

Sapho is a Rust library and command-line tool for making compound decisions with System One models such as Jev. System One models cut inference time and cost significantly, and they are fast enough to run on an M5 laptop.

Sapho splits a decision into many simple questions, asks the model each one, and combines the answers using rules you write. Rules use logic operators such as and, or, min and max, and you can build larger rules out of smaller ones.

Write your questions and rules as a decision graph in YAML or JSON. Run them from the command line, or use Sapho in a Rust application. Keep the answers and intermediate results so you can see how a decision was made, measure it against labelled examples, and improve the rule.

[CLI setup](#install-the-cli) · [Rust integration](#use-sapho-in-a-rust-project) · [Claude Code](#use-the-skills-in-claude-code) · [Documentation](docs/index.md)

How it works

Suppose you want to decide whether a code change needs closer review. Break that decision into questions:

  • Did the public API change?
  • Could the change break an existing contract?
  • Are important cases missing from the tests?

Your code can answer the first question. A model can help answer the other two. Then a rule combines those answers. For example, you could use this policy:

needs_review = public_api_changed AND
               (contract_risk >= 0.7 OR test_gap >= 0.8)

You choose the questions, the meaning of each answer, and the thresholds. Sapho runs the steps and returns the decision with a trace of