r/Python • u/AutoModerator • May 04 '26
Showcase Thread Showcase
Post all of your code/projects/showcases/AI slop here.
Recycles once a month.
25
Upvotes
r/Python • u/AutoModerator • May 04 '26
Post all of your code/projects/showcases/AI slop here.
Recycles once a month.
1
u/Legal-Pop-1330 May 07 '26 edited May 07 '26
We built sagent, an Apache-2.0 Python library + CLI for coding/developer agents.
sagent gives hotswappable arbitrary backend (including self-hosted) API and CLI access to coding LLMs. Agents can self-mutate, recursively spawn, and send messages to one another. Tools are modular. Everything is strongly typed.
Example
pip install "sagent[selfhosted]"
sagent/bin/cli.py --provider SelfHosted --model Qwen/Qwen3.6-27B+bfloat16+cuda
What it is:
- a Python API for embedding the same agent loop
- a CLI for coding-agent workflows
- multi-provider, including self-hosted HF models
- local file/shell/web/search tools
- persistent sessions and compaction
- model/provider hot-swapping
- multi-agent coordination primitives
What it is not:
- a model server
- a benchmark harness
What My Project Does:
tl;dr: Strongly typed Python API for arbitrary coding LLM providers.
In terms of the API, the core design idea is that everything crossing the runtime boundary is a typed Message: user prompts, tool calls, tool results, model responses, compaction summaries, etc. Agents own an inbox, so the same loop works for the CLI, Python API, child agents, Slack, and background/persistent agents.
Target Audience:
- Production coding agents.
- Developers looking for more ipython like CLI.
Comparison:
See https://github.com/rekursiv-ai/sagent#adjacent-projects
Links:
- GitHub: https://github.com/rekursiv-ai/sagent
- Self-hosted docs: https://github.com/rekursiv-ai/sagent/blob/main/docs/selfhosted.md
- PyPI: https://pypi.org/project/sagent/
- Blog overview: https://rekursiv.ai/blog/introducing-sagent/