agentleFS
typedef-aitypedef-ai/fenic/AGENTS.md

fenic

AGENTS.md673 starsChanged 5 months agoApache-2.0View on GitHub

fenic is a PySpark-style semantic DataFrame library (import fenic as fc). You likely know its DataFrame surface; below are the mechanics that DON'T match PySpark/pandas intuition. (Developing fenic itself? See CLAUDE.md.) After writing or editing any fenic pipeline, run fenic check <file> — a static lint (no execution) that resolves your fc.* symbols against the installed fenic and flags namespace/import mistakes. - import fenic as fc; everything is flat on fc. There is no fenic.functions, no fenic.api.types, and no unified…

  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.

    Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

  • In this repository5 other files it gives its agents.

The file

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

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    When adding, renaming, or removing a docs page, update that list.

    line 45

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.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
AGENTS.md

AGENTS.md — writing fenic

fenic is a PySpark-style semantic DataFrame library (import fenic as fc). You likely know its DataFrame surface; below are the mechanics that DON'T match PySpark/pandas intuition. (Developing fenic itself? See CLAUDE.md.)

After writing or editing any fenic pipeline, run fenic check <file> — a static lint (no execution) that resolves your fc.* symbols against the installed fenic and flags namespace/import mistakes.

Must-knows

  • import fenic as fc; everything is flat on fc. There is no fenic.functions, no fenic.api.types, and no unified OpenAIModelConfig.
  • Function namespaces: fc.text / fc.json / fc.markdown / fc.semantic / fc.embedding / fc.dt, and fc.arr for array ops (⚠️ fc.array is the array-literal constructor, not the ops namespace).
  • explode / unnest are DataFrame methods — df.explode("c"), df.unnest("c") — never fc.explode.
  • Language vs embedding models are separate classes (fc.OpenAILanguageModel vs fc.OpenAIEmbeddingModel) in separate config keys (language_models / embedding_models); default_language_model / default_embedding_model are required when more than one is registered. Anthropic uses split input_tpm / output_tpm, not a single tpm.
  • Semantic templates use Jinja2 {{ var }} + matching column kwargs: fc.semantic.predicate("... {{ x }} ...", x=fc.col("x")). parse_pdf is fc.semantic.parse_pdf (under semantic, not markdown).
  • Local extras for heavier operators: fc.semantic.parse_pdf and session.read.pdf_metadata need fenic[pdf]; df.semantic.with_cluster_labels needs fenic[cluster]; df.semantic.sim_join needs fenic[sim-join].

Traps fenic check can't catch — get these right by hand

  • fc.json.jq(col, q) returns an array → .get_item(0) before a scalar .cast.
  • A semantic template with single braces {x} is not interpolated (silent).
  • fc.dt.datediff(end, start) returns end - start (argument order matters).
  • fc.dt.to_timestamp(col, fmt) takes Spark/Java patterns (yyyy-MM-dd HH:mm:ss), not Python %-tokens.

Documentation maintenance

Authored public documentation pages must be listed under extra.llms.sections in mkdocs.yml; generated API-reference pages are included automatically. When adding, renaming, or removing a docs page, update that list. Everything under docs/ is public; put internal design and planning material under specs/. Run just docs-check to validate the sitemap, metadata, Markdown alternatives, and LLM-facing assets before committing.

Full detail

.claude/skills/fenic-mechanics/ — SKILL.md (rules), gotchas.md (the "wrote X, meant Y" table), reference/ (full signatures, generated per version). Regenerate after a fenic upgrade with the update-fenic-skill skill.

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.