Two releases since v0.5.0, bundled here. Headline: specclaw now grounds agents in your repo's own docs and hardens every agent payload with evidence-first prompting.
β¨ Grounded context discovery (#37, 0.5.2)
specclaw-discover-contextβ auto-discovers project docs repo-wide (git ls-files+findfallback) and injects a budget-capped digest into plan/build/verify. Ranksllms.txt/llms-full.txtfirst, then root docs, doc dirs, nested READMEs. Excludes changelogs, licenses, deps,archive/deprecated/i18n,.specclaw/. Newcontext:config block (discovery,max_lines,folders,pin,exclude) with Context7-style precedence. Over-budget files named in the footer β nothing dropped silently.context.discovery: falserestores prior behavior.- Plan grounding β
/specclaw:planbuilds a codebase survey, reads the docs digest, applies promotedspec-guidelines.md, and records sources indesign.md. - Discovery regression tests β 11 jq-free assertions over a fixture tree.
π Prompt hardening (#37, 0.5.2)
Evidence-grounded agent payloads (sourced from Anthropic + OpenAI prompt guides):
- Verify + code-reviewer use quote-first verdicts β no quotable evidence β finding dropped.
- Build/fix payloads gain Working Rules (investigate before answering, general-purpose solutions, temp cleanup) and reversibility rules (no force-push, no
git reset --hard, no--no-verifyβ halt + escalate instead). - Build payload reordered task-last (long-context win); constraints now carry motivations; few-shot good/bad examples added.
πΏ Smart base branch detection (#37, 0.5.2)
- New
detect_base_branch()βgit.base_branchoverride βorigin/HEAD(self-healing) βghdefault βmain/master. specclaw-build setupbranches fromorigin/<base>(not arbitrary HEAD);finalizemerges into the detected base;specclaw-prno longer hardcodes--base main.
π Plugin update check (#36, 0.5.1)
specclaw-check-updateβ/specclaw:statussurfaces a one-line hint when a newer plugin version is published (vs the repo's rawmarketplace.json). Network β€ once/24h, 5s timeout, fail-silent. Gate:plugin.update_check(default true).
π Docs (#33)
- Fixed stale
CONTRIBUTING.mdreferences.
Full changelog: v0.5.0...v0.5.2