codantic-ai — Gemini AI Agent
    Neura MarketNeura Market/Gemini
    ChatGPTChatGPTClaudeClaudeGeminiGeminiCursorCursorGrokGrokPerplexityPerplexityDeepSeekDeepSeek
    CoPilotCoPilotStable DiffusionStable DiffusionMidjourneyMidjourney
    View All Directories
    OverviewRulesPromptsMCPsAgentsGamesBlogVideosGuidesCoursesCommunityGemsExtensionsTrending
    GeminiAgentscodantic-ai
    Back to Agents
    codantic-ai

    codantic-ai

    moustaphacheikh August 17, 2025
    12 copies 0 downloads

    Coding AI agent using Pydantic AI's Direct API for minimal abstraction. Features 9 file system tools and interactive terminal interface.

    Codantic AI - Educational AI Agent Loop

    For Educational Purposes Only - Learn AI agent architecture with minimal abstractions

    A Python AI agent system using Pydantic AI's Direct API for maximum learning clarity. Built with Google Gemini and featuring 9 file system tools.

    🧠 Why This Approach?

    Uses pydantic_ai.direct.model_request_sync() - minimal abstraction perfect for learning:

    • 🔍 See exactly how LLM interactions work
    • 📚 No magic - every API call is explicit
    • 🛠 Direct control over context and tool calling

    🎬 Live Demo

    Demo

    🛠 9 Built-in Tools

    ToolDescription
    readRead files with optional line limits
    writeCreate files with audit logging
    editString replacements in files
    multieditMultiple edits atomically
    lsList directory contents
    globPattern-based file search
    grepRegex search in file contents
    bashExecute shell commands
    todoTask management

    🚀 Quick Start

    Prerequisites

    • Python 3.13+
    • Google Claude API key (Get one here)

    Installation

    git clone <your-repo-url>
    cd codantic-ai
    
    # Setup environment
    python -m venv .venv
    source .venv/bin/activate  # Windows: .venv\Scripts\activate
    
    # Install dependencies  
    pip install -r requirements.txt
    # OR: uv sync
    
    # Configure API key
    cp .env.example .env
    # Edit .env and add your Claude API key
    
    # Run the agent
    python main.py
    

    🏗 How It Works

    graph TB
        A[👤 User Input] --> B[🔄 AgentLoop]
        B --> C[🤖 Pydantic AI Direct API]
        C --> D{🛠 Tool Calls?}
        D -->|Yes| E[⚡ Execute Tools]
        E --> B
        D -->|No| F[💬 Response]
    

    Key Learning Points

    # Direct API usage - no hidden abstractions!
    model_response = model_request_sync(
        self.model_name,
        self.context,  # Full conversation history
        model_request_parameters=ModelRequestParameters(
            fun
    

    Tags

    agentaiclidirect-apieducationgeminipydantic-aipython

    Comments

    More Agents

    View all
    Agentsmithagentic-ai

    Agentsmith

    Universal, model-agnostic operating harness for AI agents (Claude, Codex, Gemini, …) — a lean core + work-type profiles assembled by one setup script.

    P
    PromptPartner
    308
    Awesome Gamedev Agent Skillsagent-skills

    Awesome Gamedev Agent Skills

    Game-development Agent Skills for AI coding agents: install once and a master router loads the right skill for your engine and task. 66 original, version-pinned skills (plus a master router) in the portable SKILL.md format that runs across Claude Code, Cursor, Codex, Copilot, Gemini CLI and more, for Godot, Unity, Unreal, web and beyond.

    G
    gamedev-skills
    303
    Agentpetai-agents

    Agentpet

    A desktop pet for macOS & Windows that monitors your AI coding agents (Claude Code, Codex, Cursor, Gemini...) in real time, and grows as you code, feed it tokens, level it up, climb the leaderboard.

    N
    ntd4996
    279
    UltraGameStudioai-agent

    UltraGameStudio

    UltraGameStudio - AI coding agent for game development: engine workflows, gameplay code, and asset generation.

    W
    wellingfeng
    260
    Zeroai

    Zero

    The coding agent that answers to you, your model, your machine, your rules.

    G
    Gitlawb
    1,099
    Lucarneagent-bridge

    Lucarne

    Stop babysitting local AI agents. Just notifications, approve, and resume your Codex,Pi,Grok, or Claude code sessions anywhere. 0-Intrusion mobile control bridge via Telegram/微信/飞书. No hooks, no skills, no MCP.

    T
    tuchg
    314

    Stay up to date

    Get the latest Gemini prompts, rules, and resources delivered to your inbox weekly.

    Neura Market LogoNeura Market

    Discover the best AI prompts, plugins, and resources for Gemini and more.

    Content Types

    • Rules
    • Prompts
    • MCPs
    • Agents
    • Guides

    Platforms

    • ChatGPT Directory
    • Claude Directory
    • Gemini Directory
    • Cursor Directory
    • Grok Directory
    • Perplexity Directory
    • DeepSeek Directory
    • CoPilot Directory
    • Stable Diffusion Directory
    • Midjourney Directory
    • All Directories

    Resources

    • Blog
    • Documentation
    • Help Center
    • Marketplace

    Legal

    • Privacy Policy
    • Terms of Service

    © 2026 Neura Market. All rights reserved.

    |

    Not affiliated with any AI platform vendors.

    Neura Market

    Custom AI Systems & Services

    Our team of experienced AI builders will help build custom AI systems, workflows, and solutions for your business.

    Request custom work

    Ready-made automations for this

    Workflows from the Neura Market marketplace related to this Gemini resource

    • **Build an Interactive AI Agent with Chat Interface and Multiple Tools**n8n · $14.99 · Related topic
    • Tesla Quant Trading AI Agent using Telegram + GPT-4.1 (Main Interface)n8n · $14.99 · Related topic
    • Generate AI Prompts with Custom Web Interface Using n8n and Google Geminin8n · $14.99 · Related topic
    • Interactive XML File Analysis and Chat Using OpenAI and LangChainn8n · $9.99 · Related topic
    Browse all workflows