agentleFS
MicrosoftKnown publishermicrosoft/agent-framework/python/packages/monty/AGENTS.md

agent-framework / monty

AGENTS.md14k starsChanged 10 months agoMITView on GitHub

Monty-backed CodeAct integrations for the Microsoft Agent Framework. [!NOTE] Beta package. Included in agent-framework[all] and available through the lazy-loading namespace agent_framework.monty. - MontyCodeActProvider — ContextProvider that injects a run-scoped execute_code tool plus dynamic CodeAct instructions. Mirrors the HyperlightCodeActProvider API for the parts that apply to a non-sandboxed Python interpreter. - MontyExecuteCodeTool — FunctionTool that wraps the Monty interpreter. Use directly for mixed-tool agents or manual static wiring. Mirrors HyperlightExecuteCodeTool. MontyCodeActProvider and MontyExecuteCodeTool both accept: - tools — host tool callables…

Trending

More talk lately.about the whole repository

Dec 2025: 1 mentionJan 2026: 0 mentionsFeb 2026: 1 mentionMar 2026: 3 mentionsApr 2026: 5 mentionsMay 2026: 3 mentionsJun 2026: 1 mentionJul 2026: 1 mentionAug 2026: 1 mentionSep 2026: 3 mentionsOct 2026: 1 mentionNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the microsoft/agent-framework repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about microsoft/agent-framework

The biggest 5 of 31 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 31

Talked about on GitHub, Bluesky and Hacker News (31 times).

On GitHub · 17

12 more on GitHub

On Bluesky · 10

5 more on Bluesky

The file

We split this AGENTS.md into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use directly for mixed-tool agents or manual static wiring.

    line 16

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

Monty Package (agent-framework-monty)

Monty-backed CodeAct integrations for the Microsoft Agent Framework.

[!NOTE] Beta package. Included in agent-framework[all] and available through the lazy-loading namespace agent_framework.monty.

Core Classes

  • MontyCodeActProvider — ContextProvider that injects a run-scoped execute_code tool plus dynamic CodeAct instructions. Mirrors the HyperlightCodeActProvider API for the parts that apply to a non-sandboxed Python interpreter.
  • MontyExecuteCodeTool — FunctionTool that wraps the Monty interpreter. Use directly for mixed-tool agents or manual static wiring. Mirrors HyperlightExecuteCodeTool.

Public API

from agent_framework.monty import (
    FileMount,
    FileMountInput,
    MontyCodeActProvider,
    MontyExecuteCodeTool,
    MountMode,
)

MontyCodeActProvider and MontyExecuteCodeTool both accept:

  • tools — host tool callables / FunctionTools
  • approval_mode — "never_require" (default) or "always_require"
  • workspace_root — host directory auto-mounted at /input (mirrors HyperlightCodeActProvider.workspace_root)
  • file_mounts — sequence of FileMountInput (str shorthand, (host_path, mount_path) tuple, or FileMount)
  • resource_limits — Monty ResourceLimits TypedDict
  • tool_description_format — keyword-only Literal["compact", "json"] | Mapping[str, Literal["compact", "json"]] = "compact". Selects parameter documentation in both the description and instructions. Compact includes scalar types, required/optional status, descriptions, enums, and defaults; schemas that cannot be represented faithfully fall back to full JSON Schema with an explanatory note. "json" always includes the full schema. Mappings use exact, case-sensitive tool names, with compact for missing names; mappings are copied on construction and per-run snapshots, retaining inactive names for dynamic registration. Unsupported choices raise ValueError; invalid input types (including None), non-string keys, and non-string choices raise TypeError. Serializable state stores the configured string or mapping as tool_description_format. This affects documentation only, not type checking or invocation.

Tool-management methods on both classes: add_tools, get_tools, remove_tool, clear_tools. Mount-management methods: add_file_mounts, get_file_mounts, remove_file_mount, clear_file_mounts.

MontyExecuteCodeTool additionally exposes:

  • build_instructions(*, tools_visible_to_model: bool) -> str
  • create_run_tool() -> MontyExecuteCodeTool
  • build_serializable_state() -> dict[str, Any]
  • workspace_root, resource_limits properties

Architecture

  • _types.py — FileMount, FileMountInput, MountMode (public).
  • _provider.py — MontyCodeActProvider (thin wrapper around the tool).
  • _execute_code_tool.py — MontyExecuteCodeTool plus tool / mount normalization, approval helpers, dynamic description/instructions builders, and the post-execution file-capture flow that surfaces files written to read-write mounts as Content.from_data items.
  • _monty_bridge.py — InlineCodeBridge and generate_type_stubs, adapted from the reference Monty CodeAct repo. Pauses on FunctionSnapshot to dispatch host calls, then resumes; supports direct typed tool calls, the call_tool fallback, asyncio.gather fan-out, and forwards limits / type-check options via pool.checkout(...), and mount / print_callback via session.feed_start(...).
  • _instructions.py — dynamic instruction / tool-description builders (include filesystem capability summaries when mounts are configured).

Not implemented (yet)

CapabilityMonty primitiveStatus
Custom virtual filesystemOSAccess subclass passed to session.feed_start(..., os=...)Not exposed. Strictly more general than file mounts; useful when you want a fully synthetic FS.
Outbound URL allow-listNo Monty primitive — expose fetch_url as a host tool with the allow-list check in your tool function.Not exposed in this package; users add it as a regular tool.

Out of scope (for now)

  • Durable execution — the reference Monty CodeAct repo also offers a Durable-Functions-backed mode (DurableCodeBridge, register_durable_codeact, wait_for_external_event, per-tool approval via external events). That is intentionally not in this package yet.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.