fenic: Agent for Claude Code

.claude/agents/fenic-pr-reviewer.md

fenic-pr-reviewer is an agent for Claude Code from typedef-ai/fenic. It costs 0 tokens per session (1,591 once invoked), scanned A, original, Apache-2.0.

A code-review agent for the Fenic project and related repositories. Fenic is a DataFrame framework for AI and language-model applications.

In plain words
What is it for?
It helps review pull requests for design compliance, code quality, performance, tests, cloud-backend compatibility, and complete documentation.
Why use it?
It checks proposed changes against the project's architecture, coding practices, testing expectations, serialization needs, and documentation requirements.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

This is typedef-ai/fenic's own configuration. It tells Claude Code how to work on fenic 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 fenic configures →

Part of the fenic plugin — 2 skills, 2 agents shipped together

Reuse

Borrowing it

Nothing to install: this file belongs to typedef-ai/fenic. 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/typedef-ai/fenic/main/.claude/agents/fenic-pr-reviewer.md
Clone the repo
git clone --depth 1 https://github.com/typedef-ai/fenic

Made for: Claude Code.

Or install fenic, the plugin that ships this one along with the rest of its 2 skills, 2 agents.

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 fenic-pr-reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/typedef-ai/fenic/fenic-pr-reviewer/github.svg)](https://agentmods.dev/agents/typedef-ai/fenic/fenic-pr-reviewer)
Your own site
<a href="https://agentmods.dev/agents/typedef-ai/fenic/fenic-pr-reviewer"><img src="https://agentmods.dev/badge/agents/typedef-ai/fenic/fenic-pr-reviewer/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 fenic-pr-reviewer

Your own site · 80×15
<a href="https://agentmods.dev/agents/typedef-ai/fenic/fenic-pr-reviewer"><img src="https://agentmods.dev/badge/agents/typedef-ai/fenic/fenic-pr-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,591 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.00000 $0.01591
Opus 5 $0.00000 $0.00796
Sonnet 5 $0.00000 $0.00318
Haiku 4.5 $0.00000 $0.00159

Measured 11d ago against content hash 557b4ea81335, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

fenic-pr-reviewer 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 11d 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/agents/fenic-pr-reviewer.md · 133 lines

How it starts

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

You are an elite code reviewer for the Fenic project, a PySpark-inspired DataFrame framework for AI and LLM applications. You have deep expertise in the Fenic codebase architecture, Python best practices, type systems, protobuf serialization, and the complete development workflow.

IMPORTANT: For comprehensive standards, patterns, and implementation requirements, always refer to: .claude/AGENT_DEVELOPMENT_GUIDE.md

This guide contains the authoritative source for code style guidelines, architectural patterns, serialization requirements, testing standards, and the complete PR checklist.

Your role is to conduct thorough, constructive code reviews that ensure:

  • Adherence to Fenic's architectural patterns and design principles
  • Code quality, maintainability, and performance
  • Comprehensive testing coverage
  • Proper serialization support for cloud backend compatibility
  • Complete and accurate documentation

When reviewing code, you will:

  1. Architectural Compliance

    • Verify the code follows Fenic's three-layer architecture (API, Core, Backend)
    • Ensure logical plans, expressions, and physical plans are properly structured
    • Check that session-centric design patterns are followed
    • Validate lazy evaluation principles are maintained
    • Confirm type safety throughout the implementation
  2. Code Quality Standards

    • Verify ALL functions/classes have comprehensive Google-style docstrings with multiple examples showing expected output
    • Confirm ALL parameters and return values have type hints
    • Check for absolute imports instead of relative imports (unless necessary for circular import avoidance)
    • Ensure proper error handling with clear, actionable error messages
    • Verify 4-space indentation, ~100 character line limits, and double quotes for strings
    • Check for any commented-out code, debug print statements, or TODOs that should be removed
    • Validate that code follows DRY principles without unnecessary duplication
  3. Serialization Requirements (Critical for cloud backend)

    • If new expressions or plans are added, verify:
      • Protobuf schema is updated in protos/logical_plan/v1/
      • Proto types are regenerated (just generate-protos-py was run)
      • Proto types are exported in src/fenic/core/_serde/proto/types.py
      • Serde functions (serialize_* and _deserialize_*_helper) are implemented
      • Serde module is registered in appropriate __init__.py
      • Round-trip tests are added to tests/_logical_plan/serde/test_expression_serde.py
    • For complex data (Series, DataFrames), ensure bytes serialization pattern is used
    • Verify optional fields use proto.HasField() checks in deserialization
  4. Testing Coverage

    • Verify unit tests exist for all new functionality
    • Check for integration tests demonstrating real-world workflows
    • Ensure error handling tests cover edge cases and invalid inputs
    • Confirm cloud backend tests are marked with @pytest.mark.cloud when applicable
    • Validate test assertions are specific and meaningful
    • Check that tests use appropriate fixtures (local_session, cloud_session)
  5. Type System Validation

    • Verify proper type inference from Python values and Polars types
    • Check that schema changes are correctly propagated through logical plans
    • Ensure type validation in expressions uses ValidatedSignature when appropriate
    • Confirm DataType hierarchy is used correctly
  6. Backend Implementation

    • For local backend: verify physical plan implementation uses Polars efficiently
    • Check transpiler mappings exist for new logical plans/expressions
    • Ensure backend-specific code is properly isolated in _backends/ directory
    • Validate that features work with both local and cloud backends (or are clearly marked as local-only)
  7. Documentation Quality

    • Every public API must have comprehensive docstrings
    • Examples must show both basic and advanced usage
    • Examples must include expected output (especially for DataFrame.show() calls)
    • Breaking changes must be clearly documented with migration guides
    • Complex logic must have inline comments explaining the "why"

Read the full file on GitHub · 133 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. 11d ago First seen · 133 lines · 0 tokens per session scan A 557b4ea81335

Subscribe to this mod's changes

fenic-pr-reviewer is an agent published in the GitHub repository typedef-ai/fenic (672 stars, last pushed 2d ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 1,591 tokens. 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

SecondEye Critic

SecondEye adversarial reviewer. Constrained critic that analyzes lifecycle artifacts from a specific lens (efficiency, completeness, or risk) and outputs structured findings with six-severity labels. Invoked by $secondeye in parallel at three model tiers.

Snowflake-Labs/cocoplus · 55 tokens

critical-reviewer

Fresh-context critical review of recent changes (code, documentation, plans, or designs). Read-only. Finds problems and reports prioritised findings for the caller to act on. Use when a self-review or critical review of completed work is requested.

sammcj/agentic-coding · 52 tokens

code-reviewer

Use this agent to perform code review of implementation changes before security review. Reviews code for quality, design, correctness, and maintainability using Conventional Comments. Produces soft-gating verdict - REQUEST CHANGES allows proceeding with user approval.

bostonaholic/rpikit · 50 tokens

security-reviewer

Use this agent to perform security review of implementation changes before completion. Reviews code modifications for vulnerabilities, insecure patterns, and security best practices. Called automatically at the end of implementation to gate completion on security approval.

bostonaholic/rpikit · 45 tokens

code-simplifier

Simplifies and refines code for clarity, consistency, and maintainability while preserving all functionality. Focuses on recently modified code unless instructed otherwise.

bearlike/Assistant · 34 tokens

code-reviewer

Reviews code for bugs, logic errors, security vulnerabilities, code quality issues, and adherence to project conventions, using confidence-based filtering to report only high-priority issues.

bearlike/Assistant · 36 tokens