mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-09-15 14:21:49 +02:00
docs(agents): require Nushell or Python for shell glue
- limit POSIX shell to a single command with arguments - route pipes, chaining, substitution, redirection, and ShellCheck/BashPitfalls cases to Nushell or Python
This commit is contained in:
+4
-5
@@ -106,11 +106,10 @@ agents MUST ask which state to use before editing.
|
|||||||
|
|
||||||
### Local ad-hoc commands
|
### Local ad-hoc commands
|
||||||
|
|
||||||
- Agents SHOULD prefer a direct executable with native options over hand-written glue, and keep
|
- Agents SHOULD prefer a direct executable with native options over hand-written glue.
|
||||||
POSIX shell (e.g. Bash) to single-line ad-hoc glue only.
|
- POSIX shell (e.g. Bash) is limited to invoking a single command with arguments. Any glue — pipes,
|
||||||
- Once a task needs anything ShellCheck or BashPitfalls warns about — e.g. quoting discipline, error
|
chaining (`;`, `&&`), substitution, or redirection — or anything ShellCheck or BashPitfalls warns
|
||||||
handling, structured parsing (JSON/CSV/regex), dates/floats, retries/timeouts, or cross-platform
|
about MUST be done in Nushell or Python instead (e.g. `nu -c`, `python -c`).
|
||||||
flags — agents MUST move to Nushell or Python.
|
|
||||||
- Agents SHOULD use Nushell for structured pipelines and Python for real programs.
|
- Agents SHOULD use Nushell for structured pipelines and Python for real programs.
|
||||||
|
|
||||||
### Project-owned scripts
|
### Project-owned scripts
|
||||||
|
|||||||
Reference in New Issue
Block a user