プロトタイプ · プレビュー版:公式レジストリのすべてのサーバーを掲載し、30分ごとに同期しています。Google でログインするとレビューを書けます。プロトタイプ · 30分ごとに更新
PopNx MCPAIを使う人のためのMCPサーバー · やさしい言葉で解説

Koschei

作者:bugsbuny243バージョン 0.14.0i★ 0iパソコンで動く
レジストリ名io.github.bugsbuny243/koschei

インストール方法

What it does

Run agent-written code under a capability policy: see what a program can touch before it runs.

  • Connects パソコンで動く
  • Account or key No key needed
  • Category 開発者ツール

一緒に使える

この種の作業を AI に教える Skill。これと一緒に使えます

rea

Reverse engineer anything with agents, from app behavior down to native binaries.

作者:morluto★ 461,7511 個の skill

Skill · 手順書

graphify

Turn any codebase, with its docs, SQL schemas, configs, and PDFs, into a queryable knowledge graph. A /graphify skill for Claude Code, Cursor, Codex, and Gemini CLI: local deterministic AST parsing, every edge explained, no vector store.

作者:Graphify-Labs★ 148,3521 個の skill

Skill · 手順書

archify

Turn any idea, plan, or codebase into a beautiful interactive diagram. An agent skill for Claude Code, Codex, and more.

作者:tt-a1i★ 96,7571 個の skill

Skill · 手順書

この順位の理由

一覧は利用スコア(100 点満点)で並びます。内訳は次のとおり

人気0/80GitHub スターか週間ダウンロード数。大きい方を 60、小さい方を 20 で数えます
新しさ12/1230 日以内のリリースかコード更新で満点
応答中0/8前回の確認でクラウドのエンドポイントが応答
利用スコア12/100

品質: 基本チェック 2/3 項目に合格(表示のみ、並び順には不使用) · 勢い: データなし (「急上昇」タブでのみ使用)

インストール

使っているAIアプリを選んで、設定をコピーしてください。

チェック 2/3 合格 · あなたのパソコンで動きます · ✓ コマンド確認済み 2026年11月13日

まず:どの AI を使っていますか?

使っているアプリを選ぶと、下に手順が表示されます。

Claude につなげますが、先に準備が必要です

先にパソコンへ Python (uv) を入れてください(1 回だけ) · パソコン版 Claude アプリ(Windows または Mac)のみ。Web やスマホでは使えません

AI にインストールしてもらう

このメッセージを Claude のチャットに貼り付けます。AI がパソコンを確認し、変更するファイルを伝え、毎回あなたの了承を待ちます。

このパソコンの Claude に MCP server Koschei を入れてください。順番に:1) uv --version で uv があるか確認。なければ https://docs.astral.sh/uv/getting-started/installation/ から入れるよう私に伝え、自分では入れない。2) この設定だけを使う(PopNx MCP の確認済み):{ "mcpServers": { "koschei": { "command": "uvx", "args": [ "koschei-lang" ] } } } 3) 変更するファイルのフルパスか実行するコマンドを伝えて、私の了承を待つ。4) キーは不要。5) 了承した内容を実行し、Koschei のツールが本当に表示されるか確認する。

このメッセージにあなたのキーは含まれません。キーが必要な場合は、AI がファイルやアプリの入力欄にご自身で貼るよう案内します。

  1. uv を入れる(まだなければ)

    もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter

    uv --version
    • バージョン番号(例 uv …)が出る = 入っています。この手順は飛ばせます
    • "command not found"(Windows では "is not recognized")が出る = まだ入っていないか、入れた直後でターミナルを開き直す必要があります
    ターミナルの開き方

    Mac:⌘ + Space を押し、Terminal と入力して Enter

    Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」

    まだ入っていない場合: uv にはクリック式のインストーラーがありません。uv 公式ページからお使いの OS(macOS か Windows)用の 1 行コマンドをコピーしてターミナルに貼り付けます · Python を別に入れる必要はなく、必要なときに uv が自動で取得します

    uv のダウンロードページを開く ↗

    入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です: uv --version

    一度入れれば、uv を使うすべてのツールで使えます

  2. パソコン版 Claude アプリの設定ファイルを開く

    SettingsDeveloperEdit Config

  3. この設定を貼り付けて保存

    {
      "mcpServers": {
        "koschei": {
          "command": "uvx",
          "args": [
            "koschei-lang"
          ]
        }
      }
    }
  4. Claude を終了してもう一度開く

  5. 試してみる

    Koschei を使って、私に何ができるか教えて、1 つやってみせて

    ✓ Claude が Koschei を使っていると言うか、回答に Koschei のツール名が出れば接続成功です

