agent-identity
Skill0 starsChanged 2 months agoMITView on GitHub
Design authentication, delegation, and trust verification across agents and identity sources. Use when establishing agent identity, auth, or provenance.
5 other projects use a version of this.
Adopted by
Most recently taken up by
- thistleknot/skillstheir own version, first seen Nov 8, 2026
- TermiX-official/cryptoclawtheir own version, first seen Oct 8, 2026
- agentmessaging/agent-identitytheir own version, first seen Oct 1, 2026
- JKHeadley/instartheir own version, first seen Jul 13, 2026
- PalmCoast/clawlock-plugintheir own version, first seen Apr 1, 2026
Other versions5 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 5
- TermiX-official/cryptoclaw★ 100same name
- JKHeadley/instar★ 86same name
- agentmessaging/agent-identity★ 4same name
- PalmCoast/clawlock-plugin★ 0same name
- thistleknot/skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository16 other files it gives its agents.
- agent-architectureSkill
- agent-orchestrationSkill
- agent-safetySkill
- automation-reviewSkill
- composioSkill
- create-skillSkill
- document-generationSkill
- mcp-builderSkill
- n8nSkill
- prompt-engineeringSkill
- prompt-librarySkill
- rag-systemsSkill
- report-automationSkill
- skill-linterSkill
- trigger-devSkill
- workflow-mappingSkill
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 3 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
3
Distinctive
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
- Distinctive: line 22
Use short-lived X.509 certificates generated via an internal CA (HashiCorp Vault or SPIRE) with automated 60-minute rotation.
- Distinctive: line 28
When a human user delegates a task to an agent, the agent exchanges the user's primary identity token for an ephemeral, down-scoped access …
- Distinctive: line 51
Never inject raw database passwords into LLM context.
“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
agent-identity
Core Philosophy
Autonomous AI agents cannot operate in production under shared, static API keys or god-mode admin credentials. An agent is an independent non-human entity executing non-deterministic actions. Production agent architecture requires verifiable cryptographic identity, short-lived scoped delegation tokens, mutual TLS (mTLS) between agent runtimes, and an auditable cryptographic provenance chain for every tool execution and artifact generated.
4-Stage Agent Identity & Delegation Architecture
Stage 1: Cryptographic Identity & Attestation
- Machine Identity Provisioning:
- Issue each agent instance a unique SPIFFE ID (e.g.
spiffe://cluster.local/ns/agents/sa/code-reviewer). - Use short-lived X.509 certificates generated via an internal CA (HashiCorp Vault or SPIRE) with automated 60-minute rotation.
- Issue each agent instance a unique SPIFFE ID (e.g.
- Runtime Attestation:
- Validate agent execution integrity: verify container image digest, host TPM hash, and signed system prompt hash before granting credentials.
Stage 2: Scoped Delegation & Ephemeral Token Exchange
- OAuth 2.0 Token Exchange (RFC 8693):
- When a human user delegates a task to an agent, the agent exchanges the user's primary identity token for an ephemeral, down-scoped access token:
- Down-scoping: If user has
read:all, write:all, delete:all, the agent receives onlyread:repo, write:branchwith a 15-minute TTL.
- Down-scoping: If user has
- When a human user delegates a task to an agent, the agent exchanges the user's primary identity token for an ephemeral, down-scoped access token:
- Actor Chaining Claims:
- Structure JSON Web Tokens (JWT) with explicit
act(actor) claims to preserve audit trails:{ "sub": "user_12345", "act": { "sub": "agent_code_builder_v3", "iss": "https://auth.internal.corp" }, "scope": "repo:write_branch", "exp": 1726000000 }
- Structure JSON Web Tokens (JWT) with explicit
Stage 3: Tool-Level Access Control & Permissions Gates
- Deterministic Permission Matrix:
- Classify tools into risk tiers:
- Tier 0 (Read-Only): Search, inspect file, fetch URL (Agent executes autonomously).
- Tier 1 (Idempotent Mutation): Create feature branch, write scratch file (Agent executes with logging).
- Tier 2 (Destructive / External): Push to
main, execute database migration, transfer funds (Requires cryptographically signed human approval).
- Classify tools into risk tiers:
- Per-Tool Ephemeral Credentials:
- Never inject raw database passwords into LLM context. Pass single-use signed tokens or execute tools via isolated gRPC sidecars.
Stage 4: Provenance Chaining & Artifact Signing
- Cryptographic Signing of Agent Outputs:
- Sign generated code commits, PRs, and reports using Sigstore / Cosign with the agent's ephemeral private key.
- Immutable Audit Ledger:
- Log:
Timestamp,Agent_SPIFFE_ID,Prompt_Hash,Tool_Name,Arguments_Hash,Execution_Status,Approver_ID.
- Log:
Deliverable Format: Agent Identity Specification (AGENT-IDENTITY-SPEC.md)
# Agent Identity & Authentication Architecture
## 1. Identity & Credential Topology
- **Agent Type**: [e.g. Autonomous CI Remediation Agent]
- **SPIFFE ID**: `spiffe://prod.internal/agent/ci-healer`
- **Identity Provider (IdP)**: [Vault / SPIRE / Keycloak]
- **Certificate TTL**: 60 minutes (automated rotation)
## 2. Token Scoping & Actor Chaining
- **Down-Scoped OAuth Scopes**: `["repo:read", "git:push_feature_branch"]`
- **Parent Principal**: `user_deploy_engineer`
- **Actor Claim**: `agent_ci_healer_v2`
## 3. Tool Permission & Risk Matrix
| Tool Name | Risk Tier | Execution Gate | Credential Mechanism |
|---|---|---|---|
| `read_file` | Tier 0 | Autonomous | Read-only container mount |
| `create_branch` | Tier 1 | Autonomous | Ephemeral Git token (15m TTL) |
| `trigger_deploy` | Tier 2 | Human Approval Gate | Webhook signed by Tech Lead |
## 4. Cryptographic Provenance
- **Artifact Signing**: Cosign keyless signing tied to SPIFFE certificate.
- **Audit Target**: Append-only OpenSearch cluster (`#audit-agent-ops`).Worked Example: Autonomous Code Agent Identity Flow
- Flow: User asks agent to fix a failing test.
- Authentication: Agent exchanges user session cookie for a 15-minute down-scoped GitHub App installation token restricted solely to repository
repo-apiand branchfix/*. - Commit Sign-Off: Agent commits fix signed with GPG subkey verifying
commit-signer: agent-builder@internal. Pull request description displays verified badge. - Audit: Security team can trace exact model checkpoint, system prompt version, and user authorization chain for the commit.
Verification Checklist
- Agent operates with short-lived ephemeral tokens (TTL $\le 60$ minutes).
- Actor chaining (
actclaim) is preserved in all downstream authorization tokens. - Tier 2 destructive actions enforce a hard human-in-the-loop cryptographic gate.
- Agent private keys are stored in secure memory or TPM, never written to disk or logs.
- All code commits or public mutations are cryptographically signed.
Anti-Patterns
- Static Long-Lived API Keys: Storing a permanent admin personal access token in an environment variable for the agent.
- God-Mode Agent Context: Giving an agent full write access to production databases without tool-level schema checks.
- Anonymous Execution: Running multi-agent swarms where actions cannot be attributed to a specific model version and user session.
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
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.

