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.
- docs/agents.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .cursor/rules/fenic.mdcCursor rule
- fenic-mechanicsSkill
- update-fenic-skillSkill
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
- Very specific: line 45
When adding, renaming, or removing a docs page, update that list.
≈ “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.
Files
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 yourfc.*symbols against the installed fenic and flags namespace/import mistakes.
Must-knows
import fenic as fc; everything is flat onfc. There is nofenic.functions, nofenic.api.types, and no unifiedOpenAIModelConfig.- Function namespaces:
fc.text/fc.json/fc.markdown/fc.semantic/fc.embedding/fc.dt, andfc.arrfor array ops (⚠️fc.arrayis the array-literal constructor, not the ops namespace). explode/unnestare DataFrame methods —df.explode("c"),df.unnest("c")— neverfc.explode.- Language vs embedding models are separate classes (
fc.OpenAILanguageModelvsfc.OpenAIEmbeddingModel) in separate config keys (language_models/embedding_models);default_language_model/default_embedding_modelare required when more than one is registered. Anthropic uses splitinput_tpm/output_tpm, not a singletpm. - Semantic templates use Jinja2
{{ var }}+ matching column kwargs:fc.semantic.predicate("... {{ x }} ...", x=fc.col("x")).parse_pdfisfc.semantic.parse_pdf(undersemantic, notmarkdown). - Local extras for heavier operators:
fc.semantic.parse_pdfandsession.read.pdf_metadataneedfenic[pdf];df.semantic.with_cluster_labelsneedsfenic[cluster];df.semantic.sim_joinneedsfenic[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)returnsend - 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.
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
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.

