This document explains how to configure your Copilot, Claude, or other AI assistant for development on this project.
- Recommended file:
.github/copilot-instructions.md - Scope: Project-wide instruction file automatically loaded by Copilot
- Content: Repository rules, current priorities, development guidance
- Reference file:
CLAUDE.md - Content: Claude-specific priorities and editing guidelines
- Setup: Paste content into system prompt or reference in conversation
- Reference file:
AGENTS.md - Content: Canonical OpenSpec workflow and project-specific rules
- Bilingual: Also see
AGENTS.zh-CN.mdfor Chinese-language guidance
All changes flow through OpenSpec:
/opsx:propose → /opsx:apply → /opsx:archive
Check openspec/specs/ for the definitive description of:
- Capabilities and requirements
- Supported scenarios and constraints
- Architecture decisions
- Prefer
/reviewfor major architectural changes - Use long autopilot sessions instead of
/fleet - Keep LSP/editor setup simple (clangd + compile_commands.json)
- Remove or consolidate duplicate guidance
- No generic boilerplate
- Every file serves a clear purpose
| File | Purpose | Audience |
|---|---|---|
.github/copilot-instructions.md |
Copilot-specific rules | GitHub Copilot users |
CLAUDE.md |
Claude-specific priorities | Claude Code / Web |
AGENTS.md |
OpenSpec workflow (English) | All developers |
AGENTS.zh-CN.md |
OpenSpec workflow (Chinese) | Chinese-language developers |
CONTRIBUTING.md |
Contributor workflow | Open source contributors |
openspec.yaml |
Capability registry | OpenSpec framework |
Primary: clangd
cd /home/shane/dev/n-body
./scripts/build.sh Release
# compile_commands.json auto-generated at project rootEditor Setup:
- VS Code:
.vscode/settings.json(pre-configured) - Vim/Neovim: Use coc-clangd or similar
- Other editors: Point to
${PROJECT}/compile_commands.json
Optional but recommended:
./scripts/setup-hooks.sh
# Enables .githooks/pre-commit for format validation# Auto-detects CUDA; falls back to CPU-only if unavailable
./scripts/build.sh Release
# Force CPU-only
cmake -DNBODY_ENABLE_CUDA=OFF ..If this project needs further updates:
-
Create a proposal:
/opsx:propose "Description of change" -
Edit the generated artifacts:
proposal.md- Why the changedesign.md- How to implement ittasks.md- Implementation checklist
-
Run implementation:
/opsx:apply # Follow task-by-task implementation # Prefer one long autopilot session
-
Archive when complete:
/opsx:archive
❌ Don't:
- Use
/fleetfor routine work (prefer longer single autopilot sessions) - Create parallel spec systems alongside
openspec/ - Add heavy plugins/MCPs without clear ROI
- Let local branches diverge from main for extended periods
✅ Do:
- Reference
openspec/specs/as the single source of truth - Use
/reviewfor architectural decisions - Keep AI instruction files aligned across all interfaces
- Commit and merge frequently with clear messages
- Setup & Examples: See
README.mdordocs/setup/ - Algorithms & Performance: See
openspec/specs/simulation-core.md - Architecture: See
docs/architecture/ - Specifications: See
openspec/specs/ - Development: See
AGENTS.mdandCONTRIBUTING.md
For questions about this project:
- Check the relevant OpenSpec spec in
openspec/specs/ - Review documentation in
docs/ - Search the GitHub repository
- Open an issue on GitHub
Last Updated: 2024-04-24 Version: 2.0.0 Status: Archive-ready