AGENTS.md@pkg/agentA

AGENTS.md@pkg/agent from sap/astonish is an AGENTS.md file: the standing instructions coding agents read in that repo.

Install it, pinned
mdr add sap/astonish/pkg/agent/AGENTS.md@git:20261101.0d54756

Pins git:20261101.0d54756 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 14 of 14 checks passed
Kind
AGENTS.md file
Repository
sap/astonish
Path
pkg/agent/AGENTS.md
Versions recorded
7
Latest version
git:20261101.0d54756, committed Nov 1, 2026
First version recorded
Aug 11, 2026
Size
6,195 bytes
Repository stars
25
License
Apache-2.0

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# pkg/agent — AGENTS.md

Core `ChatAgent` runtime: prompt assembly, model/tool loop, streaming, compaction, approvals, and sub-agent delegation.

## Interactions
- `pkg/launcher/chat_factory.go` wires LLMs, tools, sandbox, memory, MCP, prompts, and stores. The agent receives configuration; it must not load host config itself.
- Studio invokes the agent through `pkg/api` SSE handlers. Remote chat maps those events into `pkg/tui`; local code mode runs the same agent in-process.
- Tool execution follows `pkg/tools/AGENTS.md`; sandbox-scoped operations follow `pkg/sandbox/AGENTS.md`.
- `LoadProjectContext` discovers and merges `AGENTS.md`/fallback `CLAUDE.md` nearest-last for code mode only. Platform instructions remain store-backed.

## Invariants
1. **Streaming is incremental.** Partial text remains partial; tool calls/results and approval boundaries are discrete. Do not batch away ordering required by Studio/TUI reducers.
2. **Tool safety is callback-enforced.** Preserve credential/secret callbacks, code-mode folder/tool authorization, plan/ask gates, and sandbox wrapping order.
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add sap/astonish/pkg/agent/AGENTS.md@sha256:1f6f963f91f9f358

The line at the top of this page pins the label git:20261101.0d54756, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_nqvoa5akp4zorxbx.svg)](https://markdownregistry.com/a/art_nqvoa5akp4zorxbx)

2 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 7 versions of this file, between Aug 11, 2026 and Nov 1, 2026, about one every 14 days.

versioncommittedcommitsizeaudit
git:20261101.0d54756 latest2026-11-01 0d54756 6,195 BA view · diff
git:20260914.a8de4742026-09-14 a8de474 3,327 BA view · diff
git:20260907.3f756f82026-09-07 3f756f8 3,030 BA view · diff
git:20260907.287c4f92026-09-07 287c4f9 2,864 BA view · diff
git:20260906.10384b92026-09-06 10384b9 2,729 BA view · diff
git:20260819.fefe3c92026-08-19 fefe3c9 2,408 BA view · diff
git:20260811.3aa1eec2026-08-11 3aa1eec 5,081 BA view

Audit of the latest version

A  14 of 14 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Size between 200 bytes and 200 KB (6195 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

sap/astonish · 25 stars · license Apache-2.0 · pushed 2026-11-01 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_nqvoa5akp4zorxbx
GET https://markdownregistry.com/api/v1/resolve?ref=sap/astonish/pkg/agent/AGENTS.md
GET https://markdownregistry.com/api/v1/blob/1f6f963f91f9f358e1d4aa252f5e0d66590f4d0e4e016462dd50bdedf7883ade

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: how to write a good AGENTS.md · AGENTS.md vs CLAUDE.md · which agent file does what.

More from sap/astonish

AGENTS.md AGENTS.md file
sap/astonish · AGENTS.md
git:20260926.5b6636f · audit A · 25 stars
CLAUDE.md CLAUDE.md file
sap/astonish · CLAUDE.md
git:20260811.3aa1eec · audit B · 25 stars
AGENTS.md@cmd/astonish AGENTS.md file
sap/astonish · cmd/astonish/AGENTS.md
git:20260819.fefe3c9 · audit A · 25 stars
AGENTS.md@docs/architecture AGENTS.md file
sap/astonish · docs/architecture/AGENTS.md
git:20260912.5810873 · audit A · 25 stars
AGENTS.md@ent AGENTS.md file
sap/astonish · ent/AGENTS.md
git:20260819.fefe3c9 · audit A · 25 stars
AGENTS.md@pkg/api AGENTS.md file
sap/astonish · pkg/api/AGENTS.md
git:20260709.e232662 · audit A · 25 stars
AGENTS.md@pkg/browser AGENTS.md file
sap/astonish · pkg/browser/AGENTS.md
git:20260717.063b386 · audit A · 25 stars
AGENTS.md@pkg/channels AGENTS.md file
sap/astonish · pkg/channels/AGENTS.md
git:20260814.a3bb48b · audit A · 25 stars
AGENTS.md@pkg/channels/a2a AGENTS.md file
sap/astonish · pkg/channels/a2a/AGENTS.md
git:20260814.a3bb48b · audit A · 25 stars
AGENTS.md@pkg/config AGENTS.md file
sap/astonish · pkg/config/AGENTS.md
git:20260819.fefe3c9 · audit A · 25 stars
AGENTS.md@pkg/credentials AGENTS.md file
sap/astonish · pkg/credentials/AGENTS.md
git:20260819.fefe3c9 · audit A · 25 stars
AGENTS.md@pkg/daemon AGENTS.md file
sap/astonish · pkg/daemon/AGENTS.md
git:20260709.e232662 · audit A · 25 stars

Every file in sap/astonish

Other files named AGENTS.md@pkg/agent

AGENTS.md@pkg/agent AGENTS.md file
flowline-io/flowbot · pkg/agent/AGENTS.md
git:20261021.b28f51a · audit A · 10 stars

Browse by kind, by grade A, or by owner.