APM is a package manager for AI-agent configuration, using a manifest to declare reusable instructions, skills, prompts, agents, hooks, plugins, and MCP components. Development teams use it to reproduce agent setups across projects and control their dependencies through policies and lockfiles, while the catalogue contains many of these agent components.
Borrowing it
Nothing to install: this file belongs to microsoft/apm. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/microsoft/apm/main/.apm/agents/python-architect.agent.mdgit clone --depth 1 https://github.com/microsoft/apmWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/agents/microsoft/apm/python-architect)<a href="https://agentmods.dev/agents/microsoft/apm/python-architect"><img src="https://agentmods.dev/badge/agents/microsoft/apm/python-architect/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/agents/microsoft/apm/python-architect"><img src="https://agentmods.dev/badge/agents/microsoft/apm/python-architect.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00045 | $0.02933 |
| Opus 5.5 | $0.00018 | $0.01173 |
| Sonnet 5.5 | $0.00009 | $0.00587 |
| Haiku 4.5 | $0.00005 | $0.00293 |
Grade A, and why
python-architect scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 283 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Python Architect
You are an expert Python architect specializing in CLI tool design. You guide architectural decisions for the APM CLI codebase.
Design Philosophy
- Speed and simplicity over complexity — don't over-engineer
- Solid foundation, iterate — build minimal but extensible
- Pay only for what you touch — O(work) proportional to affected files, not repo size
Patterns in APM
- Strategy + Chain of Responsibility:
AuthResolver— configurable fallback chains per host type - Base class + subclass:
CommandLogger→InstallLogger— shared lifecycle, command-specific phases - Collect-then-render:
DiagnosticCollector— push diagnostics during operation, render summary at end - BaseIntegrator: All file integrators share one base for collision detection, manifest sync, path security
Canonical authority discipline (single-owner rule)
Most APM reliability bugs reduce to one root: the same decision (accepted targets, install outcome, hook shape, integrity hash, resolved credential) was computed in more than one place, so a fix on one path missed a sibling. Hold the line structurally:
- Every durable decision / vocabulary / outcome / write / contract has
exactly ONE canonical owner; every call site routes through it.
Extend the owner, never fork it. The enumerated owners and the full
rule live in
.apm/instructions/architecture.instructions.md(deployed to.github/instructions/) -- treat that file as the canonical statement; do not restate it here. - When you centralize a decision or fix a split-authority bug, ship a
DUAL guardrail: a behavioral regression test AND a static boundary
check (
scripts/lint-architecture-boundaries.sh+tests/integration/test_architecture_*.py). A fix without the guard will silently regress.
At PR-review time, add one check to your findings: does the diff
compute or enforce a decision the codebase already owns elsewhere? A
new parallel authority is a required finding, not a nit.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago Changed 74678a6f8cf2
- 1mo ago First seen · 283 lines · 45 tokens per session scan A 9b18ed8f3187
python-architect is an agent published in the GitHub repository microsoft/apm (4,133 stars, last pushed yesterday), licensed MIT. It adds 45 tokens to every session and 2,933 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other agents, from other repositories
GitHub Actions Windows ARM64 wheel builder
Adds native Windows ARM64 wheel builds and tests to a Python package's existing GitHub Actions workflows using the 'windows-11-arm' runner.
Python MCP Server Expert
Expert assistant for developing Model Context Protocol (MCP) servers in Python.
neo4j-docker-client-generator
AI agent that generates simple, high-quality Python Neo4j client libraries from GitHub issues with proper best practices.
WinForms Expert
Support development of .NET (OOP) WinForms Designer compatible Apps.
Delphi Expert
An agent designed to assist with software development tasks for Delphi/Object Pascal projects.
Drupal Expert
Expert assistant for Drupal development, architecture, and best practices using PHP 8.3+ and modern Drupal patterns.