Files
CommandTabFree/AGENTS.md
T
2026-02-08 10:30:44 +01:00

934 B

macOS development

  • Don't use xcode directly to develop
  • Use pure swift 5.8 code to make the app. No interface builder. No SwiftUI.
  • Aim for compact code. Within methods, don't have groups of statements separated with newlines. No inline comments for simple code. Instead, split statements into sub-methods.
  • Use guard closes as much as possible to separate the happy-path under them
  • Organize source files into folders. Folders should group files that change together, at the same pace (e.g. one feature)
  • Favor low latency and responsiveness. Reuse objects, avoid wasting memory or I/O.

Workflow

  • Copy commands from ai/build.sh and run them, to confirm compilation works after you're done with implementing a change
  • Copy commands from ai/profile.sh and run them, to confirm performance gains were made after you're done optimizing
  • Copy commands from ai/run.sh and run them, if you need to debug issues using the logs