Skip to main content

AI health coach for Claude. Tracks 20 metrics, scores your health coverage, coaches you through 14-day focused programs. Local-first, your data stays on your machine.

Project description

Kiso (基礎)

The backend platform for Kasane and Milo.

Kiso is a health intelligence server that powers two clients: the Kasane iOS app (habits, coaching, focus plans) and Milo (an AI coaching agent on WhatsApp). Both read and write the same person profiles, habits, check-ins, and health data through a shared API.

The name means "foundation" in Japanese. Kasane means "layers." Kiso is what the layers sit on.

What it does

For the iOS app: bidirectional sync of persons, habits, check-ins, focus plans, and health measurements via REST API.

For Milo: 40+ MCP tools for health coaching. Log weight, meals, labs, blood pressure. Pull data from Garmin, Apple Health, Oura, Whoop. Score 20 health metrics against NHANES population percentiles and clinical guidelines.

For both: a unified person context that merges Kasane data (SQLite) with health tracking data (CSVs) in one call.

Quick start

git clone https://github.com/a-deal/kiso.git
cd kiso
pip install -e ".[gateway,dev]"

# Run the gateway
python3 -m uvicorn engine.gateway.server:create_app --factory --port 18800

# Run tests
python3 -m pytest tests/ -v

MCP server (for Claude Desktop / Claude Code)

{
  "mcpServers": {
    "kiso": {
      "command": "uvx",
      "args": ["kiso"]
    }
  }
}

API surfaces

Surface Path Client
Kasane sync POST /api/v1/sync iOS app
Kasane CRUD /api/v1/persons, /api/v1/habits, etc. iOS app
Person context GET /api/v1/persons/:id/context Milo
Health tools /api/{tool_name} Milo, iOS Shortcuts
Wearable auth /auth/garmin, /auth/google Browser (OAuth)

Full API reference: docs/API.md

Architecture

One Python process. Two storage systems. Three clients.

  • SQLite (data/kasane.db): persons, habits, check-ins, focus plans. Synced with iOS.
  • CSVs (data/): weight, meals, labs, Garmin, supplements. Written by Milo's tools.
  • Bridge: person.health_engine_user_id links a SQLite person to a CSV data directory.

Full architecture: docs/ARCHITECTURE.md

Health scoring

20 clinically validated metrics scored against NHANES population data (300K+ Americans) and clinical guidelines from AHA, ADA, and ESC. Covers cardiovascular, metabolic, body composition, recovery, and lifestyle dimensions.

Going from 0% to full coverage costs under $300.

Full methodology: docs/METHODOLOGY.md

Docs

Doc What's in it
ARCHITECTURE.md System design, storage model, deploy model, project layout
API.md v1 endpoints, sync protocol, data types
ROADMAP.md Cloud adoption phases (JWT, Litestream, Supabase)
METHODOLOGY.md Why each metric, evidence sources, clinical thresholds
SCORING.md How the scoring engine works
METRICS.md 20-metric catalog
DATA_FORMATS.md CSV/JSON schemas
ONBOARDING.md Setup walkthrough

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

baseline_health-0.8.0.tar.gz (238.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

baseline_health-0.8.0-py3-none-any.whl (222.9 kB view details)

Uploaded Python 3

File details

Details for the file baseline_health-0.8.0.tar.gz.

File metadata

  • Download URL: baseline_health-0.8.0.tar.gz
  • Upload date:
  • Size: 238.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for baseline_health-0.8.0.tar.gz
Algorithm Hash digest
SHA256 0f85c7ab36fe382cc61b6dd43a382860ef655b5c7c3efdc7d831eaa97370b4a1
MD5 528253a8f0b650d6c59909c15d4d3178
BLAKE2b-256 976fd8659013a8325bffb7eb578c33358ba8435ee9e7d6cccfd0181d58022ffc

See more details on using hashes here.

File details

Details for the file baseline_health-0.8.0-py3-none-any.whl.

File metadata

File hashes

Hashes for baseline_health-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1a75c720a5327a032abc6bb71f101c639becf9c6c47b3b63a9ff5fa148bee1b7
MD5 9ceee683d83f3926c1cf5654931d3d75
BLAKE2b-256 759bf90be5a32aff529c27c70e00370fd44bb7686cabb7aa591bb2c0acf1a564

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page