# lait > Lightweight AI Tool (lait) のドキュメント ## ドキュメント - [lait 利用ガイド(日本語)](https://suzumiyaaoba.github.io/lait/docs): lait の使い方ドキュメント一覧。まずは「はじめに」から読むのがおすすめです。 - [はじめに](https://suzumiyaaoba.github.io/lait/docs/getting-started): インストール、最短手順、接続先の準備、主要な CLI オプション。 ## 設定 - [設定ファイル](https://suzumiyaaoba.github.io/lait/docs/config): lait.config.yml、モデル alias、優先順位、.env、各種レジストリの登録。 - [名前付きプロンプトテンプレート(prompts)](https://suzumiyaaoba.github.io/lait/docs/prompts): 繰り返し使うプロンプトと --var の定義・実行。 - [JSON Schema でエディタ補完(lait schema)](https://suzumiyaaoba.github.io/lait/docs/schema): workflow.yml/lait.config.yml/lait.deps.yml/agent frontmatter の JSON Schema と yaml-language-server 連携。 - [GitHub 上のファイルを依存として取り込む(lait deps)](https://suzumiyaaoba.github.io/lait/docs/deps): GitHub リポジトリのワークフロー/エージェント/スキルを lait.deps.yml と lait.lock で管理し、名前で参照する方法。 ## ワークフロー - [ワークフロー(workflow.yml)](https://suzumiyaaoba.github.io/lait/docs/workflow): ステップ・入力と出力・型付きの値、分岐・ループ・並列実行、チェックポイント、v1 からの移行。 - [エージェント Markdown ファイル(agent.md)](https://suzumiyaaoba.github.io/lait/docs/agent): frontmatter とシステムプロンプトからエージェントを定義する方法。 - [ワークフロー/エージェントファイルの静的チェック(lint)](https://suzumiyaaoba.github.io/lait/docs/lint): lait lint で構文・参照・テンプレートを実行前に検査する方法。 - [決定的テスト(record & replay / lait test)](https://suzumiyaaoba.github.io/lait/docs/testing): lait run --record/--replay と lait test で、API を呼ばずに制御フローを検証する方法。 - [出力品質の評価(lait eval)](https://suzumiyaaoba.github.io/lait/docs/eval): ワークフロー/モデル+プロンプトを実際に実行し、contains/jq/llm_judge のアサーションで出力品質を評価する方法。 ## ツール・拡張 - [MCP サーバーのツールを使う](https://suzumiyaaoba.github.io/lait/docs/mcp): MCP サーバーの登録、ツール制限、チャット・agent・workflow からの利用。 - [ツール周回の要約による圧縮(default.compaction)](https://suzumiyaaoba.github.io/lait/docs/compaction): 長い tool loop の履歴をモデル自身の要約で圧縮する方法。 - [スキルを使う](https://suzumiyaaoba.github.io/lait/docs/skills): Markdown スキルの登録と、agent/workflow のシステムプロンプトへの追加。 - [サブエージェントを使う](https://suzumiyaaoba.github.io/lait/docs/subagents): agent Markdown をモデルから呼び出せるツールとして公開する方法。 - [カスタムシェルツールを使う](https://suzumiyaaoba.github.io/lait/docs/tools): ローカルコマンドを MCP なしのモデル呼び出しツールとして公開する方法。 - [Jev 互換 API で判定する(decide / lait decide)](https://suzumiyaaoba.github.io/lait/docs/jev): TypeSafe Jev 互換の判定 API に yes/no・選択・スコアの質問を送り、確率つきの答えをワークフローの分岐などに使う方法。 - [ワークフロー/エージェントを MCP サーバーとして公開する(lait serve --mcp)](https://suzumiyaaoba.github.io/lait/docs/serve): agents:/workflows: の各エントリを MCP ツールとして他のクライアントに公開する方法。 - [ファイル・画像の添付](https://suzumiyaaoba.github.io/lait/docs/attachments): --file と --image で入力にファイルや画像を添付する方法。 ## 運用・診断 - [実行トレース(lait run --trace-file / lait trace show / lait trace export)](https://suzumiyaaoba.github.io/lait/docs/trace): モデル呼び出し・ツール呼び出しを JSONL として記録し、実行軌跡を検査・集計したり OTLP へエクスポートしたりする方法。 - [出力例](https://suzumiyaaoba.github.io/lait/docs/output): 通常出力、ストリーミング、JSON、Structured Outputs、Markdown 表示。 - [モデル比較(lait compare)](https://suzumiyaaoba.github.io/lait/docs/compare): 同一プロンプトを複数モデルへ並行送信し、応答・所要時間・usage を比較する方法。 - [会話セッションと対話モード(lait chat)](https://suzumiyaaoba.github.io/lait/docs/chat): REPL と --session による会話の保存・再開。 - [実行履歴(lait history)](https://suzumiyaaoba.github.io/lait/docs/history): 実行履歴の一覧、表示、検索、無効化。 - [トラブルシュート](https://suzumiyaaoba.github.io/lait/docs/troubleshooting): lait doctor による環境・設定・接続の一括診断、接続・認証・モデル・終了コード・詳細ログの確認。 ## 開発 - [開発](https://suzumiyaaoba.github.io/lait/docs/development): テスト、フォーマット、Lint、ビルドの手順。 ## Agent resources - [llms-full.txt](https://suzumiyaaoba.github.io/lait/llms-full.txt): The full Markdown of every page in one file. - [Page Markdown](https://suzumiyaaoba.github.io/lait/index.md): Append `.md` to any page URL to fetch that page as raw Markdown. - [JSON API](https://suzumiyaaoba.github.io/lait/api/docs/pages.json): Page index of the JSON docs API; each entry links the page's JSON and Markdown forms. Described by the OpenAPI document at https://suzumiyaaoba.github.io/lait/openapi.json. - [API catalog](https://suzumiyaaoba.github.io/lait/.well-known/api-catalog): RFC 9727 linkset of the APIs documented here. - [agent-readability.json](https://suzumiyaaoba.github.io/lait/agent-readability.json): Manifest of every agent-facing artifact on this site. - [Sitemap](https://suzumiyaaoba.github.io/lait/sitemap.xml): Every indexable page URL with its last-modified date.