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.3.0.tar.gz (99.3 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.3.0-py3-none-any.whl (31.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ghafi-0.3.0.tar.gz
  • Upload date:
  • Size: 99.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.23 {"installer":{"name":"uv","version":"0.11.23","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.3.0.tar.gz
Algorithm Hash digest
SHA256 5fa62f8753b0c7e1a8014d6b548a12fca317a0b003710e95b3d03021ef9237fe
MD5 de5564ee497e1cebf4f8963002f0209f
BLAKE2b-256 a163351a79c1d66f8d0de704cb67e2fafbf0149c5e8dffbaf5f2d9acbce7e9ab

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ghafi-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 31.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.23 {"installer":{"name":"uv","version":"0.11.23","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.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 202febf9db8669feb2481c9a760e3faa2702e61eaaf2263b80998234532b1c5e
MD5 72745b7262a3f7e6e0215d1b7c29494d
BLAKE2b-256 b2d82674ac8d758b1cf76499aea96035ec5a0c5baf084b94291eede2af0fb798

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