agentleFS
AWSKnown publisherawslabs/agentcore-samples/02-use-cases/02-workflow-automation-agents/receipts-intelligent-document-processing-agent/AGENTS.md

agentcore-samples / receipts-intelligent-document-processing-agent

AGENTS.md3.4k starsChanged 6 months agoApache-2.0View on GitHub

Guidance for AI agents and contributors working in this sample.

Trending

Less talk lately.thin dataabout the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 2 mentionsMay 2026: 3 mentionsJun 2026: 2 mentionsJul 2026: 1 mentionAug 2026: 0 mentionsSep 2026: 0 mentionsOct 2026: 1 mentionNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the awslabs/agentcore-samples repository that our weekly crawl found: only 9 in all, so this is a hint, not a trend. There is no adoption data for this file yet.

Who's talking about awslabs/agentcore-samples

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

See all 9

Talked about on GitHub (9 times).

On GitHub · 9

4 more on GitHub

The file

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

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Grounding: verify AgentCore APIs against the SDK/docs before writing (Cedar, Gateway, AppConfig especially).

    line 16

≈ “Common” is an estimate: at least 1 in 5 of the 16,597 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

AGENTS.md — Receipts IDP on AgentCore

Guidance for AI agents and contributors working in this sample.

Orientation

  • How it works: docs/ARCHITECTURE.md. Why each choice: docs/decisions/ (ADRs). Knobs: docs/CONFIGURATION.md. Guided run: docs/tutorial.md.
  • Sibling reference: awslabs/agentcore-samples/.../event-driven-claims-agent — this sample mirrors its layout and conventions. When in doubt, match it.
  • Build status: complete and live-verified end to end — receipt → Textract OCR → dual agent (extractor → independent validator) → Cedar-gated persist or human review, with a model degradation ladder (config-driven model, in-agent 503 step-down, account-level control loop, L4 SQS drain), an event-driven S3 front door, Observability, and Evaluations. All six AgentCore services exercised.

Conventions (do not break)

  • The seam: app/receiptsagent/config.py is the ONLY place env vars are read. The agent must depend on env/AppConfig, never on CLI/CDK specifics, so the deploy mechanism stays replaceable (spec §13).
  • Model id is never hardcoded. It comes from config (the L0 default) and, in a deployed stack, from the active degradation rung. Pass model_id into load_model().
  • Auth is agent-as-principal M2M Cognito, not per-user JWT. Per-user data separation is the DynamoDB partition key + each tool only touching its given userId.
  • Tools are Gateway Lambdas (lambdas/<tool>/handler.py + lambdas/schemas/<tool>.json + a PLACEHOLDER_<TOOL> target in agentcore.json patched by the CDK stack). Keep schema ↔ handler in sync.
  • Global inference profile ids (incl. the claude-opus-4-6-v1 -v1 suffix) come from aws bedrock list-inference-profiles — never pattern-construct them.
  • Grounding: verify AgentCore APIs against the SDK/docs before writing (Cedar, Gateway, AppConfig especially). Don't write from memory.

Deploy / test

./deploy.sh <region> (CDK + Runtime, one command) · python3 scripts/test_invoke.py · ./destroy.sh <region>.

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.