FStar: Agent for Claude Code

.github/agents/FStarDev.md

FStarDev is an agent for Claude Code from FStarLang/FStar. It costs 19 tokens per session (5,111 once invoked), scanned A, original, Apache-2.0.

A coding agent for the F* programming language compiler. It handles compiler source changes, the multi-stage bootstrap build, incremental rebuilding, and testing across compiler subsystems.

In plain words
What is it for?
Use it for F* compiler engineering, including parser, typechecker, SMT encoding, tactics, extraction, build-system, bootstrap, and snapshot tasks.
Why use it?
It helps developers work through a compiler codebase where changes may affect parsing, type checking, code generation, build stages, or the Pulse checker.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md).

This is FStarLang/FStar's own configuration. It tells Claude Code how to work on FStar itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything FStar configures →

About the project

F* is a proof-oriented programming language for writing software alongside formal specifications and machine-checked proofs. It is used for verified programming and theorem proving, with editor support for interactive development. The catalogue includes an agent that helps work with F* and Pulse.

FStarLang/FStar · 3,131 stars · on GitHub · fstar-lang.org

Reuse

Borrowing it

Nothing to install: this file belongs to FStarLang/FStar. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/FStarLang/FStar/master/.github/agents/FStarDev.md
Clone the repo
git clone --depth 1 https://github.com/FStarLang/FStar

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for FStarDev

README.md
[![agentmods](https://agentmods.dev/badge/agents/fstarlang/fstar/fstardev/github.svg)](https://agentmods.dev/agents/fstarlang/fstar/fstardev)
Your own site
<a href="https://agentmods.dev/agents/fstarlang/fstar/fstardev"><img src="https://agentmods.dev/badge/agents/fstarlang/fstar/fstardev/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for FStarDev

Your own site · 80×15
<a href="https://agentmods.dev/agents/fstarlang/fstar/fstardev"><img src="https://agentmods.dev/badge/agents/fstarlang/fstar/fstardev.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 19 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 5,111 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00019 $0.05111
Opus 5.5 $0.00008 $0.02044
Sonnet 5.5 $0.00004 $0.01022
Haiku 4.5 $0.00002 $0.00511

Measured 12d ago against content hash 473272c2d3f0, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

FStarDev scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.github/agents/FStarDev.md · 459 lines

How it starts

The opening of the file, as written. The whole thing — 459 lines — stays where its author put it; the contents beside it link to each section on GitHub.

FStarDev Agent

Agent Identity

An expert F* compiler developer. This agent modifies the F* compiler sources, navigates the multi-stage bootstrap build, and validates changes through incremental rebuilds and testing. It covers compiler internals (parser, typechecker, extraction, SMT encoding, tactics), the Pulse checker plugin (stage 3), the build system (Make + dune), and the bootstrap/snapshot workflow.

Repository Layout

FStar/
├── src/                    # F* compiler sources (written in F*)
│   ├── basic/              # Core utilities, options, errors, platform
│   ├── syntax/             # AST definitions, free variables, substitution
│   ├── parser/             # Surface syntax AST, dependency analysis
│   ├── tosyntax/           # Desugaring: surface AST → core AST
│   ├── typechecker/        # Type inference, checking, normalization, NBE
│   ├── smtencoding/        # Encoding to SMT (Z3) queries
│   ├── tactics/            # Tactic engine, metaprogramming primitives
│   ├── reflection/         # Reflection API builtins
│   ├── interactive/        # IDE protocol, incremental checking
│   ├── prettyprint/        # A pretty-printer library (François Pottier's pprint)
│   ├── fstar/              # Top-level driver (FStarC.Main, FStarC.Universal)
│   ├── tests/              # Compiler unit tests (OCaml)
│   ├── ml/                 # Hand-written OCaml: system utils
│   ├── class/              # Typeclasses used in the compiler
│   ├── data/               # Data structures used in the compiler
├── ulib/                   # F* standard library (verified .fst/.fsti files)
├── stage0/                 # OCaml snapshot: starting point for bootstrapped build.
├── stage1/                 # Built from: stage0 checks+extracts src/ → OCaml → dune build
├── stage2/                 # Built from: stage1 checks+extracts src/ → OCaml → dune build
├── stage3/                 # Stage2 + Pulse plugin linked in
├── pulse/                  # Pulse language implementation
│   ├── src/checker/        # Pulse typechecker (F* source, extracted to OCaml plugin)
│   ├── src/syntax_extension/ # Pulse syntax desugaring; F* implementations of
│   │                       #   Pulse.RuntimeUtils / Pulse.Extract.CompilerLib
│   ├── lib/                # Pulse standard library (common/, pulse/)
│   ├── mk/                 # Build infrastructure (test.mk, common.mk, locate.mk)
│   ├── test/               # Pulse tests
│   └── share/pulse/examples/ # Pulse examples
├── karamel/                # KaRaMeL submodule (F*/Pulse → C extraction)
├── mk/                     # Top-level build infrastructure makefiles
├── tests/                  # F* integration tests
├── examples/               # F* examples
└── doc/                    # Documentation, book

Read the full file on GitHub · 459 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago Changed · +1 lines 473272c2d3f0
  2. 19d ago Changed · -1 lines 887ec3ae20ce
  3. 24d ago Changed · -1 lines 13abc1f6a5df
  4. 2mo ago First seen · 460 lines · 19 tokens per session scan A a60bf3e09747

Subscribe to this mod's changes

FStarDev is an agent published in the GitHub repository FStarLang/FStar (3,131 stars, last pushed today), licensed Apache-2.0. It adds 19 tokens to every session and 5,111 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other agents, from other repositories

fixture-reviewer

Checks .test fixtures for drift after a compiler change.

phel-lang/phel-lang · 15 tokens

spring-boot-unit-testing-expert

Provides expert unit testing capability with Spring Test, JUnit 5, and Mockito for Spring Boot applications. Handles comprehensive test strategies, test architecture, and testing best practices. Use proactively when writing unit tests, improving test coverage, or reviewing testing strategies.

giuseppe-trisciuoglio/developer-kit · 58 tokens

func-verifier

RAT audit protocol (condensed; dev source: plugindocs/agent-lib/audit-output-protocol.md — plugin-internal, do NOT Read it at runtime).

babyworm/rtl-agent-team · 43 tokens

p5s-func-verify-orchestrator

Tier 3 functional verification orchestrator. Manages pipelined cocotb TB generation, multi-seed parallel regression, incremental coverage analysis, waveform failure diagnosis, and Requirement Traceability Matrix generation.

babyworm/rtl-agent-team · 51 tokens

ppa-optimizer-dc-orchestrator

Coordinator for one PPA optimization iteration. Sequences DC synthesis, report parsing, RTL patching, equivalence, smoke regression, delta computation, and convergence verdict. Self-contained; spawned by rtl-ppa-optimize-dc or rat-ultraloop-ppa skill.

babyworm/rtl-agent-team · 64 tokens

symfony-tdd-coach

Guides TDD workflow for Symfony projects using Pest PHP or PHPUnit. Drives strict RED-GREEN-REFACTOR cycles with proper test isolation, Foundry factories, and regression protection. Use when writing tests, adding test coverage, or practicing TDD.

dev-toolings/superpowers-symfony · 58 tokens