Top 200 ReposEXPLORER
Browse agents, categories and pages
Back to results
Planned, not doneThe source describes an intention, not a finished result.

Apply Repository Instructions and Numerical Logs to AI Pair Programming

Overview

Keep a CLAUDE.md file of project rules in the repository and have your program print structured numeric logs, so Claude Code can plan, write, test and debug against both.

Problem or Objective

More in Coding and Code Review

AI Agents and Models

Tools and Integrations

Tools
Claude Code
Prerequisites
Needs Claude Code installed, a local repository and a program you can add logging to. Most surfaces require a Claude subscription or Anthropic Console account; the Terminal CLI, VS Code and JetBrains also support third-party providers. Claude Code prompts you to log in on first use, or skips that if you have set ANTHROPIC_API_KEY and approve the key.

How It Works

Create a CLAUDE.md file in the project root that sets out coding standards, architecture decisions, preferred libraries and a review checklist, and commit it so it is versioned with the code. Add logging to the parts of the program you are working on that prints one line per event with named numeric fields (for example timings, counts, sizes or error rates) in a consistent format such as JSON lines. Start Claude Code in the repository and describe the change you want; ask it to explain its plan first and check that plan against the rules in CLAUDE.md before letting it edit files. Have it write tests for the change, run them, and fix failures. When something misbehaves, run the program, save the log, and pipe the relevant part into Claude Code with a question such as which field moved outside its expected range. Review every diff yourself before committing, and edit CLAUDE.md in the same commit whenever a project rule changes.

Implementation Workflow

Steps assembled from the agents, tools and prompt of this entry. Adapt them to your own setup.

  1. Choose the agentSet up Claude Code.
  2. Connect the toolsConnect the tools this workflow relies on: Claude Code.
  3. Check the prerequisitesNeeds Claude Code installed, a local repository and a program you can add logging to. Most surfaces require a Claude subscription or Anthropic Console account; the Terminal CLI, VS Code and JetBrains also support third-party providers. Claude Code prompts you to log in on first use, or skips that if you have set ANTHROPIC_API_KEY and approve the key.
  4. Gather your detailsCollect what the prompt asks for: Feature or bug you are working on, Numeric fields each log line contains, Log lines to inspect, with secrets removed, Module the tests should cover.
  5. Run the starter promptPaste the starter prompt below into Claude Code and adapt it to your case.
  6. Check against the documentationCompare what you get with the documentation at code.claude.com before you rely on it.

Practical Starter Prompt: Debug from my structured logs

Fill the fields to adapt the prompt. Empty fields stay as visible [placeholders].

Preview
Read CLAUDE.md and follow its rules for this task. I am working on [Feature or bug you are working on]. The program writes one log line per event with these numeric fields: [Numeric fields each log line contains]. Here is the relevant log output: [Log lines to inspect, with secrets removed]. First explain which values look wrong and why, and propose a plan. Wait for my approval before editing any file. After I approve, make the change, write or update tests for [Module the tests should cover], run them, and show me the diff. Do not commit; I will review and commit myself.

Approve the plan before any file is edited, review the diff and test results yourself, and commit only after that review. Remove secrets and personal data from logs before pasting them, and update CLAUDE.md when a project decision changes.

Expected Results and Benefits

This is a suggested workflow, not a reported result. The points below are what the cited documentation says the tools can do.

This is a suggested workflow, not a reported outcome. Claude Code's overview says it reads CLAUDE.md from the project root at the start of every session, that you can use it for standards, architecture decisions, preferred libraries and review checklists, and that you can pipe logs into Claude Code. The same page shows it writing tests, running them and fixing failures, and the headless page shows a build log being piped in for an explanation. No cited page measures whether structured numeric logs make debugging faster or reduce defects.

Limitations and Considerations

Claude Code reads CLAUDE.md at the start of every session and also keeps auto memory, so check both when its behaviour surprises you. Logs can contain secrets, personal data or customer records; strip them before piping a log into Claude Code. Review every edit and test change before committing, and keep the decision to commit with a person. Claude Code asks you to log in on first use or can use an API key; check how your usage is billed before long sessions. Results depend on your setup and were not independently reproduced by Top 200 Repos.

GitHub Repositories

AI Agent Repository

Source code of the agent that does the work.

Related Videos

About anthropics/claude-code

About anthropics/claude-code

Independent creators. Listing a video implies no endorsement, sponsorship or partnership.

Sources

  1. Overview - Claude Code Docs (opens in a new tab)

    Project documentation · code.claude.com · Undated · Source checked 25 Nov 2026, 11:57 UTC

    What this source supports
    • CLAUDE.md is a markdown file you add to your project root that Claude Code reads at the start of every session.
    • Use it to set coding standards, architecture decisions, preferred libraries, and review checklists.
    • Claude Code is composable and follows the Unix philosophy. Pipe logs into it, run it in CI, or chain it with other tools.
    • claude "write tests for the auth module, run them, and fix any failures"
  2. Run Claude Code programmatically - Claude Code Docs (opens in a new tab)

    Project documentation · code.claude.com · Undated · Source checked 26 Nov 2026, 17:27 UTC

    What this source supports
    • Add the -p (or --print ) flag to any claude command to run it non-interactively.
    • This example pipes a build log into Claude and writes the explanation to a file.
Report a problem

More with Claude Code

Planned, not done

Create Custom Store Tools Instead of Paying for Subscriptions

Use Claude Code to write small in-house tools for an online shop, such as a reply helper for support mail or a margin report, as an alternative to paying for separate apps, with testing before you rely on them.

code.claude.comanthropics/claude-code
Reported by source

Answer technical questions by letting async agents run experiments

Simon Willison sends research questions to cloud coding agents such as Claude Code for web and Codex Cloud, which write and run experiments in a dedicated repo and open a PR.

simonwillison.net · 6 Nov 2025anthropics/claude-code, openai/codex
Planned, not done

Structure Repeated Browser Research Into Evidence Tables

Give Claude Code the open-source Browser Use CLI with a local browser, ask the same research questions across a short list of pages, and keep every answer as a sourced table row.

github.comanthropics/claude-code, browser-use/browser-use

View all: Claude Code