Skip to content

armgit / ECC

Public Imported from GitHub
0

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

fix(skills): prevent option-shaped agent IDs

vam30e403b9bc2b
diff --git a/skills/agent-security-hardening/SKILL.md b/skills/agent-security-hardening/SKILL.md
index 509eeed62..c616ebf4c 100644
--- a/skills/agent-security-hardening/SKILL.md
+++ b/skills/agent-security-hardening/SKILL.md
@@ -48,7 +48,7 @@ Use an allowlist for identifiers that become filenames, keys, selectors, or comm
```python
import re
-SAFE_AGENT_ID_CHARS = re.compile(r"^[A-Za-z0-9_-]+$")
+SAFE_AGENT_ID_CHARS = re.compile(r"^[A-Za-z0-9_][A-Za-z0-9_-]*$")
def require_agent_id(value: object, *, max_length: int) -> str:
if isinstance(max_length, bool) or not isinstance(max_length, int) or max_length < 1:
@@ -62,6 +62,8 @@ def require_agent_id(value: object, *, max_length: int) -> str:
return value
```
+When an identifier becomes a CLI argument, pass it through an argv API and place it after the command's end-of-options marker where supported. Character validation is not a substitute for argument separation.
+
Reject missing and whitespace-only environment values before constructing a client:
```python