Skip to content

Workflows agentiques — Maîtrise7 / 8

The Daily-Driver Setup — Settings, Permissions, Status Line

The difference between fighting the agent and flowing with it is twenty minutes of configuration you do once. Here is the setup.

The Daily-Driver Setup — Settings, Permissions, Status Line

Most friction with an agent is unconfigured friction: a permission prompt on the hundredth npm test, or a destructive command you wish it had refused. Twenty minutes in settings.json fixes both.

The settings hierarchy

Settings merge, most-specific winning: enterprise → user (~/.claude/settings.json) → project (.claude/settings.json, committed) → local (.claude/settings.local.json, git-ignored). Put team conventions in project; keep secrets in local or real env vars.

A permission baseline worth committing

{
  "permissions": {
    "allow": ["Read", "Edit", "Bash(npm run test:*)", "Bash(git status:*)"],
    "deny": ["Bash(rm -rf:*)", "Read(./.env)", "WebFetch"]
  }
}
  • allow your safe, high-frequency commands so the session flows.
  • deny the genuinely destructive — deny always wins over allow.
  • Leave everything else to prompt.

Permission modes

  • default — prompt on first use of each sensitive tool.
  • acceptEdits — auto-accept file edits, still prompt for other risky tools.
  • plan — read-only: explore and plan, change nothing.
  • bypassPermissions — run everything, no prompts. Powerful and dangerous — sandboxed, fully-trusted contexts only.

A status line you read

Configure statusLine to show model, branch, and token cost. When you can see what the agent is using at a glance, you catch the wrong model or a runaway context before it costs you.

Setup done. The finale: chaining MCP, hooks, commands, and subagents into a pipeline that takes a ticket to a reviewed branch.

Partager cet article

#Productivity #DevTools #Terminal

LinkedInX / TwitterBlueskyThreadsRedditHacker NewsWhatsAppE-mail

Série — Workflows agentiques — Maîtrise

  1. Partie 01L'état d'esprit du flux de travail agentiqueLa plupart des développeurs traitent l'IA comme un autocompléteur plus intelligent. Ceux qui prennent l'avance la traitent comme un coéquipier qui agit. Voici le modèle mental.
  2. Partie 02MCP Servers 101 — Give Your Agent Real ToolsLe Model Context Protocol est la façon dont votre agent arrête de deviner et commence à interroger votre base de données, vos tickets, votre navigateur. Voici le modèle mental et la première connexion.
  3. Partie 03Build Your First Custom MCP ServerLes serveurs prêts à l'emploi couvrent GitHub et Postgres. Le vrai levier, c'est le serveur que seul vous pouvez écrire — le pont vers votre propre système.
  4. Partie 04Hooks — Make the Agent Obey Your RulesA prompt asks the model to remember. A hook makes it happen — deterministically, every time, outside the model's control.
  5. Partie 05Commandes slash personnalisées en tant que flux de travail d'équipeUne commande slash personnalisée est un prompt réutilisable que vous engagez dans le dépôt — ainsi toute l'équipe exécute la même instruction de haute qualité au lieu de la retaper.
  6. Partie 06Subagents — Déléguer du travail qui s'adapteUn contexte géant devient lent et vague. Les subagents permettent à l'agent principal de confier du travail ciblé à des spécialistes dotés de leur propre contexte et outils — et de les exécuter en parallèle.
  7. Partie 07The Daily-Driver Setup — Settings, Permissions, Status Linevous êtes iciThe difference between fighting the agent and flowing with it is twenty minutes of configuration you do once. Here is the setup.
  8. Partie 08Multi-Tool Pipelines — Ticket to Reviewed BranchThe payoff: chain MCP, hooks, commands and subagents into one flow that takes a ticket to a reviewed branch — with you in the loop only where it counts.

Continuer

PDF — à vie

Réglages & Permissions

Configurez settings.json et prenez le contrôle du système de permissions.

Voir le PDF →

Cours

Le cours Claude Mastery

12 modules · 5 langues · certificat · 3 jours d’essai gratuit.

Voir les plans →
LinkedInX / TwitterBlueskyThreads