Conversation
Signed-off-by: Gabriel Nordeborn <gabbe.nord@gmail.com>
Signed-off-by: Gabriel Nordeborn <gabbe.nord@gmail.com>
Signed-off-by: Gabriel Nordeborn <gabbe.nord@gmail.com>
Signed-off-by: Gabriel Nordeborn <gabbe.nord@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Heavy WIP/POC and vibe coded, in an attempt to discover interesting and useful things we can do to help AI, at various levels and in various levels of "aggressiveness".
Add AI-oriented
rescript-toolscommandsCommands
lint: Runs configurable AI-oriented lint checks on a file or project root using source and typed information.rewrite: Rewrites source into a narrower agent-oriented normal form, with optional diff output.active-rules: Lists lint and rewrite rules, whether they are active, and how they are configured.show: Returns hover-style semantic information for a symbol path.find-references: Finds references from either a symbol path or a source location.Initial rules
forbidden-reference: Bans using configured module, value, and type references.single-use-function: Reports local helper functions that are defined once and only used once.alias-avoidance: Reports local aliases likelet f = Module.f,type t = Module.t, andmodule M = Long.Path. Prefer the fully qualified reference instead.forbidden-source-root-reference: Reports value and type references whose declarations come from configured source roots such as generated code folders.preferred-type-syntax: Reports non-canonical type spellings likeDict.t<_>in favor of builtin syntax likedict<_>.prefer-switch: Rewrites eligibleif/else ifchains and ternaries into canonicalswitchforms.no-optional-some: Rewrites redundant~label=?Some(expr)optional-argument wrapping into the direct labeled form.preferred-type-syntax: Rewrites supported non-canonical type spellings likeDict.t<_>into builtin syntax likedict<_>.Support
.rescript-lint.jsonconfig support, a shipped JSON schema, AI tooling docs, and golden tests for the new command surface