scc-cli 1.5.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of scc-cli might be problematic. Click here for more details.

Files changed (222) hide show
  1. scc_cli-1.5.0/.gitignore +61 -0
  2. scc_cli-1.5.0/LICENSE +21 -0
  3. scc_cli-1.5.0/PKG-INFO +393 -0
  4. scc_cli-1.5.0/README.md +356 -0
  5. scc_cli-1.5.0/pyproject.toml +100 -0
  6. scc_cli-1.5.0/src/scc_cli/__init__.py +15 -0
  7. scc_cli-1.5.0/src/scc_cli/audit/__init__.py +37 -0
  8. scc_cli-1.5.0/src/scc_cli/audit/parser.py +191 -0
  9. scc_cli-1.5.0/src/scc_cli/audit/reader.py +180 -0
  10. scc_cli-1.5.0/src/scc_cli/auth.py +145 -0
  11. scc_cli-1.5.0/src/scc_cli/claude_adapter.py +485 -0
  12. scc_cli-1.5.0/src/scc_cli/cli.py +260 -0
  13. scc_cli-1.5.0/src/scc_cli/cli_admin.py +708 -0
  14. scc_cli-1.5.0/src/scc_cli/cli_audit.py +246 -0
  15. scc_cli-1.5.0/src/scc_cli/cli_common.py +165 -0
  16. scc_cli-1.5.0/src/scc_cli/cli_config.py +528 -0
  17. scc_cli-1.5.0/src/scc_cli/cli_exceptions.py +706 -0
  18. scc_cli-1.5.0/src/scc_cli/cli_helpers.py +244 -0
  19. scc_cli-1.5.0/src/scc_cli/cli_init.py +272 -0
  20. scc_cli-1.5.0/src/scc_cli/cli_launch.py +1456 -0
  21. scc_cli-1.5.0/src/scc_cli/cli_org.py +1429 -0
  22. scc_cli-1.5.0/src/scc_cli/cli_support.py +323 -0
  23. scc_cli-1.5.0/src/scc_cli/cli_team.py +893 -0
  24. scc_cli-1.5.0/src/scc_cli/cli_worktree.py +1437 -0
  25. scc_cli-1.5.0/src/scc_cli/config.py +601 -0
  26. scc_cli-1.5.0/src/scc_cli/confirm.py +20 -0
  27. scc_cli-1.5.0/src/scc_cli/console.py +562 -0
  28. scc_cli-1.5.0/src/scc_cli/constants.py +80 -0
  29. scc_cli-1.5.0/src/scc_cli/contexts.py +377 -0
  30. scc_cli-1.5.0/src/scc_cli/deprecation.py +54 -0
  31. scc_cli-1.5.0/src/scc_cli/deps.py +189 -0
  32. scc_cli-1.5.0/src/scc_cli/docker/__init__.py +127 -0
  33. scc_cli-1.5.0/src/scc_cli/docker/core.py +466 -0
  34. scc_cli-1.5.0/src/scc_cli/docker/credentials.py +726 -0
  35. scc_cli-1.5.0/src/scc_cli/docker/launch.py +604 -0
  36. scc_cli-1.5.0/src/scc_cli/doctor/__init__.py +105 -0
  37. scc_cli-1.5.0/src/scc_cli/doctor/checks.py +1360 -0
  38. scc_cli-1.5.0/src/scc_cli/doctor/render.py +365 -0
  39. scc_cli-1.5.0/src/scc_cli/doctor/types.py +66 -0
  40. scc_cli-1.5.0/src/scc_cli/errors.py +288 -0
  41. scc_cli-1.5.0/src/scc_cli/evaluation/__init__.py +27 -0
  42. scc_cli-1.5.0/src/scc_cli/evaluation/apply_exceptions.py +207 -0
  43. scc_cli-1.5.0/src/scc_cli/evaluation/evaluate.py +97 -0
  44. scc_cli-1.5.0/src/scc_cli/evaluation/models.py +80 -0
  45. scc_cli-1.5.0/src/scc_cli/exit_codes.py +79 -0
  46. scc_cli-1.5.0/src/scc_cli/git.py +1856 -0
  47. scc_cli-1.5.0/src/scc_cli/json_command.py +166 -0
  48. scc_cli-1.5.0/src/scc_cli/json_output.py +96 -0
  49. scc_cli-1.5.0/src/scc_cli/kinds.py +62 -0
  50. scc_cli-1.5.0/src/scc_cli/marketplace/__init__.py +123 -0
  51. scc_cli-1.5.0/src/scc_cli/marketplace/adapter.py +74 -0
  52. scc_cli-1.5.0/src/scc_cli/marketplace/compute.py +377 -0
  53. scc_cli-1.5.0/src/scc_cli/marketplace/constants.py +87 -0
  54. scc_cli-1.5.0/src/scc_cli/marketplace/managed.py +135 -0
  55. scc_cli-1.5.0/src/scc_cli/marketplace/materialize.py +723 -0
  56. scc_cli-1.5.0/src/scc_cli/marketplace/normalize.py +548 -0
  57. scc_cli-1.5.0/src/scc_cli/marketplace/render.py +257 -0
  58. scc_cli-1.5.0/src/scc_cli/marketplace/resolve.py +459 -0
  59. scc_cli-1.5.0/src/scc_cli/marketplace/schema.py +506 -0
  60. scc_cli-1.5.0/src/scc_cli/marketplace/sync.py +260 -0
  61. scc_cli-1.5.0/src/scc_cli/marketplace/team_cache.py +195 -0
  62. scc_cli-1.5.0/src/scc_cli/marketplace/team_fetch.py +688 -0
  63. scc_cli-1.5.0/src/scc_cli/marketplace/trust.py +244 -0
  64. scc_cli-1.5.0/src/scc_cli/models/__init__.py +41 -0
  65. scc_cli-1.5.0/src/scc_cli/models/exceptions.py +273 -0
  66. scc_cli-1.5.0/src/scc_cli/models/plugin_audit.py +434 -0
  67. scc_cli-1.5.0/src/scc_cli/org_templates.py +269 -0
  68. scc_cli-1.5.0/src/scc_cli/output_mode.py +167 -0
  69. scc_cli-1.5.0/src/scc_cli/panels.py +113 -0
  70. scc_cli-1.5.0/src/scc_cli/platform.py +350 -0
  71. scc_cli-1.5.0/src/scc_cli/profiles.py +960 -0
  72. scc_cli-1.5.0/src/scc_cli/remote.py +443 -0
  73. scc_cli-1.5.0/src/scc_cli/schemas/__init__.py +1 -0
  74. scc_cli-1.5.0/src/scc_cli/schemas/org-v1.schema.json +456 -0
  75. scc_cli-1.5.0/src/scc_cli/schemas/team-config.v1.schema.json +163 -0
  76. scc_cli-1.5.0/src/scc_cli/sessions.py +425 -0
  77. scc_cli-1.5.0/src/scc_cli/setup.py +589 -0
  78. scc_cli-1.5.0/src/scc_cli/source_resolver.py +470 -0
  79. scc_cli-1.5.0/src/scc_cli/stats.py +378 -0
  80. scc_cli-1.5.0/src/scc_cli/stores/__init__.py +13 -0
  81. scc_cli-1.5.0/src/scc_cli/stores/exception_store.py +251 -0
  82. scc_cli-1.5.0/src/scc_cli/subprocess_utils.py +88 -0
  83. scc_cli-1.5.0/src/scc_cli/teams.py +382 -0
  84. scc_cli-1.5.0/src/scc_cli/templates/__init__.py +2 -0
  85. scc_cli-1.5.0/src/scc_cli/templates/org/__init__.py +0 -0
  86. scc_cli-1.5.0/src/scc_cli/templates/org/minimal.json +19 -0
  87. scc_cli-1.5.0/src/scc_cli/templates/org/reference.json +74 -0
  88. scc_cli-1.5.0/src/scc_cli/templates/org/strict.json +38 -0
  89. scc_cli-1.5.0/src/scc_cli/templates/org/teams.json +42 -0
  90. scc_cli-1.5.0/src/scc_cli/templates/statusline.sh +75 -0
  91. scc_cli-1.5.0/src/scc_cli/theme.py +348 -0
  92. scc_cli-1.5.0/src/scc_cli/ui/__init__.py +124 -0
  93. scc_cli-1.5.0/src/scc_cli/ui/branding.py +68 -0
  94. scc_cli-1.5.0/src/scc_cli/ui/chrome.py +395 -0
  95. scc_cli-1.5.0/src/scc_cli/ui/dashboard/__init__.py +62 -0
  96. scc_cli-1.5.0/src/scc_cli/ui/dashboard/_dashboard.py +775 -0
  97. scc_cli-1.5.0/src/scc_cli/ui/dashboard/loaders.py +431 -0
  98. scc_cli-1.5.0/src/scc_cli/ui/dashboard/models.py +185 -0
  99. scc_cli-1.5.0/src/scc_cli/ui/dashboard/orchestrator.py +738 -0
  100. scc_cli-1.5.0/src/scc_cli/ui/formatters.py +444 -0
  101. scc_cli-1.5.0/src/scc_cli/ui/gate.py +350 -0
  102. scc_cli-1.5.0/src/scc_cli/ui/help.py +157 -0
  103. scc_cli-1.5.0/src/scc_cli/ui/keys.py +615 -0
  104. scc_cli-1.5.0/src/scc_cli/ui/list_screen.py +437 -0
  105. scc_cli-1.5.0/src/scc_cli/ui/picker.py +705 -0
  106. scc_cli-1.5.0/src/scc_cli/ui/prompts.py +201 -0
  107. scc_cli-1.5.0/src/scc_cli/ui/wizard.py +675 -0
  108. scc_cli-1.5.0/src/scc_cli/update.py +680 -0
  109. scc_cli-1.5.0/src/scc_cli/utils/__init__.py +39 -0
  110. scc_cli-1.5.0/src/scc_cli/utils/fixit.py +264 -0
  111. scc_cli-1.5.0/src/scc_cli/utils/fuzzy.py +124 -0
  112. scc_cli-1.5.0/src/scc_cli/utils/locks.py +101 -0
  113. scc_cli-1.5.0/src/scc_cli/utils/ttl.py +376 -0
  114. scc_cli-1.5.0/src/scc_cli/validate.py +455 -0
  115. scc_cli-1.5.0/tests/__init__.py +0 -0
  116. scc_cli-1.5.0/tests/conftest.py +195 -0
  117. scc_cli-1.5.0/tests/integration/conftest.py +360 -0
  118. scc_cli-1.5.0/tests/integration/test_error_recovery.py +448 -0
  119. scc_cli-1.5.0/tests/integration/test_precedence.py +792 -0
  120. scc_cli-1.5.0/tests/integration/test_security_bypass.py +407 -0
  121. scc_cli-1.5.0/tests/integration/test_trust_adversarial.py +535 -0
  122. scc_cli-1.5.0/tests/test_adapter.py +315 -0
  123. scc_cli-1.5.0/tests/test_audit_cli.py +358 -0
  124. scc_cli-1.5.0/tests/test_auth.py +590 -0
  125. scc_cli-1.5.0/tests/test_claude_adapter.py +635 -0
  126. scc_cli-1.5.0/tests/test_cli_exceptions.py +851 -0
  127. scc_cli-1.5.0/tests/test_cli_helpers.py +337 -0
  128. scc_cli-1.5.0/tests/test_cli_new.py +643 -0
  129. scc_cli-1.5.0/tests/test_cli_org_import.py +460 -0
  130. scc_cli-1.5.0/tests/test_cli_org_init.py +332 -0
  131. scc_cli-1.5.0/tests/test_cli_org_status.py +497 -0
  132. scc_cli-1.5.0/tests/test_cli_org_update.py +503 -0
  133. scc_cli-1.5.0/tests/test_cli_setup.py +298 -0
  134. scc_cli-1.5.0/tests/test_cli_team.py +1069 -0
  135. scc_cli-1.5.0/tests/test_config.py +175 -0
  136. scc_cli-1.5.0/tests/test_config_explain.py +985 -0
  137. scc_cli-1.5.0/tests/test_config_inheritance.py +1248 -0
  138. scc_cli-1.5.0/tests/test_config_new.py +581 -0
  139. scc_cli-1.5.0/tests/test_context_recording_warning.py +38 -0
  140. scc_cli-1.5.0/tests/test_contexts.py +561 -0
  141. scc_cli-1.5.0/tests/test_deps.py +339 -0
  142. scc_cli-1.5.0/tests/test_docker.py +346 -0
  143. scc_cli-1.5.0/tests/test_docker_core.py +985 -0
  144. scc_cli-1.5.0/tests/test_docker_new.py +215 -0
  145. scc_cli-1.5.0/tests/test_docker_policy.py +566 -0
  146. scc_cli-1.5.0/tests/test_docker_policy_integration.py +579 -0
  147. scc_cli-1.5.0/tests/test_doctor_characterization.py +324 -0
  148. scc_cli-1.5.0/tests/test_doctor_enhanced.py +254 -0
  149. scc_cli-1.5.0/tests/test_doctor_new.py +693 -0
  150. scc_cli-1.5.0/tests/test_effective_config.py +1100 -0
  151. scc_cli-1.5.0/tests/test_evaluation.py +989 -0
  152. scc_cli-1.5.0/tests/test_exception_stores.py +455 -0
  153. scc_cli-1.5.0/tests/test_exceptions.py +610 -0
  154. scc_cli-1.5.0/tests/test_federation_backwards_compat.py +591 -0
  155. scc_cli-1.5.0/tests/test_fixit.py +239 -0
  156. scc_cli-1.5.0/tests/test_fuzzy.py +145 -0
  157. scc_cli-1.5.0/tests/test_git_hooks.py +271 -0
  158. scc_cli-1.5.0/tests/test_git_safety.py +728 -0
  159. scc_cli-1.5.0/tests/test_git_safety_critical.py +588 -0
  160. scc_cli-1.5.0/tests/test_git_worktree.py +443 -0
  161. scc_cli-1.5.0/tests/test_help_grouping.py +263 -0
  162. scc_cli-1.5.0/tests/test_init_cli.py +423 -0
  163. scc_cli-1.5.0/tests/test_integration.py +701 -0
  164. scc_cli-1.5.0/tests/test_invariants.py +305 -0
  165. scc_cli-1.5.0/tests/test_json_output.py +385 -0
  166. scc_cli-1.5.0/tests/test_json_output_purity.py +109 -0
  167. scc_cli-1.5.0/tests/test_manifest_parser.py +425 -0
  168. scc_cli-1.5.0/tests/test_marketplace_compute.py +1152 -0
  169. scc_cli-1.5.0/tests/test_marketplace_managed.py +374 -0
  170. scc_cli-1.5.0/tests/test_marketplace_materialize.py +1042 -0
  171. scc_cli-1.5.0/tests/test_marketplace_normalize.py +556 -0
  172. scc_cli-1.5.0/tests/test_marketplace_render.py +624 -0
  173. scc_cli-1.5.0/tests/test_marketplace_resolve.py +605 -0
  174. scc_cli-1.5.0/tests/test_marketplace_schema.py +889 -0
  175. scc_cli-1.5.0/tests/test_marketplace_sync.py +557 -0
  176. scc_cli-1.5.0/tests/test_marketplace_trust.py +449 -0
  177. scc_cli-1.5.0/tests/test_mcp_servers.py +600 -0
  178. scc_cli-1.5.0/tests/test_org_cli.py +369 -0
  179. scc_cli-1.5.0/tests/test_org_templates.py +254 -0
  180. scc_cli-1.5.0/tests/test_output_mode_stderr.py +73 -0
  181. scc_cli-1.5.0/tests/test_platform.py +597 -0
  182. scc_cli-1.5.0/tests/test_plugin_audit_models.py +579 -0
  183. scc_cli-1.5.0/tests/test_plugin_reader.py +450 -0
  184. scc_cli-1.5.0/tests/test_profiles.py +271 -0
  185. scc_cli-1.5.0/tests/test_prune.py +409 -0
  186. scc_cli-1.5.0/tests/test_quick_resume_behavior.py +61 -0
  187. scc_cli-1.5.0/tests/test_remote.py +890 -0
  188. scc_cli-1.5.0/tests/test_security_phase1.py +466 -0
  189. scc_cli-1.5.0/tests/test_session_flags.py +486 -0
  190. scc_cli-1.5.0/tests/test_sessions.py +598 -0
  191. scc_cli-1.5.0/tests/test_setup_wizard.py +364 -0
  192. scc_cli-1.5.0/tests/test_start_cancellation.py +41 -0
  193. scc_cli-1.5.0/tests/test_start_dryrun.py +410 -0
  194. scc_cli-1.5.0/tests/test_stats.py +735 -0
  195. scc_cli-1.5.0/tests/test_stats_cli.py +333 -0
  196. scc_cli-1.5.0/tests/test_stats_launch.py +104 -0
  197. scc_cli-1.5.0/tests/test_status.py +372 -0
  198. scc_cli-1.5.0/tests/test_stream_contract.py +303 -0
  199. scc_cli-1.5.0/tests/test_subprocess_utils.py +208 -0
  200. scc_cli-1.5.0/tests/test_support_bundle.py +375 -0
  201. scc_cli-1.5.0/tests/test_symmetric_aliases.py +107 -0
  202. scc_cli-1.5.0/tests/test_team_cache.py +291 -0
  203. scc_cli-1.5.0/tests/test_team_cli.py +570 -0
  204. scc_cli-1.5.0/tests/test_team_fetch.py +953 -0
  205. scc_cli-1.5.0/tests/test_teams.py +776 -0
  206. scc_cli-1.5.0/tests/test_ttl.py +443 -0
  207. scc_cli-1.5.0/tests/test_ui_chrome.py +400 -0
  208. scc_cli-1.5.0/tests/test_ui_dashboard.py +720 -0
  209. scc_cli-1.5.0/tests/test_ui_formatters.py +743 -0
  210. scc_cli-1.5.0/tests/test_ui_gate.py +416 -0
  211. scc_cli-1.5.0/tests/test_ui_integration.py +1166 -0
  212. scc_cli-1.5.0/tests/test_ui_keys.py +568 -0
  213. scc_cli-1.5.0/tests/test_ui_list_screen.py +434 -0
  214. scc_cli-1.5.0/tests/test_ui_picker.py +742 -0
  215. scc_cli-1.5.0/tests/test_ui_snapshots.py +185 -0
  216. scc_cli-1.5.0/tests/test_ui_wizard.py +790 -0
  217. scc_cli-1.5.0/tests/test_update.py +985 -0
  218. scc_cli-1.5.0/tests/test_validate.py +281 -0
  219. scc_cli-1.5.0/tests/test_workspace_team_pinning.py +99 -0
  220. scc_cli-1.5.0/tests/test_worktree_cli.py +1305 -0
  221. scc_cli-1.5.0/tests/test_worktree_guidance.py +47 -0
  222. scc_cli-1.5.0/tests/test_wsl2_warning.py +28 -0
