Skip to main content

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: 52 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 all data sources 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
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, wearable daily metrics, labs, meals, weight, training. Synced with iOS and wearable integrations.
  • CSVs (data/): legacy weight, meals, labs, supplements. Being migrated to SQLite.
  • Bridge: person.health_engine_user_id links a SQLite person to a per-user 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/SQLite schemas
ONBOARDING.md Setup walkthrough

License

MIT

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.2.tar.gz (409.2 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.2-py3-none-any.whl (294.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: baseline_health-0.8.2.tar.gz
  • Upload date:
  • Size: 409.2 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.2.tar.gz
Algorithm Hash digest
SHA256 ce91a8ae1ff43df3f10b66fd9b7809e2469b7c341c3643251916c51b8f41a8fb
MD5 e9afdc45e31689f1da949f0a7e7f03ff
BLAKE2b-256 7b10ac90efbfebf3a03704c02f8643be2b597ca2b6454be98e858daa614af9aa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for baseline_health-0.8.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3ad1a0f776d8b0b1aa313983188d33b6efb4a6508e5cd2e4bfcd413bfbbce14a
MD5 c51403b235a58515ecb9b9a8ba73b971
BLAKE2b-256 2a63ab8bc83a42b84a2f9dbe31cc3f487f78fea9194bcc4a65029f4f034d136e

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.8.2 This release

2 files

0.8.1

2 files

0.8.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page