AGENTS.md · Mirascope/mirascope
AGENTS.md from Mirascope/mirascope: 87 lines covering Primary Context Sources, Codebase Overview, Key Principles, Quick Reference and more.
Template by Mirascope
Install
Works with Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Claude Code. Read the repository before you give any tool access to your data.
curl -fsSL https://raw.githubusercontent.com/Mirascope/mirascope/main/AGENTS.md -o AGENTS.md
Read it and adapt it to your project before use.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: code-generation, version-control
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
What's in it
An AGENTS.md file: instructions coding agents (Codex, Cursor, Copilot, Gemini CLI and others) read before working in a repo.
- For
- Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Claude Code
- Length
- 87 lines
- File
AGENTS.md
Sections
- Primary Context Sources
- Codebase Overview
- Key Principles
- Quick Reference
- Git Workflow with Graphite
- Getting Help
First lines (shown under the repo's MIT license)
# AI Agent Context Guide
**Note**: AGENTS.md is the canonical source of truth for AI coding assistant context. It is symlinked to agent-specific locations, like `.claude/CLAUDE.md` and `.cursorrules`.
## Primary Context Sources
When working on this codebase, start by reviewing these documents for high-level context:
1. **[README.md](README.md)**: Overview of the project, installation, development setup, and quick start information.
2. **[STRUCTURE.md](STRUCTURE.md)**: Comprehensive documentation of the codebase structure, including:
- Monorepo organization and benefits
- Detailed file structure for each package (Python SDK, TypeScript SDK, Website, Docs)
- Tooling choices and rationale
- Key design decisions and architectural patterns
3. **Directory-specific AGENTS.md files**: Some directories have their own AGENTS.md files:
- `website/AGENTS.md`
- `python/AGENTS.md`
Be sure to read these files when they are in scope for project-specific context.
## Codebase Overview
Mirascope is a monorepo containing:
- **Python SDK** (`python/`): The main Python implementation with LLM abstractions
- **TypeScript SDK** (`typescript/`): Active alpha TypeScript implementation
- **Website** (`website/`): Marketing website with docs, blog, and landing page
- **Documentation** (`docs/`): Unified cross-language documentation site
## Key Principles
When making changes to the codebase:
1. **Keep STRUCTURE.md Updated**: If you modify the codebase structure (add/remove directories, change organization, update tooling), update `STRUCTURE.md` to reflect these changes. This document should serve as a live, self-updating reference.
2. **Follow Existing Patterns**: The codebase has established patterns for:
- Decorator-based APIs in Python (`@llm.call`, `@llm.prompt`, `@llm.tool`)
- Provider-agnostic abstractions
- Type safety across languages
- Test organization
3. **Respect Monorepo Structure**: Each package (`python/`, `typescript/`, `website/`, `docs/`) has its own tooling and dependencies. Use the root-level passthrough scripts when possible.
4. **Maintain Type Safety**: We place a very high value on type safety. Do not circumvent the type system (e.g. by adding type ignores) except with specific human approval.
## Quick Reference
- **Python Package Manager**: `uv`
- **TypeScript/JS Package Manager**: `bun`
- **Python Testing**: `pytest`
- **TypeScript Testing**: `vitest`
- **Linting**: `ruff` (Python), `oxlint` (TypeScript)
- **Type Checking**: `pyright` (Python), `tsc` (TypeScript)
## Git Workflow with Graphite
The repository uses [Graphite](https://graphite.dev/) (`gt`) for stacked PRs:
```bash
gt create ENG-{NUM} -m "{MESSAGE}" # Create a new branch/PR
gt modify -a # Amend current PR with staged changes
gt checkout <branch> # Switch to a branch in the stack
gt up / gt down # Navigate up/down the stack
gt submit # Push all PRs in the stack
```
### PR Checklist
Before submitting changes, ensure:
1. `bun run typecheck` passes
2. `bun run lint:oxlint` passes
3. `bun run test:coverage` shows 100% coverage
## Getting Help
If you need more context about:
- **Specific modules or features**: Check the relevant package's README or documentation
- **Architecture decisions**: See `STRUCTURE.md` "Key Design Decisions" section
- **Development workflow**: See `README.md` for CI, testing, and build instructions
- **Website Development**: See `website/AGENTS.md` if working on the `website/` directory.Signals
- Stars
- 1,535
- Forks
- 139
- Open issues
- 2
- Last commit (this folder)
- Oct 19, 2026 (10 days ago)
- Last release
- Oct 22, 2026 (6 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/Mirascope/mirascope
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from Mirascope
Cite this page
AGENTS.md · Mirascope/mirascope. Agent Mart. https://agentmart.dev/templates/mirascope-mirascope-agents-md (last updated 2026-10-24)