Skip to content

Commit 12de6ee

Browse files
LTSCommerceclaude
andcommitted
Humanize article: remove em dashes and fix hyphenation
Removed AI writing telltales from the Claude Code hooks article to make it read more naturally. Also fixed CSS word-breaking issues that caused ugly hyphenated line breaks in article headers and body text. Changes: - Removed all 5 em dashes from article (replaced with periods or removed) - Changed hyphens: auto to hyphens: none in article CSS - Fixed hyphenation in h1 headers (desktop and mobile) - Fixed hyphenation in paragraph text - Results in cleaner, more readable article layout 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent ede69e8 commit 12de6ee

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

private_html/articles/claude-code-hooks-subagent-control.ejs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
articleSubreddit: 'LLMDevs',
88
articleContent: `
99
<div class="intro">
10-
<p class="lead">Claude Code hooks are powerful automation tools that execute at specific points during AI coding sessions. While basic hooks can validate prompts or add context, advanced hooks can enforce sophisticated ruleslike preventing parallel sub-agents from running test suites that share database connections.</p>
10+
<p class="lead">Claude Code hooks are powerful automation tools that execute at specific points during AI coding sessions. While basic hooks can validate prompts or add context, advanced hooks can enforce sophisticated rules like preventing parallel sub-agents from running test suites that share database connections.</p>
1111
</div>
1212
1313
<section>
@@ -26,7 +26,7 @@
2626
2727
<section>
2828
<h2>The Problem: Parallel Execution and Shared Resources</h2>
29-
<p>Claude Code's sub-agent system enables parallel task execution—multiple agents can work simultaneously on different aspects of your codebase. This is excellent for productivity, but creates challenges when those tasks share resources.</p>
29+
<p>Claude Code's sub-agent system enables parallel task execution. Multiple agents can work simultaneously on different aspects of your codebase. This is excellent for productivity, but creates challenges when those tasks share resources.</p>
3030
3131
<p>Consider a PHP project with PHPUnit tests that use a SQLite database. The test suite isn't optimized for parallel execution because:</p>
3232
<ul>
@@ -107,7 +107,7 @@
107107
<p>When a sub-agent attempts to run tests, it receives a structured JSON response explaining why the operation was blocked and what commands are allowed.</p>
108108
109109
<h3>Fail-Safe Design</h3>
110-
<p>The hook uses a "fail open" strategy—if it can't determine whether it's in a sub-agent, it allows the command. This prevents blocking legitimate operations due to hook errors.</p>
110+
<p>The hook uses a "fail open" strategy. If it can't determine whether it's in a sub-agent, it allows the command. This prevents blocking legitimate operations due to hook errors.</p>
111111
</section>
112112
113113
<section>
@@ -140,12 +140,12 @@
140140
<p>Verify your hook works correctly in both main agent and sub-agent contexts. Use <code>echo $$</code> and <code>ps</code> commands to understand the process hierarchy.</p>
141141
142142
<h3>Keep Hooks Fast</h3>
143-
<p>Hooks execute on every tool use. Keep them lightweight—this implementation completes in milliseconds.</p>
143+
<p>Hooks execute on every tool use. Keep them lightweight. This implementation completes in milliseconds.</p>
144144
</section>
145145
146146
<section>
147147
<h2>Conclusion</h2>
148-
<p>Claude Code hooks unlock powerful automation capabilities beyond simple validation. By leveraging process inspection and pattern matching, you can enforce sophisticated execution policies that adapt to context—allowing parallel execution where safe, and preventing it where resources are shared.</p>
148+
<p>Claude Code hooks unlock powerful automation capabilities beyond simple validation. By leveraging process inspection and pattern matching, you can enforce sophisticated execution policies that adapt to context. This allows parallel execution where safe, and prevents it where resources are shared.</p>
149149
150150
<p>This sub-agent control pattern transforms a potential source of race conditions and lock conflicts into a well-orchestrated parallel execution system. The main agent coordinates test execution, while sub-agents handle static analysis in parallel, maximizing productivity without sacrificing reliability.</p>
151151

private_html/css/articles.css

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,8 @@
181181
font-weight: 700;
182182
line-height: var(--golden-line-height);
183183
margin-bottom: var(--spacing-md);
184-
background: linear-gradient(var(--gradient-angle),
185-
var(--color-text) 0%,
184+
background: linear-gradient(var(--gradient-angle),
185+
var(--color-text) 0%,
186186
var(--color-primary-dark) 100%
187187
);
188188
-webkit-background-clip: text;
@@ -193,7 +193,7 @@
193193
position: relative;
194194
word-wrap: break-word;
195195
overflow-wrap: break-word;
196-
hyphens: auto;
196+
hyphens: none;
197197
}
198198

199199
.article-meta {
@@ -434,7 +434,7 @@
434434
color: var(--color-text);
435435
font-feature-settings: "kern" 1, "liga" 1;
436436
text-align: justify;
437-
hyphens: auto;
437+
hyphens: none;
438438
transition: var(--transition-smooth);
439439
}
440440

@@ -697,7 +697,7 @@
697697
line-height: var(--golden-line-height);
698698
word-wrap: break-word;
699699
overflow-wrap: break-word;
700-
hyphens: auto;
700+
hyphens: none;
701701
}
702702

703703
.article-meta {

0 commit comments

Comments
 (0)