Skip to main content

ghafi — GitHub Agent First Interface; an AgentCulture manager.

Project description

ghafi

GitHub CLI and agent — an AgentCulture manager.

ghafi bootstraps and maintains AgentCulture sibling repositories on GitHub: create new repos with workflow permissions, scaffold the afi-cli python-cli template into them, and create the pypi / testpypi GitHub Environments needed for Trusted Publishing.

Install

uv tool install ghafi
# or
pip install ghafi

Usage

export GITHUB_TOKEN=ghp_...

ghafi learn                          # self-teaching prompt (also --json)
ghafi whoami                         # verify the token
ghafi repo create my-new-repo        # dry-run: prints would-be POST body
ghafi repo create my-new-repo --apply
ghafi repo scaffold ./my-new-repo --apply       # shells out to `afi cli cite`
ghafi repo env my-new-repo --name pypi --apply
ghafi repo env my-new-repo --name testpypi --apply

Every GitHub-mutating verb defaults to dry-run. Pass --apply to commit.

Status

Early v0.x. See CHANGELOG.md for the full surface and CLAUDE.md for the project shape and conventions.

License

MIT.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ghafi-0.0.1.tar.gz (60.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ghafi-0.0.1-py3-none-any.whl (20.0 kB view details)

Uploaded Python 3

File details

Details for the file ghafi-0.0.1.tar.gz.

File metadata

  • Download URL: ghafi-0.0.1.tar.gz
  • Upload date:
  • Size: 60.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for ghafi-0.0.1.tar.gz
Algorithm Hash digest
SHA256 0c485a02cc30ee2df85f5a69fb323d9bc8cfc7821e1dd5afac067f598f9297e4
MD5 5e562f97d6afb7d06bbadad7da615a8b
BLAKE2b-256 262fe44157fbe5af76a6f2556cc1aafd5c8acdcb21bbae40b7ee9a41591a6f16

See more details on using hashes here.

File details

Details for the file ghafi-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: ghafi-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 20.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for ghafi-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 545973d289e96f8e989043752893caab185c509d248966c1644b79c01d66d4f5
MD5 96dbc8e0069469b61c046980abc21836
BLAKE2b-256 4dadfcc18bccf36ec69795a0d21ab84fc9fb28c9fe387f6f680f6ae2a3f975bc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page