AGENTS.md · bosun-ai/swiftide
AGENTS.md from bosun-ai/swiftide: 36 lines covering Project Structure & Module Organization, Build, Test, and Development Commands, Coding Style & Naming…
Template by bosun-ai
Install
Works with Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Claude Code. Read the repository before you give any tool access to your data.
curl -fsSL https://raw.githubusercontent.com/bosun-ai/swiftide/master/AGENTS.md -o AGENTS.md
Read it and adapt it to your project before use.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: code-generation, testing
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
What's in it
An AGENTS.md file: instructions coding agents (Codex, Cursor, Copilot, Gemini CLI and others) read before working in a repo.
- For
- Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Claude Code
- Length
- 36 lines
- File
AGENTS.md
Sections
- Project Structure & Module Organization
- Build, Test, and Development Commands
- Coding Style & Naming Conventions
- Testing Guidelines
- Commit & Pull Request Guidelines
- Tooling & Environment Notes
First lines (shown under the repo's MIT license)
# Repository Guidelines ## Project Structure & Module Organization Swiftide is a Rust workspace driven by the library in `swiftide/`, with supporting crates such as `swiftide-core/` for shared primitives, `swiftide-agents/` for agent orchestration, `swiftide-indexing/` and `swiftide-query/` for pipeline flows, and `swiftide-integrations/` for external connectors. Shared fixtures live in `swiftide-test-utils/`, while `examples/` hosts runnable demos and `benchmarks/` tracks performance scenarios. Static assets (logos and diagrams) are under `images/`. ## Build, Test, and Development Commands - `cargo check --workspace --all-features` quickly verifies the entire workspace compiles with all feature flags enabled. - `cargo build --workspace --all-features` compiles every crate and surfaces feature-gating issues early. - `cargo check -p swiftide-agents` is a fast way to probe agent changes before touching the rest of the workspace. - `cargo +nightly fmt --all` applies the repo `rustfmt.toml` (comment wrapping requires nightly); use `cargo +nightly fmt --all -- --check` to mirror CI formatting validation. - `cargo clippy --workspace --all-targets --all-features -- -D warnings` mirrors the main lint job and keeps us aligned with the pedantic lint profile baked into `Cargo.toml`. - `cargo test -j 2 --tests --all-features --no-fail-fast` mirrors the main CI test job for unit and integration tests. - `cargo test --doc --all-features --no-fail-fast` mirrors the docs test job in CI. - `cargo hack check --each-feature --no-dev-deps` mirrors the Cargo Hack feature-matrix check run in CI. - `typos` mirrors the spelling check run in CI. - `cargo test --workspace` is still useful locally when you want a broader default test sweep; use `RUST_LOG=info` if you need verbose diagnostics. - Snapshot updates flow through `cargo insta review` after tests rewrite `.snap` files. ## Coding Style & Naming Conventions Follow Rust 2024 idioms with four-space indentation. Public APIs should embrace builder patterns and the naming guidance from the Rust API Guidelines: `snake_case` for functions, `UpperCamelCase` for types, and `SCREAMING_SNAKE_CASE` constants. Avoid `unsafe` blocks—`Cargo.toml` forbids them at the workspace level. Keep comments concise so `wrap_comments = true` can format them within 100 columns. ## Testing Guidelines Prefer focused crate runs such as `cargo test -p swiftide-integrations` when iterating, and opt into `-- --ignored` for heavier scenarios. Integration tests rely on `testcontainers`, so ensure Docker is available; keep fixtures inside `swiftide-test-utils/` to reuse container helpers. For `insta` snapshots, commit reviewed `.snap.new` diffs only after `cargo insta review` removes pending files. ## Commit & Pull Request Guidelines Commits follow conventional syntax (`feat(agents): …`, `fix(indexing): …`) with a lowercase imperative summary. Pull request titles are also checked against the conventional commits format in CI, and titles ending in `!` receive the `breaking change` label automatically. Each PR should describe the change, link any GitHub issue, note API or schema impacts, and include before/after traces or logs when behavior changes. Update docs (README, website, or inline rustdoc) and add tests or benchmarks alongside functional work. Before requesting review, run the full lint and test suite listed above. ## Tooling & Environment Notes The workspace pins `stable` in `rust-toolchain.toml`; use the same channel unless a nightly tool is explicitly required. Dependency hygiene is enforced with `cargo deny --workspace`, and spelling checks may run via `typos`. Store local credentials with `mise` or environment variables—never commit secrets.
Signals
- Stars
- 795
- Forks
- 71
- Open issues
- 5
- Last commit (this folder)
- Apr 9, 2026 (6 months ago)
- Last release
- Oct 14, 2026 (15 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/bosun-ai/swiftide
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Cite this page
AGENTS.md · bosun-ai/swiftide. Agent Mart. https://agentmart.dev/templates/bosun-ai-swiftide-agents-md (last updated 2026-10-24)