forage-resources
정보
이 스킬은 개미 군집 최적화와 채집 이론을 적용하여 새로운 옵션 탐색과 알려진 우수한 옵션 활용 사이의 균형을 잡아 방대한 해결책 공간을 효율적으로 탐색합니다. 정찰병 배치, 성공적인 경로 강화, 수익 체감 감지, 전략 동적 조정을 지원합니다. 무차별 대입 탐색이 비현실적일 때, 불확실한 기회들에 자원을 할당해야 할 때, 또는 지역 최적점에의 조기 수렴을 진단할 때 사용하세요.
빠른 설치
Claude Code
추천npx skills add pjt222/agent-almanac -a claude-code/plugin add https://github.com/pjt222/agent-almanacgit clone https://github.com/pjt222/agent-almanac.git ~/.claude/skills/forage-resourcesClaude Code에서 이 명령을 복사하여 붙여넣어 스킬을 설치하세요
문서
Forage Resources
Apply foraging theory + ant colony opt → systematically search, evaluate, exploit distributed resources — balance exploration unknown vs exploitation known yields.
Use When
- Search large solution space, brute-force impractical
- Balance invest between explore new vs deepen known good
- Optimize resource alloc across uncertain opportunities
- Design search strategies distributed teams/automated agents
- Diagnose premature convergence (stuck local optima) or perpetual wandering (never commit)
- Complement
coordinate-swarmw/ specific resource-discovery patterns
In
- Required: Resource being sought (info, compute, talent, solutions, opportunities)
- Required: Search space (size, structure, known features)
- Optional: Current strategy + failure mode
- Optional: N available scouts/searchers
- Optional: Cost exploration vs cost exploitation failure
- Optional: Time horizon (short-term exploitation vs long-term exploration)
Do
Step 1: Map Landscape
Characterize resource env → select strategy.
- Resource type + distribution:
- Concentrated: cluster rich patches (talent in specific communities)
- Distributed: spread evenly (bugs across codebase)
- Ephemeral: appear + disappear (market opportunities)
- Nested: rich patches contain sub-patches diff scales
- Information landscape:
- How much known about locations before foraging?
- Scouts share info w/ foragers? (see
coordinate-swarmfor signal design) - Static or changing while foraging?
- Cost structure:
- Cost per scout deployed (time, compute, money)
- Cost exploiting low-quality (opportunity cost)
- Cost missing high-quality (regret)
→ Characterized landscape w/ distribution, info, cost. Determines foraging model.
If err: completely unknown → max exploration (all scouts, no exploit) for fixed budget → build initial map. Switch to model once character clear.
Step 2: Deploy Scouts w/ Trail Marking
Exploratory agents into search space + instructions mark what find.
- Allocate scout % (start 20-30% of available)
- Scout behavior:
- Move through space randomized/systematic
- Evaluate each location (quick not deep)
- Mark discoveries w/ signal strength proportional to quality:
- High quality → strong trail
- Medium → moderate
- Low → weak or no signal
- Return info to collective (signal deposit, report, broadcast)
- Scout pattern:
- Random walk: unknown, uniform landscapes
- Levy flight: long jumps + local clustering — patchy
- Systematic sweep: grid/spiral — bounded, well-defined
- Biased random: lean toward similar previous finds — clustered
→ Scouts deployed, depositing signals proportional to quality. Initial map emerges from reports.
If err: nothing initial sweep → (a) scout % too low (increase 50%), (b) wrong pattern (random walk → Levy flight for patchy), (c) quality miscalibrated (lower detection threshold).
Step 3: Trail Reinforcement
Positive feedback loops amplify successful paths, let unsuccessful fade.
- Forager follows trail + finds good:
- Reinforce signal (increase strength)
- Reinforced → more foragers → more reinforcement → exploitation
- Forager follows trail + finds nothing:
- No reinforce (trail decays naturally)
- Weakening → fewer foragers → fades → exploration resumes
- Reinforcement params:
- Deposit: proportional to quality
- Decay rate: trails lose X%/time
- Saturation cap: max strength (prevents runaway single path)
Trail Reinforcement Dynamics:
┌─────────────────────────────────────────────────────────────────────┐
│ │
│ Strong trail ──→ More foragers ──→ If good: reinforce ──→ EXPLOIT │
│ ↑ │ │
│ │ If bad: no reinforce │ │
│ │ │ │ │
│ │ ↓ │ │
│ Decay ←── Weak trail ←── Fewer foragers ←── Trail fades │ │
│ │ │ │
│ ↓ │ │
│ No trail ──→ Scouts explore ──→ New discovery ──→ New trail ↗ │
│ │
└─────────────────────────────────────────────────────────────────────┘
→ Self-regulating loop: good attract, poor abandoned. Balance via trail dynamics.
If err: all converge single trail (premature convergence) → decay too slow or cap too high. Increase decay, lower cap, or random exploration mandates (10% ignore trails). Fade too fast → reduce decay.
Step 4: Diminishing Returns
Monitor yields → know when shift exploit back to explore.
- Track yield/effort each active site:
- Increasing → healthy, continue
- Flat → approach saturation, begin scouting alts
- Decreasing → diminishing, reduce foragers, increase scouts
- Marginal value theorem:
- Compare current yield vs avg across known sites
- Current drops below avg → time to leave
- Factor travel cost (switching to new)
- Trigger scouting waves:
- Overall yield across all drops below threshold
- Best-performing exploited longer than expected lifetime
- Env change detected (new signals from unexplored areas)
→ Swarm shifts between exploit (known-good) + exploration (scouts dispersed), driven by monitoring not arbitrary schedules.
If err: stays depleted too long → marginal threshold too low or travel cost too high. Recalibrate via actual rates. Abandons good too early → threshold too sensitive, add smoothing window.
Step 5: Adapt Strategy
Select + switch strategies based on env feedback.
- Match to landscape:
- Rich, clustered: commit heavy discovered patches (high exploit)
- Sparse, scattered: high scout ratio (high explore)
- Volatile, changing: short decay, frequent scouting waves (adaptive)
- Competitive: faster reinforcement, pre-emptive marking (territorial)
- Monitor strategy-env mismatch:
- High effort, low yield → too exploitative
- High discovery, low follow-through → too exploratory
- Oscillating yield → switching too aggressively
- Adaptive switching:
- Rolling avg explore-to-exploit ratio
- Ratio drifts too far from optimal (by landscape type) → nudge back
- Gradual transitions — abrupt cause coordination chaos
→ System adapts balance to env, maintains effectiveness as conditions change.
If err: adaptation unstable (oscillating) → damping: require mismatch persist N time units before shift. No strategy works → reassess Step 1 landscape, distribution may be more complex than assumed.
Check
- Landscape characterized (distribution, info, cost)
- Scout % + pattern defined + deployed
- Trail reinforcement loop functional (deposit, decay, saturation)
- Diminishing returns triggers rebalance exploit → explore
- Strategy-env match monitored + adaptive switching
- System recovers landscape changes (new/depleted)
Traps
- Premature convergence: All pile on first good find, ignore better. Cure: mandatory exploration %, trail saturation caps, decay.
- Perpetual exploration: Scouts find new but swarm never commits. Cure: lower quality threshold for reinforcement, reduce scout %.
- Ignore travel costs: Switching has cost. Constantly jumping similar-quality → waste travel > gain. Factor travel into marginal value.
- Static strategy dynamic landscape: Optimized for yesterday fails tomorrow. Build adaptation into loop not afterthought.
- Conflate scout + forager quality: Good scouts (broad, quick) + good foragers (deep, thorough) require diff skills. Don't force both roles.
→
coordinate-swarm— foundational coordination underpinning signal designbuild-consensus— swarm must collectively agree which patches prioritizescale-colony— scaling operations as landscape/swarm growsassess-form— morphic for system current state, complementary to landscapeconfigure-alerting-rules— alerting applicable to diminishing returnsplan-capacity— capacity planning shares explore-exploit framingforage-solutions— AI self-application variant; maps ant colony to single-agent solution exploration w/ scout hypotheses + trail reinforcement
GitHub 저장소
연관 스킬
llamaguard
기타LlamaGuard는 폭력 및 혐오 발언 등 6가지 안전 범주에서 LLM 입력과 출력을 조정하기 위한 Meta의 70-80억 파라미터 모델입니다. 94-95% 정확도를 제공하며 vLLM, Hugging Face 또는 Amazon SageMaker를 사용해 배포할 수 있습니다. 이 기술을 사용하여 AI 애플리케이션에 콘텐츠 필터링 및 안전 가드레일을 손쉽게 통합하세요.
cost-optimization
기타이 Claude Skill은 리소스 적정화, 태깅 전략, 지출 분석을 통해 개발자들이 클라우드 비용을 최적화할 수 있도록 지원합니다. AWS, Azure, GCP에서 클라우드 비용을 절감하고 비용 거버넌스를 구현하기 위한 프레임워크를 제공합니다. 인프라 비용을 분석하거나, 리소스를 적정화하거나, 예산 제약을 충족해야 할 때 사용하세요.
quantizing-models-bitsandbytes
기타이 스킬은 bitsandbytes를 사용하여 LLM을 8비트 또는 4비트 정밀도로 양자화하며, 최소한의 정확도 손실로 50-75%의 메모리 감소를 달성합니다. 제한된 GPU 메모리에서 더 큰 모델을 실행하거나 추론을 가속화하는 데 이상적이며, INT8, NF4, FP4와 같은 형식을 지원합니다. 이 스킬은 HuggingFace Transformers와 통합되어 QLoRA 학습 및 8비트 옵티마이저를 가능하게 합니다.
dispatching-parallel-agents
기타이 Claude Skill은 3개 이상의 독립적인 문제를 동시에 조사하고 해결하기 위해 다중 에이전트를 배치합니다. 공유 상태나 의존성 없이 해결 가능한 무관련 장애 시나리오에 맞게 설계되었습니다. 핵심 기능은 병렬 문제 해결로, 각 독립 문제 영역마다 하나의 에이전트를 할당하여 효율성을 극대화합니다.
