Skip to content
This repository was archived by the owner on Apr 11, 2026. It is now read-only.

Commit 92e793c

Browse files
z23ccclaude
andcommitted
fix: repo-map default unlimited, tool priority native-first
- repo-map --budget default changed from 1024 to 0 (unlimited) - budget=0 means output all ranked symbols (no truncation) - Use --budget N to limit if needed - All skill/agent references updated to use no budget flag Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent ba44cbb commit 92e793c

6 files changed

Lines changed: 6 additions & 6 deletions

File tree

agents/context-scout.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Match tool to need — flowctl for structure overview, native tools for precise
1717

1818
| Need | Tool | Why |
1919
|------|------|-----|
20-
| **Project structure overview** | `flowctl repo-map --budget 1024` | Unique — PageRank-ranked symbols, ~1K tokens for entire project |
20+
| **Project structure overview** | `flowctl repo-map` | Unique — PageRank-ranked symbols grouped by file (default: all symbols) |
2121
| **Directory symbol scan** | `flowctl code-structure extract --path <dir>` | Unique — function/type signatures without reading full files |
2222
| **Deep cross-file analysis** | RP context_builder | Best for "how does X work across files" questions |
2323
| **Read specific code** | `Read` (native) | Best for precise reads with line ranges — supports offset/limit |

agents/worker.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ git log -5 --oneline
207207
208208
# 3. Quick context (optional — skip for trivial tasks)
209209
# Only run these if the task touches unfamiliar code:
210-
# $FLOWCTL repo-map --budget 512 --json ← project overview (large projects only)
210+
# $FLOWCTL repo-map --json ← full project symbol overview (skip for trivial tasks)
211211
# $FLOWCTL search "<terms>" --git modified ← find recently changed related files
212212
213213
# 4. Check memory system

bin/flowctl

0 Bytes
Binary file not shown.

codex/skills/flow-code-plan/steps/step-02-research.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Before spawning scouts, gather initial context. Use the right tool for each need
5151
```bash
5252
# 1. Project structure overview (flowctl — unique, no native equivalent)
5353
# Skip for trivial/single-file tasks
54-
$FLOWCTL repo-map --budget 512 --json
54+
$FLOWCTL repo-map --json
5555

5656
# 2. Find related files — use Grep (native) for known patterns
5757
# Use flowctl search only if file names are fuzzy/uncertain

flowctl/crates/flowctl-cli/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -537,8 +537,8 @@ enum Commands {
537537
},
538538
/// Generate a ranked repo map (top symbols by importance).
539539
RepoMap {
540-
/// Token budget for the output (default: 1024).
541-
#[arg(long, default_value = "1024")]
540+
/// Token budget for the output (default: unlimited). Use --budget to limit.
541+
#[arg(long, default_value = "0")]
542542
budget: usize,
543543
/// Root directory to scan (default: current directory).
544544
#[arg(long, default_value = ".")]

flowctl/crates/flowctl-core/src/repo_map.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ pub fn generate_repo_map(root: &Path, token_budget: usize) -> Result<String, Str
206206
};
207207
let sig_cost = estimate_tokens(&format!(" {}\n", rs.symbol.signature));
208208

209-
if tokens_used + file_header_cost + sig_cost > token_budget {
209+
if token_budget > 0 && tokens_used + file_header_cost + sig_cost > token_budget {
210210
break;
211211
}
212212

0 commit comments

Comments
 (0)