Skip to main content

Kansei

Kansei は、AI 支援の研究運用を扱うための private local control plane です。 project registry、provider 設定、dashboard、knowledge、runbook、MCP access を ひとつのローカル instance に集約しつつ、各 target project はそれぞれの リポジトリや remote environment に残します。

Kansei は保守的に動きます。まず読む、次に計画する、最後に適用する、という 順序を基本にします。状態変更の正本は CLI です。MCP と Codex workflow は、 その状態に対する安全な参照・計画用インターフェースを提供します。

インストール

uv tool install kansei
kansei version

このリポジトリからローカル開発する場合:

uv run kansei version
uv run --extra dev pytest -q

クイックスタート

PyPI から 1 行で private instance を作成できます。

uvx --from kansei kansei init ~/work/kansei --git --with-codex --with-mcp

すでに kansei をインストール済みの場合:

kansei init ~/work/kansei --git --with-codex --with-mcp
cd ~/work/kansei
uvx --from kansei kansei doctor

ローカルの code project を登録します。

kansei project add --id demo --name Demo --kind code --provider generic-code --location local --path .
kansei project list
kansei status
kansei dashboard today

providers.toml から Codex MCP 設定を生成します。

kansei mcp config
kansei mcp config --write --force
kansei mcp inspect

harness update を preview します。

uvx --from kansei kansei update-harness

plan が想定どおりのときだけ適用します。

uvx --from kansei kansei update-harness --apply

離れた version の instance は、checkpoint ごとに exact package version を呼ぶ upgrade chain で更新できます。

uvx --from kansei kansei update-harness --plan
uvx --from kansei kansei update-harness --apply-chain

標準の CLI 実行は uvx --from kansei kansei <command> です。kansei init は project-local な Kansei .venv を既定では作成しません。互換用に必要な場合だけ --bootstrap で .venv と Kansei install を作れます。HarnessOps が hops として利用できる場合、init は hops init も実行します。また、 kansei update-harness は hops update-harness に連鎖します。hops が PATH に無い場合は、local HarnessOps checkout を KANSEI_HARNESSOPS_SOURCE に 設定してください。

主なコマンド

  • kansei init: private local instance と instance-local agent skill を作成します。
  • kansei doctor: instance 構造、TOML、registry、managed file の drift を検証します。
  • kansei project list/add/show/open/status/doctor: project registry を管理します。
  • kansei provider list/doctor/connect/disconnect: provider を確認し、SSH tunnel を計画します。
  • kansei status: active project の状態を集約します。
  • kansei dashboard today|weekly: 運用 planning view を表示します。
  • kansei search: local knowledge、runbook、prompt、dashboard、KANSEI.md を検索します。
  • kansei delegate: --exec が明示されない限り、安全な Codex delegation plan を出力します。
  • kansei mcp serve/config/inspect: MCP tool を公開し、Codex MCP config を生成します。
  • kansei backup: control-plane file を .kansei/backups に zip します。
  • kansei migrate: 未適用の layout migration を確認します。

Instance の構成

kansei init は次のような private instance を作成します。

  • kansei.toml, projects.toml, providers.toml
  • knowledge/, dashboards/, runbooks/, prompts/
  • .agents/skills/kansei-control-plane, .agents/skills/feedback-kansei
  • 必要に応じて .codex/config.toml
  • .kansei/manifest.toml, .kansei/lock.toml, state/cache/log/backup folders

Kansei は source tree、simulation output、manuscript、remote job state を control plane にコピーしません。

安全性の考え方

  • projects.toml, providers.toml, knowledge/, daily dashboard などの user-owned file は update-harness で上書きされません。
  • managed file は .kansei/lock.toml と照合されます。
  • ローカル編集済みの managed file は上書きされず、harness update 時に .new sidecar file が作られます。
  • remote write、HPC submit/cancel/delete、archive/delete、manuscript rewrite は v0.1 では自動実行されません。
  • SSH tunnel command は既定では表示のみです。実際に foreground 実行するには --exec が必要です。
  • Kansei CLI runtime は uvx の一時環境で再取得できます。private な運用状態は runtime environment ではなく instance file 側に残します。
  • HarnessOps 連携は hops に委譲します。Kansei が .harnessops/, harness-feedback/, harness-lab/ を直接組み替えることはありません。

Agent 向けガイド

このリポジトリの保守用 Codex guidance は .agents/skills/kansei-repository-maintainer にあります。 kansei init で作成される instance 側には .agents/skills/kansei-control-plane と .agents/skills/feedback-kansei が入ります。

ドキュメント

v0.1 の完全な仕様は SPEC.md にあります。

Metadata

Release files for kansei 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kansei 0.2.0
File Size Uploaded Provenance Actions
kansei-0.2.0.tar.gz 164.3 kB With provenance Details for kansei-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for kansei 0.2.0
File Interpreter ABI Platform Actions
kansei-0.2.0-py3-none-any.whl Python 3 none any Details for kansei-0.2.0-py3-none-any.whl

Total release size: 239.9 kB

Release files / kansei-0.2.0.tar.gz

Download URL kansei-0.2.0.tar.gz
Size 164.3 kB
Tags Source
SHA-256 checksum
How to use checksums
134178075db7e9a35cd8834a926d1b98b0122fe4870eb90694125987f18903fb
BLAKE2b-256 checksum
How to use checksums
b806051dcbe1693a99058e76263e299def93cb87ceec4306a0cd7f89c33a2373
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 13, 2026.

Transparency log

Release files / kansei-0.2.0-py3-none-any.whl

Download URL kansei-0.2.0-py3-none-any.whl
Size 75.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4fec49a867efb744742a499aba6f74689184198675a4c9f8792f233642d42edc
BLAKE2b-256 checksum
How to use checksums
fc8086a97bf3633da3091463ffd26ec0a498f516c2aa708e36b667016646ff4b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 13, 2026.

Transparency log

Security for kansei 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for kansei-0.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 13, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files Full provenance

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