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.2.0.tar.gz (84.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.2.0-py3-none-any.whl (24.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ghafi-0.2.0.tar.gz
  • Upload date:
  • Size: 84.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.2.0.tar.gz
Algorithm Hash digest
SHA256 64e4a94e0c3d7c1f51887a79ce7c2196ecc9e1fbaba314f5916de8bb8924a08a
MD5 b292864fbe5487c7a0dfed4684c4b063
BLAKE2b-256 c7bbe4839628e7bf655ccb78c410cc04983e8c2c1e78f66242833605658ae4bd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ghafi-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 24.1 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1d7811b74162a7637bda9c406786f1f7a74dc81b9df540a04ef5194c1f59ee37
MD5 9eee9740614ec9f3c43a268dd45057f1
BLAKE2b-256 262598ec2b06f38ca038d6db4dd68f6eaec8186c48cf599f07b85891ab446f7f

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