{"id":50977184,"url":"https://github.com/shuymn/spindle","last_synced_at":"2026-06-19T09:32:33.178Z","repository":{"id":363202114,"uuid":"1262204594","full_name":"shuymn/spindle","owner":"shuymn","description":"A small macOS harness for connecting local automation through events, actions, and extensions.","archived":false,"fork":false,"pushed_at":"2026-06-07T21:49:42.000Z","size":195,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-07T23:08:05.600Z","etag":null,"topics":["agents","automation","daemon","event-driven","extensions","macos","rust","workflow"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shuymn.png","metadata":{"files":{"readme":"README.ja.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-06-07T17:49:53.000Z","updated_at":"2026-06-07T21:49:46.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/shuymn/spindle","commit_stats":null,"previous_names":["shuymn/spindle"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/shuymn/spindle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shuymn%2Fspindle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shuymn%2Fspindle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shuymn%2Fspindle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shuymn%2Fspindle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shuymn","download_url":"https://codeload.github.com/shuymn/spindle/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shuymn%2Fspindle/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34526065,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-19T02:00:06.005Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["agents","automation","daemon","event-driven","extensions","macos","rust","workflow"],"created_at":"2026-06-19T09:32:31.481Z","updated_at":"2026-06-19T09:32:33.171Z","avatar_url":"https://github.com/shuymn.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# spindle\n\n[English](README.md)\n\n`spindle` は、macOS のローカル自動化をイベント・アクション・拡張でつなぐ小さなハーネスです。\n\nコアは意図的に小さく保っています。イベントを保存し、拡張の登録情報を検証し、イベントからアクションへのルートを dispatch します。アプリ連携、外部ツール連携、ワークフローのロジック、エージェントのフックは、カーネル外の拡張として実装します。\n\n```text\nイベントを受け取る\n  -\u003e append-only JSONL ログに保存する\n  -\u003e インストール済みルートを探す\n  -\u003e 拡張アクションを呼ぶ\n  -\u003e アクションが出したイベントをさらに dispatch する\n```\n\n## 状態\n\n実験中です。このリポジトリには daemon カーネルと拡張 SDK が含まれています。\n\n## リポジトリ構成\n\n```text\nspindle/\n  crates/spindle/                    daemon カーネル、CLI、socket server\n  crates/spindle-extension-sdk/      stdio JSONL 拡張ホスト用の型付き SDK\n  crates/spindle-extension-example/  最小 stdio JSONL 拡張のサンプル\n  docs/                              コンセプト、使い方、開発メモ\n```\n\n## Quick start\n\nRust は `rust-toolchain.toml` で固定されています。\n\n```bash\ncargo build --workspace --locked\ncargo test --workspace --all-targets --all-features --locked\n```\n\nTask が使える場合はこちらも利用できます。\n\n```bash\ntask build\ntask test\ntask check\n```\n\n実験中は明示的な state directory を使うと安全です。\n\n```bash\nexport SPINDLE_STATE_DIR=/tmp/spindle\nmkdir -p \"$SPINDLE_STATE_DIR\"\nchmod 700 \"$SPINDLE_STATE_DIR\"\n\ncargo run -p spindle -- emit \\\n  --type agent.status.changed \\\n  --source pi \\\n  --data '{\"state\":\"working\",\"message\":\"cargo test\"}'\n\ncargo run -p spindle -- query events --type agent.status.changed\n```\n\n## セキュリティモデル\n\n拡張パッケージをインストールすることは、その実行コードを自分のユーザー権限で動かすと信頼することです。ユーザーの spindle socket に到達できるローカルクライアントは event を emit できます。event の `source` は routing label であり、認証主体ではありません。manifest route の `source` は、インストール済みでその event を所有する extension と照合されます。capability が必要な action 実行は、別の policy file ではなく、インストール済み route 宣言と continuation grant で認可します。\n\n## ドキュメント\n\n- [Concepts](docs/concepts.md) — カーネルの責務、拡張境界、コアに含めないもの\n- [Usage](docs/usage.md) — setup、CLI 例、trusted local automation model、状態ファイル\n- [Extensions](docs/extensions.md) — manifest、登録 surface、route、continuation、stdio JSONL host\n- [Extension SDK README](crates/spindle-extension-sdk/README.md) — SDK package notes\n\nAgent 向け開発メモ:\n\n- [Coding guidelines](docs/coding.md)\n- [Testing guidelines](docs/testing.md)\n- [Tooling guidelines](docs/tooling.md)\n- [Review guidelines](docs/review.md)\n\n## ライセンス\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshuymn%2Fspindle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshuymn%2Fspindle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshuymn%2Fspindle/lists"}