Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
git clone --depth 1 https://github.com/d-padmanabhan/agent-engineering-handbookWrote 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/rules/d-padmanabhan/agent-engineering-handbook/317-okta)<a href="https://agentmods.dev/rules/d-padmanabhan/agent-engineering-handbook/317-okta"><img src="https://agentmods.dev/badge/rules/d-padmanabhan/agent-engineering-handbook/317-okta/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/rules/d-padmanabhan/agent-engineering-handbook/317-okta"><img src="https://agentmods.dev/badge/rules/d-padmanabhan/agent-engineering-handbook/317-okta.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.00039 | $0.05209 |
| Opus 5.5 | $0.00016 | $0.02084 |
| Sonnet 5.5 | $0.00008 | $0.01042 |
| Haiku 4.5 | $0.00004 | $0.00521 |
Grade D, and why
317-okta scanned grade D with 2 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 3mo 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.
Asks for rootmediumPrivilege escalation
A mod that escalates privileges can change anything on the machine, not only the project.
- **MFA on elevation** (sudo / admin commands) Reaches for credential fileshighPrivilege escalation
SSH keys, cloud credentials, git-credentials, .npmrc, /etc/shadow: reading these is how a config file becomes a credential leak.
- **No shared bastion credentials**; no `~/.ssh/authorized_keys` drift How it starts
The opening of the file, as written. The whole thing — 498 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Okta Workforce Identity
Audience: engineers designing, operating, or auditing Okta Workforce Identity (SSO, MFA, lifecycle, Workflows, Advanced Server Access).
Scope: Okta Workforce Identity Cloud (WIC). For Customer Identity Cloud (formerly Auth0), see Auth0 documentation - patterns overlap but are not identical.
[!IMPORTANT] This rule complements:
315-iam.mdc- protocol reference (OIDC/SAML/PKCE/PKI)316-zero-trust.mdc- Zero Trust principles (always-on)180-terraform.mdc- Terraform patterns (forterraform-provider-okta)Use this rule for Okta-specific decisions: app config, policies, SCIM, Workflows, API usage, and Terraform modelling.
Non-negotiables
- MFA required for all users (WebAuthn / FIDO2 preferred; TOTP acceptable; SMS is legacy)
- Phishing-resistant MFA for privileged roles (Super Admin, Org Admin, App Admin on sensitive apps)
- No long-lived API tokens in code or config - use OAuth 2.0 for Okta or scoped, rotated SSWS tokens in a vault
- All apps use OIDC or SAML with signed responses, audience and issuer validation, and short assertion lifetimes
- Source of truth for identities is the HRIS (Workday, BambooHR, etc.) or IdP-to-IdP federation, not manual Okta user creation
- Audit log exported to SIEM (System Log API or Event Hooks), retention aligned with policy
- Terraform-managed org (
terraform-provider-okta) for any non-trivial config; no click-ops drift
Org and Environment Model
Orgs (tenants)
- Production org - real users, real apps
- Preview/sandbox org - test config changes, Workflows, API automations
- Optional per-env orgs for isolation of dev/stage/prod app configurations
Realms (if using Identity Engine Realms)
- Use realms to segment user populations (employees, contractors, partners) with distinct policies
- Do not use realms as a substitute for separate orgs when compliance requires full isolation
Admin access
- No standing Super Admin access for humans - use just-in-time elevation with approval
- Scoped admin roles (Group Admin, App Admin for specific apps) preferred over broad roles
- Service principals for automation use scoped admin roles, not Super Admin
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.
- 3mo ago First seen · 498 lines · 39 tokens per session scan D c4bfa1aab84c
317-okta is a cursor rule published in the GitHub repository d-padmanabhan/agent-engineering-handbook (21 stars, last pushed 5d ago), licensed MIT. It adds 39 tokens to every session and 5,209 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it D with 2 findings (asks for root, reaches for credential files). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
317-okta compared with cursor rules from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| 317-oktad-padmanabhan/agent-engineering-handbook | Cursor rule | 21 | 5d ago | MIT | D | 39 | Cursor |
| ponytailDietrichGebert/ponytail | Cursor rule | 203k | 10d ago | MIT | A | 604 | Cursor |
| angular-20angular/angular | Cursor rule | 102k | today | MIT | A | 0 | Cursor |
| dev-standardapache/superset | Cursor rule | 76k | today | Apache-2.0 | A | 1,147 | Cursor |
| prefer-assertions-over-defensive-checksprisma/orm | Cursor rule | 48k | today | Apache-2.0 | A | 0 | Cursor |
| prefer-direct-imports-over-module-mocksprisma/orm | Cursor rule | 48k | today | Apache-2.0 | A | 0 | Cursor |
| shared-plane-packagesprisma/orm | Cursor rule | 48k | today | Apache-2.0 | A | 0 | Cursor |