fess CLAUDE.md

Project instructions for Fess, an enterprise search server that crawls websites, files, and data stores, indexes their contents, and provides a web and API search interface.

In plain words
What is it for?
Use them when configuring, building, testing, or changing Fess's search, crawling, administration, authentication, or internationalisation features.
Why use it?
They document the Java technology stack and the setup, database-code generation, build, and testing commands needed to develop it.

Instructions file

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/codelibs/fess/claude-md
Clone the repo
git clone --depth 1 https://github.com/codelibs/fess
Per session 1,421 This file is loaded in full into every session.
When invoked 1,421 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.01421 $0.01421
Opus 5 $0.00711 $0.00711
Sonnet 5 $0.00284 $0.00284
Haiku 4.5 $0.00142 $0.00142

Measured 2d ago against content hash 9d606cb11a42, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

fess CLAUDE.md 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 2d 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.

CLAUDE.md · 99 lines

How it starts

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

CLAUDE.md

This file provides guidance to Claude Code when working with this repository.

Project Overview

Fess is an enterprise search server built on OpenSearch. It is a Java web application that crawls and indexes documents from web sites, file systems, and data stores, and provides full-text search through a web UI and a REST API. Licensed under Apache License 2.0.

Key capabilities: full-text search, multi-source crawling, multi-format document support (Office, PDF, etc.), an admin GUI, SSO (LDAP, OIDC, SAML, SPNEGO, Entra ID), and i18n (20+ languages).

Tech Stack

Component Technology
Web framework LastaFlute (MVC)
DI container Lasta Di
Data access DBFlute (type-safe access to OpenSearch)
Search engine OpenSearch
App server Embedded Tomcat
Crawler fess-crawler
Scheduler Lasta Job
Testing JUnit 4/5, UTFlute, REST Assured

Development Commands

# Setup
mvn antrun:run          # Download OpenSearch plugins (required before first build)
mvn dbflute:download    # One-time DBFlute setup
mvn dbflute:freegen     # Regenerate DBFlute source

# Build
mvn package             # Build (use `mvn clean package` for a clean build)
mvn rpm:rpm             # Build .rpm package
mvn jdeb:jdeb           # Build .deb package

# Test
mvn test                            # Unit tests (*Test.java)
mvn test -Dtest=ClassName           # Single unit test
mvn test -P integrationTests -Dtest.fess.url="http://localhost:8080" -Dtest.search_engine.url="http://localhost:9201"

# Format (run before committing)
mvn formatter:format
mvn license:format

# Run
./bin/fess              # From a built package, or run org.codelibs.fess.FessBoot from the IDE
# Access http://localhost:8080/ (admin UI: admin/admin)

Fess is packaged as a WAR. To install it as a jar so plugins can resolve it as a dependency, temporarily change <packaging>war</packaging> to jar in pom.xml, run mvn clean install -DskipTests, then revert.

Read the full file on GitHub · 99 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. 2d ago First seen · 99 lines · 1,421 tokens per session scan A 9d606cb11a42

Subscribe to this mod's changes

fess CLAUDE.md is an instructions file published in the GitHub repository codelibs/fess (1,128 stars, last pushed 3d ago), licensed Apache-2.0. It adds 1,421 tokens to every session, about $0.0071 per session on Opus 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.