erayozgr

Final Agent — AI skill for Claude Code

AI community

AI agent built with smolagents for the Hugging Face Agents Course final assignment.

How to install Final Agent

This entry records only its repository, not the path inside it, so there is no exact command to give. Open erayozgr/final-agent and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Final Agent does

AI agent built with smolagents for the Hugging Face Agents Course final assignment. Scored 90% (18/20) on a GAIA benchmark subset using web search, Wikipedia, file parsing (Excel, Python, audio, images) and Claude Haiku.

Alternatives in AI

  • Humanizer: Remove AI Writing Patterns — You are a writing editor that identifies and removes signs of AI-generated text to make writing sound more nat 10.5k ★
  • AI Avatar System — 🎭 AI Avatar / digital human platform — upload a photo, clone a voice, talk to any face in real time with lip 422 ★
  • Osint Skill — OSINT Skill for AI agents (Claude Code, OpenClaw, Codex, OpenCode) — from a name to a scored dossier with psyc 114 ★

README

final-agent

An AI agent built with [smolagents](https://github.com/huggingface/smolagents) for the final assignment of the [Hugging Face Agents Course](https://huggingface.co/learn/agents-course).

**Result:** 90% (18/20) on the course's GAIA benchmark subset.

How it works

The script fetches 20 questions from the course scoring API, answers each one with a `CodeAgent`, saves the answers to `answers.json` and can submit them.

The agent writes and runs Python code step by step, using these tools:

  • Web search – Claude's built-in web search (or Gemini with Google Search)
  • Wikipedia search – reads Wikipedia articles
  • Webpage reader – opens a URL and returns its content as markdown
  • File handling – reads attached Excel, CSV and Python files; images and audio are described or transcribed by a multimodal model

Answers are graded by exact match, so the agent is instructed to return only the final value in a strict format.

Setup

Requires Python 3.10+.

python3 -m venv .venv
source .venv/bin/activate
pip install "smolagents[litellm]" ddgs markdownify wikipedia-api pandas openpyxl requests

Usage

export ANTHROPIC_API_KEY="..."
export MODEL_ID="anthropic/claude-haiku-5-5"
export HF_TOKEN="..."          # optional, to download attached files from the GAIA dataset

python agent.py                # answer the questions and save them to answers.json

To submit the answers:

export AGENT_CODE_URL="https://github.com/erayozgr/final-agent"
SUBMIT=1 python agent.py

Already answered questions are skipped, so the script can be stopped and resumed at any time.

Configuration

Variable Description
MODEL_ID Main agent model (any LiteLLM model id)
ANTHROPIC_API_KEY Needed for Claude models
GEMINI_API_KEY Needed for Gemini/Gemma models and audio transcription
HF_TOKEN Read token for downloading attached files
HF_USERNAME Hugging Face username used for submission