🛰️ export from upstream (91f8f89)
This commit is contained in:
@@ -0,0 +1,70 @@
|
||||
# Codex Project Configuration
|
||||
|
||||
Codex uses TOML configuration. User-level defaults live in:
|
||||
|
||||
```text
|
||||
~/.codex/config.toml
|
||||
```
|
||||
|
||||
Project-level defaults can live in:
|
||||
|
||||
```text
|
||||
.codex/config.toml
|
||||
```
|
||||
|
||||
Codex loads project `.codex/` layers only for trusted projects. This means a checked-in project config is useful for shared defaults, but Codex may ignore it until the user has trusted the workspace.
|
||||
|
||||
## Declarative Plugin Setup
|
||||
|
||||
To use the Reliquary marketplace from a project without running the interactive plugin commands, add this to the project's `.codex/config.toml`:
|
||||
|
||||
```toml
|
||||
[marketplaces.reliquary]
|
||||
source_type = "git"
|
||||
source = "git@git.g4b.org:dirigence/reliquary.git"
|
||||
|
||||
[plugins."g4b_ai@reliquary"]
|
||||
enabled = true
|
||||
```
|
||||
|
||||
For a local clone:
|
||||
|
||||
```toml
|
||||
[marketplaces.reliquary]
|
||||
source_type = "local"
|
||||
source = "/path/to/reliquary"
|
||||
|
||||
[plugins."g4b_ai@reliquary"]
|
||||
enabled = true
|
||||
```
|
||||
|
||||
Add more plugin blocks as needed:
|
||||
|
||||
```toml
|
||||
[plugins."gitea@reliquary"]
|
||||
enabled = true
|
||||
|
||||
[plugins."project-uv@reliquary"]
|
||||
enabled = true
|
||||
|
||||
[plugins."dioxus@reliquary"]
|
||||
enabled = true
|
||||
```
|
||||
|
||||
The `workpad` skill is part of `g4b_ai`; there is no standalone `workpad@reliquary` plugin.
|
||||
|
||||
## Local-Only Settings
|
||||
|
||||
Claude supports `.claude/settings.local.json` for uncommitted machine-local overrides. Codex does not currently expose an exact project-file equivalent such as `.codex/config.local.toml`.
|
||||
|
||||
Use one of these instead:
|
||||
|
||||
- Put personal settings in `~/.codex/config.toml`.
|
||||
- Use a Codex profile file under `~/.codex/<profile-name>.config.toml` and launch Codex with `--profile <profile-name>`.
|
||||
- Keep project-specific local notes in `AGENTS.override.md` if they are instructions rather than config.
|
||||
- If a team deliberately wants local project config files, choose a repo convention and gitignore it, but remember Codex will not auto-merge arbitrary filenames unless Codex adds support for them.
|
||||
|
||||
## References
|
||||
|
||||
- OpenAI Codex config basics: https://developers.openai.com/codex/config-basic
|
||||
- OpenAI Codex config reference: https://developers.openai.com/codex/config-reference
|
||||
@@ -0,0 +1,53 @@
|
||||
# Windows PowerShell UTF-8 Setup
|
||||
|
||||
Windows PowerShell 5.1 may read UTF-8 files without a byte order mark as the legacy Windows ANSI code page. When that happens, Unicode text such as gitmoji appears as mojibake:
|
||||
|
||||
```text
|
||||
🤖
|
||||
```
|
||||
|
||||
The file itself can still be valid UTF-8. The problem is usually the decoding choice made by `Get-Content`.
|
||||
|
||||
## Fix for the Current User
|
||||
|
||||
Add UTF-8 defaults to your Windows PowerShell profile:
|
||||
|
||||
```powershell
|
||||
$PSDefaultParameterValues['Get-Content:Encoding'] = 'UTF8'
|
||||
$PSDefaultParameterValues['Set-Content:Encoding'] = 'UTF8'
|
||||
$PSDefaultParameterValues['Add-Content:Encoding'] = 'UTF8'
|
||||
$PSDefaultParameterValues['Out-File:Encoding'] = 'UTF8'
|
||||
|
||||
[Console]::OutputEncoding = [System.Text.UTF8Encoding]::new()
|
||||
$OutputEncoding = [System.Text.UTF8Encoding]::new()
|
||||
```
|
||||
|
||||
The profile path for Windows PowerShell is usually:
|
||||
|
||||
```powershell
|
||||
$PROFILE
|
||||
```
|
||||
|
||||
On this machine it is:
|
||||
|
||||
```text
|
||||
C:\g4b\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1
|
||||
```
|
||||
|
||||
Restart PowerShell after editing the profile.
|
||||
|
||||
## One-Off Command
|
||||
|
||||
For a single read, pass the encoding explicitly:
|
||||
|
||||
```powershell
|
||||
Get-Content -Encoding UTF8 docs\workpad\specs\commit-conventions.md
|
||||
```
|
||||
|
||||
## PowerShell 7
|
||||
|
||||
PowerShell 7 (`pwsh`) defaults to UTF-8 more consistently than Windows PowerShell 5.1. If available, using `pwsh` is usually the cleaner long-term fix.
|
||||
|
||||
## What This Does Not Change
|
||||
|
||||
Repo files such as `.gitattributes` can tell Git how to handle text normalization, but they do not force Windows PowerShell 5.1 to decode files as UTF-8. The shell profile or explicit `-Encoding UTF8` is still needed for `Get-Content`.
|
||||
Reference in New Issue
Block a user