<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Elaph Hilful on Medium]]></title>
        <description><![CDATA[Stories by Elaph Hilful on Medium]]></description>
        <link>https://medium.com/@elaph-hilful?source=rss-aa88f15cc470------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*bV8VuhmWjafUPqfla9v3tw.jpeg</url>
            <title>Stories by Elaph Hilful on Medium</title>
            <link>https://medium.com/@elaph-hilful?source=rss-aa88f15cc470------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 02:44:15 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@elaph-hilful/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[One Repo, Many Agents, Zero Collisions]]></title>
            <link>https://medium.com/@elaph-hilful/one-repo-many-agents-zero-collisions-6b7e5d855351?source=rss-aa88f15cc470------2</link>
            <guid isPermaLink="false">https://medium.com/p/6b7e5d855351</guid>
            <category><![CDATA[git]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Elaph Hilful]]></dc:creator>
            <pubDate>Mon, 03 Aug 2026 16:54:51 GMT</pubDate>
            <atom:updated>2026-08-03T16:54:51.064Z</atom:updated>
            <content:encoded><![CDATA[<p><em>A DevOps Engineer’s take on the git worktree layer that makes parallel AI agents safe.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g5FC75WIKPGEZDTTmJihCQ.png" /></figure><p>Two AI agents in one directory is a race condition with a keyboard. They read and write the same files, so each one’s edits blow up the other’s. I stopped fighting that. The fix was never a smarter agent. It was a smarter git layout.</p><p>A git worktree is a second working directory on its own branch that shares one repository. One object store, many checkouts. Each agent gets isolated files, so parallel edits never collide.</p><h3>Why it earns its place in my stack</h3><h3>Why it earns its place in my stack</h3><p>Picture a large infrastructure-as-code migration consisting of networking, compute, data layer, dozens of modules that never touch each other’s state. Exactly the kind of work worktrees were built for.</p><ul><li>One agent converts the networking module. Another rewrites the compute layer. A third ports the data pipeline. Same wall-clock time, three branches, zero collisions.</li><li>Risky change with more than one valid design? I hand the same task to two agents in two worktrees, diff both, keep the winner. Two implementations for the price of one review cycle.</li><li>main stays untouched the whole time. Every worktree opens its own PR</li></ul><p>Worktrees turn a serial backlog into a concurrent one, with no second copy of the repo and no agents overwriting each other.</p><h3>How to get the most out of it</h3><ul><li>Cap yourself at 3 to 4 parallel sessions. Past that, reviewing the combined diffs becomes the bottleneck, not the agents.</li><li>Prefix every worktree directory with the project name and name it after the feature. With four terminals open, the directory name is the only thing stopping you from editing the wrong module.</li><li>Protect main on the remote. A worktree cut from main tracks main, so a bare git push can land straight on it. Push to a named branch, always.</li><li>Copy your secrets in. A fresh worktree has no .env and no node_modules. Reinstall dependencies per worktree or you hit the classic &quot;works in my other terminal&quot; trap.</li></ul><h3>Step by step, the short version</h3><p>Manual git, works anywhere:</p><pre>git worktree add ../proj-tf-networking -b feat/tf-networking<br>cd ../proj-tf-networking<br># run your agent in here<br>git worktree list                          # see them all<br>git worktree remove ../proj-tf-networking  # clean up after the merge</pre><p>Claude Code, which manages the whole life cycle for you:</p><pre>claude --worktree tf-networking   # isolated worktree + branch, auto cleanup on exit<br>claude --worktree &quot;#1234&quot;         # branch straight from a PR</pre><p>Then two housekeeping lines that save you every time: add .claude/worktrees/ to .gitignore, and drop a .worktreeinclude file listing .env so secrets copy into every new worktree automatically.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oT68LrRqAECNN6XwAxHvNQ.png" /></figure><p>That is the whole trick. Isolate the files, coordinate the work, review the diffs.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6b7e5d855351" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Your AI Agent Doesn’t Need kubectl. It Needs a Bouncer.]]></title>
            <link>https://medium.com/@elaph-hilful/your-ai-agent-doesnt-need-kubectl-it-needs-a-bouncer-a0af21259be3?source=rss-aa88f15cc470------2</link>
            <guid isPermaLink="false">https://medium.com/p/a0af21259be3</guid>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[site-reliability-engineer]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[platform-engineering]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Elaph Hilful]]></dc:creator>
            <pubDate>Thu, 09 Jul 2026 19:01:10 GMT</pubDate>
            <atom:updated>2026-07-09T19:01:10.172Z</atom:updated>
            <content:encoded><![CDATA[<p><em>AI-assisted Docker and Kubernetes for people who have been paged at 3am and do not want an agent to be the reason it happens again.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s5nQ5hZaHj54BghVgv1Q1g.png" /></figure><p>Here is the bottom line. An agent that can read your whole codebase, write a Dockerfile, and reconcile Kubernetes state is a genuine force multiplier. An agent with raw kubectl and no floor guards is a self-inflicted SEV1 (Severity 1) waiting for a bad prompt. The entire game is the interface you put between the two.</p><p>I run this pattern against real clusters. Below is what actually works, what breaks, and the specific guardrails that stop an agent from scaling your payments service to zero replicas because it misreads “clean up unused resources.”</p><h3>Why agents and Kubernetes fit better than they should</h3><p>Kubernetes is declarative. You describe the desired state in YAML, the cluster reconciles the actual state to match. That is the same loop an agent already runs as it proposes a change, observes the result, iterate until reality matches intent.</p><p>That is not a marketing line; it is a mechanical fit. The agent generates a manifest, applies it, reads kubectl get and describe, and closes the gap. Deployments, Services, ConfigMaps, HPA, PodDisruptionBudgets: all of it is text an agent can author and verify. The declarative model turns &quot;deploy this&quot; into a checkable contract instead of a pile of imperative commands nobody can audit.</p><p>The Dockerization side is where the agent earns its seat. Manual Dockerfiles miss dependencies because a human does not hold the entire dependency graph in their head. An agent cross-references package.json, source imports, and runtime config in one pass, then emits a multi-stage build with the boring correct defaults: minimal base image, layer ordering for cache hits, non-root user, health check, proper signal handling. In production, moving from a full node base to alpine plus a runtime-only stage cuts image size 60 to 80 percent and strips the build toolchain off your attack surface. That is a real security and cost win, not slideware.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OzBjEKgsj5lGa2hyw_pbCA.png" /></figure><h3>The one design decision that matters: never hand an agent raw kubectl</h3><p>This is the part people skip, and it is the part that keeps you employed.</p><p>Do not give the agent shell access to kubectl. Put a Model Context Protocol (MCP) server in front of the cluster and expose a deliberate tool surface. Reads are cheap and safe: get_pods, get_logs, describe_resource, get_events. Writes are where blast radius lives: scale_deployment, restart_rollout, and those get constrained or gated.</p><p>The interface is the security boundary. An agent that can diagnose a CrashLoopBackOff but physically cannot delete a StatefulSet is an agent you can actually trust in production. A read-only MCP instance for prod and a write-enabled instance for staging is a five-minute config change that removes an entire class of incident.</p><p>Concretely, a READ_ONLY=true flag that drops every mutating tool from the advertised list means the agent never even sees that a destructive operation exists. You cannot fat-finger a button that is not on the screen.</p><h3>How an agent actually debugs a broken pod</h3><p>The diagnostic loop maps cleanly onto tool calls, and the order is not arbitrary. Each step narrows the search space, so cheap infrastructure signals come before you go digging in application logs.</p><p>Take a CrashLoopBackOff. Here is the sequence I want the agent to run:</p><ol><li>get_pods to confirm the state, grab the pod name, and read the restart count. Scope the problem before touching anything.</li><li>get_events to catch infrastructure causes first: OOMKilled, ImagePullBackOff, FailedScheduling. These never show up in application logs, so checking logs first wastes a cycle.</li><li>get_logs --previous to read the crashed container, not the current empty one. This is where the real root cause usually lives: a missing DB_URL, a failed connection, a port collision.</li><li>describe_resource pod if logs are silent. OOMKilled and volume mount failures hide in the resource description, not stdout.</li><li>Propose the fix, apply it, poll until Running and Ready.</li></ol><p>State, then infrastructure events, then application behavior, then resource constraints. Reverse that order and you will stare at empty logs while the actual answer, a 512Mi memory limit, sits one describe away.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/832/1*pRqqeGmKU8KcJX_D41e7lQ.png" /></figure><h3>The production defaults I refuse to skip</h3><p>None of this is exotic. All of it is the difference between a clean deploy and a postmortem.</p><p><strong>Pin base images with SHA digests.</strong> FROM node:20.11.0-alpine@sha256:..., never :latest. Unpinned tags break builds silently when upstream ships a change you never approved.</p><p><strong>Set both requests and limits on every pod.</strong> No limits means one pod eats the node and starves its neighbors. No requests means the scheduler is placing workloads blindly. Both together kill noisy-neighbor incidents and make HPA scaling actually work.</p><p><strong>Handle SIGTERM.</strong> Containers get SIGTERM before SIGKILL. Stop accepting traffic, drain in-flight connections, flush, exit. Skip this, and every single deploy drops live requests. Your users feel it even if your dashboard does not.</p><p><strong>Use PodDisruptionBudgets on anything that matters.</strong> A node drain during an upgrade can take out every replica at once if you never told the cluster a minimum. minAvailable: 2 is one line that prevents a self-inflicted outage during routine maintenance.</p><p><strong>Scan images in CI.</strong> trivy or grype before the push, every time. CVEs in base images are the number one container compromise vector, and catching them costs seconds.</p><p><strong>Gate agent write operations.</strong> Any tool that can scale or restart requires a hard constraint or an explicit confirmation, which brings me to the incident everyone eventually has.</p><h3>The scale-to-zero incident, and the fix that outlives it</h3><p>Picture this: the agent scales a production deployment to zero replicas. Service down. This is not hypothetical; it is the canonical failure mode of a write-enabled agent with no floor.</p><p>Recovery is fast if you have the muscle memory. kubectl scale deployment/app --replicas=3, confirm rollout, suspend the HPA so it stops fighting your manual override. Service back in under a minute.</p><p>The prevention is the part that matters, and it is code, not a Slack reminder to be careful:</p><ul><li><strong>Floor guard in the MCP handler.</strong> Reject any scale_deployment where replicas &lt; 1 for a production namespace. Hardcode the minimum. Never trust agent input on a mutating call.</li><li><strong>PDB-aware pre-hook.</strong> Block any scale that would drop below the minAvailable already declared in the PodDisruptionBudget. You wrote the safety number once, enforce it everywhere.</li><li><strong>Approval gate on reductions.</strong> Any operation that lowers replica count from the current requires a human confirmation. Make it an interactive prompt, not an auto-allow.</li><li><strong>Namespace isolation.</strong> Separate MCP instances per environment. Prod is read-only, staging takes writes. The agent literally cannot mutate prod because that tool was never exposed to it.</li><li><strong>Blast-radius annotations.</strong> Tag critical workloads with a min-replicas annotation that the MCP server reads before executing. The deployment carries its own safety contract.</li></ul><p>Notice the pattern: none of these guardrails trust the agent to behave. They make the dangerous action structurally impossible. That is the only kind of safety that survives a clever prompt and a tired operator.</p><h3>What this buys you</h3><p>Agentic Docker and Kubernetes are not about replacing the platform team. It is about compressing the boring, error-prone middle of the workflow, dependency analysis, manifest authoring, and first-pass diagnosis, while keeping every irreversible action behind a boundary you own.</p><p>Ship the agent with a read-only prod interface, floor guards on every write, and image scanning in the pipeline, and you get faster deploys and faster incident triage without adding a new way to take yourself down. Ship it with raw cluster access and a hopeful attitude, and you have automated your own outage.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a0af21259be3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Anatomy of an Agent]]></title>
            <link>https://medium.com/@elaph-hilful/anatomy-of-an-agent-83cadf95341f?source=rss-aa88f15cc470------2</link>
            <guid isPermaLink="false">https://medium.com/p/83cadf95341f</guid>
            <category><![CDATA[developer]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[claude-code]]></category>
            <category><![CDATA[ai-agents-in-action]]></category>
            <dc:creator><![CDATA[Elaph Hilful]]></dc:creator>
            <pubDate>Thu, 09 Jul 2026 11:41:09 GMT</pubDate>
            <atom:updated>2026-07-09T11:41:09.657Z</atom:updated>
            <content:encoded><![CDATA[<h3>A language model does not touch your filesystem. The loop around it does. Here is what actually happens between your prompt and a shipped change.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9SrYcN0T10zj2Uh45kwSGA.png" /></figure><p>I keep meeting engineers who talk about coding agents like they are magic. They are not. An agent is a language model wrapped in a control loop that lets it read files, run commands, and edit code, then feeds the results back so it can decide what to do next. Strip the mystique and you are left with a state machine you can reason about, debug, and gate.</p><p>If you run production infrastructure, this matters. You do not hand root to a black box. You hand it to a system whose every action passes through a permission check you control. So let me walk the loop the way I would walk a new hire through an incident.</p><h3>The tool call is the atom</h3><p>The model never runs anything itself. It emits a structured tool_use block: a name, an input, and a correlation ID. The runtime does the rest. That separation is the whole safety story. The model proposes, the runtime disposes.</p><p>Core tools are boring on purpose: Bash, Read, Write, Edit, Search, Fetch, and Spawn for delegating to subagents. Each is defined by a JSON schema with typed parameters and required fields. Loose schemas are how you get malformed inputs that fail silently, so I define types strictly and treat the schema as the contract.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8hdELC6sstqMhj1PdeoOwg.png" /></figure><h3>Six stages, one call</h3><p>Every meaningful thing an agent does runs through the same pipeline. Learn it once and the whole system stops being mysterious:</p><ol><li><strong>Decision.</strong> The model reasons that it needs to act and picks a tool.</li><li><strong>Proposal.</strong> It emits tool_use with {id, name, input}.</li><li><strong>Validation.</strong> The runtime checks the input against the schema.</li><li><strong>Permission.</strong> The gate evaluates allow and deny rules. Three outcomes: allowed, blocked, or kick it to the human.</li><li><strong>Execution.</strong> The handler runs the command or the file I/O.</li><li><strong>Injection.</strong> Output comes back as a tool_result with the matching ID, appended to context as a user-role message.</li></ol><p>The detail people miss is that the tool result shows up as a user message even though no human typed it. The runtime keeps the user and assistant turns alternating. The model reads the result on its next turn and either calls another tool or stops.</p><h3>The parallel win nobody uses</h3><p>When the model needs three files, it can emit three tool_use blocks in one turn and the runtime runs them concurrently. For read-heavy work that cuts session latency by 50 to 70 percent. That is not a rounding error. That is the difference between an agent that feels responsive and one that feels like dial-up.</p><p>The catch is real dependencies. You can read five files in parallel because reads commute. You cannot read a file and edit it in the same batch, because the edit needs the read result. My rule: gather in parallel, act in sequence. Batch the discovery reads at task start, then write one change at a time. The biggest latency win is almost always in that first gather phase.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vBkesS0P_TaEgs0Xu1pkeA.png" /></figure><h3>The loop is the whole program</h3><p>Zoom out, and the control flow is simple: user prompt, model reasons, then tool use and tool result repeat until the model produces a response with no tool calls. That empty-handed turn is how the agent says “done.” It stops there, or when it hits a stop condition: max turns, context exhaustion, or an error.</p><p>Here is the cost nobody plans for. Every call and every result accumulates in context. A real task can fire 30-plus tool calls, each adding thousands of tokens. Uncap one verbose command, and a single npm install dump can eat 20 percent of your context window with noise. So I cap outputs with hooks, truncate the loud tools, and treat context as the scarce resource it is.</p><h3>Skills versus CLAUDE.md: run the math</h3><p>Two ways to give an agent standing instructions, and the economics decide which to use.</p><p>CLAUDE.md is always injected. Every interaction pays for it, roughly 15 tokens per line, forever. That is the right home for universal constraints: security rules, architecture facts, the non-negotiables.</p><p>Skills are stored as prompt templates loaded on demand from .claude/skills/. Zero cost when unused. They take arguments, they can be large, and they only enter context when invoked. That is the right home for occasional workflows: a security review, a migration, an endpoint generator.</p><p>The economic insight that settles most arguments: a 200-line skill loaded once costs the same as a one-line CLAUDE.md entry running across 200 sessions. If it must shape every action, it goes in CLAUDE.md. If it runs sometimes and needs parameters, it is a skill. Version them both in the repo so they get reviewed in PRs and do not drift from reality.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zIZ8NdLhMNBplcF8K0m69g.png" /></figure><h3>What I actually gate in production</h3><p>The permission gate is where good intentions meet blast radius. Deny rules beat allow rules, and destructive tools live on the deny list before I let an agent near a real repo: Bash(rm *), Write(.env*), Bash(git push --force). A single unguarded destructive call is the kind of data loss that turns a Tuesday into a postmortem.</p><p>Then I trace. Verbose mode shows exactly which tools fired, in what order, with what inputs. When an agent misbehaves, the tool trace is the primary diagnostic, same as any other distributed system. You do not guess. You read the log.</p><h3>The takeaway</h3><p>An agent is not intelligence you cannot inspect. It is a loop of typed tool calls, each one validated, gated, executed, and fed back. Once you see it that way, the engineering job is obvious: strict schemas, hard deny rules, parallel reads, capped outputs, and skills that earn their tokens. Do that and you get an autonomous coding agent you would actually let touch production.</p><p>Measure everything. Gate the dangerous stuff. Ship the observability with the system, not after it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=83cadf95341f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Stop Wasting Your Context Window]]></title>
            <link>https://medium.com/@elaph-hilful/stop-wasting-your-context-window-e62c8319ca74?source=rss-aa88f15cc470------2</link>
            <guid isPermaLink="false">https://medium.com/p/e62c8319ca74</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[ai-agents-in-action]]></category>
            <category><![CDATA[prompt-engineering]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Elaph Hilful]]></dc:creator>
            <pubDate>Wed, 08 Jul 2026 05:01:03 GMT</pubDate>
            <atom:updated>2026-07-08T05:01:03.656Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Most agent failures I see are not model failures. They are memory-management failures. Here is how to budget the one resource that actually caps what your agent can do.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XKUn37ZP_qUn1StoqHUAZw.png" /></figure><p>I have watched capable agents fall over halfway through a refactor, re-edit files they already fixed, and confidently “remember” work they never finished. Every time, the root cause was the same. The context window filled up, the system compacted, and detail the agent needed was gone.</p><p>The fix is not a better prompt. The fix is treating the context window as what it actually is: a finite, shared system resource. It behaves like RAM. It has a hard ceiling, competing consumers, and a garbage-collection event that will fire at the worst possible moment if you do not manage it.</p><p>If you build agentic workflows and you are not budgeting tokens, you are running production without capacity planning. Here is how I do it.</p><h3>The window is not “big.” It is shared.</h3><p>Claude Code runs a 200K token window by default, extendable to 1M. That sounds like a lot until you count who is spending it. The system prompt, the CLAUDE.md hierarchy, the full conversation history, every tool call input, every tool output, and the model’s own hidden reasoning tokens all draw from the same budget. Nothing is free.</p><p>The cost distribution is brutal and uneven. Reading a 500-line file might cost 3,000 to 5,000 tokens. One verbose npm install can dump 20,000+ tokens of noise you will never use. Run cat on a lockfile and a single package-lock.json can eat 50,000 tokens. That is a quarter of your entire working memory spent on a file no human or model needs to reason about.</p><p>This is the failure mode I call context poisoning, one careless read fills half the window with garbage, and quality degrades long before you hit the hard ceiling. The model does not fail loudly. It just gets worse at attending to what matters.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vI-20gzgFUtWO9w72q4i_Q.png" /></figure><h3>Auto-compact is your garbage collector. Know what it throws away.</h3><p>When the window fills past roughly 80%, Claude Code triggers auto-compact. It summarizes the conversation, discards raw tool outputs, re-injects CLAUDE.md from disk so your conventions survive, and resumes from the summary.</p><p>The part everyone misses is the survival table. Some things come back after compaction. Some things are gone for good.</p><p><strong>Survives:</strong> the system prompt and CLAUDE.md because they are reinjected from disk.</p><p><strong>Gone:</strong> raw file contents, command outputs, and the mid-task reasoning chain that told the agent exactly which three of your eleven files it had already touched.</p><p>That last one is where real damage happens. I call it phantom references. After compaction, the agent “knows” from the summary that it modified a file, but it has lost the specifics of what it changed. So it edits again, conflicts with its own prior work, and now you have a merge problem an agent created against itself. Session amnesia is the same story across session boundaries; no continuity strategy means re-explaining everything from scratch, on your token budget.</p><p>Compaction is not a bug. It is the garbage collector doing its job. Your job is to make sure the objects it collects are the ones you did not need.</p><h3>Budget tokens like you budget a capacity plan</h3><p>Here is the allocation I start from on a standard 200K window:</p><ul><li>Roughly <strong>20%</strong> for context setup: system prompt plus CLAUDE.md.</li><li>Roughly <strong>40%</strong> for the actual task.</li><li>Roughly <strong>40%</strong> held in reserve as a buffer before compaction fires.</li></ul><p>Blow past that reserve mid-task, and you lose information at the exact moment you can least afford it. The math is not complicated, but almost nobody runs it. A rough working rule is that after setup and buffer, a standard window leaves you around 130K to 140K tokens of real work, which is on the order of 15 file reads per phase, before you should be thinking about a natural break.</p><p>If your task needs to touch 50 files, it does not fit in one cycle. Stop pretending it does. Decompose into batches of 5-10 files per session. Engineers who try to “do it all in one shot” hit compaction repeatedly, and output quality drops with every cycle. Batching is not a limitation you are working around. It is the design.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yBUqVJ4aaJm_ltr7J6784A.png" /></figure><h3>Four patterns to buy context back</h3><p>The physical window is fixed. Your effective context is not. Four patterns extend it.</p><p><strong>1. Subagent delegation.</strong> This is the biggest lever. “Analyze all 200 test files and tell me which ones test authentication” should never run in your main context. Spawn a subagent with its own fresh window. It reads the files, burns its own tokens, and hands back a 10-line summary. You just turned 200K tokens of file reads into 500 tokens of answer. Without a subagent, 30 files at 3,000 tokens each is 90,000 tokens in your parent context. With one, it is about 100. Same result, three orders of magnitude cheaper on the resource that actually caps you.</p><p><strong>2. Session continuity.</strong> Use --continue and --resume to carry state across sessions through the JSONL transcripts. Break a long job at a clean boundary, come back tomorrow, and pick up without re-explaining the world.</p><p><strong>3. Skills.</strong> Load specialized prompts on demand instead of embedding them permanently. You do not pay for a capability until you use it. This is the same instinct as lazy loading, applied to the context budget.</p><p><strong>4. Memory extraction.</strong> Have the agent write key findings to a file before the window fills. The filesystem survives compaction. Context does not. A REFACTOR_PLAN.md that the agent updates after each batch is durable memory the garbage collector cannot touch.</p><h3>The .claudeignore that pays for itself</h3><p>Half of context hygiene is just refusing to read junk. Treat .claudeignore like .gitignore for your agent&#39;s attention. At minimum:</p><pre># Dependencies and build output: massive token cost, zero reasoning value<br>node_modules/<br>dist/<br>build/<br>.next/<br>coverage/<br><br># Lock files: enormous, useless for reasoning<br>package-lock.json<br>pnpm-lock.yaml<br>yarn.lock<br>Cargo.lock<br><br># Generated and binary<br>*.generated.ts<br>*.d.ts<br>*.png<br>*.jpg<br>*.mp4</pre><p>In practice I see a 30 to 50% reduction in context load once build artifacts and dependencies are excluded. In CI this matters even more, because CI workspaces frequently ship without any ignore rules and the agent happily indexes node_modules/ on every run. If your pipeline is burning triple the tokens you expected, this is the first place to look, right before you check whether someone left --extended-context on for a task that never needed 1M.</p><h3>The one-line version for your architecture review</h3><p>Design your tasks to fit inside a single context cycle, and when they cannot, use the filesystem and subagents as memory that outlives compaction.</p><p>That is the whole discipline. Budget the window. Exclude the noise. Delegate the reads. Checkpoint the state. Do that, and your agents finish complex work without degrading. Skip it, and you are debugging phantom edits at 2 am, paying by the token for the privilege.</p><p>Context is not the model’s problem to solve. It is yours to manage. Manage it like the system resource it is.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e62c8319ca74" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Inside the Agentic Loop: How Claude Code Actually Thinks, Acts, and Remembers]]></title>
            <link>https://medium.com/@elaph-hilful/inside-the-agentic-loop-how-claude-code-actually-thinks-acts-and-remembers-c9ff42f19603?source=rss-aa88f15cc470------2</link>
            <guid isPermaLink="false">https://medium.com/p/c9ff42f19603</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[forward-deployed-engineer]]></category>
            <category><![CDATA[claude-code]]></category>
            <dc:creator><![CDATA[Elaph Hilful]]></dc:creator>
            <pubDate>Tue, 07 Jul 2026 15:35:58 GMT</pubDate>
            <atom:updated>2026-07-07T15:35:58.237Z</atom:updated>
            <content:encoded><![CDATA[<h3>A field guide to the architecture that lets you safely hand off multi-step engineering work to an AI agent</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rXA1u1sdPM74Fme8C7Ls2w.png" /></figure><p>If you’ve only used Claude in a chat window, agentic coding tools can feel like a different species of software entirely. You type a prompt, walk away, and come back to find files written, tests run, and a working feature waiting for review. No back-and-forth. No copy-pasting code between a browser tab and your editor.</p><p>That shift from “chat that answers” to “agent that acts” isn’t magic. It’s an architecture. And once you understand the four pieces that make it up, agentic tools like Claude Code stop feeling unpredictable and start feeling like infrastructure you can reason about, configure, and trust in production.</p><p>Here’s what’s actually happening under the hood.</p><h3>Chat Completion vs. the Agentic Loop</h3><p>A normal chat interaction is a single round trip: prompt in, response out. If the model needs more information, <em>you</em> go get it and paste it back in.</p><p>An agentic loop removes you from that middle step. Claude Code runs on what’s best described as a <strong>Tool Augmented Agentic Loop</strong>, following an <strong>Observe → Think → Act</strong> cycle:</p><ol><li><strong>Observe</strong>: the agent receives full context ( the system prompt, any memory files, and the conversation so far).</li><li><strong>Think</strong>: it reasons about what needs to happen next.</li><li><strong>Act</strong>: it selects a tool (shell command, file read/write, search, web fetch), executes it, and observes the result.</li></ol><p>That cycle repeats, sometimes dozens of times, until the task is done or the context runs out.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XerdTZgoVz8DgY-XzRmSlw.png" /></figure><p>The practical difference: a single prompt like <em>“add input validation to the signup endpoint and write tests for it”</em> can trigger reading the relevant files, writing the validation logic, generating a test file, running the test suite, and fixing a failing assertion — all without you touching the keyboard in between.</p><h3>The Permission Gate: Autonomy With a Leash</h3><p>Autonomy is only useful if it’s <em>safe</em> autonomy. This is where Claude Code’s permission model earns its keep.</p><p>Every tool call the agent wants to make passes through a permission gate, defined .claude/settings.json at the project and user level. Instead of a blanket yes/no, permissions use glob patterns to scope access precisely:</p><pre>{<br>  &quot;permissions&quot;: {<br>    &quot;allow&quot;: [<br>      &quot;Read(*)&quot;,<br>      &quot;Write(src/**)&quot;,<br>      &quot;Bash(pnpm run *)&quot;,<br>      &quot;Bash(git diff *)&quot;<br>    ],<br>    &quot;deny&quot;: [<br>      &quot;Bash(rm -rf *)&quot;,<br>      &quot;Bash(git push --force *)&quot;,<br>      &quot;Write(.env*)&quot;,<br>      &quot;Bash(sudo *)&quot;<br>    ]<br>  }<br>}</pre><p>Every proposed action lands in one of three buckets: <strong>allowed silently</strong>, <strong>blocked outright</strong>, or <strong>escalated to you for approval</strong>. That third bucket is what makes agentic workflows viable in real engineering orgs. The agent can move fast on low-risk, well-scoped actions while anything destructive or ambiguous still requires a human in the loop.</p><p><strong>The production lesson:</strong> scope permissions narrowly. Bash(docker build *) is a permission. Bash(*) is a liability. The specificity of your glob patterns is directly proportional to the amount of sleep you get.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ABdxkYvSIZod0w5v9tKWQg.png" /></figure><h3>CLAUDE.md: Memory That Doesn’t Forget the Rules</h3><p>Every codebase has unwritten conventions that a new hire only learns after breaking them once. Agentic tools need those conventions made explicit because, unlike a human teammate, the agent doesn’t retain institutional memory between sessions unless you give it somewhere to store it.</p><p>That’s the job of <strong>CLAUDE.md</strong> files. They’re injected into the system prompt at session start and exist at three cascading levels:</p><ul><li><strong>User-global</strong> (~/.claude/CLAUDE.md): your personal defaults across every project</li><li><strong>Project-root</strong> (./CLAUDE.md): team-wide architecture and standards</li><li><strong>Path-scoped</strong> (any subdirectory): component-specific rules</li></ul><pre>cat &gt; CLAUDE.md &lt;&lt; &#39;EOF&#39;<br># Project Conventions<br>## Architecture<br>- TypeScript monorepo using pnpm workspaces<br>- Services communicate via gRPC; REST only for external APIs<br>## Agent Instructions<br>- Always run `pnpm typecheck` after modifying TypeScript files<br>- Never modify files in `generated/` — they are auto-generated<br>EOF</pre><p>The key design principle: more specific, deeper-path files add detail without overriding the parent. If your root file says “prefer gRPC” and a service-level file says “this service’s HTTP handlers use the Go standard library,” the agent applies both internal service-to-service calls stay gRPC, but that service’s public HTTP layer follows its own local convention. It’s the same mental model as .gitignore or .eslintrc cascading, just applied to how an AI agent behaves.</p><p>Worth noting: these files are <strong>advisory, not enforced</strong>. They guide the agent strongly, but the permission gate is still the actual security boundary.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f_Qb80ldqLVlNFa_dPc25Q.png" /></figure><h3>Context Is the Real Constraint</h3><p>None of this works if the agent runs out of room to think. The context window, typically 200K tokens, is a finite resource, and every file read, command output, and turn of conversation eats into it.</p><p>When it fills up, Claude Code triggers <strong>auto-compact</strong>: a summarization pass that condenses history while trying to preserve what matters. “Trying” is the operative word auto-compact can quietly drop path-scoped rules or mid-task state, and that’s usually the root cause when an agent seems to “forget” a file it modified ten minutes ago.</p><p>A few practices keep this from becoming a production headache:</p><ul><li><strong>Use </strong><strong>.claudeignore aggressively:</strong> exclude node_modules, build artifacts, lockfiles, and generated code before they eat your context budget.</li><li><strong>Decompose large tasks:</strong> “refactor the entire auth service” invites context overflow; “refactor the middleware,” then a separate prompt for “update the routes,” keeps each step inside a fresh window.</li><li><strong>Reference files explicitly: </strong>“modify src/auth/middleware.ts lines 40–60&quot; burns far fewer tokens than &quot;find and fix the auth middleware.&quot;</li><li><strong>Monitor token usage per session:</strong> repeated auto-compact cycles are a signal that your task decomposition, not the model, needs work.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qpLZVPT1m1vv-s3fs28XdQ.png" /></figure><h3>Running It Headless: Agentic Loops in CI/CD</h3><p>Once you trust the permission model, the natural next step is removing yourself from the loop entirely, running Claude Code inside a pipeline rather than a terminal you’re watching.</p><pre>claude --headless \<br>  --print \<br>  --prompt &quot;Review the changes in this PR for security issues. \<br>            Check for: SQL injection, XSS, hardcoded secrets, \<br>            missing input validation. Output a markdown report.&quot; \<br>  --allowedTools &quot;Read,Bash(grep *),Bash(git diff *)&quot; \<br>  --model claude-sonnet-4-20250514</pre><p>--allowedTools restricts the agent to read-only operations, --print sends the final response to stdout, and the exit code tells your pipeline whether the agent completed cleanly. In production, this is what turns &quot;AI pair programmer&quot; into &quot;another check in the CI stage&quot; no interactive prompts, no blocked pipelines, just a scoped agent doing one well-defined job and reporting back.</p><h3>The Pattern Underneath It All</h3><p>Strip away the specific tool names, and what you’re left with is a general pattern for safely delegating work to an autonomous system: <strong>give it a loop to reason in, a gate to act through, a place to keep conventions, and a budget to think within.</strong> That pattern shows up whether you’re configuring Claude Code for a monorepo, wiring an agent into a CI pipeline, or designing your own tool-augmented workflow from scratch.</p><p>Understanding the architecture is what separates “I asked the AI to do it and hoped” from “I designed a system where the AI can only do what I’ve decided is safe.” That second version is the one worth building on.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R2hdSArUz9-RxRO4b3RONw.png" /></figure><p><em>If you’re setting up Claude Code for your own team, start small: one project-root CLAUDE.md, a tightly scoped </em><em>.claude/settings.json, and a single well-defined task. Watch the loop run once before you hand it anything critical.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c9ff42f19603" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Essential Information Gathering Techniques]]></title>
            <link>https://medium.com/@elaph-hilful/essential-information-gathering-techniques-b977e001ee79?source=rss-aa88f15cc470------2</link>
            <guid isPermaLink="false">https://medium.com/p/b977e001ee79</guid>
            <dc:creator><![CDATA[Elaph Hilful]]></dc:creator>
            <pubDate>Sat, 03 Feb 2024 11:17:01 GMT</pubDate>
            <atom:updated>2024-02-03T11:17:01.696Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*nYNKZUKyOcQBPYO5byBHLA.png" /></figure><p>The ability to obtain information is critical in the domain of ethical hacking. Today, we’ll be discussing three powerful tools used by ethical hackers: Whois Lookup, Netcraft, and Mxtoolbox. Let’s dive in!</p><p><a href="https://whois.domaintools.com/">Whois Lookup</a> or <a href="https://www.whois.com/whois/">Whois</a></p><p>Reveals domain registration details, including owner information, contact details, DNS records, and server information.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/758/1*rVCvGQTVWzPjeagcwx_LZw.png" /></figure><p><a href="https://sitereport.netcraft.com/?url=">Netcraft</a></p><p>Analyzes target websites to identify technological stacks, web server information, and OS systems in use.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qPnqocIDlsFyHLAZWKtwMA.png" /></figure><p><a href="https://mxtoolbox.com/">Mxtoolbox</a></p><p>Retrieves IP addresses and DNS entries for target websites.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FlTAEcQw4ZcFsHX8RR3aLA.png" /></figure><p>⚠️ Disclaimer: The techniques discussed are for educational purposes only. Ethical hacking practices should be done within legal and ethical limitations and with sufficient authorization.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b977e001ee79" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unveiling the power of Google Dorks & SQL Injection]]></title>
            <link>https://medium.com/@elaph-hilful/unveiling-the-power-of-google-dorks-sql-injection-4d44bb7856bf?source=rss-aa88f15cc470------2</link>
            <guid isPermaLink="false">https://medium.com/p/4d44bb7856bf</guid>
            <category><![CDATA[google-dork]]></category>
            <category><![CDATA[owasp-top-10]]></category>
            <category><![CDATA[devsecops]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <dc:creator><![CDATA[Elaph Hilful]]></dc:creator>
            <pubDate>Sat, 27 Jan 2024 21:51:09 GMT</pubDate>
            <atom:updated>2024-01-27T21:51:09.715Z</atom:updated>
            <content:encoded><![CDATA[<h3>Unveiling the Power of Google Dorks and Basic SQL Injection</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*enoYn_D-uQ_IGPTFWP2cGQ.jpeg" /></figure><p>Google Dorks and Basic SQL Injection are important tools for ethical hacking, allowing users to search internet repositories and uncover potential security flaws. Let us explore the minute details of Google Dorks and Basic SQL Injection, revealing their significance and practical applications.</p><h3>Exploring Google Dorks:</h3><p>Google Dorks allow users to narrow their search queries and acquire specific information housed in Google’s vast database. They are an essential component of ethical hacking, allowing users to utilize advanced search parameters like <strong>inurl:</strong> , <strong>intitle:</strong> , and <strong>intext:</strong> to identify sensitive material or target specific website components.</p><p>The Google Dork Collection includes a variety of search queries designed to disclose the inner workings of websites. For example:</p><p><strong>inurl: </strong>After typing “inurl:” followed by specific text, the search engine will display only the URLs that contain the specified text in the search results. For example, searching for “inurl:cats” will show URLs containing the word “cats” in the search results.</p><pre>inurl:index of admin?site:site.example.com<br>inurl:passlist.txt<br>intitle: admin login site:site.example.com<br>inurl:admin/home.php site:site.example.com<br>inurl:index of admin?site:site.example.com</pre><p><strong>intitle:</strong> After using “intitle:” followed by specific text, the search engine will show only the sites or links whose titles contain the specified text in the search results. For instance, searching for “intitle:recipes” will display sites or links with titles containing the word “recipes” in the search results.</p><pre>intitle:”Index of” master.passwd<br>intitle:”Index of” .mysql_history<br>intitle:index.of passlist<br>intitle:”Index of” “.htpasswd” “htgroup” -intitle:”dist” -apache -htpasswd.c<br>intitle:index.of administrators.pwd<br>intitle:Index.of etc shadow<br>intitle:index.of secring.pgp<br>intitle:”Index of” passwd passwd.bak<br>intitle:”Index of..etc” passwd<br>intitle:”Index of c:\Windows”<br>intitle:index.of.winnt<br>intitle:”Index of” spwd.db passwd -pam.conf<br>intitle:”Index of” .bash_history<br>intitle:”Index of” .sh_history<br>intitle:”Apache HTTP Server” intitle:”documentation”<br>intitle:”Welcome to IIS 4.0″<br>intitle:”Test Page for Apache” “It Worked!”</pre><p><strong>intext:</strong> Displays sites containing specified text in the content. e.g. <strong>intext: technology</strong></p><p><strong>site: </strong>Filters results to specified domains. e.g. <strong>site:example.com</strong>,<strong> site:.site.ai</strong></p><h3>SQL Injection Demystified:</h3><p>SQL injection is a powerful attack method that is commonly included in the OWASP Top 10 Vulnerabilities. Essentially, it targets websites that use databases to store data. When developers overlook security safeguards, hackers exploit database weaknesses by introducing malicious SQL code.</p><h3>How hackers use SQL injection to hack admin panel:</h3><p>Each website uses a database to store information, including login credentials. When users enter their login and password, the website compares this information to what is saved in the database. If the input is correct, access is allowed; otherwise, it is denied.</p><p>Consider a scenario in which the website’s login page is vulnerable to SQL injection. Instead of inputting valid credentials, a hacker may enter a malicious SQL query such as:</p><pre>1 ‘or’ 1 ‘=’ 1 , or 1=1# , or 1=1– </pre><p>The injected SQL query disrupts the expected logic of the original query.1 ‘or’ 1 ‘=’ 1 (False) always evaluates to true, so the injected query effectively becomes: ‘1’ OR true, which always returns true. Consequently, the database treats the injected query as valid, granting access regardless of the legitimacy of the credentials provided. As a result, the hacker gains unauthorized access to the admin panel or other sensitive areas of the website.</p><p>Developers need to use secure coding techniques and filter input from users to stop SQL injection attacks to reduce such vulnerabilities.</p><p>Learn More:<a href="https://www.exploit-db.com/google-hacking-database"> https://www.exploit-db.com/google-hacking-database</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4d44bb7856bf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Using Argo CD to accelerate Continuous Delivery on Kubernetes]]></title>
            <link>https://medium.com/@elaph-hilful/effective-application-deployment-and-administration-on-kubernetes-clusters-are-critical-in-modern-bdf484468aa8?source=rss-aa88f15cc470------2</link>
            <guid isPermaLink="false">https://medium.com/p/bdf484468aa8</guid>
            <dc:creator><![CDATA[Elaph Hilful]]></dc:creator>
            <pubDate>Fri, 16 Jun 2023 13:11:20 GMT</pubDate>
            <atom:updated>2023-06-16T13:59:51.875Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/331/1*um1fDfJzpte7vuAE47Jlhw.png" /></figure><p>Effective application deployment and administration on Kubernetes clusters are critical in modern DevOps processes. Argo CD, an open-source continuous delivery platform, has emerged as a viable solution for automating application deployment and lifecycle management on Kubernetes. Let’s take a look at Argo CD’s architecture and see how its primary components work together to streamline the continuous delivery process.</p><p><strong>Argo CD Server</strong> is the heart of Argo CD. This essential component serves as the deployment orchestrator, overseeing the entire deployment process. It communicates with the Kubernetes API server to create, update, and monitor application resources within the cluster. The Argo CD Server can ensure that the intended state is maintained by leveraging the Kubernetes API.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4k_vFdOK5K5JSc1o9MaP5A.png" /></figure><p><strong>Git Repository:</strong> Argo CD uses a Git repository to store and version control application declarative specifications. The Git repository contains YAML files that define an application’s desired state, such as configurations, manifests, and resource definitions. Argo CD offers easy monitoring, auditing, and rollbacks of application changes by leveraging Git’s version management features, giving a solid foundation for dependable continuous delivery.</p><p><strong>Argo CD CLI:</strong> A command-line interface for installing and maintaining apps, as well as performing actions such as synchronization, rolling back, and monitoring deployments. You may use the CLI to automate processes, incorporate Argo CD into current workflows, and enjoy the flexibility of a powerful command-line tool.</p><p><strong>The Argo CD API</strong> offers a set of RESTful endpoints that allow for programmatic access to the Argo CD Server. This API is critical for connecting Argo CD with third-party tools, custom automation scripts, and CI/CD pipelines. You can use the API to create sophisticated automation workflows, which will further streamline the deployment process and ensure smooth connection with your existing tooling ecosystem.</p><p><strong>Argo CD Web UI</strong> provides a visual dashboard for application management. Users may quickly visualize the current state of apps, analyze deployment history, and inspect configuration information using the Web UI. It gives users a thorough picture of the deployment landscape, allowing them to monitor and act manually as needed. The Web UI’s straightforward style fosters cooperation and allows for successful application administration across teams.</p><p><strong>Conclusion:</strong></p><p>The Git repository handles version control and the synchronization of application states, while the Argo CD Server serves as the deployment orchestrator. The Argo CD Web UI offers a user-friendly dashboard for visualizing and managing applications, while the Argo CD CLI and API offer robust interfaces for automation and integration.</p><p>You can speed up deployment processes, improve teamwork, and keep control of application lifecycles on Kubernetes by utilizing Argo CD’s architecture. Whether you are in charge of a simple microservices architecture or a large-scale application, Argo CD may greatly improve your continuous delivery capabilities, allowing you to concentrate on providing value to your consumers without having to worry about the technical details of application deployment.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bdf484468aa8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Javascript and its History and how it works.]]></title>
            <link>https://medium.com/@elaph-hilful/javascript-and-its-history-and-how-it-works-ae4c015c2e06?source=rss-aa88f15cc470------2</link>
            <guid isPermaLink="false">https://medium.com/p/ae4c015c2e06</guid>
            <category><![CDATA[react]]></category>
            <category><![CDATA[history]]></category>
            <category><![CDATA[js]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Elaph Hilful]]></dc:creator>
            <pubDate>Sun, 12 Dec 2021 19:51:37 GMT</pubDate>
            <atom:updated>2021-12-12T19:51:37.907Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/997/1*R_NViGoeqy6C7pYqPzKmHA.jpeg" /></figure><h3>What is Javascript?</h3><p>Javascript is the most popularly used scripting language over the internet. Javascript is a client or browser-side scripting language. Along with that javascript is also an object-oriented programming language. It has data types, operators, some important objects, and functions or methods. If one is interested to work in the world of the web then learning javascript is a must for him or her.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*xFKNZicAbYqBDiNszynrzQ.jpeg" /></figure><h3>A brief history of Javascript</h3><p>Netscape assigned Brendan Eich to create an entirely new programming language and after working on it for quite some time he created JavaScript. Netscape implemented it on their web browser and named it Navigator 2.0. Initially created javascript was known as Mocha back then. In 1996 Mocha was renamed to LiveScript.Later LiveScript changed its name into what we now call javascript. The name javascript was given for a promotional purpose by Netscape and is considered a very nice marketing strategy to gain wider recognition and acceptance.JavaScript was brought to the ECMA standards group in 1996 to create an official standard for the language that everyone could follow. After that many versions of JavaScript were released. Among the most noteworthy ones in 2009, along with the ES standard 5, NodeJs was released. This allowed programmers to write full applications in JavaScript.NPM also known as Node Packet Manager was created for installing reusable bits of code in libraries. ES6 was released in 2015 and by then JavaScript had gained immense popularity and was one of the most in-demand programming languages. Today, applications of JavaScript can be seen in diverse fields like gaming, web development, server development, and robotics among others. Popular JavaScript libraries and frameworks like ReactJs and Angular have scaled tremendously in the past few years. Companies like Paypal, Netflix, Facebook, Google, Uber, and HBO use JavaScript and their frameworks in their products.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/1*BfmW7fxFWVdG409YiL1Erw.jpeg" /></figure><h3>How JavaScript changes HTML?</h3><p>There are many different methods in JavaScip and among the getElementByID() method is noteworthy.</p><p>In the below-presented example getElementById() method takes id=“test” for searching and is changed by “Hello Javascript”</p><pre>&lt;!DOCTYPE html&gt;<br>&lt;html lang=&quot;en&quot;&gt;<br>&lt;head&gt;<br>    &lt;meta charset=&quot;utf-8&quot;&gt;<br>    &lt;title&gt;JavaScript Example&lt;/title&gt;<br>&lt;/head&gt;<br>&lt;body&gt;<br><br>    &lt;h3&gt;JavaScript Example&lt;/h3&gt;<br>    &lt;p id=&quot;test&quot;&gt;JavaScript can change contents in HTML&lt;/p&gt;<br><br>    &lt;button type=&quot;button&quot; <br>     onclick=&quot;document.getElementById(&#39;test&#39;).innerHTML = &#39;Hello JavaScript!&#39;&quot;&gt;Click Here&lt;/button&gt;<br><br>&lt;/body&gt;<br>&lt;/html&gt;</pre><p>Other than that Javascript can change HTML attributes.</p><pre>&lt;!DOCTYPE html&gt;<br>&lt;html lang=&quot;en&quot;&gt;<br>&lt;head&gt;<br>    &lt;meta charset=&quot;utf-8&quot;&gt;<br>    &lt;title&gt;JavaScript Example&lt;/title&gt;<br>&lt;/head&gt;<br>&lt;body&gt;<br><br>    &lt;h3&gt;JavaScript Example&lt;/h3&gt;<br><br>    &lt;button onclick=&quot;document.getElementById(&#39;test&#39;).type=&#39;text&quot;&gt;Show Password&lt;/button&gt;&lt;br&gt;&lt;br&gt;<br><br>    &lt;input id=&quot;test&quot; type=&quot;password&quot; value=&quot;123456&quot;&gt;&lt;br&gt;&lt;br&gt;<br><br>    &lt;button onclick=&quot;document.getElementById(&#39;test&#39;).type=&#39;password&#39;&quot;&gt;Hide Password&lt;/button&gt;<br><br>&lt;/body&gt;<br>&lt;/html&gt;</pre><p>JavaScript can change HTML style</p><pre>&lt;!DOCTYPE html&gt;<br>&lt;html lang=&quot;en&quot;&gt;<br>&lt;head&gt;<br>    &lt;meta charset=&quot;utf-8&quot;&gt;<br>    &lt;title&gt;JavaScript Example&lt;/title&gt;<br>&lt;/head&gt;<br>&lt;body&gt;<br><br>    &lt;h3&gt;JavaScript Example&lt;/h3&gt;<br>    &lt;p id=&quot;test&quot;&gt;Javascript can change HTML Style<br><br>    &lt;button type=&quot;button&quot; onclick=&quot;document.getElementById(&#39;test&#39;).style.color=&#39;green&#39;&quot;&gt;Click Here!&lt;/button&gt;<br><br>&lt;/body&gt;<br>&lt;/html&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DtUqTvSnt14S1KKvq6-SrA.jpeg" /></figure><h3>Where should you keep your JavaScript?</h3><p>You should always place it within a HTML page in either &lt;head&gt; or &lt;body&gt; or in both places. JavaScript code is written within &lt;script&gt; tag.</p><pre>&lt;script&gt;<br>    document.getElementById(&quot;test&quot;).innerHTML = &quot;My first JavaScript Code!!!&quot;;<br>&lt;/script&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hNFmxkDQvLEIL-stvoS0Aw.png" /></figure><h3>Advantages of external JavaScript</h3><ul><li>You can easily differentiate between HTML and JavaScript.</li><li>It makes HTML and JavaScript more readable and it can easily be maintained</li><li>Cached JavaScript speeds up page loading rate.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ae4c015c2e06" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>