calldiff
What it does
It shows how the chain of function calls changed between two git commits or the working tree. It is for developers who review code changes and want to see their effect on how the program runs.
When to use it
- ✓When you are reviewing a change and want to see which calls were added or removed.
- ✓When you need to know whether a function is reached from a given entry point after an update.
- ✓When you want a diff of execution paths rather than only the text diff.
Skill link
https://github.com/humanlayer/humanlayer/blob/main/.claude/skills/calldiff/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Show me how the function call paths changed between main and my current branch.”
5 new skills a week. 1 minute to read.
How it works
The agent runs the calldiff command to compare call trees between two git references. It then shows the changes in a colored diff block.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Installation
If the calldiff command is unavailable, install the latest version globally:
npm install -g calldiff@latest
Presenting output
Whenever showing calldiff output to the user, wrap it in a fenced diff code block so additions and removals receive colored syntax highlighting:
```diff
<calldiff output>
```
calldiff diff
Diff call stacks between two git trees
Arguments
| Name | Type | Required | Description |
|---|---|---|---|
from |
string |
no | Before ref (default: HEAD) |
to |
string |
no | After ref (default: working tree) |
paths |
array |
no | Limit to these path prefixes |
Options
| Flag | Type | Default | Description |
|---|---|---|---|
--entry |
unknown |
||
--maxDepth |
number |
12 |
Max call-tree depth |
--from |
string |
Left / "before" tree | |
--to |
string |
Right / "after" tree |
Examples
# HEAD vs working tree
calldiff diff
# One ref vs working tree
calldiff diff main
# Two commits / branches
calldiff diff abc123 def456
# Force entrypoints
calldiff diff main feature --entry createAgentSession
Semantics match git diff: no refs -> HEAD vs worktree; one ref -> that vs worktree; two refs -> compare those trees.
calldiff reach
Find all call paths from an entrypoint to a target symbol
Arguments
| Name | Type | Required | Description |
|---|---|---|---|
ref |
string |
no | Git ref (default: working tree) |
paths |
array |
no | Limit to these path prefixes |
Options
| Flag | Type | Default | Description |
|---|---|---|---|
--entry |
unknown |
Entrypoint(s): functionName or ClassName.method | |
--to |
string |
Target symbol to reach (functionName or ClassName.method) | |
--maxDepth |
number |
12 |
Max call-tree depth |
Examples
# Paths in the working tree
calldiff reach --entry runCheckout --to sendEmail
# Paths at a commit, limited to a directory
calldiff reach HEAD examples/checkout --entry runCheckout --to sendEmail
calldiff tree
View a call tree (no diff) for one or more entrypoints
Arguments
| Name | Type | Required | Description |
|---|---|---|---|
ref |
string |
no | Git ref (default: working tree) |
paths |
array |
no | Limit to these path prefixes |
Options
| Flag | Type | Default | Description |
|---|---|---|---|
--entry |
unknown |
Entrypoint(s): functionName or ClassName.method | |
--maxDepth |
number |
12 |
Max call-tree depth |
Examples
# Tree from working tree
calldiff tree --entry createAgentSession
# Tree from a commit
calldiff tree HEAD --entry PiService.createAgentSession
FAQ
Which languages does it support?
The description says it covers 22 languages for call-stack analysis.
Do I need to install anything?
If the calldiff command is missing, the agent installs it globally with npm.
What does it compare if I give no references?
It compares HEAD with the current working tree, the same way git diff does.
Details
Original description by the author
Diff call stacks across git commits for agentic code review (22 languages). Run `calldiff --help` for usage details.
repo: humanlayer/humanlayer
Popularity
- GitHub stars
- 13k
- Ranking position
- #11382
- License
- Apache-2.0
- Updated
- 10/31/2026
Comments
- …
More skills from this repository
asd-ste100
13kTeaches your agent to rewrite confusing English into short, one-meaning sentences that are easy for people and other software to read.
better-github-skill
13kHelps your agent check a pull request's status, read its review comments, and find why a CI build failed, using ready-made GitHub scripts.
chrome-devtools-cli
13kLets your agent control Chrome from the terminal to open pages, click, fill in forms, and take page snapshots for browser automation and testing.
effect-program-design
13kHelps your agent design and test production Effect v4 programs, with clear services, typed errors, layers, and safe handling of resources.
Similar skills
diffs
394kLets your agent produce a real, shareable diff of edits as a viewer link or image file, instead of a hand-written summary.
coding-agent
394kHelps your agent hand a larger coding job to Codex, Claude Code, or OpenCode as a background worker, then check on its progress.
gh-issues
394kHelps your agent find GitHub issues, pick the ones to work on, and open pull requests with fixes, including follow-up on review comments.