2.5 KiB
Contributing to Cua
Thanks for contributing to Cua. The repository includes Python and TypeScript SDKs, a Rust desktop driver, Swift virtualization tools, container images, and public documentation. Start with the component that owns the behavior you want to change.
Report a Bug
Before opening an issue, search the existing issue tracker. Include:
- a concise description and reproducible steps;
- expected and actual behavior;
- Cua package or driver version;
- operating system, window system, and application when relevant;
- logs, structured errors, screenshots, or recordings that help reproduce it.
Do not include credentials or private application data.
Propose a Change
For feature requests, describe the user problem and the expected behavior before prescribing an implementation. Mention affected platforms and existing workarounds when known.
Submit Code
- Read
Development.mdand the guide next to the component. - Keep changes scoped to the component that owns the behavior.
- Add or update tests that observe the public effect of the change.
- Run the applicable commands in
TESTING.md. - Run the formatters and linters owned by the changed component.
- Open a focused pull request that explains behavior, validation, and known gaps.
Root pre-commit hooks are optional local helpers. Install them with:
uv sync --group dev
uv run pre-commit install
Mypy is configured but is not currently a pre-commit gate. Rust, TypeScript, Swift, and documentation checks remain component-owned.
Desktop Behavior Changes
cua-driver behavior must be verified through the canonical Rust harnesses. A successful tool response alone is not evidence that an action reached the application. Delivery tests should observe fixture state and attach focus, z-order, cursor, leaked-input, capture, or refusal oracles as required.
Do not weaken a test to match the current driver. Add a capability, return an exact structured refusal, or record the behavior as an explicit gap.
Documentation
Public documentation lives under docs/content/docs and follows Diataxis. See
docs/README.md before adding a page. Contributor-only plans,
journals, and implementation notes belong next to their component.
Documentation changes should pass generator drift, hygiene, internal links, and the production Fumadocs build.
Community
For design discussion and contributor help, join the Cua Discord community.