Skip to main content

featherweight [ftw.]: a tiny, opinionated harness for declarative, typed agents

featherweight [ftw.]

PyPI Python License tests coverage

An opinionated agent harness. Pydantic is the spec. Everything else follows.

An agent is a typed class. Its input, output, tools, skills and sub-agents are declared right there and enforced, not hoped for. The boilerplate every agent project ends up writing (retries, limits, failures, tracing, delegation, workers, resume) is already written. You write the pipeline. That's the part that's yours.

A malformed agent never reaches the model. A running one has a known input and a known output. No guessing.

It has opinions. Take them, or fork off.

And there's a skill, so your coding agent can build with it from the first prompt.

Alpha. The API can still change before 1.0.

Built on LangChain, on purpose

featherweight doesn't replace LangChain. It sits on it.

  • Your tools are LangChain tools. Write one with @tool, or take one from the LangChain ecosystem.
  • MCP goes through LangChain's MCP adapters. Stdio or HTTP servers, declared on the agent.
  • Models are LangChain chat models underneath, behind settings classes that are checked when the agent is built.

So what LangChain already gives you, a pile of integrations and adapters, can plug into agents that are typed, bounded and run on workers. We test the providers and tools featherweight ships with. Other LangChain integrations go into the same slots, but we haven't verified them one by one.

What you get

Typed, declared, enforced An agent is a class. What goes in and what comes out is a schema. A bad declaration fails when it is written, a bad answer is caught and retried before your code ever sees it.
Least privilege Everything is an allow-list. A capability an agent has is one the developer gave it, on purpose.
Plain Python, failures as values Order, loops and branching are if and for: no graph, no workflow engine. A failed run hands you the error and a status, not an exception.
Agents that delegate Sub-agents on a leash, only the ones allowed, only so deep. Or background jobs: one starts another and goes on, and the result comes back when it is ready.
Acts for someone A typed identity reaches your tools, in your process and on workers, and never the model. What it may do is your tools' decision: you bring authentication and authorization.
Resume instead of rerun A pipeline that dies halfway picks up where it stopped, without paying for the steps that worked.
Workers, and a lost worker is fine Submit a job from your API, run it on workers, follow it live, cancel it. Lose a worker mid-job and another takes over.
Streams to your UI Chat answers and job status stream over standard protocols (AG-UI, the Vercel AI SDK, SSE), so a browser can listen as is.
See what it did OpenTelemetry traces of jobs, attempts, model calls and tool calls, in the format observability and evaluation platforms already read. Content stays off unless you turn it on.
Any model, any tool Gemini, Gemma, Claude, OpenAI or your own. MCP servers and skills plug in and stay out of the context until needed.
Your data, your storage The framework stores metadata and nothing else. Databases, result stores, queues and observers are interfaces: implement one, run the kit that checks it. SqliteDatabase for local work and PostgresDatabase for deployment both ship, to get you going.

What you don't get

A workflow engine No graph to draw, no nodes and edges. Order is if and for, and you already know those.
A server or a UI We stream, you serve. Bring your own API and frontend: it speaks AG-UI, the Vercel AI SDK and SSE.
Your data No stored conversations, no stored outputs. Metadata only. What happens to the rest is your call, and your problem.
An evaluation platform We don't score anything. We emit traces your platform already reads, and it does the judging.
A way around the rules An agent that doesn't declare itself properly doesn't run. These are opinions. Take them, or fork off.

Want durable execution or built-in evals? Pydantic AI. Want a graph that pauses and resumes? LangGraph. Want typed, bounded agents on workers, in plain Python? Here.

Built for agentic coding

There is a skill. Plug it into your favourite coding agent and it already knows how to build with featherweight: the typed agent, the rules, the patterns, and the whole book. You start building in your editor, not in a docs tab.

In Claude Code:

/plugin marketplace add aadhithya/featherweight
/plugin install featherweight@featherweight

OpenAI Codex, Cursor, GitHub Copilot, Gemini CLI and the other tools that read Agent Skills: install it with the skills CLI, which puts it where each tool looks (it needs Node.js).

npx skills add aadhithya/featherweight                 # asks which tools to install it for
npx skills add aadhithya/featherweight -a codex        # or name one: codex, cursor, claude-code, ...

Or copy skills/featherweight into the tool's skills folder yourself. There is also an AGENTS.md at the root, for the tools that read that.

Getting started

The quickest way in is the book: a tiny incident report assistant that grows from a first agent to workers, chapter by chapter, with code that runs in a container.

pip install featherweight
pip install 'featherweight[all]'    # or just: mcp, anthropic, openai, postgres, otel

Python 3.12 or later. Import what you use: from featherweight import AgentBase, AgentRunner. (import featherweight as ftw works too.)

Showcase

fw-concierge ✨

A concierge that books a physio appointment, end to end, built on featherweight.

A chat assistant finds an appointment in Munich. A background worker researches providers while you keep chatting. Nothing is booked until you say yes. One command runs the whole thing.

fw-qna 💬

A terminal chat that answers questions about featherweight from its own docs, and writes example code.

Ask "how do I run jobs on a worker?" and get an answer with links to the pages it came from. It reads featherweight's skill, searches the docs of the release you pick, and says when code is untested. A quick way to learn the framework, and a demo of streaming agents, tools and skills.

Read more

License

Apache License 2.0. See LICENSE.


Designed by humans. Implemented by AI agents.

Metadata

Release files for featherweight 0.2.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 featherweight 0.2.0
File Size Uploaded Provenance Actions
featherweight-0.2.0.tar.gz 326.4 kB With provenance Details for featherweight-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for featherweight 0.2.0
File Interpreter ABI Platform Actions
featherweight-0.2.0-py3-none-any.whl Python 3 none any Details for featherweight-0.2.0-py3-none-any.whl

Total release size: 483.4 kB

Release files / featherweight-0.2.0.tar.gz

Download URL featherweight-0.2.0.tar.gz
Size 326.4 kB
Tags Source
SHA-256 checksum
How to use checksums
313568c74ecde3b45c48408d06bc6e0ea82b5c8bb492d0e181fc182740d9dd63
BLAKE2b-256 checksum
How to use checksums
59e7f4ce6e59723f62347b5d89b3aff42bd4f3fffd1a91af0770d06aeb25f2d0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Release files / featherweight-0.2.0-py3-none-any.whl

Download URL featherweight-0.2.0-py3-none-any.whl
Size 157.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
460121402b001b107d7122df0869ebb0b277922940ef7e01272999e109b3417a
BLAKE2b-256 checksum
How to use checksums
ec1323ac0373c83897e00ca510ef8e2db6e71f7d3af3243cb9084443420fd6ea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Security for featherweight 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for featherweight-0.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files Full provenance

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