メニュー名は 2026年11月11日 に Anthropic のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります

ChatGPT はまだ Koschei につなげません

Koschei はパソコンに入れて使うものですが、ChatGPT は Web 上で動くサーバーにしかつなげません

代わりにできること

A · Koschei につなげるアプリを使う

  • 先にパソコンへ Python (uv) を入れてください(1 回だけ) · パソコン版 Claude アプリ(Windows または Mac)のみ。Web やスマホでは使えません
  • 先にパソコンへ Python (uv) を入れてください(1 回だけ)
  • 先にパソコンへ Python (uv) を入れてください(1 回だけ)
  • 先にパソコンへ Python (uv) を入れてください(1 回だけ)

B · 開発者ツール の中で ChatGPT につなげる別のサーバー

同じカテゴリでよく使われているものから、キーなしでアドレスだけでつなげるものを選びました

Claude Code につなげますが、先に準備が必要です

先にパソコンへ Python (uv) を入れてください(1 回だけ)

AI にインストールしてもらう

このメッセージを Claude Code のチャットに貼り付けます。AI がパソコンを確認し、変更するファイルを伝え、毎回あなたの了承を待ちます。

このパソコンの Claude Code に MCP server Koschei を入れてください。順番に:1) uv --version で uv があるか確認。なければ https://docs.astral.sh/uv/getting-started/installation/ から入れるよう私に伝え、自分では入れない。2) この設定だけを使う(PopNx MCP の確認済み):claude mcp add --scope user koschei -- uvx koschei-lang 3) 変更するファイルのフルパスか実行するコマンドを伝えて、私の了承を待つ。4) キーは不要。5) 了承した内容を実行し、Koschei のツールが本当に表示されるか確認する。

このメッセージにあなたのキーは含まれません。キーが必要な場合は、AI がファイルやアプリの入力欄にご自身で貼るよう案内します。

  1. uv を入れる(まだなければ)

    もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter

    uv --version
    • バージョン番号(例 uv …)が出る = 入っています。この手順は飛ばせます
    • "command not found"(Windows では "is not recognized")が出る = まだ入っていないか、入れた直後でターミナルを開き直す必要があります
    ターミナルの開き方

    Mac:⌘ + Space を押し、Terminal と入力して Enter

    Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」

    まだ入っていない場合: uv にはクリック式のインストーラーがありません。uv 公式ページからお使いの OS(macOS か Windows)用の 1 行コマンドをコピーしてターミナルに貼り付けます · Python を別に入れる必要はなく、必要なときに uv が自動で取得します

    uv のダウンロードページを開く ↗

    入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です: uv --version

    一度入れれば、uv を使うすべてのツールで使えます

  2. ターミナルを開く

    Mac:Command+スペースで Terminal と入力 · Windows:PowerShell を開く

  3. このコマンドを貼り付けて Enter

    claude mcp add --scope user koschei -- uvx koschei-lang
  4. Claude Code で /mcp と入力

    Koschei が一覧にあり、接続済みと表示されれば OK です

  5. 試してみる

    Koschei を使って、私に何ができるか教えて、1 つやってみせて

    ✓ Claude Code が Koschei を使っていると言うか、回答に Koschei のツール名が出れば接続成功です

