Skip to content

Add repository-level Copilot coding instructions#18

Merged
tannn merged 2 commits intomainfrom
copilot/setup-copilot-instructions
Mar 3, 2026
Merged

Add repository-level Copilot coding instructions#18
tannn merged 2 commits intomainfrom
copilot/setup-copilot-instructions

Conversation

Copy link
Contributor

Copilot AI commented Mar 3, 2026

This issue requested repository-specific Copilot guidance aligned with GitHub’s coding-agent best practices. This PR adds a single authoritative instruction file so agent behavior is consistent with FreeThinker’s architecture and platform constraints.

  • What was added

    • Created .github/copilot-instructions.md as the repo-level instruction source for Copilot coding agents.
  • Instruction scope

    • Captures core project context (Swift 5.9+, SwiftUI/AppKit, FoundationModels, module boundaries).
    • Defines coding expectations (minimal/safe edits, reuse existing abstractions, preserve async/actor patterns).
    • Documents validation commands and macOS-specific build note (-skipMacroValidation).
    • Reinforces platform constraints (macOS 26+, Apple Silicon, on-device AI only).
  • Resulting repo contract

    • Establishes a concise, discoverable policy file for future automated and assisted code changes without touching app/runtime code paths.
# Copilot instructions for FreeThinker

## Project context
- FreeThinker is a macOS menu bar app built with Swift 5.9+, SwiftUI, and AppKit.
- The app is local-first and uses Apple FoundationModels (`SystemLanguageModel`) for on-device AI.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • gh.io
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>✨ Set up Copilot instructions</issue_title>
<issue_description>Configure instructions for this repository as documented in Best practices for Copilot coding agent in your repository.

</issue_description>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: tannn <831788+tannn@users.noreply.github.com>
Copilot AI changed the title [WIP] Set up Copilot instructions for repository Add repository-level Copilot coding instructions Mar 3, 2026
Copilot finished work on behalf of tannn March 3, 2026 07:50
@tannn tannn marked this pull request as ready for review March 3, 2026 07:52
@chatgpt-codex-connector
Copy link

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@tannn tannn merged commit d329b3e into main Mar 3, 2026
6 checks passed
@tannn tannn deleted the copilot/setup-copilot-instructions branch March 3, 2026 07:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

✨ Set up Copilot instructions

2 participants