@@ -0,0 +1,61 @@
1
+ # Python
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+ *.so
6
+ .Python
7
+ build/
8
+ develop-eggs/
9
+ dist/
10
+ downloads/
11
+ eggs/
12
+ .eggs/
13
+ lib/
14
+ lib64/
15
+ parts/
16
+ sdist/
17
+ var/
18
+ wheels/
19
+ *.egg-info/
20
+ .installed.cfg
21
+ *.egg
22
+
23
+ # Virtual environments
24
+ .venv/
25
+ venv/
26
+ ENV/
27
+
28
+ # IDE
29
+ .idea/
30
+ .vscode/
31
+ *.swp
32
+ *.swo
33
+ *~
34
+
35
+ # Testing
36
+ .tox/
37
+ .nox/
38
+ .coverage
39
+ .coverage.*
40
+ htmlcov/
41
+ .pytest_cache/
42
+ .mypy_cache/
43
+
44
+ # OS
45
+ .DS_Store
46
+ Thumbs.db
47
+
48
+ # Local config (don't commit user-specific settings)
49
+ *.local.json
50
+
51
+ # Claude Code project instructions (local development only)
52
+ CLAUDE.md
53
+ .serena/
54
+ .claude/
55
+ .specify/
56
+ specs/
57
+ .code/
58
+
59
+ # Local development directories
60
+ plugindocs/
61
+ safetypluginclone/
scc_cli-1.5.0/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Cagri Cimen
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
scc_cli-1.5.0/PKG-INFO ADDED
@@ -0,0 +1,393 @@
1
+ Metadata-Version: 2.4
2
+ Name: scc-cli
3
+ Version: 1.5.0
4
+ Summary: Run Claude Code in Docker sandboxes with team configs and git worktree support
5
+ Project-URL: Homepage, https://github.com/CCimen/scc
6
+ Project-URL: Documentation, https://github.com/CCimen/scc#readme
7
+ Project-URL: Repository, https://github.com/CCimen/scc
8
+ Project-URL: Issues, https://github.com/CCimen/scc/issues
9
+ Author-email: Cagri Cimen <cagricimeenn@gmail.com>
10
+ License-Expression: MIT
11
+ License-File: LICENSE
12
+ Keywords: ai,claude,cli,docker,git,worktree
13
+ Classifier: Development Status :: 4 - Beta
14
+ Classifier: Environment :: Console
15
+ Classifier: Intended Audience :: Developers
16
+ Classifier: License :: OSI Approved :: MIT License
17
+ Classifier: Operating System :: OS Independent
18
+ Classifier: Programming Language :: Python :: 3
19
+ Classifier: Programming Language :: Python :: 3.10
20
+ Classifier: Programming Language :: Python :: 3.11
21
+ Classifier: Programming Language :: Python :: 3.12
22
+ Classifier: Topic :: Software Development
23
+ Requires-Python: >=3.10
24
+ Requires-Dist: jsonschema>=4.25.1
25
+ Requires-Dist: pydantic>=2.0.0
26
+ Requires-Dist: pyyaml>=6.0.0
27
+ Requires-Dist: readchar>=4.0.0
28
+ Requires-Dist: requests>=2.32.5
29
+ Requires-Dist: rich>=13.0.0
30
+ Requires-Dist: typer>=0.9.0
31
+ Provides-Extra: dev
32
+ Requires-Dist: mypy>=1.0.0; extra == 'dev'
33
+ Requires-Dist: pytest-cov>=4.0.0; extra == 'dev'
34
+ Requires-Dist: pytest>=7.0.0; extra == 'dev'
35
+ Requires-Dist: ruff>=0.1.0; extra == 'dev'
36
+ Description-Content-Type: text/markdown
37
+
38
+ <h1 align="center">SCC - Sandboxed Claude CLI</h1>
39
+
40
+ <p align="center">
41
+ <a href="https://pypi.org/project/scc-cli/"><img src="https://img.shields.io/pypi/v/scc-cli?style=flat-square&label=PyPI" alt="PyPI"></a>
42
+ <a href="https://pypi.org/project/scc-cli/"><img src="https://img.shields.io/pypi/pyversions/scc-cli?style=flat-square&label=Python" alt="Python"></a>
43
+ <a href="https://opensource.org/licenses/MIT"><img src="https://img.shields.io/badge/License-MIT-blue?style=flat-square" alt="License: MIT"></a>
44
+ <a href="#contributing"><img src="https://img.shields.io/badge/Contributions-Welcome-brightgreen?style=flat-square" alt="Contributions Welcome"></a>
45
+ </p>
46
+
47
+ <p align="center">
48
+ <a href="#quick-start">Quick Start</a> ·
49
+ <a href="#commands">Commands</a> ·
50
+ <a href="docs/CLI-REFERENCE.md">CLI Reference</a> ·
51
+ <a href="#configuration">Configuration</a> ·
52
+ <a href="docs/ARCHITECTURE.md">Architecture</a>
53
+ </p>
54
+
55
+ ---
56
+
57
+ Run [Claude Code](https://docs.anthropic.com/en/docs/claude-code) (Anthropic's AI coding CLI) in Docker sandboxes with organization-managed team profiles and git worktree support.
58
+
59
+ SCC isolates AI execution in containers, enforces branch safety, and prevents destructive git commands. Organizations distribute plugins through a central config—developers get standardized setups without manual configuration.
60
+
61
+ > **Plugin Marketplace:** Extend Claude with the [official plugin marketplace](https://github.com/CCimen/sandboxed-code-plugins). Start with [**scc-safety-net**](docs/MARKETPLACE.md#safety-net-plugin) to block destructive git commands like `push --force`.
62
+
63
+ ## 30-Second Guide
64
+
65
+ **Requires:** Python 3.10+, Docker Desktop 4.50+, Git 2.30+
66
+
67
+ ```bash
68
+ pip install scc-cli # Install
69
+ scc setup # Configure (paste your org URL, pick your team)
70
+ cd ~/project && scc # Auto-detect workspace and launch (or scc start ~/project)
71
+ ```
72
+
73
+ Run `scc doctor` to verify your environment or troubleshoot issues.
74
+
75
+ ### Smart Start Flow
76
+
77
+ When you run `scc` or `scc start` from inside a git repository:
78
+ - **Auto-detects workspace** from your current directory
79
+ - **Shows Quick Resume** if you have recent sessions for this workspace
80
+ - **Prints brief context** (workspace name, branch, team) before launching
81
+
82
+ **Keyboard shortcuts in interactive mode:**
83
+ - `Enter` — Select/resume session
84
+ - `n` — Start new session
85
+ - `Esc` — Go back
86
+ - `q` — Quit
87
+
88
+ ---
89
+
90
+ ### Find Your Path
91
+
92
+ | You are... | Start here |
93
+ |------------|------------|
94
+ | **Developer** joining a team | [Developer Onboarding](#developer-onboarding) — what you get automatically |
95
+ | **Team Lead** setting up your team | [Team Setup](#team-setup) — manage plugins in your own repo |
96
+ | **Org Admin** configuring security | [Organization Setup](#organization-setup) — control what's allowed org-wide |
97
+ | Exploring **plugins** | [Plugin Marketplace](docs/MARKETPLACE.md) — official plugins & safety tools |
98
+
99
+ ---
100
+
101
+ ### Developer Onboarding
102
+
103
+ **New to a team?** After running `scc setup` and `scc start`, you get:
104
+
105
+ - **Your team's approved plugins and MCP servers** — pre-configured and ready
106
+ - **Organization security policies** — applied automatically, no action needed
107
+ - **Command guardrails** — block destructive git commands like `push --force` (when scc-safety-net plugin is enabled)
108
+ - **Isolated git worktrees** — your main branch stays clean while Claude experiments
109
+
110
+ **What you never need to do:**
111
+ - Edit config files manually
112
+ - Download or configure plugins
113
+ - Worry about security settings
114
+
115
+ Your org admin and team lead handle the configuration. You just code.
116
+
117
+ ---
118
+
119
+ ### Who Controls What
120
+
121
+ | Setting | Org Admin | Team Lead | Developer |
122
+ |---------|:---------:|:---------:|:---------:|
123
+ | Block dangerous plugins/servers | ✅ **Sets** | ❌ Cannot override | ❌ Cannot override |
124
+ | Default plugins for all teams | ✅ **Sets** | — | — |
125
+ | Team-specific plugins | ✅ Approves | ✅ **Chooses** | — |
126
+ | Project-local config (.scc.yaml) | ✅ Can restrict | ✅ Can restrict | ✅ **Extends** |
127
+ | Safety-net policy (block/warn) | ✅ **Sets** | ❌ Cannot override | ❌ Cannot override |
128
+
129
+ Organization security blocks cannot be overridden by teams or developers.
130
+
131
+ *"Approves" = teams can only select from org-allowed marketplaces; blocks always apply. "Extends" = can add plugins/settings, cannot remove org defaults.*
132
+
133
+ ---
134
+
135
+ ### Organization Setup
136
+
137
+ Org admins create a single JSON config that controls security for all teams:
138
+
139
+ ```json
140
+ {
141
+ "schema_version": "1.0.0",
142
+ "organization": { "name": "Acme Corp", "id": "acme" },
143
+ "marketplaces": {
144
+ "sandboxed-code-official": {
145
+ "source": "github",
146
+ "owner": "CCimen",
147
+ "repo": "sandboxed-code-plugins"
148
+ }
149
+ },
150
+ "security": {
151
+ "blocked_plugins": ["*malicious*"],
152
+ "blocked_mcp_servers": ["*.untrusted.com"],
153
+ "safety_net": { "action": "block" }
154
+ },
155
+ "defaults": {
156
+ "allowed_plugins": ["*"],
157
+ "network_policy": "unrestricted"
158
+ },
159
+ "profiles": {
160
+ "backend": { "additional_plugins": ["scc-safety-net@sandboxed-code-official"] },
161
+ "frontend": { "additional_plugins": ["scc-safety-net@sandboxed-code-official"] }
162
+ }
163
+ }
164
+ ```
165
+
166
+ Host this anywhere: GitHub, GitLab, S3, or any HTTPS URL. Private repos work with token auth.
167
+
168
+ See [examples/](examples/) for complete org configs and [GOVERNANCE.md](docs/GOVERNANCE.md) for delegation rules.
169
+
170
+ ---
171
+
172
+ ### Team Setup
173
+
174
+ Teams can manage their plugins **two ways**:
175
+
176
+ **Option A: Inline (simple)** — Team config lives in the org config file.
177
+ ```json
178
+ "profiles": {
179
+ "backend": {
180
+ "additional_plugins": ["scc-safety-net@sandboxed-code-official"]
181
+ }
182
+ }
183
+ ```
184
+
185
+ **Option B: Team Repo (GitOps)** — Team maintains their own config repo.
186
+ ```json
187
+ "profiles": {
188
+ "backend": {
189
+ "config_source": {
190
+ "source": "github",
191
+ "owner": "acme",
192
+ "repo": "backend-team-scc-config"
193
+ }
194
+ }
195
+ }
196
+ ```
197
+
198
+ With Option B, team leads can update plugins via PRs to their own repo—no org admin approval needed for allowed additions.
199
+
200
+ **Config precedence:** Org defaults → Team profile → Project `.scc.yaml` (additive merge; blocks apply after merge).
201
+
202
+ ---
203
+
204
+ ## Commands
205
+
206
+ ### Essential Commands
207
+
208
+ | Command | Description |
209
+ |---------|-------------|
210
+ | `scc` | Smart start: auto-detect workspace, show Quick Resume, or launch |
211
+ | `scc setup` | Configure organization connection |
212
+ | `scc doctor` | Check system health and diagnose issues |
213
+ | `scc stop` | Stop running sandbox(es) |
214
+
215
+ ### Session & Team
216
+
217
+ | Command | Description |
218
+ |---------|-------------|
219
+ | `scc start --resume` | Resume most recent session |
220
+ | `scc start --select` | Pick from recent sessions |
221
+ | `scc team switch` | Switch to a different team profile |
222
+ | `scc sessions` | List recent sessions |
223
+
224
+ ### Worktrees
225
+
226
+ | Command | Description |
227
+ |---------|-------------|
228
+ | `scc worktree create <repo> <name>` | Create git worktree for parallel development |
229
+ | `scc worktree enter [target]` | Enter worktree in subshell (no shell config needed) |
230
+ | `scc worktree list -v` | List worktrees with git status |
231
+
232
+ ### Governance & Admin
233
+
234
+ | Command | Description |
235
+ |---------|-------------|
236
+ | `scc config explain` | Show effective config with sources |
237
+ | `scc exceptions list` | View active exceptions |
238
+ | `scc audit plugins` | Audit installed plugins |
239
+ | `scc support bundle` | Generate support bundle for troubleshooting |
240
+
241
+ Run `scc <command> --help` for options. See **[CLI Reference](docs/CLI-REFERENCE.md)** for the complete command list (40+ commands).
242
+
243
+ ### Git Worktrees
244
+
245
+ **Primary method (no shell config needed):**
246
+
247
+ ```bash
248
+ scc worktree enter feature-auth # Opens a subshell in the worktree
249
+ # Type 'exit' to return to your previous directory
250
+ ```
251
+
252
+ **Power users:** Add this shell wrapper for seamless `cd` switching:
253
+
254
+ ```bash
255
+ # Add to ~/.bashrc or ~/.zshrc
256
+ wt() {
257
+ local p
258
+ p="$(scc worktree switch "$@")" || return $?
259
+ cd "$p" || return 1
260
+ }
261
+ ```
262
+
263
+ **Usage examples (both methods):**
264
+
265
+ ```bash
266
+ scc worktree enter ^ # Enter main branch worktree
267
+ scc worktree enter - # Enter previous worktree (like cd -)
268
+ wt feature-auth # Switch with shell wrapper
269
+ wt scc/feature-x # Match by full branch name
270
+ ```
271
+
272
+ **Note:** Branch names with `/` are sanitized to `-` (e.g., `feature/auth` → `feature-auth`).
273
+
274
+ **Status indicators in `list -v`:**
275
+
276
+ | Symbol | Meaning |
277
+ |--------|---------|
278
+ | `+N` | N staged files |
279
+ | `!N` | N modified files |
280
+ | `?N` | N untracked files |
281
+ | `.` | Clean worktree |
282
+ | `…` | Status timed out |
283
+
284
+ **Cleanup stale entries:**
285
+
286
+ ```bash
287
+ scc worktree prune -n # Dry-run: show what would be pruned
288
+ scc worktree prune # Actually prune stale entries
289
+ ```
290
+
291
+ ---
292
+
293
+ ## Configuration
294
+
295
+ ### Setup Modes
296
+
297
+ **Organization mode** (recommended):
298
+ ```bash
299
+ scc setup
300
+ # Enter URL when prompted: https://gitlab.example.org/devops/scc-config.json
301
+ ```
302
+
303
+ **Standalone mode** (no org config):
304
+ ```bash
305
+ scc setup --standalone
306
+ ```
307
+
308
+ ### Project Config
309
+
310
+ Add `.scc.yaml` to your repository root for project-specific settings:
311
+
312
+ ```yaml
313
+ additional_plugins:
314
+ - "project-linter@internal"
315
+
316
+ session:
317
+ timeout_hours: 4
318
+ ```
319
+
320
+ ### File Locations
321
+
322
+ ```
323
+ ~/.config/scc/config.json # Org URL, team, preferences
324
+ ~/.cache/scc/ # Cache (safe to delete)
325
+ <repo>/.scc.yaml # Project-specific config
326
+ ```
327
+
328
+ ---
329
+
330
+ ## Troubleshooting
331
+
332
+ Run `scc doctor` to diagnose issues.
333
+
334
+ | Problem | Solution |
335
+ |---------|----------|
336
+ | Docker not reachable | Start Docker Desktop |
337
+ | Organization config fetch failed | Check URL and token |
338
+ | Plugin blocked | Check `scc config explain` for security blocks |
339
+
340
+ See [TROUBLESHOOTING.md](docs/TROUBLESHOOTING.md) for more solutions.
341
+
342
+ ---
343
+
344
+ ## Documentation
345
+
346
+ - [CLI Reference](docs/CLI-REFERENCE.md) — complete command reference (40+ commands)
347
+ - [Architecture](docs/ARCHITECTURE.md) — system design, module structure
348
+ - [Governance](docs/GOVERNANCE.md) — delegation model, security boundaries
349
+ - [Marketplace](docs/MARKETPLACE.md) — plugin distribution and safety-net
350
+ - [Troubleshooting](docs/TROUBLESHOOTING.md) — common problems and solutions
351
+ - [Examples](examples/) — ready-to-use organization config templates
352
+
353
+ ---
354
+
355
+ ## Automation & CI
356
+
357
+ SCC supports non-interactive operation for CI/CD pipelines and scripting.
358
+
359
+ ```bash
360
+ # CI pipeline example
361
+ scc start --non-interactive --team backend ~/project
362
+
363
+ # Preview configuration as JSON
364
+ scc start --dry-run --json
365
+
366
+ # Full automation mode
367
+ scc start --dry-run --json --non-interactive ~/project
368
+ ```
369
+
370
+ **Key flags:**
371
+ - `--non-interactive` — Fail fast instead of prompting
372
+ - `--json` — Machine-readable output with standardized envelope
373
+ - `--dry-run` — Preview configuration without launching
374
+
375
+ **Exit codes:** 0 (success), 2 (usage error), 3 (config error), 4 (tool error), 5 (prerequisites), 6 (governance block), 130 (cancelled)
376
+
377
+ See [CLI Reference → Exit Codes](docs/CLI-REFERENCE.md#exit-codes) for complete documentation.
378
+
379
+ ---
380
+
381
+ ## Development
382
+
383
+ ```bash
384
+ uv sync # Install dependencies
385
+ uv run pytest # Run tests
386
+ uv run ruff check # Run linter
387
+ ```
388
+
389
+ ---
390
+
391
+ ## License
392
+
393
+ MIT