Files
OpenCut/AGENTS.md
T

24 lines
831 B
Markdown
Raw Normal View History

2026-03-29 12:53:37 +02:00
# Agents.md
2026-01-31 00:20:04 +01:00
## Architecture
2026-01-31 00:20:04 +01:00
An ongoing migration is moving all business logic into `rust/`. Each app under `apps/` is a UI shell — it owns rendering, interaction, and platform-specific concerns, but never owns logic. The UI framework for any given app is a replaceable detail.
2026-01-31 00:20:04 +01:00
### `rust/`
2026-01-31 00:20:04 +01:00
The single source of truth for all non-UI code. Everything platform-agnostic belongs here: no components, no hooks, no framework imports.
### `apps/`
Each app is a frontend that calls into Rust. Logic is never duplicated between apps — only UI is, because each platform may use an entirely different framework and language to build it.
- `web/` — Next.js
- `desktop/` — GPUI
2026-01-31 00:20:04 +01:00
2026-03-29 12:53:37 +02:00
## Web
2026-01-31 00:20:04 +01:00
2026-03-29 12:53:37 +02:00
### React
2026-01-31 00:20:04 +01:00
2026-03-29 12:53:37 +02:00
- Read components before using them. They may already apply classes, which affects what you need to pass and how to override them.
2026-01-31 00:20:04 +01:00