Settings
Personal settings live in one JSON file, ~/.config/jsmd/config.json (or under $XDG_CONFIG_HOME), outside every
repo. config.schema.json
describes it, and
templates/config.example.json
shows every section. A mode reads only its own section. /jsmd config fills it with you, one question at a
time, and writes only what validates.
python3 ~/.claude/skills/jsmd/scripts/config.py check # validatepython3 ~/.claude/skills/jsmd/scripts/config.py session # what every session starts withpython3 ~/.claude/skills/jsmd/scripts/config.py branch --type feature --id ABC-1 --title "Add login" # name it would useSections
Section titled “Sections”| Section | Used by | Holds |
|---|---|---|
reply |
every session | focus on or off, reply language, extra rules on how to talk to you |
voice |
comms |
how you write, learned by /jsmd comms learn |
audiences |
comms |
your own audiences (a client, a PM) built on product, dev, qa, client, lead |
deployed |
investigate, cite, rule 3 |
each repo’s local clone and deployed ref, and the remotes allowed |
comms |
comms |
the circle of each place (me, team, org, external), review rate, log, internal terms, guarded tools |
drift |
drift |
the doc folders (or a branch of a docs repo) to check and how many days back |
memory |
memory |
where notes live: .memory/ files (default) or an ai-memory server, with its URL, workspace and project |
help |
help |
the source and query that list open help requests |
dispatch |
implement, routine start |
recommended model and effort per risk class; the agent still asks every time |
git |
implement |
base branch, worktrees (always, parallel, never), branch name pattern, commit style; per-folder overrides |
estimate |
estimate |
where the team’s delivery history comes from: a file or a command |
metrics |
metrics, routine end |
idle gap, item id pattern, projects counted, prices per model |
routine |
routine, todo |
routine directory, repos, sources, working-day calendar, nudge steps, limits, and the todo table |
extensions |
the router | folders with your own modes and rules, active everywhere or only under only_in |
Session-start hook
Section titled “Session-start hook”Skills load only when invoked, so reply needs a session-start hook to apply from the first turn. In Claude Code
(~/.claude/settings.json):
"hooks": {"SessionStart": [{"hooks": [{"type": "command", "command": "python3 -I ~/.claude/skills/jsmd/scripts/config.py session --json", "timeout": 10}]}]}Codex (~/.codex/hooks.json) takes the same entry with the ~/.codex/skills/jsmd path; approve it once in
/hooks. Without settings, the hook prints nothing.
Send guard
Section titled “Send guard”In Claude Code, to stop messages going out unchecked, add the send guard for the tools listed under
comms.guard.tools. It denies a draft or send to a place with no circle, asks before any direct send, and asks
when the text holds an e-mail address, a long number, or an internal term bound for an external place:
"PreToolUse": [{"matcher": "<tool name>|<tool name>", "hooks": [{"type": "command", "command": "python3 -I ~/.claude/skills/jsmd/scripts/comms.py guard", "timeout": 10}]}]Investigator subagent
Section titled “Investigator subagent”To hold an investigating subagent to deployed code, copy
templates/agents/investigator.md
into ~/.claude/agents/. It gets only Bash, and its own hook (deployed.py lock) lets through only
deployed.py’s read commands. Without it, investigate reads through deployed.py itself, with no mechanical lock.
A copy in a project’s .claude/agents/ runs its hook only in a folder already trusted in an interactive session
(claude -p does not grant trust). Without the hook, every Bash call of the subagent is refused, so it fails closed.