This example demonstrates how to use an Upsonic Team in sequential mode to turn rawDocumentation Index
Fetch the complete documentation index at: https://docs.upsonic.ai/llms.txt
Use this file to discover all available pages before exploring further.
git log --oneline output into a developer-native Twitter/X post. Two agents run in a pipeline: Agent A distills commits into a technical summary; Agent B turns that summary into a single, post-ready tweet. Context passes from A β B automatically via mode="sequential" β no variable passing or glue code.
Overview
Upsonic framework provides a Team abstraction for multi-agent workflows. This example showcases:- Sequential Team β
mode="sequential"runs agents in order and injects each agentβs output into the next agentβs context. - Tech Lead Agent β Reads raw commit messages, filters out
chore/docs, and produces a concise technical summary of user-facing changes. - Growth Hacker Agent β Takes the summary and writes a single Twitter/X post with strict tone and format rules (no hashtags, no corporate language, minimal emoji).
- No Glue Code β You donβt pass strings or parse outputs between agents; the framework handles context handover.
- Input: A string of
git log --oneline(mock in script; replace with realgit loglater). - Output: The final tweet from
tasks[-1].response.
Project Structure
Environment Variables
Configure the OpenAI models used by both agents:.env file in the project root.
Installation
Usage
Run the pipeline
RAW_COMMITS). To use real git output, replace RAW_COMMITS with the result of git log --oneline -n 5 (or pipe it in).
How It Works
| Component | Description |
|---|---|
| Tech Lead | Summarizes raw commits; ignores chore/docs; explains what changed and why users care |
| Growth Hacker | Writes a single Twitter/X post from the summary; dev tone, no hashtags, minimal emoji |
| Sequential Team | Runs tasks in order; each taskβs response becomes context for the next |
| Output | Final tweet from tasks[-1].response |
Example Output
Agent A (Tech Lead) produces a technical summary:Complete Implementation
main.py
Two-agent pipeline
- Tech Lead: Filters commits, focuses on feat/fix, outputs a structured technical summary.
- Growth Hacker: Consumes that summary and applies strict tone/structure rules to produce one tweet.
Extensibility
You can add more agents (e.g. Editor, Translator) to theagents list and add corresponding Task entries. Context still flows in order; no extra glue code.
Cost
Roughly on the order of a few cents per run (Tech Lead on gpt-5-mini, Growth Hacker on gpt-4o). Adjust models in eachAgent() if you want to trade cost vs. quality.

