This release is a pre-release and may not be stable for production use.
agent-locale
agent-locale helps coding agents run project commands reliably across Unicode paths, shell encodings, Git output, Python launchers, and mixed-encoding files.
It can:
- diagnose local shell, Python, Git, path, and encoding problems;
- create a repository-scoped command gateway;
- save repeatable project commands as aliases;
- verify edits to UTF-8, UTF-16, BOM, and GBK files;
- produce compact local reports for troubleshooting.
Requirements
- Python 3.10 or newer;
- Git;
- Windows, macOS, or Linux.
A coding-agent CLI is optional. The core commands work without Codex, Claude Code, OpenCode, or Gemini CLI.
Install
git clone https://github.com/starsaround/agent-locale.git
cd agent-locale
python -m venv .venv
Activate the environment:
# macOS / Linux
source .venv/bin/activate
# Windows PowerShell
.\.venv\Scripts\Activate.ps1
Install the CLI:
python -m pip install .
agent-locale --help
Install directly from GitHub without cloning:
python -m pip install "agent-locale @ git+https://github.com/starsaround/agent-locale.git"
On Windows, use py -3 or an absolute interpreter path if python opens the Microsoft Store. On macOS or Linux, use a virtual environment when the system Python rejects package installation.
Quick Start
Inspect the current machine and repository:
agent-locale doctor
agent-locale quickstart
Create the repository-local command gateway:
agent-locale bootstrap
agent-locale repair verify
agent-locale exec -- python --version
List and run saved project commands:
agent-locale commands list
agent-locale run test
Use agent-locale doctor --help for command-specific options, replacing doctor with the command you want to inspect.
Generate the optional harness pack when you need reusable pack files in the current repository:
agent-locale export-pack
Local Files And Cleanup
bootstrap may create:
.agent-locale/for gateway state, reports, and command logs;.agents/skills/i18n-reliability/for the managed repository skill;- a managed block in
AGENTS.md.
It does not change global PATH, shell profiles, or system locale settings.
Preview cleanup:
agent-locale clean --all --installed-skill --dry-run
agent-locale deactivate --update-agents --remove-logs --remove-installed-skill --dry-run
Remove --dry-run after reviewing the planned changes.
Agent Integrations
Core diagnosis, gateway, repair, cleanup, and edit verification work without an agent CLI.
| Capability | Supported agents |
|---|---|
| CLI discovery | Codex, Claude Code, OpenCode, Gemini CLI |
| Task templates and event summaries | Codex, Claude Code, OpenCode |
| Optional edit-preservation self-test | Codex |
Agent-specific adapters are optional. Select one only when generating a task template or running an agent-specific self-test.
Platform Support
| Platform | Status |
|---|---|
| Windows 11 | Tested |
| macOS on Apple silicon | Tested |
| Linux | Limited |
| Windows 10 | Unverified |
| macOS on Intel | Unverified |
Safety And Privacy
Commands passed to agent-locale exec run with the current user's permissions. Review commands before running them.
Full command logging may contain sensitive output even though common secret formats are redacted. Use one of these modes for sensitive commands:
agent-locale exec --log-policy metadata -- python -V
agent-locale exec --log-policy none -- python -V
Replace python -V with the command you need to run.
Reports, logs, fixtures, and repository state remain local unless you explicitly share or upload them. Review generated files before attaching them to a public issue.
Feedback
Use GitHub Issues for bugs and compatibility feedback. Do not post credentials, private source code, proprietary logs, or other sensitive information.
License
Metadata
Release files for agent-locale 0.1.0a1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| agent_locale-0.1.0a1.tar.gz | 122.1 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| agent_locale-0.1.0a1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 281.6 kB
Release files / agent_locale-0.1.0a1.tar.gz
| Download URL | agent_locale-0.1.0a1.tar.gz |
|---|---|
| Size | 122.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d343ede4e64d3f2d95afad6373bb0e9fa1f44b7eac0db4692147d5f5246c153c
|
|
BLAKE2b-256 checksum How to use checksums |
dc1c30c0673cbd940e6a73a20f1551e3376707bfede2d26d81c5e53271d3fe42
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|
Release files / agent_locale-0.1.0a1-py3-none-any.whl
| Download URL | agent_locale-0.1.0a1-py3-none-any.whl |
|---|---|
| Size | 159.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
200d7c1620cdb2a07a47b5187578e3eb37dbf0bcf09c117c72ba0835e51ccf9a
|
|
BLAKE2b-256 checksum How to use checksums |
6727c5be6e3947d1d522a2b49c808bd7ab4e17c9bce8d6ceace6e2f5e8e0dcab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|
Security for agent-locale 0.1.0a1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.