Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

🐣 TinyAgent that thinks in python and execute it in the cloud with extendable hooks

License

Notifications You must be signed in to change notification settings

askbudi/TinyCodeAgent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

16 Commits

Repository files navigation

title emoji colorFrom colorTo sdk sdk_version app_file pinned license short_description tags
TinyCodeAgent
🐣
indigo
yellow
gradio
5.33.1
app.py
true
apache-2.0
Think in python and execute code to solve a task
agent-demo-track
mcp-server-track
mcp
code-agent

TinyCodeAgent

πŸš€ TinyCodeAgent: A Self-Building, Self-Debugging Python Agent in the Cloud πŸš€

Demo

Watch the demo on YouTube

Watch Demo on YouTube

In this demo, watch how TinyCodeAgent:

  1. Thinks in Python

    • Dynamically generates Python code in the cloud
    • Instantly executes and tests its own snippets
  2. Builds Its Own Tools

    • Creates helper functions on the fly
    • Integrates new modules to extend its capabilities
  3. Runs & Debugs

    • Detects errors, logs tracebacks
    • Auto-corrects and re-runs until the task is solved

πŸ” Demo Workflow

  • Step 1: List the most popular Spaces on Hugging Face
  • Step 2: Filter for upcoming Hackathon Spaces without prerequisites
  • Step 3: Display results in a clean, interactive format

Why TinyCodeAgent?

  • Built on **TinyAgent **, a lightweight AI agent framework
  • Extendable hooks system for easy customization
  • Simple event loop ensures stability and fast iteration

You can extend it using TinyAgent Hooks system, and use it with Gradio Integration. Your agent could become a MCP Server or tool for another agent.

This Project is using Qwen/Qwen3-235B-A22B from Nebius thanks to their support.

Benefits

  • Stateful python code using Modal Functions (Instead of using a sandbox, Faster and cheaper)
  • Use TinyAgent Hooks system to extend your agent
  • Use Gradio Integration to use your agent as a tool for another agent
  • Log System
  • Storage
  • Multi MCP Connections
  • Support Models through LiteLLM

Examples

  • What are the most popular Spaces on Hugging Face today?

  • Please calculate the root mean square error of the following data:

    • [1, 2, 3, 4, 5]
    • [1, 2, 3, 4, 5]
  • How is the weather in Paris? What about the traffic? [Uses dummy functions, for demo purposes]

  • How is traffic right now in Paris, Montreal, Tokyo and London?

Credits

  • TinyAgent I have built this project as well.
  • Modal I use Modal Functions to run python code.
  • Gradio I use Gradio to create a web interface for my agent.
  • Cloudpickle I use Cloudpickle to serialize and deserialize python objects.
  • SmolAgents Use SmolAgents Coding Agent System Prompt as a base for my system prompt.

About

🐣 TinyAgent that thinks in python and execute it in the cloud with extendable hooks

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /