Refactor: Update configuration and MCP server for port 8888, enhance bash safety rules
Update configuration in .claude/CLAUDE.md with expanded stack (Python, R, bash), detailed linting/test commands, and stricter bash safety rules (no uncontrolled eval, prefer shellcheck). Adjust MCP servers to use configurable port 8888 instead of hardcoded 1248, and improve code formatting in agent_lm.py and server.py. Update README.md with concrete repository URL for cloning/subtree operations, and add missing tool requirements (aichat, jq, argc).
2026-03-26 12:27:17 +01:00
## Instructions pour Claude
### Profil utilisateur
Programmeur expérimenté. Connaît parfaitement son projet, ses outils, et son environnement.
### Comportement attendu
- Faire ce qui est demandé, directement.
- Ne pas expliquer des choses triviales ou évidentes.
- Ne pas répéter ce qui vient d'être dit.
- Faire confiance au jugement de l'utilisateur.
- Si quelque chose ne fonctionne pas, chercher le bug — ne pas réexpliquer comment utiliser l'outil.
- Avant de demander la validation d'un plan, toujours afficher la totalité du plan dans le chat. L'utilisateur est responsable du code et décide en toute connaissance de cause.
2026-03-26 12:23:54 +01:00
## Stack
- Rust (edition 2024), Go 1.24
Refactor: Update configuration and MCP server for port 8888, enhance bash safety rules
Update configuration in .claude/CLAUDE.md with expanded stack (Python, R, bash), detailed linting/test commands, and stricter bash safety rules (no uncontrolled eval, prefer shellcheck). Adjust MCP servers to use configurable port 8888 instead of hardcoded 1248, and improve code formatting in agent_lm.py and server.py. Update README.md with concrete repository URL for cloning/subtree operations, and add missing tool requirements (aichat, jq, argc).
2026-03-26 12:27:17 +01:00
- Python 3.12, R 4.4, bash (scripts shell)
- Tests :
- Rust : `cargo test`
- Go : `go test`
- Python : `pytest` (avec coverage)
- R : `testthat` (via `Rscript -e "testthat::test_dir('tests')"` )
- bash : `bats` (Bash Automated Testing System)
- Lint :
- Rust : `clippy`
- Go : `golangci-lint`
- Python : `ruff` (ou `flake8` + `black` )
- R : `lintr`
- bash : `shellcheck`
2026-03-26 12:23:54 +01:00
## Heuristiques de délégation
2026-03-27 09:13:47 +01:00
Délègue à `qwen3-worker` (via MCP `qwen3_task` ) si la tâche satisfait TOUS les critères :
- Objectif clair et bien délimité
- Pas de modification d’ API publique (traits Rust, interfaces Go exportées)
- Pas de vision cross-module requise
- Tâches typiques : génération de tests, documentation inline, scaffolding de stubs,
reformatage, recherche web, exécution de scripts, création de fichiers
Qwen3 dispose d’ outils autonomes (filesystem, shell, web) — inutile de lui passer
le contenu des fichiers, il les lit lui-même.
2026-03-26 12:23:54 +01:00
Traite toi-même si :
- Refactoring cross-module
Refactor: Update configuration and MCP server for port 8888, enhance bash safety rules
Update configuration in .claude/CLAUDE.md with expanded stack (Python, R, bash), detailed linting/test commands, and stricter bash safety rules (no uncontrolled eval, prefer shellcheck). Adjust MCP servers to use configurable port 8888 instead of hardcoded 1248, and improve code formatting in agent_lm.py and server.py. Update README.md with concrete repository URL for cloning/subtree operations, and add missing tool requirements (aichat, jq, argc).
2026-03-26 12:27:17 +01:00
- Conception d’ architecture
2026-03-27 09:13:47 +01:00
- Debugging avec stacktrace multi-fichiers
2026-03-26 12:23:54 +01:00
- Modification de traits/interfaces publics
## Garde-fous absolus
- Ne jamais passer `rm -rf` sans confirmation explicite
- Ne jamais committer sans que les tests passent
- Toujours vérifier `git diff` avant un commit
Refactor: Update configuration and MCP server for port 8888, enhance bash safety rules
Update configuration in .claude/CLAUDE.md with expanded stack (Python, R, bash), detailed linting/test commands, and stricter bash safety rules (no uncontrolled eval, prefer shellcheck). Adjust MCP servers to use configurable port 8888 instead of hardcoded 1248, and improve code formatting in agent_lm.py and server.py. Update README.md with concrete repository URL for cloning/subtree operations, and add missing tool requirements (aichat, jq, argc).
2026-03-26 12:27:17 +01:00
- Pour le bash : ne jamais exécuter de commande avec `eval` non contrôlé ; privilégier l’ utilisation de `shellcheck` pour détecter les erreurs courantes