Skip to main content

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 - --plain flag 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tsugite_cli-0.3.3.tar.gz (528.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tsugite_cli-0.3.3-py3-none-any.whl (254.5 kB view details)

Uploaded Python 3

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

Hashes for tsugite_cli-0.3.3.tar.gz
Algorithm Hash digest
SHA256 97fea7ab40735e2ceb5e69c18f9d483c4117e5eab936059309aa31a11aed4ea0
MD5 8a0a17e718e0a6b75728bd400fafb789
BLAKE2b-256 207469a388e488db5e2050a79ee8cd9067e840b188bec96c525356842e36765d

See more details on using hashes here.

Provenance

The following attestation bundles were made for tsugite_cli-0.3.3.tar.gz:

Publisher: pypi-publish.yml on justyns/tsugite

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for tsugite_cli-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d1b5c137d1a38c19a007c518982a6d8f98268e2817df0ded96ea0c284754b7c3
MD5 8b800f27bfcf50ecda45cc379752aeeb
BLAKE2b-256 0665a2039961743d07505aa004bd8fb12685e0d323f823e1212988d91bd32108

See more details on using hashes here.

Provenance

The following attestation bundles were made for tsugite_cli-0.3.3-py3-none-any.whl:

Publisher: pypi-publish.yml on justyns/tsugite

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page