メニュー名は 2026年11月11日 に Anthropic のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります

Cursor につなげますが、先に準備が必要です

先にパソコンへ Python (uv) を入れてください(1 回だけ)

AI にインストールしてもらう

このメッセージを Cursor のチャットに貼り付けます。AI がパソコンを確認し、変更するファイルを伝え、毎回あなたの了承を待ちます。

このパソコンの Cursor に MCP server Koschei を入れてください。順番に:1) uv --version で uv があるか確認。なければ https://docs.astral.sh/uv/getting-started/installation/ から入れるよう私に伝え、自分では入れない。2) この設定だけを使う(PopNx MCP の確認済み):{ "mcpServers": { "koschei": { "command": "uvx", "args": [ "koschei-lang" ] } } } 3) 変更するファイルのフルパスか実行するコマンドを伝えて、私の了承を待つ。4) キーは不要。5) 了承した内容を実行し、Koschei のツールが本当に表示されるか確認する。

このメッセージにあなたのキーは含まれません。キーが必要な場合は、AI がファイルやアプリの入力欄にご自身で貼るよう案内します。

  1. uv を入れる(まだなければ)

    もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter

    uv --version
    • バージョン番号(例 uv …)が出る = 入っています。この手順は飛ばせます
    • "command not found"(Windows では "is not recognized")が出る = まだ入っていないか、入れた直後でターミナルを開き直す必要があります
    ターミナルの開き方

    Mac:⌘ + Space を押し、Terminal と入力して Enter

    Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」

    まだ入っていない場合: uv にはクリック式のインストーラーがありません。uv 公式ページからお使いの OS(macOS か Windows)用の 1 行コマンドをコピーしてターミナルに貼り付けます · Python を別に入れる必要はなく、必要なときに uv が自動で取得します

    uv のダウンロードページを開く ↗

    入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です: uv --version

    一度入れれば、uv を使うすべてのツールで使えます

  2. このボタンで Cursor を開く

    Cursor で開く

    Cursor がインストールの確認をするので Install を押します

  3. Cursor の AI チャットを Agent モードで開く

  4. 試してみる

    Koschei を使って、私に何ができるか教えて、1 つやってみせて

    ✓ Cursor が Koschei を使っていると言うか、回答に Koschei のツール名が出れば接続成功です

メニュー名は 2026年11月11日 に Cursor のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります

VS Code につなげますが、先に準備が必要です

先にパソコンへ Python (uv) を入れてください(1 回だけ)

AI にインストールしてもらう

このメッセージを VS Code のチャットに貼り付けます。AI がパソコンを確認し、変更するファイルを伝え、毎回あなたの了承を待ちます。

このパソコンの VS Code に MCP server Koschei を入れてください。順番に:1) uv --version で uv があるか確認。なければ https://docs.astral.sh/uv/getting-started/installation/ から入れるよう私に伝え、自分では入れない。2) この設定だけを使う(PopNx MCP の確認済み):{ "servers": { "koschei": { "type": "stdio", "command": "uvx", "args": [ "koschei-lang" ] } } } 3) 変更するファイルのフルパスか実行するコマンドを伝えて、私の了承を待つ。4) キーは不要。5) 了承した内容を実行し、Koschei のツールが本当に表示されるか確認する。

このメッセージにあなたのキーは含まれません。キーが必要な場合は、AI がファイルやアプリの入力欄にご自身で貼るよう案内します。

  1. uv を入れる(まだなければ)

    もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter

    uv --version
    • バージョン番号(例 uv …)が出る = 入っています。この手順は飛ばせます
    • "command not found"(Windows では "is not recognized")が出る = まだ入っていないか、入れた直後でターミナルを開き直す必要があります
    ターミナルの開き方

    Mac:⌘ + Space を押し、Terminal と入力して Enter

    Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」

    まだ入っていない場合: uv にはクリック式のインストーラーがありません。uv 公式ページからお使いの OS(macOS か Windows)用の 1 行コマンドをコピーしてターミナルに貼り付けます · Python を別に入れる必要はなく、必要なときに uv が自動で取得します

    uv のダウンロードページを開く ↗

    入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です: uv --version

    一度入れれば、uv を使うすべてのツールで使えます

  2. このボタンで VS Code を開く

    VS Code で開く

    VS Code がインストールの確認をするので Install を押します

  3. VS Code の AI チャットを Agent モードで開く

  4. 試してみる

    Koschei を使って、私に何ができるか教えて、1 つやってみせて

    ✓ VS Code が Koschei を使っていると言うか、回答に Koschei のツール名が出れば接続成功です

メニュー名は 2026年11月11日 に VS Code のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります

Windsurf、Zed、Gemini CLI など MCP を使える他のアプリは追加方法がそれぞれ違います。アプリ一覧で確認してください

MCP を使えるアプリをすべて見る →

JSON 設定は下の「開発者向け」にあります

つまずいたら?Koschei を使っている人に聞いてみましょう💬 ディスカッション →
開発者向け:ターミナルのコマンドと JSON 設定

パソコンにインストール

Claude Code

claude mcp add --scope user koschei -- uvx koschei-lang

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "koschei": {
      "command": "uvx",
      "args": [
        "koschei-lang"
      ]
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "koschei": {
      "command": "uvx",
      "args": [
        "koschei-lang"
      ]
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "koschei": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "koschei-lang"
      ]
    }
  }
}

この設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。

ひと目でわかる

週あたりのダウンロードi
npm/PyPIにない
ライセンスi
ライセンスの記載なし
接続方法
パソコンで動く
最新バージョンi
0.14.0
レジストリ公開日i
2026年11月13日
コードの最終更新i
2026年11月16日
作者
bugsbuny243
パッケージ
pypi: koschei-lang
ウェブサイト
koschei.dev
レジストリでの状態
有効

使えるアプリ

このサーバーのつなぎ方と、各アプリの公式ドキュメントに基づきます。2026年11月10日に確認。

パソコン上で動かせるアプリ

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

すべてのアプリと長所・短所 →

できること

パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。

基本チェックi

誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月16日にチェック

  • ✓ 合格

    作者とリポジトリが一致

    レジストリ名は、リポジトリを所有するGitHubアカウント bugsbuny243 で確認済みです

  • ✓ 合格

    今もメンテナンスされている

    コードの最終更新:今日

  • ✕ 不合格

    ライセンスがある

    リポジトリにライセンスファイルが見つかりません

  • – 対象外

    エンドポイントが応答する

    これはパソコンで動くため、インターネット上のエンドポイントはありません

  • – 対象外

    OAuthでサインイン

    パソコンで動き、代わりにローカルの設定を使います

  • … 未チェック

    ツールの説明に隠れた指示がない

    パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです

公開済みの脆弱性(OSV.dev)

OSV.dev に koschei-lang@0.14.0 の登録はありません

このバージョンのパッケージ本体のみ確認。すべての依存関係ではありません · 確認日 2026年11月16日

確認していること → · JSON

作者の方へ:再確認の依頼・情報の誤りの報告
作者向け:README にバッジを付ける

作者の方は、このコードを README に貼れます。バッジはこのページにリンクします。

