DiscoverGnothi Claude Code
Gnothi Claude Code
Claim Ownership

Gnothi Claude Code

Author: OCDevel

Subscribed: 1Played: 13
Share

Description

Take Claude Code from its first useful change in your terminal to a repeatable software delivery workflow. For working developers who already ship applications and use Git, this course starts with setup, giving Claude a task, inspecting the diff and checking the result. Build on that session with project instructions, skills, hooks, MCP connections and context management. Later lessons connect parallel agents and Git worktrees to GitHub issues, pull requests and review-and-fix loops, then develop testing and deployment workflows with GitHub Actions and AWS. Permissions, sandboxing, cost controls and observability are taught alongside the automation they support, so you can judge what a run changed and investigate a failure. Concrete examples explain the commands, settings and checks behind each workflow; earlier techniques return as parts of larger systems. Claude Code news and practical shortcuts cover changes that affect coding work, setup or cost. The curriculum builds toward an issue-to-deployment pipeline, including rollout decisions and incident response. This show's audio is narrated by AI-generated synthetic voices.
37 Episodes
Reverse
Shows how to set up the Claude Code GitHub Action so a labeled issue or an "@claude" comment produces a branch and a pre-filled pull request, including a database on the runner, a failed first run, review, and security limits. It closes with recent Claude Code changes affecting the installer, hooks, runners and auto mode. This episode is narrated by AI-generated synthetic voices. Episode page & show notes Visit website An issue that becomes a pull request The Claude Code GitHub Action runs Claude Code inside a GitHub Actions job. A label on an issue, or an "@claude" comment from someone with write access, starts a GitHub-owned machine. Claude works on a new branch, runs the project's checks, pushes, and posts a link to a pre-filled pull request page. You open the pull request, review it, and merge or ask for changes. It is distinct from chat, from Claude Code on the web, and from code written against the API or Agent SDK. The Claude Code GitHub Actions documentation covers the action. Installing it The install-github-app slash command installs the GitHub App, stores a credential as a repository secret, and opens a pull request adding the workflow files. It needs a github.com repository and a signed-in gh tool. The manual route covers the same three steps: the App with read and write access to Contents, Issues and Pull requests, a secret (ANTHROPIC_API_KEY or CLAUDE_CODE_OAUTH_TOKEN), and the example workflow file. The setup guide walks through it. The workflow file The example listens for comments and runs only when they contain "@claude". For labels, the label_trigger input starts a run, and assignee_trigger does the same for assignment. The chapter assembled its label workflow from the documented inputs, so compare it with the usage page. The permissions block includes id-token write; without it, runs fail early with an OpenID Connect error. Leaving out prompt gives interactive mode, while setting it gives automation mode, where tools must be granted. Other options go through claude_args. A database on the runner The chapter adds a Postgres service container with a health check and a port mapping, then runs checkout, Node setup, npm ci and migrations before Claude's step. A test report is uploaded afterward even on failure. The GitHub guide to PostgreSQL service containers covers the setup. A failed run, then a good one In the illustrated example, a missing ports line causes "connection refused", fixed with one narrow commit. The rerun passes, and Claude comments with the pull request link. Review is against the three acceptance criteria, followed by running the app yourself. A pull request comment with "@claude" pushes fixes to the same branch. Limits and security Only write-access users can trigger runs. allowed_non_write_users is a significant security risk. Issue text is data, not orders, and stripping hidden instructions is not a guarantee. Claude cannot change workflow files, force push, or open pull requests itself. The documents describe no timeout or spending cap, so set GitHub's job timeout. See the security documentation. Claude Code releases after 2.1.310 Per the changelog: 2.1.327: install-github-app asks for confirmation; a headless startup hang is fixed; mcp add-json can read settings from standard input. 2.1.326: hook "block" decisions now stop more calls, so check hooks that always print one. 2.1.325: self-hosted runners refuse symlinked session paths, except checkout-hook checkouts. 2.1.323: auto mode refuses gateway models with "haiku" in the name, except claude-haiku-5-5.
Compares remote control, hosted cloud sessions and headless runs for what happens when the laptop closes, then walks through finishing the shared-list app's issue thirteen as a cloud job and as a headless run. It covers recovering a run that stops partway and checking background work from a phone. This episode is narrated by AI-generated synthetic voices. Episode page & show notes Visit website What happens when the laptop closes Three setups behave differently. With remote control, the session keeps running on your laptop and the phone or browser only connects to it, so it stops when the laptop sleeps or goes offline. A Claude Code on the web session runs on a machine Anthropic starts with a copy of your GitHub repository, so it continues. A headless run (claude -p) lasts as long as the machine it was started on. Plan eligibility and the exact remote-control command name change between releases, so check Anthropic's documentation and your installed version. Preparing a hosted run The job is the shared-list app's issue thirteen, the item count in the list header. Last chapter's fix, regression test and commit were only described, so this run does them. A cloud session needs these in place: GitHub access through the Claude GitHub app, limited to the one repository. The session works on a new branch cloned from main. An environment whose setup script installs packages, installs and starts PostgreSQL, creates a test database and runs migrations. Without a database, a run can report success with nothing tested. A SessionStart hook in the repository is an alternative. Committed files such as CLAUDE.md, the settings, the hook, the skill and the reviewer subagent load as usual. The GitHub token does not, so the issue text goes into the request. Production secrets stay out. Small commits at each step, since only the branch and the conversation log outlast the session. A final report with test output, reviewer verdicts and open items. The run and its checks The request asks for a failing regression test first, then the fix, then a review against the criteria. In the illustrative result the header uses the displayed list's length. The reviewer only read code, so you still run the suite and try the app by hand. Common problems are a failed database setup and a session waiting on an approval; repeated routine approvals can become allow rules. Headless runs and permission mode The same job can run from a script or CI with a stated permission mode, a turn limit, an optional budget cap and JSON output. The chapter recalls an earlier news item: headless and Agent SDK runs may start in default mode under some conditions, where nobody is there to approve actions. Save the JSON, especially the session id. When a run stops partway After a timeout or usage limit, resume by session id on the same machine, or start a fresh session from the committed branch. Both work because of the commit after each step. Automatic retries should check for an existing branch first. Choosing, and checking from your phone Use remote control to watch a job, a cloud session for self-contained repository work, and headless for scripted or CI jobs. On the phone, read the last message: the named test and its result, the reviewer verdicts, then the diff for unexpected files. Add a report-format line to CLAUDE.md's definition of done.
Builds a read-only Claude Code subagent that checks a diff against a GitHub issue's acceptance criteria, tests it on a good and a deliberately broken change, and weighs it against the evals baseline. Closes with how to invoke it by name so the review reliably happens. This episode is narrated by AI-generated synthetic voices. Episode page & show notes Visit website A reviewer that checks a change against its issue A subagent is a helper the main Claude Code session hands a task to. It has its own context window, system prompt and tool list, and it returns only a summary. Because it starts with almost no knowledge, the main session must pass along what it needs. Custom subagents read CLAUDE.md; the built-in Explore and Plan do not. The worked example is a new request in the shared-list app: show an item count in the list header (issue thirteen). Its two acceptance criteria are that the header shows the count, and that the count stays correct after add, delete and reload. The reviewer, criteria-reviewer, is a Markdown file in the project's .claude/agents folder. Its frontmatter holds a name, a description, a tools line limited to Read, Grep and Glob, and an optional model. The tools line is enforced by the program, unlike an instruction in the body. Leaving it out gives the subagent every tool the main session has. Since the reviewer has no Bash or MCP tools, the main session fetches the issue and runs git diff, then passes both in the handoff. The reviewer is tested on a correct change and on a deliberately broken one where the delete handler never updates the count. It should pass the first and fail the second. Its report is a lead, not proof: it read code and did not run the app, so the type check, regression tests and a manual click-through still apply. Whether the reviewer earns its place The decision comes from the evals baseline: the fast-add bug and the done-flag feature, each run twice with the reviewer and twice without. For the runs without it, both the CLAUDE.md line and the agent file come out of the worktree, because the description alone can still get the reviewer called. Four runs per task is a small sample, so one caught mistake is a hint. The suggested outcome is to keep the reviewer for issue-linked changes, especially database ones. Three failure modes are covered: a vague description, a handoff with a diff but no criteria (reports that all say "looks good"), and splitting one task across many helpers that share state. Calling the reviewer by name To make the review happen for certain, name the subagent in the request or pick it with the at sign. A reusable request reads the issue, runs git diff against main, sends the criteria word for word plus the diff to criteria-reviewer, and lists each verdict with evidence before changing anything. Run it on the broken count change and check with slash context that the main session's context barely grew.
How to build a small baseline of real tasks with known answers, and use it to choose a Claude model and effort level by the total cost of finished work, including your review and repair time. It closes with recent Claude Code changes that affect usage warnings, sandboxed browser tests, headless sign-in and review. This episode is narrated by AI-generated synthetic voices. Episode page & show notes Visit website A fixed set of tasks and a record of results You can't judge a change to your agent setup by feel. Runs vary, and this week's tasks differ from last week's. What you need is a fixed set of real tasks and the results you got on them before. Cost here means the cost of a finished change: the token bill plus your minutes reviewing and repairing the diff. The chapter builds three tasks from the shared-list app's own history: the empty-name validation rule, the fast-add bug fixed from a reproduction note, and the done checkbox that needed a migration. Each task folder under evals/ holds the same files: start-commit, request.txt, criteria.md, a check.sh that runs the deciding checks, a hidden/ folder of regression tests the agent never sees, and results.md. Keeping grading material away from the agent follows Anthropic's guidance on testing agents, and hidden checks have to test through something every correct fix shares, such as the page itself. A replay.sh script builds a detached Git worktree at the task's start commit and commits today's CLAUDE.md, .claude folder and .mcp.json into it, so git diff later shows only the agent's work. The worktree shares the repository's history, so each transcript is checked for Git commands that reach into evals. Runs avoid the bare option, because bare mode skips the CLAUDE.md, skills and hooks being tested. Two dials: model and effort Sonnet, Opus, Haiku and the opusplan alias are compared, along with the reasoning-effort levels. The chapter shows how to set both with /model, /effort, command-line options, and the model and effort keys in the settings files, including which file wins when they disagree. /usage, /cost and /context report usage. A run that hits a usage limit counts as interrupted, not failed, and gets rerun. When the cheaper setup costs more In an illustrative comparison, which the chapter says is not a measured claim, each task runs twice under Opus at high effort and twice under Sonnet at medium. Sonnet matches Opus on the validation rule and the bug fix. On one done-flag run, Sonnet passes the suite but fails the clicked journey: the database client never writes the done column. Once you price your time, that fifteen-minute repair outweighs the token savings. The result is a default per kind of task: Sonnet at medium in settings, and a CLAUDE.md rule sending database work to Opus at high effort. The chapter names three ways to fool yourself: comparing single runs, writing criteria vague enough that everything passes, and counting tokens while ignoring review time. Recent Claude Code updates Versions 2.1.303 through 2.1.310 are listed in the Claude Code changelog. Version 304 warns Pro and Max users before resuming a large session. 305 adds a Linux sandbox setting that lets headless Chromium run. 306 fixes sign-in failures in claude -p runs. 309 makes ultrareview require explicit workspace trust. A new API version removes temperature and sampling settings and changes how keys are sent, which matters only if you code against the API directly.
A fast-add bug becomes a GitHub issue that Claude Code reads through GitHub's MCP server, with read, comment and delete tools each given their own permission. The bug is then fixed against the issue's acceptance criteria, and MCP is weighed against the gh CLI and a small script. Recent Claude Code releases that affect MCP, hooks and unattended runs close it out. This episode is narrated by AI-generated synthetic voices. Episode page & show notes Visit website A tracked issue for the fast-add bug The bug that makes a second, quickly added item vanish from the screen gets written up as GitHub issue twelve. The issue has a plain problem statement taken from the reproduction note and two testable acceptance criteria. No item vanishes when two are added quickly, and a reload shows the same list the screen showed. Adding GitHub's MCP server MCP, the Model Context Protocol, lets Claude Code take on extra tools from a separate server. It is separate from the Claude API and the Agent SDK. GitHub's remote server is added at project scope, so it is written to a committed .mcp.json. A fine-grained personal access token, limited to this repository with Issues set to read and write, comes in through an environment variable placeholder. The placeholder is single-quoted in the add command so the shell leaves it alone, and the token itself never lands in the file. Teammates who clone the repo must approve the server before it runs. claude mcp list and claude mcp get github confirm the connection is healthy. Sorting tools and setting permissions The /mcp manager lists the server's tools, which split into reads and writes: Allow: get_issue and get_issue_comments Ask: add_issue_comment Deny: the delete tools A rule can name one tool or a whole server. Tool names are copied from the /mcp list, because GitHub renames and merges tools between server versions. Deny beats ask, and ask beats allow. Tool search keeps tool definitions deferred once they would take more than about a tenth of the context window. One small test comes first: the agent reads issue twelve word for word, and the reply is checked against the browser. Issue text describes the task. It is never an instruction to the agent. Fixing from the acceptance criteria The fix changes each save so it adds its own item to the current list. Before, each save wrote back a stale copy of the list. Disabling the add button would not meet the criteria. A regression test is confirmed to fail on the old code and pass on the new one. After that comes the full suite and a manual check in the app, both before and after a reload. The agent drafts a comment on the issue, which waits for approval before posting. The issue stays open. gh, a script, or MCP The gh CLI: low context cost and low upkeep. Prefix rules can allow gh issue view and ask for gh issue comment, but gh api can make any call and needs a rule of its own. A committed REST script: the lowest context cost, but you maintain it and it can only do what you wrote. MCP: the most operations, each with its own permission rule, but the highest context cost. The rule: built-in tools first, a script for one fixed step, MCP when you need many operations with separate control over each. Recent Claude Code releases 2.1.300: fixes tool search switching itself off after a resumed session reconnects. It also validates hook-rewritten tool inputs against the tool's schema. 2.1.302: fixes servers on the July 28, 2026 protocol version that could show zero tools. Unattended runs: claude -p and the Agent SDK may now start in default mode on third-party providers, so pass the auto permission mode explicitly if a script relied on it. 2.1.301: adds a setting that aborts a request when a usage limit would reset too far in the future. Hook cap: prompt and agent hooks are capped at twelve running at once per event, with extras queued.
loading
Comments