{"id":49056184,"url":"https://github.com/snehith01001110/iso-framework","last_synced_at":"2026-04-21T00:00:53.038Z","repository":{"id":352181491,"uuid":"1210012837","full_name":"snehith01001110/ISO-Framework","owner":"snehith01001110","description":"Rust library, CLI, and MCP for safe, concurrent Git worktree lifecycle management — built for multi-agent AI coding orchestrators.","archived":false,"fork":false,"pushed_at":"2026-04-19T22:02:31.000Z","size":301,"stargazers_count":2,"open_issues_count":10,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-19T23:38:38.933Z","etag":null,"topics":["agents","developer-tools","git","worktrees"],"latest_commit_sha":null,"homepage":"https://isocode.dev","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/snehith01001110.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE-APACHE","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":null,"dco":null,"cla":null}},"created_at":"2026-04-14T02:15:37.000Z","updated_at":"2026-04-19T22:22:53.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/snehith01001110/ISO-Framework","commit_stats":null,"previous_names":["snehith01001110/iso-framework"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/snehith01001110/ISO-Framework","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snehith01001110%2FISO-Framework","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snehith01001110%2FISO-Framework/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snehith01001110%2FISO-Framework/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snehith01001110%2FISO-Framework/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/snehith01001110","download_url":"https://codeload.github.com/snehith01001110/ISO-Framework/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snehith01001110%2FISO-Framework/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32071013,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T21:26:33.338Z","status":"ssl_error","status_checked_at":"2026-04-20T21:26:22.081Z","response_time":94,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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","developer-tools","git","worktrees"],"created_at":"2026-04-19T23:10:28.704Z","updated_at":"2026-04-21T00:00:53.033Z","avatar_url":"https://github.com/snehith01001110.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# iso-code\n\n**Safe git worktree lifecycle management for AI coding agents.**\n\niso-code is a Rust library + CLI + MCP server that solves documented data-loss bugs\nin Claude Code, Cursor, Claude Squad, OpenCode, and VS Code Copilot by providing a\nshared, battle-tested worktree management foundation.\n\n## Problem\n\nEvery major AI coding orchestrator independently implements worktree management and\neach has critical bugs:\n- Silent data loss (unmerged commits deleted without warning)\n- Unbounded resource consumption (hundreds of orphaned worktrees)\n- Nested worktree creation after context compaction\n- git-crypt corruption on worktree creation\n\niso-code fixes all of these with a single shared library.\n\n## Installation\n\n```toml\n[dependencies]\niso-code = \"0.1\"\n```\n\nCLI:\n```text\ncargo install iso-code-cli\n```\n\n## Basic Usage\n\n```rust,no_run\nuse iso_code::{Manager, Config, CreateOptions, DeleteOptions};\n\nfn main() -\u003e Result\u003c(), Box\u003cdyn std::error::Error\u003e\u003e {\n    let mgr = Manager::new(\"/path/to/repo\", Config::default())?;\n\n    // Create a worktree\n    let (handle, _) = mgr.create(\"feature/my-branch\", \"/path/to/worktree\", CreateOptions::default())?;\n\n    // List all worktrees\n    let worktrees = mgr.list()?;\n\n    // Delete safely (runs 5-step unmerged commit check)\n    mgr.delete(\u0026handle, DeleteOptions::default())?;\n\n    // GC orphaned worktrees (dry_run = true by default)\n    let report = mgr.gc(Default::default())?;\n    Ok(())\n}\n```\n\n## CLI\n\n```bash\nwt list\nwt create feature/my-branch /path/to/worktree\nwt delete /path/to/worktree\nwt hook --stdin-format claude-code   # Claude Code hook integration\n```\n\n## MCP Server Configuration\n\n### Claude Code (`~/.claude/claude_desktop_config.json`)\n\n```json\n{\n  \"mcpServers\": {\n    \"iso-code\": {\n      \"command\": \"iso-code-mcp\",\n      \"args\": []\n    }\n  }\n}\n```\n\n### Cursor (`.cursor/mcp.json`)\n\n```json\n{\n  \"mcpServers\": {\n    \"iso-code\": {\n      \"command\": \"iso-code-mcp\"\n    }\n  }\n}\n```\n\n### VS Code Copilot (`.vscode/mcp.json`)\n\n```json\n{\n  \"servers\": {\n    \"iso-code\": {\n      \"type\": \"stdio\",\n      \"command\": \"iso-code-mcp\"\n    }\n  }\n}\n```\n\n### OpenCode (`opencode.json`)\n\n```json\n{\n  \"mcp\": {\n    \"servers\": {\n      \"iso-code\": {\n        \"type\": \"local\",\n        \"command\": [\"iso-code-mcp\"]\n      }\n    }\n  }\n}\n```\n\n## Claude Code Hook Integration\n\nAdd to your Claude Code config:\n\n```json\n{\n  \"hooks\": {\n    \"WorktreeCreate\": \"wt hook --stdin-format claude-code --setup\"\n  }\n}\n```\n\n## Safety Guarantees\n\n- Never deletes branches with unmerged commits (5-step check)\n- Never leaves partial worktrees on disk (cleanup-on-failure)\n- Never corrupts git-crypt repos (post-create verification)\n- Never creates nested worktrees (bidirectional path check)\n- Never evicts locked worktrees (unconditional protection)\n- State.json is crash-safe (atomic write via tmp + fsync + rename)\n\n## License\n\nLicensed under either of Apache License 2.0 or MIT License at your option.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsnehith01001110%2Fiso-framework","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsnehith01001110%2Fiso-framework","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsnehith01001110%2Fiso-framework/lists"}