Skip to main content

Install

Requires Python 3.10+. This installs the sense command along with the interpreter itself — no other runtime dependency.

Run a file

Create hello.sns:
hello.sns
Run it:

Try the REPL

Typing sense with no arguments does the same thing — the same convenience bare python has (sense --help still lists every subcommand).
Sense blocks are indentation, like Python’s — the REPL keeps prompting with ... while a block (anything ending in :) is open, and a blank line ends it. See CLI Reference for the full behavior.

A slightly bigger example

fib.sns

The AI-native part

Everything above is Sense’s deterministic core — no different in spirit from Python. Here’s the part that isn’t: ask(), running entirely offline against a mock model so this needs no API key.
reason_demo.sns
result is an Answer, not a plain string — accessing .value is mandatory, so there’s never a moment where AI-generated output silently looks identical to a fact your code computed itself. See Model, Ask & Answer for the full picture, including how to scope which model is active with session.

Next

Tutorials

Three short, hands-on walkthroughs — start with “Ask a Model.”

Which keyword do I want?

def vs tool vs action vs agent — a one-glance decision guide.

Language guide

Values, scoping, functions, control flow, modules.

Actions & policy

How Sense makes world-changing operations safe by construction.