comitia 0.1.2__tar.gz → 0.2.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.
Files changed (74) hide show
  1. {comitia-0.1.2 → comitia-0.2.0}/PKG-INFO +29 -17
  2. {comitia-0.1.2 → comitia-0.2.0}/README.md +27 -15
  3. {comitia-0.1.2 → comitia-0.2.0}/pyproject.toml +2 -2
  4. {comitia-0.1.2 → comitia-0.2.0}/src/comitia/__init__.py +1 -1
  5. {comitia-0.1.2 → comitia-0.2.0}/src/comitia/cli.py +38 -9
  6. {comitia-0.1.2 → comitia-0.2.0}/src/comitia/host.py +38 -14
  7. {comitia-0.1.2 → comitia-0.2.0}/src/comitia/skill/SKILL.md +10 -3
  8. {comitia-0.1.2 → comitia-0.2.0}/tests/test_plan_and_cli.py +20 -0
  9. {comitia-0.1.2 → comitia-0.2.0}/uv.lock +1 -1
  10. {comitia-0.1.2 → comitia-0.2.0}/.gitignore +0 -0
  11. {comitia-0.1.2 → comitia-0.2.0}/LICENSE +0 -0
  12. {comitia-0.1.2 → comitia-0.2.0}/LICENSES/crossby-MIT.txt +0 -0
  13. {comitia-0.1.2 → comitia-0.2.0}/src/comitia/__main__.py +0 -0
  14. {comitia-0.1.2 → comitia-0.2.0}/src/comitia/api.py +0 -0
  15. {comitia-0.1.2 → comitia-0.2.0}/src/comitia/catalog.py +0 -0
  16. {comitia-0.1.2 → comitia-0.2.0}/src/comitia/control.py +0 -0
  17. {comitia-0.1.2 → comitia-0.2.0}/src/comitia/diffs.py +0 -0
  18. {comitia-0.1.2 → comitia-0.2.0}/src/comitia/discussion/__init__.py +0 -0
  19. {comitia-0.1.2 → comitia-0.2.0}/src/comitia/discussion/api.py +0 -0
  20. {comitia-0.1.2 → comitia-0.2.0}/src/comitia/discussion/cli.py +0 -0
  21. {comitia-0.1.2 → comitia-0.2.0}/src/comitia/discussion/config.py +0 -0
  22. {comitia-0.1.2 → comitia-0.2.0}/src/comitia/discussion/console.py +0 -0
  23. {comitia-0.1.2 → comitia-0.2.0}/src/comitia/discussion/converse.py +0 -0
  24. {comitia-0.1.2 → comitia-0.2.0}/src/comitia/discussion/journal.py +0 -0
  25. {comitia-0.1.2 → comitia-0.2.0}/src/comitia/discussion/panel.py +0 -0
  26. {comitia-0.1.2 → comitia-0.2.0}/src/comitia/discussion/panel_view.py +0 -0
  27. {comitia-0.1.2 → comitia-0.2.0}/src/comitia/discussion/prompts/converse_asker.md +0 -0
  28. {comitia-0.1.2 → comitia-0.2.0}/src/comitia/discussion/prompts/converse_summary.md +0 -0
  29. {comitia-0.1.2 → comitia-0.2.0}/src/comitia/discussion/transcript.py +0 -0
  30. {comitia-0.1.2 → comitia-0.2.0}/src/comitia/engine.py +0 -0
  31. {comitia-0.1.2 → comitia-0.2.0}/src/comitia/findings.py +0 -0
  32. {comitia-0.1.2 → comitia-0.2.0}/src/comitia/plan.py +0 -0
  33. {comitia-0.1.2 → comitia-0.2.0}/src/comitia/posting.py +0 -0
  34. {comitia-0.1.2 → comitia-0.2.0}/src/comitia/prompts.py +0 -0
  35. {comitia-0.1.2 → comitia-0.2.0}/src/comitia/recipe.py +0 -0
  36. {comitia-0.1.2 → comitia-0.2.0}/src/comitia/report.py +0 -0
  37. {comitia-0.1.2 → comitia-0.2.0}/src/comitia/settings.py +0 -0
  38. {comitia-0.1.2 → comitia-0.2.0}/src/comitia/starters/decision-debate.yml +0 -0
  39. {comitia-0.1.2 → comitia-0.2.0}/src/comitia/starters/deep-review.yml +0 -0
  40. {comitia-0.1.2 → comitia-0.2.0}/src/comitia/starters/message-test.yml +0 -0
  41. {comitia-0.1.2 → comitia-0.2.0}/src/comitia/starters/pr-review-light.yml +0 -0
  42. {comitia-0.1.2 → comitia-0.2.0}/src/comitia/starters/pr-review.yml +0 -0
  43. {comitia-0.1.2 → comitia-0.2.0}/src/comitia/starters/prd-review.yml +0 -0
  44. {comitia-0.1.2 → comitia-0.2.0}/src/comitia/store.py +0 -0
  45. {comitia-0.1.2 → comitia-0.2.0}/src/comitia/web/__init__.py +0 -0
  46. {comitia-0.1.2 → comitia-0.2.0}/src/comitia/web/server.py +0 -0
  47. {comitia-0.1.2 → comitia-0.2.0}/src/comitia/web/service.py +0 -0
  48. {comitia-0.1.2 → comitia-0.2.0}/src/comitia/web/static/app.js +0 -0
  49. {comitia-0.1.2 → comitia-0.2.0}/src/comitia/web/static/index.html +0 -0
  50. {comitia-0.1.2 → comitia-0.2.0}/src/comitia/web/static/styles.css +0 -0
  51. {comitia-0.1.2 → comitia-0.2.0}/tests/conftest.py +0 -0
  52. {comitia-0.1.2 → comitia-0.2.0}/tests/discussion/__init__.py +0 -0
  53. {comitia-0.1.2 → comitia-0.2.0}/tests/discussion/test_converse.py +0 -0
  54. {comitia-0.1.2 → comitia-0.2.0}/tests/discussion/test_converse_cmd.py +0 -0
  55. {comitia-0.1.2 → comitia-0.2.0}/tests/discussion/test_journal.py +0 -0
  56. {comitia-0.1.2 → comitia-0.2.0}/tests/discussion/test_panel.py +0 -0
  57. {comitia-0.1.2 → comitia-0.2.0}/tests/discussion/test_panel_cmd.py +0 -0
  58. {comitia-0.1.2 → comitia-0.2.0}/tests/discussion/test_panel_settings.py +0 -0
  59. {comitia-0.1.2 → comitia-0.2.0}/tests/discussion/test_panel_view.py +0 -0
  60. {comitia-0.1.2 → comitia-0.2.0}/tests/fixtures/crossby-0.63-journal.jsonl +0 -0
  61. {comitia-0.1.2 → comitia-0.2.0}/tests/fixtures/make_crossby_journal.py +0 -0
  62. {comitia-0.1.2 → comitia-0.2.0}/tests/test_antigravity_cursor_host.py +0 -0
  63. {comitia-0.1.2 → comitia-0.2.0}/tests/test_api.py +0 -0
  64. {comitia-0.1.2 → comitia-0.2.0}/tests/test_codex_host.py +0 -0
  65. {comitia-0.1.2 → comitia-0.2.0}/tests/test_discussion.py +0 -0
  66. {comitia-0.1.2 → comitia-0.2.0}/tests/test_host.py +0 -0
  67. {comitia-0.1.2 → comitia-0.2.0}/tests/test_import.py +0 -0
  68. {comitia-0.1.2 → comitia-0.2.0}/tests/test_posting.py +0 -0
  69. {comitia-0.1.2 → comitia-0.2.0}/tests/test_resume.py +0 -0
  70. {comitia-0.1.2 → comitia-0.2.0}/tests/test_review_fixes.py +0 -0
  71. {comitia-0.1.2 → comitia-0.2.0}/tests/test_scenarios.py +0 -0
  72. {comitia-0.1.2 → comitia-0.2.0}/tests/test_settings.py +0 -0
  73. {comitia-0.1.2 → comitia-0.2.0}/tests/test_turns.py +0 -0
  74. {comitia-0.1.2 → comitia-0.2.0}/tests/test_web.py +0 -0
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: comitia
3
- Version: 0.1.2
4
- Summary: Know what's fixed, what's still open and what's new before your agent builds.
3
+ Version: 0.2.0
4
+ Summary: Run AI consultations and panels from your coding agent, with repeatable recipes and evidence-linked findings.
5
5
  Project-URL: Repository, https://github.com/ivanviragine/comitia
