Skip to main content
Armsmith — the agent that forges your repo for Arm

Armsmith

The agent that forges your repo for Arm.

PyPI Python License: MIT CI aarch64 native measured on Neoverse-N2

Armsmith profiles an AI repo on Arm, diagnoses why it is slow on aarch64 with a 13-rule anti-pattern pack, drafts fixes, and renders a PR in which every fix has passed a reproduce-benchmark gate — median-of-N, MAD noise bands, output-hash equality.

The LLM plans; the silicon decides. Deltas inside the noise band are reported as no change, never as wins, and fixes that fail are reported rather than quietly dropped.

Install

uvx armsmith scan .        # zero-install, one command
pipx install armsmith      # or keep it on your PATH
pip install armsmith

Use it

Scan any repo for aarch64 anti-patterns — static rules, no hardware, no network:

armsmith scan .

Record a bundle from your own machine, then diagnose your own repo. The probe rules read observations from a bundle; record captures what your host can honestly report and copies in any real instrument output you already have:

armsmith record . --out ./bundle --python .venv/bin/python
armsmith diagnose --replay ./bundle

The manifest it writes declares "synthetic": false, because none of it is invented. Anything the host cannot observe is omitted, not guessed — the rules that needed it report skipped with the probe named. env and proc_maps are never captured at all: a bundle is a published artifact, and those carry CI tokens and host paths.

Take the measurement yourself, on any aarch64 box (a free GitHub ubuntu-24.04-arm runner is enough). It refuses to run anywhere else rather than produce an Arm number off Arm hardware:

armsmith bench-live --require-witness
armsmith verify report-live.json

The number, and why you don't have to trust it

On a GitHub-hosted ubuntu-24.04-arm runner (Neoverse-N2, gcc 13.3.0), Armsmith compiles one int8 dot-product source twice — differing only in the -march flag that rule R2 exists to flag — disassembles both, and measures them:

-O3 -march=armv8-a -O3 -march=armv8.2-a+dotprod
SDOT in the hot symbol 0 1
median kernel time 0.059975 s 0.008123 s
Δ −86.5% — a 7.4× speedup
noise band (k=3) ±0.000144 s
output hash identical
gate verdict keep

Read the first row before the timings: ARMv8.0 has no dot-product instruction, so the baseline cannot contain one. The stopwatch says 7.4×; the disassembly says why.

Every report is ed25519-signed and carries its own raw samples, so armsmith verify recomputes every statistic and every gate verdict independently — change one digit and it prints VERIFY FAILED.

What it looks for

13 aarch64 anti-patterns, 10 of them citing the Arm Learning Path that teaches the fix by hand: amd64-pinned images running under QEMU · builds with no -mcpu/-march · NumPy on reference BLAS · silent float64 coercion · GGUF quant mismatched to the ISA repack path · threads × workers over vCPU count · ONNX Runtime session defaults · pip sdist fallback · preprocess memcpy storms · llama.cpp built without KleidiAI · THP/allocator untuned · CI publishing amd64-only images · serving overhead dominating kernel time.

armsmith rules export renders them as x86→Arm migration cards, 11 with a paste-able before→after diff.

Honest scope

  • armsmith pr is dry-run today. It renders exactly what would ship and makes no network call.
  • The measured −86.5% is one int8 microkernel on one runner. It proves the gate works on real silicon; it is never scaled into a claim about your workload. The honest number for your model is the one you measure on your own hardware.
  • Live perf/PMU capture, llama-bench, the Claude planner loop and real PR posting are marked TODO(S1) in code and exit non-zero rather than fabricate output.

Links

MIT licensed.

Download files

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

Source Distribution

armsmith-1.2.1.tar.gz (148.4 kB view details)

Uploaded Source

Built Distribution

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

armsmith-1.2.1-py3-none-any.whl (101.5 kB view details)

Uploaded Python 3

File details

Details for the file armsmith-1.2.1.tar.gz.

File metadata

  • Download URL: armsmith-1.2.1.tar.gz
  • Upload date:
  • Size: 148.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for armsmith-1.2.1.tar.gz
Algorithm Hash digest
SHA256 29eaac5a1375aa4d120f91642431a31a3eb9c10bbc95a085f7823bba86e4f6cc
MD5 e911b3c2cfd8071e08db4f3495db638c
BLAKE2b-256 20f00ce17eeb7f2c4d409eee3d92fdff4daaa3cca81746216475247138b83b4a

See more details on using hashes here.

Provenance

The following attestation bundles were made for armsmith-1.2.1.tar.gz:

Publisher: release.yml on edycutjong/armsmith

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

File details

Details for the file armsmith-1.2.1-py3-none-any.whl.

File metadata

  • Download URL: armsmith-1.2.1-py3-none-any.whl
  • Upload date:
  • Size: 101.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for armsmith-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b045e4f372b4bb08f937431c22cbe3358eb4b6479bfccba9e4002aae10b6a0d0
MD5 f87871ac79467dba8a06356a16abb8ca
BLAKE2b-256 86f53c223fcaaaffa78813828b46938c70f99f76cf1f382ae29991b382372d96

See more details on using hashes here.

Provenance

The following attestation bundles were made for armsmith-1.2.1-py3-none-any.whl:

Publisher: release.yml on edycutjong/armsmith

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