{"id":50595881,"url":"https://github.com/rogerchappel/agentpermit","last_synced_at":"2026-06-05T14:01:36.522Z","repository":{"id":360535751,"uuid":"1237517253","full_name":"rogerchappel/agentpermit","owner":"rogerchappel","description":"Local policy simulator for agent tool permissions.","archived":false,"fork":false,"pushed_at":"2026-05-26T19:53:24.000Z","size":47,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-26T21:24:06.537Z","etag":null,"topics":["agents","cli","permissions","policy","sandbox","security","simulator"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rogerchappel.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":"ROADMAP.md","authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-05-13T08:55:58.000Z","updated_at":"2026-05-26T19:53:28.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/rogerchappel/agentpermit","commit_stats":null,"previous_names":["rogerchappel/agentpermit"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/rogerchappel/agentpermit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rogerchappel%2Fagentpermit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rogerchappel%2Fagentpermit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rogerchappel%2Fagentpermit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rogerchappel%2Fagentpermit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rogerchappel","download_url":"https://codeload.github.com/rogerchappel/agentpermit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rogerchappel%2Fagentpermit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33944671,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-05T02:00:06.157Z","response_time":120,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["agents","cli","permissions","policy","sandbox","security","simulator"],"created_at":"2026-06-05T14:01:34.846Z","updated_at":"2026-06-05T14:01:36.515Z","avatar_url":"https://github.com/rogerchappel.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AgentPermit\n\nAgentPermit is a local policy simulator for agent tool permissions. Feed it a\nproposed action trace and a small policy file; it tells you what would be\nallowed, warned, or denied before anything runs.\n\nIt is deliberately boring in the best way: deterministic JSON in, deterministic\nreasons out, no telemetry, no hosted service, and no LLM dependency.\n\n## Install\n\n```sh\nnpm install agentpermit\n```\n\nFor local development:\n\n```sh\ngit clone https://github.com/rogerchappel/agentpermit.git\ncd agentpermit\nnpm install\nnpm run build\nnode dist/cli.js --help\n```\n\n## Quick start\n\n```sh\nagentpermit init ./demo\nagentpermit check ./demo --format text\nagentpermit check ./demo --format json\nagentpermit explain ./demo\n```\n\nA workspace contains two files:\n\n- `agentpermit.policy.json` — ordered allow/warn/deny rules.\n- `agentpermit.trace.json` — proposed actions from an agent or fixture.\n\n## Example trace\n\n```json\n{\n  \"actions\": [\n    { \"id\": \"read-prd\", \"tool\": \"read\", \"path\": \"docs/PRD.md\" },\n    { \"id\": \"send-status\", \"tool\": \"message\", \"kind\": \"message.send\", \"target\": \"#team\" }\n  ]\n}\n```\n\n## Example policy\n\n```json\n{\n  \"version\": 1,\n  \"name\": \"example-agent-workflow\",\n  \"defaultEffect\": \"warn\",\n  \"rules\": [\n    {\n      \"id\": \"allow-doc-reads\",\n      \"effect\": \"allow\",\n      \"reason\": \"Docs are intentionally reviewable context.\",\n      \"kinds\": [\"file.read\"],\n      \"paths\": [\"docs/**\", \"README.md\"]\n    },\n    {\n      \"id\": \"deny-outbound-message\",\n      \"effect\": \"deny\",\n      \"reason\": \"Messages leave the machine and need human approval.\",\n      \"tools\": [\"message\"],\n      \"kinds\": [\"message.send\"]\n    }\n  ]\n}\n```\n\n## Commands\n\n- `agentpermit init [target]` writes a starter policy and trace.\n- `agentpermit check [workspace] --format text|json` evaluates a trace.\n- `agentpermit explain [workspace]` prints a markdown explanation table.\n- `agentpermit report [workspace]` emits JSON for automation.\n\nExit codes:\n\n- `0` — no deny findings.\n- `1` — one or more deny findings.\n- `2` — invalid input, missing files, or invalid configuration.\n\n## Rule matching\n\nRules can match by `tools`, `kinds`, `paths`, `commands`, `urls`, and `targets`.\nPatterns support `*` for one path segment-ish wildcard and `**` for broad glob\nmatching. If multiple rules match, the strongest effect wins: deny \u003e warn \u003e\nallow. Ties are sorted by rule id for stability.\n\n## Verify\n\n```sh\nnpm test\nnpm run check\nnpm run build\nnpm run smoke\nbash scripts/validate.sh\nnode dist/cli.js check fixtures/mixed --format text\n```\n\n## Safety\n\nSee [docs/SAFETY.md](docs/SAFETY.md). AgentPermit only simulates decisions; it\ndoes not grant permission or execute actions.\n\n## Contributing\n\nSmall, fixture-backed changes are welcome. See [CONTRIBUTING.md](CONTRIBUTING.md).\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frogerchappel%2Fagentpermit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frogerchappel%2Fagentpermit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frogerchappel%2Fagentpermit/lists"}