6
6
  Project-URL: Issues, https://github.com/ivanviragine/comitia/issues
7
7
  Author: Ivan Viragine
@@ -45,23 +45,32 @@ discussion. Recipe reports link their findings to the turns that produced
45
45
  them. When you check revised material against an earlier run, the report shows
46
46
  which findings still apply.
47
47
 
48
- Comitia supports Claude Code, Codex, Antigravity CLI, and Cursor CLI as hosts.
49
- It runs participants through the coding-agent CLIs you already have. [Crossby](https://github.com/ivanviragine/crossby)
48
+ Use Comitia from Claude Code, Codex, Antigravity CLI, or Cursor CLI. Crossby
49
+ powers the participants, which run through the coding-agent CLIs you already
50
+ use. Each CLI uses its configured account and billing. [Crossby](https://github.com/ivanviragine/crossby)
50
51
 
51
- ## Install
52
+ ## Use it from your agent
53
+
54
+ You’ll need Python 3.11+ and at least one supported coding-agent CLI signed
55
+ in to its provider. From the project where you want to discuss material:
52
56
 
53
57
  ```bash
54
- uv tool install comitia # `comitia` on your PATH
55
- comitia setup # in your project: the `discuss` skill (and, under `approval: strict`, the approval rules)
58
+ uv tool install comitia
59
+ comitia setup --skill-only --host codex
56
60
  ```
57
61
 
58
- The tool install puts `comitia` on your PATH. Under `approval: strict`, the
59
- host's approval rules expect the plain `comitia run` command. For local
60
- development, use `uv tool install --editable .` from the checkout.
62
+ Use `claude`, `antigravity`, or `cursor` for another host. Omit `--host` to
63
+ install the skill for all four. This setup writes the skill files. Make sure
64
+ `comitia` is on your host’s PATH and open or reload the project in your host.
65
+ After upgrading Comitia, use `--force` with `--skill-only` to replace an
66
+ existing skill file after reviewing local edits.
61
67
 
62
- ## Use it from your agent
68
+ In Codex, start with `$discuss`. In Claude Code or Antigravity CLI, use
69
+ `/discuss`. You can also name the skill in a prompt:
63
70
 
64
- Ask your host agent for the discussion you want.
71
+ > Use the discuss skill to have two AI participants challenge the rollout plan in `decision.md`. Show me the plan before running it.
72
+
73
+ Other things to ask:
65
74
 
66
75
  - “Have Claude and Codex check the diagnosis in `incident.md`. What evidence
67
76
  would distinguish the likely causes?”
@@ -74,11 +83,14 @@ The `discuss` skill chooses or writes a recipe and shows the plan. With the
74
83
  default `approval: host`, your host’s permission flow decides whether the run
75
84
  starts. [Approval](#approval)
76
85
 
77
- `comitia setup` installs the `discuss` skill and
78
- configures Claude Code's read-only commands and sandbox exclusions. Choose
79
- `approval: strict` for the additional approval rules and hooks described
80
- below. Start Claude Code from the project you set up and accept its workspace
81
- trust dialog so it loads the project's rules.
86
+ ### Configure host approvals
87
+
88
+ Run `comitia setup --host claude` to configure Claude Code’s read-only commands
89
+ and sandbox exclusion as well as installing the skill. If you choose
90
+ `approval: strict`, run `comitia setup --host YOUR_HOST` to add the approval
91
+ rules or hooks for that host. Strict mode expects the plain `comitia run`
92
+ command on PATH. Claude Code may ask you to trust the project before it loads
93
+ its settings.
82
94
 
83
95
  ### From Codex
84
96
 
@@ -22,23 +22,32 @@ discussion. Recipe reports link their findings to the turns that produced
22
22
  them. When you check revised material against an earlier run, the report shows
23
23
  which findings still apply.
24
24
 
25
- Comitia supports Claude Code, Codex, Antigravity CLI, and Cursor CLI as hosts.
26
- It runs participants through the coding-agent CLIs you already have. [Crossby](https://github.com/ivanviragine/crossby)
25
+ Use Comitia from Claude Code, Codex, Antigravity CLI, or Cursor CLI. Crossby
26
+ powers the participants, which run through the coding-agent CLIs you already
27
+ use. Each CLI uses its configured account and billing. [Crossby](https://github.com/ivanviragine/crossby)
27
28
 
28
- ## Install
29
+ ## Use it from your agent
30
+
31
+ You’ll need Python 3.11+ and at least one supported coding-agent CLI signed
32
+ in to its provider. From the project where you want to discuss material:
29
33
 
30
34
  ```bash
31
- uv tool install comitia # `comitia` on your PATH
32
- comitia setup # in your project: the `discuss` skill (and, under `approval: strict`, the approval rules)
35
+ uv tool install comitia
36
+ comitia setup --skill-only --host codex
33
37
  ```
34
38
 
35
- The tool install puts `comitia` on your PATH. Under `approval: strict`, the
36
- host's approval rules expect the plain `comitia run` command. For local
37
- development, use `uv tool install --editable .` from the checkout.
39
+ Use `claude`, `antigravity`, or `cursor` for another host. Omit `--host` to
40
+ install the skill for all four. This setup writes the skill files. Make sure
41
+ `comitia` is on your host’s PATH and open or reload the project in your host.
42
+ After upgrading Comitia, use `--force` with `--skill-only` to replace an
43
+ existing skill file after reviewing local edits.
38
44
 
39
- ## Use it from your agent
45
+ In Codex, start with `$discuss`. In Claude Code or Antigravity CLI, use
46
+ `/discuss`. You can also name the skill in a prompt:
40
47
 
41
- Ask your host agent for the discussion you want.
48
+ > Use the discuss skill to have two AI participants challenge the rollout plan in `decision.md`. Show me the plan before running it.
49
+
50
+ Other things to ask:
42
51
 
43
52
  - “Have Claude and Codex check the diagnosis in `incident.md`. What evidence
44
53
  would distinguish the likely causes?”
@@ -51,11 +60,14 @@ The `discuss` skill chooses or writes a recipe and shows the plan. With the
51
60
  default `approval: host`, your host’s permission flow decides whether the run
52
61
  starts. [Approval](#approval)
53
62
 
54
- `comitia setup` installs the `discuss` skill and
55
- configures Claude Code's read-only commands and sandbox exclusions. Choose
56
- `approval: strict` for the additional approval rules and hooks described
57
- below. Start Claude Code from the project you set up and accept its workspace
58
- trust dialog so it loads the project's rules.
63
+ ### Configure host approvals
64
+
65
+ Run `comitia setup --host claude` to configure Claude Code’s read-only commands
66
+ and sandbox exclusion as well as installing the skill. If you choose
67
+ `approval: strict`, run `comitia setup --host YOUR_HOST` to add the approval
68
+ rules or hooks for that host. Strict mode expects the plain `comitia run`
69
+ command on PATH. Claude Code may ask you to trust the project before it loads
70
+ its settings.
59
71
 
60
72
  ### From Codex
61
73
 
@@ -4,8 +4,8 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "comitia"
7
- version = "0.1.2"
8
- description = "Know what's fixed, what's still open and what's new before your agent builds."
7
+ version = "0.2.0"
8
+ description = "Run AI consultations and panels from your coding agent, with repeatable recipes and evidence-linked findings."
9
9
  readme = "README.md"
10
10
  license = "MIT"
11
11
  license-files = ["LICENSE", "LICENSES/*.txt"]
@@ -1,3 +1,3 @@
1
1
  """comitia: several AI models review a spec, and every finding keeps its history."""
2
2
 
3
- __version__ = "0.1.2"
3
+ __version__ = "0.2.0"
@@ -26,7 +26,7 @@ from comitia.settings import Approval, SettingsError, effective_approval, load_s
26
26
  app = typer.Typer(
27
27
  add_completion=False,
28
28
  no_args_is_help=True,
29
- help="Several AI models review a spec; every finding keeps its ID from run to run.",
29
+ help="Run repeatable AI consultations and panels with the coding agents you already use.",
30
30
  )
31
31
  recipe_app = typer.Typer(no_args_is_help=True, help="Recipes: who discusses and how.")
32
32
  app.add_typer(recipe_app, name="recipe")
@@ -830,18 +830,47 @@ def note(
830
830
 
831
831
 
832
832
  @app.command()
833
- def setup(as_json: bool = JSON) -> None:
834
- """Install the `discuss` skill and what makes each installed host ask before a run."""
833
+ def setup(
834
+ as_json: bool = JSON,
835
+ skill_only: bool = typer.Option(False, "--skill-only", help="Write only the discussion skill."),
836
+ target_host: str = typer.Option(
837
+ "all", "--host", help="Target claude, codex, antigravity, cursor, or all."
838
+ ),
839
+ force: bool = typer.Option(
840
+ False, "--force", help="Replace a differing skill with --skill-only."
841
+ ),
842
+ ) -> None:
843
+ """Install the discuss skill and optionally configure host approvals."""
835
844
  root = _root()
845
+ installers = {
846
+ "claude": host.setup_claude,
847
+ "codex": host.setup_codex,
848
+ "antigravity": host.setup_antigravity,
849
+ "cursor": host.setup_cursor,
850
+ }
851
+ if target_host != "all" and target_host not in installers:
852
+ _fail(
853
+ f"Unknown host {target_host!r}. Choose from: {', '.join(installers)}, all.",
854
+ as_json=as_json,
855
+ )
856
+ targets = list(installers) if target_host == "all" else [target_host]
857
+ if skill_only:
858
+ try:
859
+ changes = host.setup_skills(root, targets, force=force)
860
+ except host.HostError as exc:
861
+ _fail(str(exc), as_json=as_json)
862
+ text = "\n".join(f"- {change}" for change in changes) or "Already set up; nothing changed."
863
+ _out(as_json, {"project": str(root), "changes": changes, "skill_only": True}, text)
864
+ return
865
+ if force:
866
+ _fail("--force requires --skill-only.", as_json=as_json)
867
+
836
868
  approval = _preset(root, as_json=as_json)
837
869
  strict = approval == "strict"
838
870
  try:
839
- changes = (
840
- host.setup_claude(root, strict=strict)
841
- + host.setup_codex(root, strict=strict)
842
- + host.setup_antigravity(root, strict=strict)
843
- + host.setup_cursor(root, strict=strict)
844
- )
871
+ changes = [
872
+ change for target in targets for change in installers[target](root, strict=strict)
873
+ ]
845
874
  except host.HostError as exc:
846
875
  _fail(str(exc), as_json=as_json)
847
876
  text = "\n".join(f"- {change}" for change in changes) or "Already set up; nothing changed."
@@ -58,6 +58,8 @@ from crossby.api import under_agent as under_agent
58
58
  from comitia import store
59
59
 
60
60
  SKILL_NAME = "discuss"
61
+ _SHARED_SKILL_DIR = Path(".agents/skills")
62
+ _CLAUDE_SKILL_DIR = Path(".claude/skills")
61
63
  # Commands only the user may approve.
62
64
  # Each a whole word after `comitia`, never one that follows a module name in code
63
65
  # (`from comitia import ...`): the hook reads those as starts.
@@ -1039,13 +1041,7 @@ def setup_codex(
1039
1041
 
1040
1042
  def _shared_skill(root: Path, host: str) -> list[str]:
1041
1043
  """The ``discuss`` skill in ``.agents/skills``, which Codex, Antigravity and Cursor read."""
1042
- skill = root / ".agents" / "skills" / SKILL_NAME / "SKILL.md"
1043
- text = skill_text()
1044
- if skill.is_file() and skill.read_text(encoding="utf-8") == text:
1045
- return []
1046
- skill.parent.mkdir(parents=True, exist_ok=True)
1047
- skill.write_text(text, encoding="utf-8")
1048
- return [f"wrote the `{SKILL_NAME}` skill for {host} to {skill.relative_to(root)}"]
1044
+ return _install_skill(root, _SHARED_SKILL_DIR, label=f" for {host}")
1049
1045
 
1050
1046
 
1051
1047
  def _strict_json(path: Path) -> dict[str, Any] | None:
@@ -1955,6 +1951,40 @@ def skill_text() -> str:
1955
1951
  return resources.files("comitia").joinpath("skill", "SKILL.md").read_text(encoding="utf-8")
1956
1952
 
1957
1953
 
1954
+ def _install_skill(
1955
+ root: Path, directory: Path, *, label: str = "", force: bool = True
1956
+ ) -> list[str]:
1957
+ relative = directory / SKILL_NAME / "SKILL.md"
1958
+ skill = root / relative
1959
+ text = skill_text()
1960
+ if skill.is_file() and skill.read_text(encoding="utf-8") == text:
1961
+ return []
1962
+ if skill.exists() and not force:
1963
+ return [f"kept existing {relative}; pass --force to replace it"]
1964
+ skill.parent.mkdir(parents=True, exist_ok=True)
1965
+ skill.write_text(text, encoding="utf-8")
1966
+ return [f"wrote the `{SKILL_NAME}` skill{label} to {relative}"]
1967
+
1968
+
1969
+ def setup_skills(root: Path, hosts: Sequence[str], *, force: bool) -> list[str]:
1970
+ """Install the discussion skill without configuring host permissions or hooks."""
1971
+ directories = dict.fromkeys(
1972
+ _CLAUDE_SKILL_DIR if host == "claude" else _SHARED_SKILL_DIR for host in hosts
1973
+ )
1974
+ try:
1975
+ for directory in directories:
1976
+ skill = root / directory / SKILL_NAME / "SKILL.md"
1977
+ if skill.is_symlink() or not skill.resolve().is_relative_to(root.resolve()):
1978
+ raise HostError(f"Cannot write the skill through {skill}.")
1979
+ return [
1980
+ change
1981
+ for directory in directories
1982
+ for change in _install_skill(root, directory, force=force)
1983
+ ]
1984
+ except (OSError, RuntimeError) as exc:
1985
+ raise HostError(f"Could not install the discussion skill: {exc}") from exc
1986
+
1987
+
1958
1988
  def _add(items: list[Any], value: str) -> bool:
1959
1989
  if value in items:
1960
1990
  return False
@@ -1970,13 +2000,7 @@ def setup_claude(root: Path, *, strict: bool) -> list[str]:
1970
2000
  The rules that let the read-only commands run unasked, and running comitia outside
1971
2001
  the sandbox, are added under every preset: neither approves anything.
1972
2002
  """
1973
- changes: list[str] = []
1974
- skill = root / ".claude" / "skills" / SKILL_NAME / "SKILL.md"
1975
- text = skill_text()
1976
- if not skill.is_file() or skill.read_text(encoding="utf-8") != text:
1977
- skill.parent.mkdir(parents=True, exist_ok=True)
1978
- skill.write_text(text, encoding="utf-8")
1979
- changes.append(f"wrote the `{SKILL_NAME}` skill to {skill.relative_to(root)}")
2003
+ changes = _install_skill(root, _CLAUDE_SKILL_DIR)
1980
2004
 
1981
2005
  path = root / ".claude" / "settings.json"
1982
2006
  settings = _read(path)
@@ -1,15 +1,21 @@
1
1
  ---
2
2
  name: discuss
3
- description: Use when the user wants several AI models or personas to review,
4
- test or react to something (a spec, a PRD, a plan, a message, a page, a decision),
5
- to address a report's open findings, or to check a revised version again.
3
+ description: >
4
+ Run a Comitia consultation or panel when the user wants multiple AI participants
5
+ to critique a draft, compare options, or debate a decision. Also use for following
6
+ up on findings from an earlier Comitia run.
6
7
  ---
7
8
 
9
+ Comitia runs through the user's configured coding-agent CLIs, powered by Crossby.
8
10
  `comitia` runs a recipe: read-only AI participants review the material, each on
9
11
  its own (`answers`), or in a discussion where a lead questions one other
10
12
  (`consultation`) or several (`panel`); a report gives every finding an ID that
11
13
  lasts from run to run. Every command takes `--json`.
12
14
 
15
+ If `comitia` is unavailable in the host, tell the user to install it with
16
+ `uv tool install comitia`, make the executable available on the host's PATH,
17
+ and reload the session.
18
+
13
19
  1. Pick the recipe. `comitia recipe list` shows the user's recipes and the
14
20
  starters. If none fits the request (other participants, another job), write
15
21
  one: `comitia recipe new NAME --from prd-review`, then edit
@@ -19,6 +25,7 @@ lasts from run to run. Every command takes `--json`.
19
25
  2. Run `comitia check RECIPE --material FILE` (for a code review, `--pr NUMBER`
20
26
  or `--diff main...HEAD` instead) and show the user the plan it prints, whole: who takes part, which companies the material reaches, what
21
27
  each can read. If the plan is refused, say why and stop or fix the recipe.
28
+ Stop at the preview if the user has only requested a plan.
22
29
  3. Start the run with the exact command `check` printed
23
30
  (`comitia run RECIPE --material FILE --plan ID`), using your own background
24
31
  tool; it returns when the run ends, so do not poll. The host's own permission
@@ -442,6 +442,26 @@ def test_setup_under_host_says_it_leaves_the_asking_to_the_host(commands: Projec
442
442
  assert "ask" not in settings["permissions"]
443
443
 
444
444
 
445
+ def test_skill_only_setup_leaves_strict_host_settings_alone(commands: Project) -> None:
446
+ _strict(commands)
447
+ options = ["setup", "--skill-only", "--host", "codex", "--json"]
448
+ result = runner.invoke(cli.app, options)
449
+ assert result.exit_code == 0, result.output
450
+ assert json.loads(result.output)["skill_only"]
451
+ skill = commands.root / ".agents" / "skills" / "discuss" / "SKILL.md"
452
+ assert skill.read_text(encoding="utf-8") == host.skill_text()
453
+ assert not (commands.root / ".claude").exists()
454
+ assert not (commands.root / ".codex").exists()
455
+
456
+ skill.write_text("local edits", encoding="utf-8")
457
+ result = runner.invoke(cli.app, options)
458
+ assert result.exit_code == 0, result.output
459
+ assert skill.read_text(encoding="utf-8") == "local edits"
460
+ result = runner.invoke(cli.app, [*options, "--force"])
461
+ assert result.exit_code == 0, result.output
462
+ assert skill.read_text(encoding="utf-8") == host.skill_text()
463
+
464
+
445
465
  def test_setup_and_check_say_when_an_agent_run_would_be_refused(
446
466
  commands: Project, monkeypatch: pytest.MonkeyPatch
447
467
  ) -> None:
@@ -117,7 +117,7 @@ wheels = [
117
117
 
118
118
  [[package]]
119
119
  name = "comitia"
120
- version = "0.1.2"
120
+ version = "0.2.0"
121
121
  source = { editable = "." }
122
122
  dependencies = [
123
123
  { name = "crossby" },
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes