Reliable coding-agent commands across Unicode paths, shell encodings, Git output, Python launchers, and mixed-encoding files.
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file agent_locale-0.1.0a1.tar.gz.
File metadata
- Download URL: agent_locale-0.1.0a1.tar.gz
- Upload date:
- Size: 122.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d343ede4e64d3f2d95afad6373bb0e9fa1f44b7eac0db4692147d5f5246c153c
|
|
| MD5 |
b70f41be08426236af7ae3566c48836c
|
|
| BLAKE2b-256 |
dc1c30c0673cbd940e6a73a20f1551e3376707bfede2d26d81c5e53271d3fe42
|
File details
Details for the file agent_locale-0.1.0a1-py3-none-any.whl.
File metadata
- Download URL: agent_locale-0.1.0a1-py3-none-any.whl
- Upload date:
- Size: 159.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
200d7c1620cdb2a07a47b5187578e3eb37dbf0bcf09c117c72ba0835e51ccf9a
|
|
| MD5 |
24f2e011a440681c5b934717c4d9f5c5
|
|
| BLAKE2b-256 |
6727c5be6e3947d1d522a2b49c808bd7ab4e17c9bce8d6ceace6e2f5e8e0dcab
|