Skip to content
System One

sharziki/semdecide

A Python CLI that turns Jev calls into Unix-pipeline predicates, routing, scoring and JSONL filtering with stable exit codes, plus an agent-safety guard recipe for authorization and destructiveness checks.

sharziki/semdecide on GitHub

Stars
54
Forks
7
Language
Python
License
MIT
Last push
16 Sep 2026

Read from GitHub on . Counts change daily.

How it uses Jev

from .base import ProviderError

DEFAULT_URL = "https://api.typesafe.ai/v1/systemone"
Transport = Callable[[urllib.request.Request, float], bytes]
Sleep = Callable[[float], None]


def load_api_key() -> str:
    if key := os.environ.get("TYPESAFE_API_KEY"):
        return key
    path = Path(os.environ.get("TYPESAFE_CREDENTIALS_FILE", "~/.config/typesafe/credentials.env")).expanduser()
    try:
        lines = path.read_text(encoding="utf-8").splitlines()
    except OSError as exc:
        raise ProviderError(f"cannot read credentials file {path}: {exc}") from exc

View in src/reflex_guard/providers/typesafe.py

Open on GitHub

More like this

Use cases this is tagged with