Are you the author? Sign in to claim
The LLM Anti-Framework
Welcome to Mirascope, which allows you to use any frontier LLM with one unified interface.
Install Mirascope:
uv add "mirascope[all]"
from mirascope import llm
@llm.call("anthropic/claude-sonnet-4-5")
def recommend_book(genre: str):
return f"Recommend a {genre} book."
response = recommend_book("fantasy")
print(response.text())
from pydantic import BaseModel
from mirascope import llm
class Book(BaseModel):
title: str
author: str
@llm.call("anthropic/claude-sonnet-4-5", format=Book)
def recommend_book(genre: str):
return f"Recommend a {genre} book."
book = recommend_book("fantasy").parse()
print(f"{book.title} by {book.author}")
from pydantic import BaseModel
from mirascope import llm
class Book(BaseModel):
title: str
author: str
@llm.tool
def get_available_books(genre: str) -> list[Book]:
"""Get available books in the library by genre."""
return [Book(title="The Name of the Wind", author="Patrick Rothfuss")]
@llm.call("anthropic/claude-sonnet-4-5", tools=[get_available_books], format=Book)
def librarian(request: str):
return f"You are a librarian. Help the user: {request}"
response = librarian("I want a fantasy book")
while response.tool_calls:
response = response.resume(response.execute_tools())
book = response.parse()
print(f"Recommending: {book.title} by {book.author}")
For streaming, async, multi-turn conversations, and more, see the full documentation.
This project is structured as a monorepo, that conceptually divides into four parts:
python/ contains the Python implementation, and examples (in python/examples)typescript/ contains the Typescript implementation, and examples (in typescript/examples)website/ contains the marketing website (docs, blog, landing page)docs/ contains the unified cross-language documentation (in docs/content), as well as configuration needed to build the docsFor detailed information about the codebase structure, architecture, and design decisions, see STRUCTURE.md.
Use bun run website:dev to launch the dev server.
Note that Bun must be installed.
We currently have four CI jobs:
You can run bun run ci in the root directory to run all CI checks locally. If adding new checks to GitHub CI, please also add it to the ci script in root package.json as well.
Mirascope uses Semantic Versioning.
This project is licensed under the MIT License.
⚠️ Experimentelle Skill-Sammlung für deutsches Recht (Arbeits-, Gesellschafts-, Insolvenz-, Datenschutz-, Prozessrecht u
Manage multiple Claude Code agents from TUI or Web with tmux and git worktrees
Project management using GitHub Issues + Git worktrees for parallel agent execution
Core skills library for Claude Code with 20+ battle-tested skills including TDD, debugging, and brainstorming