[Optimization] Streamline fffind & ffgrep promptGuidelines into concise heuristics

Open Beginner friendly
#842 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
72/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Active
Tech stack
rust
Domain
tooling

Research direction

Locate the promptGuidelines entries for fffind and ffgrep in @ff-labs/pi-fff, then review how they are injected into Pi's System Prompt. Consolidate the overlapping guidance into the two concise bullets described in the issue, while preserving the listed search heuristics and reducing the per-session token footprint.

Written by the indexing model from the issue text.

Description

triaged
Summary

@ff-labs/pi-fff currently injects 10 separate promptGuidelines entries (~800 characters) across fffind and ffgrep into Pi's System Prompt on every session.

Suggestion

Many of the 10 bullets describe overlapping usage heuristics (e.g., bare identifiers, path include/exclude, glob usage, 1-2 term queries). These can easily be consolidated into 2 concise summary bullets:

  1. ffgrep: prefer bare identifiers, literal queries, and path scoping (e.g., path: 'src/', exclude: 'test/').
  2. fffind: whole-path fuzzy search (1-2 terms); use path glob (e.g., path: '**/file.h') for exact matches.

This keeps the guidance clear and effective while cutting the token footprint in half across all user sessions.

Dominant language
Rust
Stars
10.8k
Forks
448
Avg merge
3d 14h
Merged PRs (30d)
41

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from dmtrKovalenko/fff

All issues in dmtrKovalenko/fff

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.