Skip to content

docs: add AGENTS.md for coding agents - #3

Merged
fr3shw3b merged 3 commits into
mainfrom
docs/agents-md
Nov 22, 2026
Merged

fr3shw3b merged 3 commits into
mainfrom
docs/agents-md

Conversation

@fr3shw3b

@fr3shw3b fr3shw3b commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Adds an AGENTS.md for coding agents, with a one-line CLAUDE.md that imports it. It also fixes the pre-commit hook's first line and a few things in CONTRIBUTING.md.

Reading order

  1. .githooks/pre-commit (first commit): the first line was ##!/bin/bash, a comment, so git ran the hook with sh.
  2. CONTRIBUTING.md (second commit):
    • The prerequisites now list staticcheck for the pre-commit hook, and say that Node and Yarn are for the commit-msg hook.
    • The commit scope section said blueprint; commits here take no scope.
    • The release steps push the one new tag rather than git push --tags.
  3. AGENTS.md (third commit). Compatibility matters most:
    • Breaking changes have shipped as patch releases so far, and the file records that rather than setting a policy.
    • It lists the known LSP field-name deviations.

Found while writing this, not changed here

  • Wrong JSON tags in lsp_3_17:
    • ServerCapabilities.NotebookDocumentSync is tagged notebookSync. The initialize result therefore advertises notebook sync under a key clients don't read, though decoding uses the right key.
    • TextDocumentClientCapabilities.Diagnostics is tagged diagnostics, so the client's pull-diagnostics capability (diagnostic) is never decoded.
    • DocumentRangeFormattingParams.Range is tagged Range.
  • Missing method: window/showDocument has a client capability but no method, params or Dispatcher support.
  • README example: the root README.md example declares package lsp with a func main(), and uses lsp_3_17 names without importing the package. It doesn't compile as shown.

Not verified

Tests weren't run; the pre-commit lint passed on each commit.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Documentation
    • Updated contributor guidance for development prerequisites, commit conventions, and version-tag releases.
    • Added repository guidance covering development checks, API and protocol compatibility, and release conventions.
  • Chores
    • Updated the pre-commit hook to use Bash, improving compatibility when the hook runs.

fr3shw3b and others added 3 commits November 22, 2026 15:34
The first line was ##!/bin/bash, a comment, so git fell back to sh.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
staticcheck is needed for the pre-commit hook and Node and Yarn for the
commit-msg hook, commits take no scope, and a release pushes its one tag
rather than every local tag.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Adds AGENTS.md, and a CLAUDE.md that imports it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Repository guidance and contribution instructions are updated. The pre-commit hook now has an active Bash shebang.

Changes: Repository workflow

Layer / File(s) Summary
Development and contribution workflow
AGENTS.md, CLAUDE.md, .githooks/pre-commit, CONTRIBUTING.md
Adds repository guidance and references it from CLAUDE.md. Activates the pre-commit hook’s Bash shebang. Updates documented tool prerequisites, release tagging instructions, and commit-scope guidance.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Other

Merge Risk: Minimal · up to 1db73

This PR adds contributor and agent guidance, corrects docs, and fixes the pre-commit hook's shebang so it runs with Bash. It has no runtime impact on the library. The CI job currently fails on a staticcheck toolchain mismatch in the workflow configuration, which this change does not touch.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title "docs: add AGENTS.md for coding agents" matches the main change. The PR adds AGENTS.md and a one-line CLAUDE.md that imports it. The PR also fixes the pre-commit shebang and updates CONTRIBU…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "docs: add AGENTS.md for coding agents" matches the main change. The PR adds AGENTS.md and a one-line CLAUDE.md that imports it. The PR also fixes the pre-commit shebang and updates CONTRIBUTING.md, which the title does not mention. That is expected for a title that names the primary change.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
Fix failing CI checks

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 00ec11a8-dba1-4997-b159-74beb7bedaa6
Commits

Reviewing files that changed from the base of the PR and between 40cb77d and 1db7381.

Files selected for processing: 4

  • .githooks/pre-commit
  • AGENTS.md
  • CLAUDE.md
  • CONTRIBUTING.md

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@fr3shw3b
fr3shw3b merged commit 1563e37 into main Nov 22, 2026
1 of 2 checks passed
@fr3shw3b
fr3shw3b deleted the docs/agents-md branch November 22, 2026 15:40
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.

1 participant