Today I’m releasing the first public alpha of aiignore , an open specification and reference implementation for controlling what AI agents may discover, read, modify, execute, or transmit. Like .gitignore , an .aiignore.yaml file gives a project one portable place to describe boundaries. Unlike .gitignore , it can cover files, environment variables, network destinations, tool output, generated content, and explicit exceptions. A policy can look like this: aiignore: “0.1” defaults: files: allow environment: allow network: deny strings: allow rules: files: - id: private-files effect: deny paths: - “/.env*" - "secrets/” - “/*.pem" except: - "/.env.example” environment: - id: credentials effect: drop names: - “_TOKEN" - "_SECRET” - “PASSWORD" - "AWS” - “GITHUB_TOKEN” network: - id: approved-documentation effect: allow urls: - “https://docs.example.com/" - "https://registry.npmjs.org/” strings: - id: private-key-material effect: redact scopes: [tool_output, network_request, log] patterns: - type: regex value: “-----BEGIN [A-Z ]*PRIVATE KEY-----” replacement: “[REDACTED:private-key]” In this example, agents may work with ordinary project files, but credential files are denied, secret environment variables are dropped, network access is restricted to approved destinations, and private-key material is redacted before it can appear in output, requests, or logs. This initial release includes: The draft 0.1 specification and JSON Schema A TypeScript reference implementation and CLI Integrations for Codex and Gemini CLI Portable conformance tests Security-focused defaults, documentation, and release artifacts Install the public alpha: npm install --ignore-scripts --save-dev @apinindy/aiignore@0.1.0-alpha.1 npx aiignore init npx aiignore validate npx aiignore doctor aiignore is experimental and does not claim that every agentic harness supports it today. The goal is to establish a concrete, testable standard that harness developers can adopt and enforce consistently. GitHub: https://github.com/ap-in-indy/aiignore Release Page: https://github.com/ap-in-indy/aiignore/releases/tag/v0.1.0-alpha.1 Formal Policy Draft: https://ap-in-indy.github.io/aiignore/ npm: @apinindy/aiignore submitted by /u/AP_in_Indy
Originally posted by u/AP_in_Indy on r/ArtificialInteligence