[![Featured on PopNx MCP](https://mcp.popnx.com/badge/bugsbuny243-koschei.svg)](https://mcp.popnx.com/en/servers/bugsbuny243-koschei)

話し合い

質問、コツの共有、使えないことの報告ができます。「役に立った」の多い順です。

まだ投稿はありません。最初の質問や共有をどうぞ。

ここの投稿は利用者によるもので、PopNx チームのものではありません。

ログインして投稿

ユーザーレビュー

まだレビューはありません

ログインしてレビューを書く

開発者ツールのほかのサーバーとの比較i

  • このカテゴリのほかの5960件のうち0%よりスターが多い
  • このカテゴリのほかの5960件のうち92%より最近レジストリに公開
  • 基本チェックの結果が、このカテゴリのほかの5960件のうち45%と同じかそれ以上

レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。

よくある質問

Koscheiは安全ですか?

当てはまる基本チェック3項目のうち2項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。

どんなキーやコードが必要ですか?

レジストリには必須のキーは載っていません。ただし、最初に使うときにサインインを求めるサーバーもあります。

パソコンで動きますか、それともクラウドですか?

あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。

今もメンテナンスされていますか?

GitHubリポジトリの最終更新は今日、最新バージョン(0.14.0)がレジストリに届いたのは3 日前です。

どのアプリで使えますか?

Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにPython (uv)も必要です。

代わりに使えるものは?

同じカテゴリには:GitDiagram, Appllama, Cloudflare MCP, Omnara, Repowise

似た働きのほかの候補

同じカテゴリでほかの作者のもの。コマンドは確認済み。公式を先に、次にスター順。

カードの見方:↓ 週あたりのダウンロードi★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i

GitDiagram

Architecture diagrams, explanations and Mermaid source for public GitHub repositories.

作者:ahmedkhaleel2004広く使われている★ 1.9万2 か月前更新

クラウドで動く✓ 提供元 · gitdiagram.comPopNx チームが実際に試用

Appllama

Study screens, flows and paywalls from top-earning iOS apps, then build from what wins.

作者:Appllama広く使われている★ 51963 か月前更新

クラウドで動く✓ 提供元 · appllama.io

Cloudflare MCP

Cloudflare MCP servers

作者:cloudflare広く使われている★ 446814 か月前更新

クラウドで動く✓ 提供元 · mcp.cloudflare.comPopNx チームが実際に試用

Omnara

Deploy durable AI agents with Omnara, an open-source managed-agent platform.

作者:omnara-ai広く使われている★ 34002 か月前更新

クラウドで動く✓ 提供元 · omnara.com

Repowise

Codebase intelligence for AI coding agents: graph, git history, docs, decisions, code health.

作者:repowise-dev広く使われている↓ 6506/週★ 8145 リポジトリ全体のスター3 日前更新

パソコンでもクラウドでも✓ 提供元 · repowise.dev
似たものと比べる
これ
Koschei
GitDiagramAppllamaCloudflare MCPOmnaraRepowise
動く場所パソコンにインストールが必要クラウドで動き、インストール不要クラウドで動き、インストール不要クラウドで動き、インストール不要クラウドで動き、インストール不要クラウドでもパソコンにインストールでも使える
キーが必要いいえいいえいいえいいえいいえいいえ
Claude で + から追加いいえいいえいいえはいいいえいいえ
基本チェック2/34/44/44/44/45/5
ライセンスNOASSERTIONMITMITApache-2.0Apache-2.0AGPL-3.0
料金登録情報に費用の記載なし登録情報に費用の記載なし登録情報に費用の記載なし登録情報に費用の記載なし登録情報に費用の記載なし登録情報に費用の記載なし

作者のREADME

READMEを開く

作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。

Koschei (.ks)

Product direction

Koschei Lang is an independent programming language and library ecosystem for cybersecurity-centered general-purpose software development. Its own semantics, compiler, standard library and runtime define the product; Web3 and AI integrations are applications of the language. Self-contained distribution and surpassing Rust in security remain development goals requiring executed evidence.

Koschei Lang is sold and licensed separately from Koschei Sentinel and Koschei Web3 Hub. Interoperability may use explicit SDKs, adapters and versioned contracts, but it does not create shared pricing, entitlement or runtime authority. See the standalone product charter and product direction.

Source-available, not open source. Koschei Lang is free to download, use and modify for personal, non-commercial purposes. Commercial use needs a perpetual commercial license (see LICENSING.md). Redistribution of the toolchain is not permitted. See LICENSE.

Try it without installing: koschei.dev/play

A capability-secure programming language. An imported package cannot touch your disk, network, or environment unless you hand it a token.

Most supply-chain attacks work because a dependency inherits every permission the process has. Install a package, and it can read ~/.ssh, your .env, or open a socket — without asking. Koschei removes that ambient authority: side-effect access is a value that must be passed in, and the compiler rejects a program that reaches for authority it was never given.

Türkçe: README.tr.md


Quickstart

Needs Python 3.12 or newer. Go 1.24+ is optional and only needed for ks build.

git clone https://github.com/bugsbuny243/koschei-lang

cd koschei-lang ./install.sh # installs into ~/.koschei and links ~/.local/bin/ks ks check examples/supply_chain/main.ks

A deliberately malicious package in examples/supply_chain/analytics.ks tries to read a secrets file and return it to the caller. The expected result is compile-time rejection:

fn track(event: String) -> String or Error {

let secret = disk.read("/etc/app/secrets.env") or return Error("unreadable") return secret }

Expected output:

KOSCHEI ERROR: KS2401 [line 6, column 18]: Required capability is unavailable

in this scope — A disk, network, environment, or process operation was attempted without the corresponding capability token. Hint: run 'ks --lang en explain KS2401' for details.

Exit code 1. The program never ran. The file was never opened. Nothing was sent anywhere.

This is not a runtime sandbox catching the call. disk does not exist inside track at all, so the attack fails at compile time.


Distribution and installation

Koschei is on PyPI:

pip install koschei-lang

ks version

From a clone, ./install.sh puts Koschei in its own virtual environment, and pip install . installs it into an environment you manage yourself.

Commercial license holders can also download a packaged release from the store on Polar.

Your first program:

ks new hello-koschei

cd hello-koschei ks run .

ks new creates a zero-dependency project with a koschei.toml and src/main.ks. Commands accept a source file, a project directory, or a koschei.toml path.


Core ideas

  • No ambient authority. Disk, network, environment, and process access require an explicit capability value. A function that was not passed one cannot perform the effect.
  • Capabilities narrow, never widen. caps.disk is a root token that can only delegate; caps.disk.allow(path) produces a narrowed token that cannot re-widen (KS2403) and a root token cannot perform I/O directly (KS2402).
  • No `null`. Values that may be absent are Option (Some / None).
  • Errors are values. Result with a single or keyword in three forms: or return, or default, or { block }. An unhandled error value is a compile error (KS1401).
  • Values are bounded. A String holds at most 16 MiB of UTF-8 and a List at most 1,048,576 items; an operation over the bound produces a KS3502 Error value at the same point in ks run and ks build (Value Budget v1).
  • Program input is a capability too. caps.input.allow(65536) gives args() and a byte-bounded read_text() of standard input; ks run app.ks a b and the compiled ./app a b return the same texts and the same Error values (Program Input v1).
  • Time and randomness are capabilities. caps.clock.allow(1000) reads a clock no finer than its resolution; caps.random.allow(64) draws at most 64 bytes from the operating system's secure source (Clock and Random v1).
  • Learn it from tested docs. The language guide runs every example in CI; error codes and the Core Library reference are generated from the toolchain; examples/apps holds three complete programs.
  • Immutable by default. Rebinding requires let mut.
  • Every diagnostic is explainable. 33 error codes with a bilingual catalog; ks explain KS2401 prints the cause and a fix.

Example

fn fetch_data(net: NetCaps, url: String) -> String or Error {

let response = net.get(url) or return Error("request failed") return response.text() }

fn main(caps: SystemCaps) { let api_net = caps.net.allow("https://api.example.com") let response = fetch_data(api_net, "https://api.example.com/v1") println(response) }

fetch_data can reach exactly one origin. It cannot touch the disk, read an environment variable, or start a process — not because it was audited and found not to, but because it holds no token that would let it.

The capability manifest

Because authority is explicit in the source, it can be summarized mechanically. ks caps reports everything a program is able to reach, across the whole module graph:

ks caps examples/app.ks

ks caps --json src/main.ks ks caps --deny net src/main.ks # exits 2 if the program can reach the network

For a pure program the manifest is empty, and that is a checkable fact rather than a claim in a code review:

KOSCHEI CAPABILITY MANIFEST: examples/app.ks

This program carries no side-effect capability. No disk, network, environment, or process access — pure computation.

The --deny gate is designed for CI: a build fails if a dependency update silently adds reach.

Language features

Implemented today: functions with typed parameters, inferred generic functions, generic structs and enums, let / let mut, structs, List , immutable Map (get/set/keys/contains), for-in, if/else/while with Bool-only conditions, enums with exhaustive match, real Option / Result , full expression interpolation ("{items.length()}"), a daily standard library (String trim/split/join, List sort/filter/contains), and a module system where import risk binds risk.ks next to the importing file — no manifest, no build script, no config.

The Core Library is written in Koschei itself: import text and import list bind library modules shipped with the toolchain (text.starts_with, text.replace, text.lines, list.first, list.reverse, list.slice, …), checked and executed by the same pipeline as your own code. import secure adds domain-separated SHA3-256 digests from the audited host implementation, and the first library universe modules are Koschei too: the Marvel guardians captain_marvel, hela, strange and wanda. ks run executes the library and ks build compiles it from the same source; see Core Library v1 for the function list.

Toolchain

ks check src/main.ks          # types, modules, capability rules

ks run src/main.ks # interpreter ks build src/main.ks -o app # current native build path ks fmt --write src/ # canonical formatting ks caps src/main.ks # capability manifest ks explain KS2401 # diagnostics, --lang tr for Turkish ks check --json src/main.ks # stable code/message/line/column for editors ks mir src/main.ks # sealed checked backend contract ks lsp # zero-dependency language server ks-mcp --allow-read ./data # MCP server: agents run Koschei under a policy (docs/MCP_SERVER.md) ks tokens / ks ast

Koschei's long-term canonical architecture is defined by Koschei semantics and verified execution contracts, not by the implementation language of temporary bootstrap/tooling layers. External adapters are non-authoritative interoperability mechanisms.

Editor support

editors/vscode contains the official zero-dependency LSP extension: .ks syntax highlighting, live diagnostics, formatting, hover, go-to-definition, document symbols, and completion. The server is available through ks lsp (with ks-lsp kept as a compatibility alias).

Tests

python -m unittest discover -s tests -v

The CI suite includes compiler/runtime tests, native/interpreter parity checks, repository documentation examples, committed golden outputs, capability-security regression tests, and deception-plane attack simulations.

Status

Koschei is pre-1.0 and under active development. Syntax, runtime contracts, licensing, distribution, and security architecture may change before the first production release. Do not put it in production yet.

Security boundaries currently enforced in the native path include capability denial, narrowed authority, path traversal/symlink escape protection, read-only enforcement, redirect-origin enforcement, call-depth bounds, opaque protected-source object identity, epoch-scoped alias rotation, decoy source views, and epoch-bound read grants. Security claims must continue to be backed by tests and evidence; the project does not claim that any software system is mathematically impossible to compromise.

The protected-source/deception architecture is being hardened through staged attack waves. Canonical source identity remains separate from physical source locators, and decoy views are non-deployable by construction.

Licensing and distribution

Koschei Lang is free for personal, non-commercial use. Commercial use needs a commercial license, paid once and valid without time limit, covering every version released within 12 months of purchase: 49 USD per developer. Programs written in Koschei, and the binaries ks build produces, belong to their authors. See LICENSING.md.

Users download Koschei from its store on Polar (polar.sh). python tools/polar_bundle_v1.py builds that download, dist/polar/koschei-lang- .zip: the koschei package, the installer, the license, t

冒頭だけを表示しています。続きはリポジトリで読めます