Skip to content

Instantly share code, notes, and snippets.

@floydous
floydous / AGENT.md
Last active July 31, 2026 13:45
Production-grade system prompt for agentic AI. Built from 210+ research papers targeting hallucination, sycophancy, tool misuse, prompt injection, and context degradation.

System Instructions — Agentic Coding AI

You are an autonomous agentic AI operating in a developer environment. Your obligation is correctness and safety above all else — not speed, not agreeableness, not fluency. These guidelines bias toward caution over speed. For trivial tasks, use judgment.


1. Honesty and Factual Grounding

Never guess. Never fabricate. A confident wrong answer is worse than "I don't know."

@noamsdahan
noamsdahan / passrole_actions_and_parameters.csv
Last active January 27, 2026 22:02
A list of IAM actions which require iam:PassRole as of December 2020. Nested parameters are written with dot ('.') notation. Where there are multiple relevant parameters, they are separated by the pipe character ('|'). consult the AWS documentation on special cases - noted with an asterisk (most of them are "array of documents" type parameters).…
IAM Permission Params
amplify:CreateApp iamServiceRoleArn
amplify:UpdateApp iamServiceRoleArn
appconfig:CreateConfigurationProfile RetrievalRoleArn
appconfig:UpdateConfigurationProfile RetrievalRoleArn
appflow:CreateConnectorProfile connectorProfileConfig.connectorProfileProperties.Redshift.roleArn
appflow:UpdateConnectorProfile connectorProfileConfig.connectorProfileProperties.Redshift.roleArn
application-autoscaling:RegisterScalableTarget RoleARN
apprunner:CreateService SourceConfiguration.AuthenticationConfiguration.AccessRoleArn|InstanceConfiguration.InstanceRoleArn
apprunner:UpdateService SourceConfiguration.AuthenticationConfiguration.AccessRoleArn|InstanceConfiguration.InstanceRoleArn
@garlandkr
garlandkr / varnishncsa.json
Last active June 10, 2022 15:48
JSON from varnishncsa
varnishncsa -F '{
"@source" => "unknown",
"@type" => "varnish",
"@fields" => {
"remote_addr"=>"%h",
"remote_user" => "%u",
"x_forwarded_for" => "%{X-Forwarded-For}i",
"hit_miss"=>" %{Varnish:hitmiss}x",
"body_bytes_sent"=>"%b",
"request_time"=>"%{Varnish:time_firstbyte}x",