Skip to content

Add agnix language server#4743

Merged
MrSubidubi merged 13 commits intozed-industries:mainfrom
avifenesh:add-agnix-extension
Feb 25, 2026
Merged

Add agnix language server#4743
MrSubidubi merged 13 commits intozed-industries:mainfrom
avifenesh:add-agnix-extension

Conversation

@avifenesh
Copy link
Contributor

Adds the Agnix extension — a linter for AI agent configurations (CLAUDE.md, AGENTS.md, SKILL.md, .mdc rules, MCP tools, hooks, and plugins).

What it does

Agnix provides real-time diagnostics, quick-fix code actions, and hover documentation for agent configuration files via the agnix-lsp language server. It validates across 100 rules in 15 categories covering Claude Code, GitHub Copilot, Cursor, Cline, and other AI coding tools.

Extension details

  • ID: agnix
  • Languages: Markdown, JSON, MDC
  • LSP: agnix-lsp (auto-downloaded from GitHub releases)
  • License: MIT OR Apache-2.0
  • Path: editors/zed

@cla-bot
Copy link

cla-bot bot commented Feb 6, 2026

We require contributors to sign our Contributor License Agreement, and we don't have @avifenesh on file. You can sign our CLA at https://zed.dev/cla. Once you've signed, post a comment here that says '@cla-bot check'.

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: db6ae1ae50

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@avifenesh
Copy link
Contributor Author

@cla-bot check

@cla-bot
Copy link

cla-bot bot commented Feb 6, 2026

We require contributors to sign our Contributor License Agreement, and we don't have @avifenesh on file. You can sign our CLA at https://zed.dev/cla. Once you've signed, post a comment here that says '@cla-bot check'.

@cla-bot
Copy link

cla-bot bot commented Feb 6, 2026

The cla-bot has been summoned, and re-checked this pull request!

Move the agnix entry from the end of .gitmodules to its correct
alphabetical position (between agda and aiken) to satisfy the
sorted-order invariant enforced by CI.
@cla-bot cla-bot bot added the cla-signed label Feb 6, 2026
@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.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@MrSubidubi MrSubidubi changed the title Add agnix extension Add agnix language server Feb 24, 2026
Copy link
Member

@MrSubidubi MrSubidubi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this!

Can we remove the mdc language here and everything related please and instead add this as a recognized Markdown suffix in core? Otherwise looks good!

Per review feedback, the MDC language definition was removed from the
extension. The .mdc suffix will be added as a recognized Markdown
suffix in Zed core instead.
@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.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@avifenesh
Copy link
Contributor Author

Done! I've:

  1. Removed the mdc language definition and everything related from the extension (updated submodule now points to agent-sh/agnix@d22a5cf)
  2. Opened a separate PR to add .mdc as a recognized Markdown suffix in core: languages: Add .mdc as a recognized Markdown file suffix zed#50074

MrSubidubi pushed a commit to zed-industries/zed that referenced this pull request Feb 25, 2026
Highlight files ending in `.mdc` as Markdown.

The `.mdc` extension is used by Cursor for its Markdown-based rule files
(`.cursor/rules/*.mdc`). These files are standard Markdown with optional
YAML frontmatter, which the existing Markdown grammar already handles
well. Adding `.mdc` to the recognized suffixes ensures proper syntax
highlighting out of the box.

This was requested during review of the agnix extension PR
([zed-industries/extensions#4743](zed-industries/extensions#4743))
by @MrSubidubi as the preferred approach over defining a custom MDC
language in an extension.

Release Notes:

- Added `.mdc` as a recognized Markdown file extension.
@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.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@avifenesh
Copy link
Contributor Author

Done! I've:

  1. Removed the mdc language definition and everything related from the extension (updated submodule now points to agent-sh/agnix@d22a5cf)
  2. Opened a separate PR to add .mdc as a recognized Markdown suffix in core: languages: Add .mdc as a recognized Markdown file suffix zed#50074

@MrSubidubi

@MrSubidubi MrSubidubi added the missing-license The extension is missing a compatible license label Feb 25, 2026
Copy link
Member

@MrSubidubi MrSubidubi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lastly, you'll need to add a license to the directory of the extension (or alternatively, soft-link your existing license into that directory). Thanks!

@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.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@avifenesh
Copy link
Contributor Author

Added LICENSE-MIT and LICENSE-APACHE to the extension directory (via agent-sh/agnix#560) and updated the submodule.

@MrSubidubi should be good to go now.

@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.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@chatgpt-codex-connector

This comment was marked as spam.

@MrSubidubi MrSubidubi added this pull request to the merge queue Feb 25, 2026
Merged via the queue into zed-industries:main with commit 26dc5f7 Feb 25, 2026
4 checks passed
PasqualeMainolfi pushed a commit to PasqualeMainolfi/extensions that referenced this pull request Feb 26, 2026
Adds the [Agnix](https://github.com/avifenesh/agnix) extension — a
linter for AI agent configurations (CLAUDE.md, AGENTS.md, SKILL.md, .mdc
rules, MCP tools, hooks, and plugins).

## What it does

Agnix provides real-time diagnostics, quick-fix code actions, and hover
documentation for agent configuration files via the `agnix-lsp` language
server. It validates across 100 rules in 15 categories covering Claude
Code, GitHub Copilot, Cursor, Cline, and other AI coding tools.

## Extension details

- **ID**: `agnix`
- **Languages**: Markdown, JSON, MDC
- **LSP**: `agnix-lsp` (auto-downloaded from GitHub releases)
- **License**: MIT OR Apache-2.0
- **Path**: `editors/zed`

---------

Co-authored-by: Finn Evers <finn.evers@outlook.de>
tahayvr pushed a commit to tahayvr/zed that referenced this pull request Mar 4, 2026
…tries#50074)

Highlight files ending in `.mdc` as Markdown.

The `.mdc` extension is used by Cursor for its Markdown-based rule files
(`.cursor/rules/*.mdc`). These files are standard Markdown with optional
YAML frontmatter, which the existing Markdown grammar already handles
well. Adding `.mdc` to the recognized suffixes ensures proper syntax
highlighting out of the box.

This was requested during review of the agnix extension PR
([zed-industries/extensions#4743](zed-industries/extensions#4743))
by @MrSubidubi as the preferred approach over defining a custom MDC
language in an extension.

Release Notes:

- Added `.mdc` as a recognized Markdown file extension.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed missing-license The extension is missing a compatible license needs author action

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants