Skip to main content

Agents From Scratch

agents_from_scratch is a small Python project for learning agent design from first principles. It focuses on a clear baseline: tool registration, simple tool routing, and predictable behavior.

Project goals

  • Keep the core agent logic small and easy to inspect.
  • Provide runnable examples for experimentation.
  • Offer a clean package foundation that can grow into more advanced agents.

What is included

  • SimpleAgent: a minimal text agent with pluggable tools.
  • Built-in sample tools:
    • upper for text transformation.
    • math for basic arithmetic evaluation.
  • CLI demo entrypoint: agents-from-scratch-demo.
  • Example script and tests to show expected behavior.

Quick start

uv sync
uv run agents-from-scratch-demo

Try prompts like:

  • help
  • upper: hello world
  • math: (2 + 3) * 4
  • what can you do?

Repository layout

  • agents_from_scratch/: package source code
  • examples/: runnable examples
  • tests/: package tests

Package name

The distribution name is agents-from-scratch, and the import package is agents_from_scratch.

Release files for agents-from-scratch 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for agents-from-scratch 0.1.0
File Size Uploaded
agents_from_scratch-0.1.0.tar.gz 8.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for agents-from-scratch 0.1.0
File Interpreter ABI Platform
agents_from_scratch-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 20.1 kB

Release files / agents_from_scratch-0.1.0.tar.gz

Download URL agents_from_scratch-0.1.0.tar.gz
Size 8.4 kB
Tags Source
SHA-256 checksum
How to use checksums
754871a5736f92b51f4278e578e6084dbec389da4789bfc9fe83cf6b71f47ba8
BLAKE2b-256 checksum
How to use checksums
a1616c89aabf912f5ff2f2c04f03b7b7fb86d0fd490ec1ce2c38bdc4b9ee2b0e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Release files / agents_from_scratch-0.1.0-py3-none-any.whl

Download URL agents_from_scratch-0.1.0-py3-none-any.whl
Size 11.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
13a94f6607d1a0373d2495dd9d6dd62b00831ee16e4b045f58f556ba61044956
BLAKE2b-256 checksum
How to use checksums
96a4185d8cb51c6d93f5bfe76ae3ff7a196e393876897c478ebda4a9d421abf9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page