agentleFS
MicrosoftKnown publishermicrosoft/FluidFramework/server/gitrest/CLAUDE.md

FluidFramework / gitrest

CLAUDE.md4.9k starsChanged 4 months agoMITView on GitHub

GitRest provides a REST API to Git repositories, modeled after GitHub's REST APIs. It is part of the Fluid Framework server infrastructure. Endpoints follow the GitHub API pattern:

  • Installs packages

Trending

Less talk lately.about the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 2 mentionsMar 2026: 1 mentionApr 2026: 1 mentionMay 2026: 3 mentionsJun 2026: 21 mentionsJul 2026: 1 mentionAug 2026: 0 mentionsSep 2026: 0 mentionsOct 2026: 2 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the microsoft/FluidFramework repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about microsoft/FluidFramework

The biggest 5 of 46 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 46

Talked about on GitHub and Hacker News (46 times).

On GitHub · 42

37 more on GitHub

The file

We split this CLAUDE.md into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Follow the parent repo's CLAUDE.md: use string literal assert messages (not hex codes) for new asserts.

    line 87

≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

GitRest — Agent Context

Overview

GitRest provides a REST API to Git repositories, modeled after GitHub's REST APIs. It is part of the Fluid Framework server infrastructure.

Project Structure

  • Release group root: server/gitrest/
  • Packages:
    • @fluidframework/gitrest (packages/gitrest/) — Entry point of the GitRest service (src/www.ts)
    • @fluidframework/gitrest-base (packages/gitrest-base/) — Base library: routes, utils, runners, storage, and Redis integration
  • Workspace: pnpm workspaces (pnpm-workspace.yaml)

Key Source Layout (gitrest-base)

  • src/routes/git/ — Git object REST endpoints: blobs, commits, refs, tags, trees
  • src/routes/repository/ — Repository-level endpoints: commits, contents
  • src/routes/summaries.ts — Summary upload/download
  • src/utils/ — Core utilities: filesystem abstractions, isomorphic-git manager, Redis FS, whole-summary read/write
  • src/runner.ts / src/runnerFactory.ts — Service runner
  • src/app.ts — Express app setup
  • src/test/ — Mocha tests

Build & Dev

# Install dependencies
pnpm install

# Build all packages
pnpm run build

# Build without linting (faster)
pnpm run build:compile

# Lint
pnpm run lint
pnpm run lint:fix

# Run tests (gitrest-base only)
cd packages/gitrest-base && npm test

# Test with coverage
cd packages/gitrest-base && npm run test:coverage

# Start the service
npm run start

Docker

# Build container (run from server/gitrest/)
docker build -t gitrest . --build-context root=../..

# Dev mode with docker-compose
npm run start:dev

# Run tests in container
docker run -t gitrest npm test

Tech Stack

  • Runtime: Node.js, Express
  • Git backend: isomorphic-git
  • Storage: Local filesystem, Redis (via redisFs), in-memory (memfs)
  • Testing: Mocha, Sinon, Supertest, c8 (coverage)
  • Linting: ESLint + Prettier
  • Build: TypeScript, concurrently

REST API Pattern

Endpoints follow the GitHub API pattern:

  • POST /repos/:owner/:repo/git/blobs — Create blob
  • POST /repos/:owner/:repo/git/trees — Create tree
  • POST /repos/:owner/:repo/git/commits — Create commit
  • POST /repos/:owner/:repo/git/refs — Create ref
  • PATCH /repos/:owner/:repo/git/refs/:ref — Update ref
  • DELETE /repos/:owner/:repo/git/refs/:ref — Delete ref
  • POST /repos/:owner/:repo/git/tags — Create tag

Conventions

  • Follow the parent repo's CLAUDE.md: use string literal assert messages (not hex codes) for new asserts.
  • API report files (*.api.md) are generated — never hand-edit them.
  • TypeScript strict mode. ESLint config extends @fluidframework/eslint-config-fluid.
  • Prettier config is at the release group root (prettier.config.cjs).

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.