Micro-agent runner for task automation using markdown definitions
Project description
tsugite
Tsugite (Japanese: 継ぎ手, the art of joinery in woodworking) is a developer-facing agentic CLI.
Define AI agents as markdown files with YAML frontmatter. Chain multiple steps together, pass data between them, and use any LLM (OpenAI, Anthropic, Ollama, etc).
Quick Start
# Install
uv sync --dev
# Run an agent
tsugite run examples/simple_variable_injection.md "test it"
# Create your own agent
cat > my_agent.md << 'EOF'
---
name: hello
model: openai:gpt-4o-mini
---
Task: {{ user_prompt }}
Just say hello and use final_answer() to return your greeting.
EOF
tsugite run my_agent.md "greet the user"
Features
- Multi-step workflows - Chain steps with
<!-- tsu:step -->, pass data between them - Variable injection - Step outputs automatically available as Python variables
- Multiple LLM providers - OpenAI, Anthropic, Ollama, Google, GitHub Copilot
- MCP integration - Connect to Model Context Protocol servers
- Temperature control - Set per-step model parameters
- Copy-paste friendly output -
--plainflag or auto-detection for pipe/redirect
CLI Options
# Plain output (no box-drawing characters, copy-paste friendly)
tsugite run +assistant "task" --plain
# Auto-detection: plain mode activates when piped or NO_COLOR is set
tsugite run +assistant "task" | grep result
# Headless mode for scripts (result to stdout, progress to stderr)
tsugite run +assistant "task" --headless
# Continue latest conversation (auto-detects agent)
tsugite run --continue "follow-up prompt"
# Continue specific conversation
tsugite run --continue --conversation-id CONV_ID "follow-up prompt"
tsugite chat --continue CONV_ID
# View conversation history
tsugite history list
tsugite history show CONV_ID
See examples/ for working agents and CLAUDE.md for AI-generated documentation.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tsugite_cli-0.3.3.tar.gz.
File metadata
- Download URL: tsugite_cli-0.3.3.tar.gz
- Upload date:
- Size: 528.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
97fea7ab40735e2ceb5e69c18f9d483c4117e5eab936059309aa31a11aed4ea0
|
|
| MD5 |
8a0a17e718e0a6b75728bd400fafb789
|
|
| BLAKE2b-256 |
207469a388e488db5e2050a79ee8cd9067e840b188bec96c525356842e36765d
|
Provenance
The following attestation bundles were made for tsugite_cli-0.3.3.tar.gz:
Publisher:
pypi-publish.yml on justyns/tsugite
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tsugite_cli-0.3.3.tar.gz -
Subject digest:
97fea7ab40735e2ceb5e69c18f9d483c4117e5eab936059309aa31a11aed4ea0 - Sigstore transparency entry: 658142174
- Sigstore integration time:
-
Permalink:
justyns/tsugite@5539e1a0a83b4ea476bd6e28a17a720773f3c41a -
Branch / Tag:
refs/tags/v0.3.3 - Owner: https://github.com/justyns
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@5539e1a0a83b4ea476bd6e28a17a720773f3c41a -
Trigger Event:
push
-
Statement type:
File details
Details for the file tsugite_cli-0.3.3-py3-none-any.whl.
File metadata
- Download URL: tsugite_cli-0.3.3-py3-none-any.whl
- Upload date:
- Size: 254.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d1b5c137d1a38c19a007c518982a6d8f98268e2817df0ded96ea0c284754b7c3
|
|
| MD5 |
8b800f27bfcf50ecda45cc379752aeeb
|
|
| BLAKE2b-256 |
0665a2039961743d07505aa004bd8fb12685e0d323f823e1212988d91bd32108
|
Provenance
The following attestation bundles were made for tsugite_cli-0.3.3-py3-none-any.whl:
Publisher:
pypi-publish.yml on justyns/tsugite
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tsugite_cli-0.3.3-py3-none-any.whl -
Subject digest:
d1b5c137d1a38c19a007c518982a6d8f98268e2817df0ded96ea0c284754b7c3 - Sigstore transparency entry: 658142217
- Sigstore integration time:
-
Permalink:
justyns/tsugite@5539e1a0a83b4ea476bd6e28a17a720773f3c41a -
Branch / Tag:
refs/tags/v0.3.3 - Owner: https://github.com/justyns
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@5539e1a0a83b4ea476bd6e28a17a720773f3c41a -
Trigger Event:
push
-
Statement type: