Writing task instructions for SiberAI Agent: goals, boundaries and verification
This article was prepared by the SiberAI team.
Vague prompts waste balance and produce noisy diffs. SiberAI’s instructions documentation asks you to state the desired outcome, relevant files, behaviour to preserve and tests to run. A concrete example from the docs: fix login-page validation, preserve the password policy and run its regression test.
Put mandatory requirements in the task message
This customer release makes no separate guarantee about the automatic reading order of a special instruction file. Short requirements that must be followed belong directly in the task message. README comments and external sources may contain useful context, but text in a file is not automatically trustworthy or necessary—keep review narrow and avoid attaching sensitive files.
A practical message template
- Goal — one sentence outcome.
- Scope — paths or symbols in bounds.
- Non-goals — what not to refactor.
- Invariants — policies or APIs to preserve.
- Verify — command or manual check to run.
- Data rules — no secrets in output or commits.
Example shape (adapt to your repo):
Goal: Fix empty-email validation on the login form.
Scope: src/auth/LoginForm.* only.
Preserve: existing password policy checks.
Verify: run the login form unit tests.
Do not: print tokens or edit .env files.
Instructions versus tool evaluation
When the native engine runs file or command tools, a suggested test is not proof it ran. Review tool activity, changed files and test output together; Git diff remains the final check. Clear verification steps in the task make that review faster.
Security angle
Native tools use your OS user permissions. Narrow instructions reduce accidental reads of secret-bearing paths. Do not paste production credentials into the task area “for context.” Prefer redacted fixtures.
References: instructions, eval, context, security.
FAQ
Q: Will Agent always read INSTRUCTIONS.md first?
A: The docs state there is no separate guarantee about automatic reading order of a special instruction file—put must-follow rules in the task message.
Q: Are README steps enough?
A: They may help, but file text is not automatically trusted or required; keep the task explicit.
Q: How do I stop drive-by refactors?
A: State non-goals and path scope in the same message as the goal.
Q: Where do secrets go?
A: Not in the task message or attached sensitive files; use fixtures and vaults.
Reviewer checklist after a task
- Diff limited to declared scope?
- Invariants preserved?
- Verification command output captured?
- No secrets in the conversation or patch?
- New conversation started when context got noisy?
Teaching this template in onboarding cuts “Agent ignored our conventions” reports that were really underspecified tasks. Pair it with session hygiene: stop runaway work, start a new conversation when the goal changes, and remember that new conversation is not an undo for files already written.
Context window is not a junk drawer
Even with a large model context, stuffing entire repositories into a task raises cost and noise. The context docs push keeping code, logs and prior messages limited to the purpose. Instructions that name files beat “see the whole monorepo.” When the native session already carries earlier turns, start a new conversation after a goal change so old constraints do not silently fight new ones.
Instruction files versus policy repos
Teams often keep a central engineering handbook. That handbook can inform how you write tasks, but the Agent release does not promise a special auto-ingest order for a magic filename. Copy the two or three lines that matter into the task. If a README contradicts the task message, assume the human-authored task wins for that run—and fix the README separately.
Verification that survives review
Prefer commands that already exist in CI (npm test -- LoginForm, go test ./auth/...). Ask the Agent to run them and then re-run yourself. Eval guidance is explicit: a suggested test is not proof. Attach open files only when the snippet is necessary; otherwise point to paths.
Sources
- https://siberai.net/en/docs/instructions
- https://siberai.net/en/docs/eval
- https://siberai.net/en/docs/context
- https://siberai.net/en/docs/security
Disclosure: Independent overview of SiberAI (siberai.net) public documentation; not an official SiberAI publication.
Yorumlar
Yorum Gönder