Requirements
- Python 3.10 or newer
- No other runtime dependencies for the interpreter itself.
pytestis only needed if you want to run the test suite.
Install
[anthropic] (pip install sense-lang[anthropic]) or [openai] if you
want to use
inference(...)
with that provider — both are optional because picking inference("mock", ...) instead of a real provider is what keeps a program offline, not
something ask() does on its own; neither extra is needed for that path.
Add [mcp]
similarly for connect_mcp(...)
(pip install sense-lang[anthropic,openai,mcp] for everything).
Verify it worked
sense isn’t on your PATH, call the module directly instead:
python -m sense_lang run fib.sns.
Building from source
Only needed for contributing to Sense itself — running programs doesn’t require it.[dev] extra pulls in pytest:
Previewing this site locally
This is a standard Mintlify project (docs.json +
MDX pages), live at docs.sensecode.dev:
- Install the CLI:
npm i -g mint - Preview locally:
mint devfrom insidedocs/(defaults tohttp://localhost:3000)
As of this writing,
npx mint@latest intermittently fails to resolve one
of its own internal dependency versions (@mintlify/models) — an
upstream registry issue, not something wrong with this project. If mint dev fails to install, it’s worth simply retrying, or pinning an explicit
recent mint version.
