Farness
Forecasting as a harness for decision-making.
Instead of asking "Is X good?" or "Should I do Y?", farness helps you:
- Define what success looks like (KPIs)
- Expand your options (including ones you didn't consider)
- Make explicit forecasts (with confidence intervals and resolution rules)
- Track outcomes to improve calibration over time
Installation
python -m pip install 'farness[mcp]'
Quick Start
Codex
farness setup codex
farness doctor codex
Then restart Codex and use $farness when a decision prompt appears.
Claude Code
farness setup claude
farness doctor claude
Then restart Claude Code.
Local CLI
farness new "Should we rewrite the auth layer?" --context "3 incidents this quarter"
farness list
farness calibration
The CLI is local-only and does not call an LLM or require an API key.
Python package
from farness import Decision, KPI, Option, Forecast, DecisionStore
from datetime import datetime, timedelta
# Create a decision
decision = Decision(
question="Should I take the new job offer?",
kpis=[
KPI(name="income", description="Total comp after 2 years", unit="$"),
KPI(
name="satisfaction",
description="Job satisfaction 1-10",
outcome_type="score",
resolution_date=datetime.now() + timedelta(days=365),
resolution_rule="Ask for a 1-10 retrospective self-rating 12 months after starting.",
data_source="Follow-up self-review",
),
],
options=[
Option(
name="Take new job",
description="Accept the offer at Company X",
forecasts={
"income": Forecast(
point_estimate=300000,
confidence_interval=(250000, 400000),
reasoning="Base + equity, assuming normal vesting",
),
"satisfaction": Forecast(
point_estimate=7.5,
confidence_interval=(6, 9),
reasoning="Interesting work, but unknown team",
),
}
),
Option(
name="Stay at current job",
description="Decline and stay",
forecasts={
"income": Forecast(
point_estimate=250000,
confidence_interval=(230000, 280000),
reasoning="Known trajectory, likely promotion",
),
"satisfaction": Forecast(
point_estimate=6.5,
confidence_interval=(6, 7),
reasoning="Comfortable but plateauing",
),
}
),
],
review_date=datetime.now() + timedelta(days=180),
)
# Save it
store = DecisionStore()
store.save(decision)
Command Line
farness new "Should we launch now?"
farness show abc123
farness pending
farness calibration
AI Agent Workflows
farness is not tied to Claude. The Claude Code plugin is the most integrated path today, but the framework also works with Codex and other coding agents that can follow structured instructions or run shell commands.
For agent-agnostic setup and prompt guidance, see docs/agent-workflows.md.
Codex and other coding agents
The default builder path is package-first:
python -m pip install 'farness[mcp]'
farness setup codex
farness doctor codex
For source installs during development:
python -m pip install -e /path/to/farness
MCP server
If you want a native tool interface instead of prompt copy-paste, install the package and run the MCP server locally:
python -m pip install 'farness[mcp]'
farness-mcp
It exposes tools for creating, listing, retrieving, saving, and scoring decisions, plus resources/prompts for the farness workflow.
To register it in Codex as a local MCP server:
farness setup codex
farness doctor codex
This installs the packaged Codex skill and registers the MCP server with the same Python interpreter that launched farness.
Claude Code local skill + MCP
Claude Code can use the same local MCP server and a local skill wrapper:
python -m pip install 'farness[mcp]'
farness setup claude
farness doctor claude
This installs the packaged Claude skill and registers the MCP server in user scope.
The plugin path still works if you prefer the slash-command workflow:
claude plugin marketplace add MaxGhenis/farness
claude plugin install farness@maxghenis-plugins
Then either use the local farness skill or /farness:decide if you installed the plugin.
Repair and reset
If setup drifted or a skill was modified locally:
farness doctor codex --fix
farness doctor claude --fix
If you want to remove the local integration and start over: