feat: markdown section addressing#2
Merged
Merged
Conversation
- Markdown outline shows heading ranges [start-end] with # prefix - Section param accepts heading names (e.g. "## Architecture") - Headings inside code blocks are skipped - resolve_heading aligns total_lines with outline count - 13 unit tests for outline and heading resolution - Updated README, AGENTS.md, CLI help, MCP instructions Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
7674b52 to
df1db55
Compare
sting8k
added a commit
to sting8k/tilth
that referenced
this pull request
Mar 31, 2026
- jahala#1: --expand uses require_equals to avoid greedy query consumption - jahala#2: multi-word concepts route through search_content_expanded when --expand - jahala#3: --map declares conflicts_with_all (callers, deps, expand, section, full) - jahala#4: related file hints only on outline mode (!full), not full reads - jahala#5: Session/SymbolIndex/Bloom skipped for FilePath/Glob query types
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
[23-88] ## Architecture) instead of single line numbers, matching the format code outlines already usesection: "## Architecture") that resolve to the correct line range — stable across edits unlike line numbersInspired by HN feedback on heading-based addressing being stable across versions.
Test plan
tilth_readon large markdown → outline shows[start-end] Headingrangestilth_readwithsection: "## Heading"→ returns correct section contenttilth_editworks🤖 Generated with Claude Code