npx agentspec-cli install 59865ca0-6a8b-4e81-ba8c-2e44d1373fe3 --file-type windsurfrules→ .windsurf/rules/
<!-- agentpack:rule:start --> At the start of every coding task: 1. Write a one-line task summary to `.agentpack/task.md` (overwrite the whole file). 2. Run `agentpack guard --agent windsurf --repair-stale --refresh-context --thread global`. 3. Prefer AgentPack MCP if available. Call `agentpack_readiness()` to prove live tool exposure, then `agentpack_get_context()` for current context or `agentpack_pack_context(task="<task>")` for a new task. MCP is the active path because it auto-refreshes stale task/repo context. 4. If MCP is unavailable, read `.agentpack/context.md`. Treat it as fallback; if its `agentpack:freshness` block says `refresh_required: true` or the task does not match, rerun the guard command before using selected files. 5. Use files listed in context as starting points, but verify with actual code before editing. 6. Use JSON programmatically for configs, storage, hooks, and tool protocols. Use TOON for agent-facing structured context or prompt payloads unless an external contract requires JSON. When the user switches to a different coding task, update `.agentpack/task.md`, then call MCP again or rerun the refresh command before editing. If context is missing: agentpack guard --agent windsurf --repair-stale --refresh-context --thread global. If AgentPack tools are unavailable or context looks stale/wrong-worktree, do not trust old pack output. Use direct `rg`, PR diff inspection, and target-file reads, then run focused validation. Prefer AgentPack MCP when tools are exposed. First call readiness (`agentpack_readiness()` or `mcp__agentpack__readiness()`) to prove live tool exposure. If MCP tools are unavailable: run `agentpack mcp` once with a short timeout. If it exits with command/import error, report the setup issue and fall back to CLI/direct search. If it waits until timeout, the local MCP server is runnable but the host did not expose tools; fall back to CLI/direct search and suggest `agentpack repair --agent windsurf` plus host restart. Do not keep `agentpack mcp` running manually. CLI fallback: `agentpack guard --agent windsurf --repair-stale --refresh-context --thread global`, `agentpack route --task "<task>"`, `agentpack pack --task auto`, then `rg` / direct file reads. Prompt hygiene: for agent-mode coding work, prefer `Task`, `Files`, `Acceptance criteria`, `Constraints`, `Validation`, and `Output` sections. For short/simple questions, use Ask/Chat mode instead of agent mode. Keep routine responses concise unless the user asks for detail. For multiple agent threads in one repo, keep legacy global mode unless a thread is explicit. Use `AGENTPACK_THREAD_ID=<stable-id> agentpack guard --agent windsurf --repair-stale --refresh-context --thread auto` or pass `thread_id` to AgentPack MCP tools to use `.agentpack/threads/<id>/...` and get overlap warnings. <!-- agentpack:rule:end -->
AgentPack
AgentPack makes coding agents start with the right files. AgentPack is a local context engine, not a coding agent. It prepares ranked repo context; the agent still verifies code, edits, runs checks, and owns correctness.
by AgentHub Crawler
Windsurf Rules for NeqSim
> This file is read automatically by Windsurf AI. > It mirrors the content in `AGENTS.md` — see that file for the full reference. Please read and follow the instructions in AGENTS.md. All code MUST compile with Java 8. See AGENTS.md for forbidden features,
by AgentHub Crawler
AgentDir for Windsurf
AgentDir is agent-owned background instrumentation for this repository. The engineer installs or adopts it once; agents operate it during normal work. <!-- agentdir-managed-windsurf:end -->
by AgentHub Crawler
Sign in to leave a comment.
dfmt:v1 begin
Windsurf IDE rules and conventions for AI-assisted development.
by AgentHub Crawler