Skip to content

feat(skill): rename to agentfield, fetch live docs from agentfield.ai#611

Merged
santoshkumarradha merged 2 commits into
mainfrom
skill/agentfield-rename-and-rewrite
Jun 2, 2026
Merged

feat(skill): rename to agentfield, fetch live docs from agentfield.ai#611
santoshkumarradha merged 2 commits into
mainfrom
skill/agentfield-rename-and-rewrite

Conversation

@santoshkumarradha
Copy link
Copy Markdown
Member

Summary

Renames the bundled skill from agentfield-multi-reasoner-builder to plain agentfield and rewrites it around three goals:

  1. Live docs over baked snapshots. The skill now fetches agentfield.ai/llms.txt, llms-full.txt, and per-page /llm/docs/<slug> before scaffolding. The bundled snapshot (primitives-snapshot.md) is the offline fallback only, explicitly stamped as such — so the agent stops teaching coding agents stale SDK signatures when the SDK ships a release.
  2. Pattern bias removed. architecture-patterns.mdpatterns-emerge.md. Named patterns (HUNT→PROVE, parallel hunters, streaming, meta-prompting, factory loops, linear refinement cascade, dynamic router, reactive enrichment, etc.) are now vocabulary for naming what falls out of the five principles. HUNT→PROVE no longer dominates the prose. A new examples-map.md indexes every project in code/examples/* with one-line shape descriptions so the agent picks the closest live build and greps its real code instead of paraphrased templates.
  3. CLI introspection surface. New cli-toolkit.md documents af doctor, af init, af agent {status,discover,query,run,agent-summary,kb,batch,help}, af logs, af execution, af vc. The skill now prefers af agent kb guide --goal "..." and af agent discover -q "..." over hand-rolled curl.

Other changes

  • New model-selection.md: af doctor → ask user → live-pick from openrouter.ai/api/v1/models (filtered for open-weight providers) → frozen fallback. No more hardcoded gemini-2.5-flash in nine places.
  • SKILL.md adds a dedicated "Reasoners are APIs — design like a service mesh, not a chain" section that explicitly contrasts with LangChain / CrewAI / AutoGen / LangGraph static DAGs.
  • scaffold-recipe.md depersonalized: removed committee.py / adversarial reviewer / HUNT→PROVE inline example. Hard invariants only.
  • anti-patterns.md compressed to one-line tables.
  • All bundled refs trimmed (~5.4k lines deleted, ~4k added).

Back-compat

  • Skill struct gets a new Aliases []string field. agentfield-multi-reasoner-builder resolves transparently to the new skill, so anyone with the old skill installed keeps working.
  • Version bumped 0.3.00.4.0.

File-size comparison

Old New Δ
SKILL.md 43 KB 20 KB -53%
Total skill ~153 KB ~112 KB -27%
Files 7 refs 11 refs +4 (live-docs, cli-toolkit, model-selection, examples-map)

Verified

  • go build ./control-plane/...
  • go vet ./... (no issues)
  • go test ./internal/skillkit/... ./internal/cli/... (384 passed)
  • ./scripts/sync-embedded-skills.sh --check (no drift)
  • af skill catalog shows agentfield v0.4.0
  • af skill print agentfield-multi-reasoner-builder resolves via alias

Test plan

  • Reviewer skims the new SKILL.md and confirms tone + length
  • Reviewer skims live-docs.md + cli-toolkit.md (the two largest new docs)
  • Reviewer confirms the model-selection flow is acceptable (env → ask → OpenRouter live-pick → fallback)
  • Reviewer confirms back-compat alias resolves (af skill print agentfield-multi-reasoner-builder)
  • CI green on go build, go test, sync-embedded-skills --check

🤖 Generated with Claude Code

…m agentfield.ai

Renames the bundled `agentfield-multi-reasoner-builder` skill to plain
`agentfield` and rewrites it around three changes:

- **Live docs first**: every invocation now fetches
  agentfield.ai/llms.txt + llms-full.txt + per-page /llm/docs/<slug>
  before scaffolding, so the agent gets ground-truth SDK signatures
  instead of a baked-in snapshot that drifts release to release. The
  bundled references/primitives-snapshot.md is the offline fallback,
  explicitly stamped as such.

- **Pattern bias removed**: architecture-patterns.md becomes
  patterns-emerge.md. Patterns are vocabulary for naming what falls out
  of the five principles, not a menu to copy from. HUNT->PROVE has
  equal weight with linear refinement, dynamic router, fan-out/recurse,
  event-driven, etc. The new examples-map.md indexes
  code/examples/* so the agent picks the closest real build and greps
  its actual code instead of paraphrased templates.

- **CLI introspection surface**: new references/cli-toolkit.md
  documents `af doctor`, `af init`, `af agent {status,discover,query,
  run,agent-summary,kb,batch,help}`, `af logs`, `af execution`, etc.
  The skill now prefers `af agent kb guide --goal "..."` and
  `af agent discover -q "..."` over hand-rolled curl.

Other changes:

- New references/model-selection.md: env -> ask user -> live-pick from
  openrouter.ai/api/v1/models (open-weight providers) -> frozen
  fallback. No more hardcoded model string in nine places.
- SKILL.md adds a dedicated "Reasoners are APIs — design like a service
  mesh, not a chain" section explaining what no static chain framework
  (LangChain, CrewAI, AutoGen, LangGraph) can do.
- scaffold-recipe.md depersonalized: no committee.py / adversarial
  reviewer / HUNT->PROVE example. Hard invariants only.
- anti-patterns.md is now a one-line table.
- All bundled refs trimmed.

Compat:

- Catalog adds an `Aliases` field; "agentfield-multi-reasoner-builder"
  still resolves to the new skill so existing installs keep working.
- Version bumped 0.3.0 -> 0.4.0.

Verified:
- go build ./control-plane/... + go vet ./...
- go test ./internal/skillkit/... ./internal/cli/... (384 pass)
- ./scripts/sync-embedded-skills.sh --check (no drift)
- `af skill catalog` shows agentfield v0.4.0
- `af skill print agentfield-multi-reasoner-builder` resolves via alias
@santoshkumarradha santoshkumarradha requested review from a team and AbirAbbas as code owners June 2, 2026 15:44
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 2, 2026

📊 Coverage gate

Thresholds from .coverage-gate.toml: per-surface ≥ 84%, aggregate ≥ 85%, max per-surface regression ≤ 1.0 pp, max aggregate regression ≤ 0.50 pp.

Surface Current Baseline Δ
control-plane 87.40% 87.40% → +0.00 pp 🟡
sdk-go 92.00% 92.00% → +0.00 pp 🟢
sdk-python 93.73% 93.73% ↑ +0.00 pp 🟢
sdk-typescript 90.42% 90.42% → +0.00 pp 🟢
web-ui 84.79% 84.79% → +0.00 pp 🟡
aggregate 85.75% 85.75% → +0.00 pp 🟡

✅ Gate passed

No surface regressed past the allowed threshold and the aggregate stayed above the floor.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 2, 2026

📐 Patch coverage gate

Threshold: 80% on lines this PR touches vs origin/main (from .coverage-gate.toml:thresholds.min_patch).

Surface Touched lines Patch coverage Status
control-plane 15 86.00%
sdk-go 0 ➖ no changes
sdk-python 0 ➖ no changes
sdk-typescript 0 ➖ no changes
web-ui 0 ➖ no changes

✅ Patch gate passed

Every surface whose lines were touched by this PR has patch coverage at or above the threshold.

… name

Four cosmetic updates to scripts/install.sh that referenced the legacy
agentfield-multi-reasoner-builder name. The install logic itself is
unchanged — it always installed whatever the af binary's catalog
defaults to.
@santoshkumarradha santoshkumarradha merged commit 2d16e73 into main Jun 2, 2026
24 checks passed
@santoshkumarradha santoshkumarradha deleted the skill/agentfield-rename-and-rewrite branch June 2, 2026 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant