{"id":49509719,"url":"https://github.com/fjoelnr/anr-cli","last_synced_at":"2026-05-01T18:35:36.261Z","repository":{"id":342829734,"uuid":"1175324417","full_name":"fjoelnr/anr-cli","owner":"fjoelnr","description":null,"archived":false,"fork":false,"pushed_at":"2026-03-16T19:09:44.000Z","size":44,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"develop","last_synced_at":"2026-03-17T06:03:20.674Z","etag":null,"topics":["ai-native","anr","cli"],"latest_commit_sha":null,"homepage":null,"language":"Python","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/fjoelnr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"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-03-07T14:57:51.000Z","updated_at":"2026-03-16T19:10:10.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/fjoelnr/anr-cli","commit_stats":null,"previous_names":["fjoelnr/anr-cli"],"tags_count":0,"template":false,"template_full_name":"fjoelnr/ai-native-repo-template","purl":"pkg:github/fjoelnr/anr-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fjoelnr%2Fanr-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fjoelnr%2Fanr-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fjoelnr%2Fanr-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fjoelnr%2Fanr-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fjoelnr","download_url":"https://codeload.github.com/fjoelnr/anr-cli/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fjoelnr%2Fanr-cli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32508910,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"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":["ai-native","anr","cli"],"created_at":"2026-05-01T18:35:35.470Z","updated_at":"2026-05-01T18:35:36.254Z","avatar_url":"https://github.com/fjoelnr.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ANR CLI\n\nANR CLI exists for one practical reason:\nhelp turn normal repositories into AI Native Repositories.\n\nRepositories were built for humans.  \nANR makes them readable for agents.\n\n## Why This Tool Exists\n\nThe ANR idea is simple:\n\n- `AGENTS.md` should hold the why, the map, and the rules\n- local `AGENT.md` files should live near sharp edges\n- skills should capture reusable expert modes\n- workflows should explain how work gets done\n- guardrails should define what must stay deterministic\n\nMost repositories do not start that way.\nThey have to be migrated.\n\nANR CLI is the practical migration tool for that job.\n\n## What This Repository Is For\n\nThis repository is the implementation home of the ANR command-line tool.\n\nUse it when you want to:\n\n- bootstrap a new repository with ANR basics\n- migrate an existing repository toward ANR structure\n- validate whether an existing repository actually meets ANR expectations\n\nThis is not just a concept repo.\nIt is the executable layer that should make ANR practical in day-to-day repository work.\n\n## What It Helps Create\n\n- `AGENTS.md` -\u003e repo memory\n- `.agents/context-index.md` -\u003e repository map\n- `.agents/workflows/` -\u003e repeatable procedures\n- `.agents/skills/` -\u003e reusable reasoning\n- `.agents/guardrails/` -\u003e safety constraints\n- `anr.yaml` -\u003e machine-readable manifest\n\nThe goal is not more documentation for its own sake.\nThe goal is to make a repository feel project-native to an AI coding agent.\n\n## Core Workflow\n\n```bash\nanr init\nanr migrate .\nanr validate\n```\n\n## Install\n\n```bash\npip install -e .\nanr validate\n```\n\nFor local development:\n\n```bash\npython -m pip install -e .\npython -m anr.cli validate\n```\n\nTypical use:\n\n1. initialize a greenfield repository with ANR basics\n2. optionally apply a stack profile during initialization\n3. migrate an existing repository toward ANR structure\n3. validate that the expected context layer exists\n\n## Available Commands\n\n- `anr init [path]`\n- `anr init [path] --profile \u003cjava-spring|platformio-iot|mcp-infra\u003e`\n- `anr init --list-profiles`\n- `anr migrate [path]`\n- `anr validate [path]`\n- `anr upgrade [path] --level \u003c2|3\u003e`\n- `anr plan [path] [--json]`\n- `anr apply [path] [--dry-run|--auto]`\n\n## Stack Profiles\n\nThe CLI can now add a small, deterministic stack overlay during `init`.\n\n```bash\nanr init . --profile platformio-iot\n```\n\nCurrent profiles:\n\n- `java-spring`\n- `platformio-iot`\n- `mcp-infra`\n\nProfile application currently does three things:\n\n- adds a managed stack block to `AGENTS.md`\n- writes `anr.profile.yaml`\n- creates stack-specific docs only when they do not already exist\n\nThis keeps the baseline ANR scaffold generic while still making new repositories useful on day one.\n\n## Current Status\n\n- repository role: implementation repo for the ANR CLI\n- maturity: early but usable for local migration, validation, and profile-based initialization\n- packaging: Python package via `pyproject.toml`\n- default branch flow: `feature -\u003e develop -\u003e main`\n\n## Key Links\n\n- Status: [docs/STATUS.md](docs/STATUS.md)\n- Architecture: [docs/architecture.md](docs/architecture.md)\n- Compliance Levels: [docs/compliance-levels.md](docs/compliance-levels.md)\n- ANR Positioning: [docs/anr-positioning.md](docs/anr-positioning.md)\n\n## Compliance Levels\n\n- Level 0 -\u003e not ANR\n- Level 1 -\u003e `AGENTS.md` + `.agents/context-index.md`\n- Level 2 -\u003e local context and workflows\n- Level 3 -\u003e skills, guardrails, and manifest\n\n## The Real Use Case\n\nThe important use case is not scaffolding toy repositories.\nIt is upgrading real projects so agents can continue working there more efficiently.\n\nTypical prompt:\n\n`Convert this repository to ANR.`\n\nExpected outcome:\n\n- clearer repository memory\n- fewer repeated prompts\n- more consistent agent behavior\n- safer edits in risky areas\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffjoelnr%2Fanr-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffjoelnr%2Fanr-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffjoelnr%2Fanr-cli/lists"}