After You Deploy an Agent: A Practical Guide to Three Core Config Files
Deployment only proves the runtime works. This guide shows how to separate persona, user profile, and behavioral rules into three Markdown files so an agent matches your style, audience, and workflows instead of giving generic answers.
Deployment is the start, not the finish
Environment setup, dependency install, and self-checks prove that the runtime can run. They do not prove that the agent understands user intent. Teams often start chatting right after deploy and then hit the same three issues: stiff tone, missed real needs, and workflows that conflict with existing norms. Those are usually not model-capability problems. They come from missing explicit constraints on agent behavior.
Treat the agent as a new teammate. Onboarding (deployment) only provides a desk and permissions. Collaboration quality depends on three written artifacts: how it should think and speak, who it serves and what their preferences and pain points are, and the rules and collaboration interfaces for how work gets done. Without any one of them, you get a generic “correct” answer instead of an answer that is useful to you.
Three files, one responsibility each
Use three single-purpose files instead of one long dump. Single responsibility keeps change impact small and review/rollback cheap.
| File (suggested name) | Layer | Question it answers | Typical symptoms if missing |
|---|---|---|---|
persona.md |
Persona | How it speaks and thinks | One-size-fits-all tone, unstable style |
user-profile.md |
User | Who you are, preferences, pain points | Misread requirements, endless clarification |
guide.md |
Rules | How it works and collaborates | Format drift, chaotic process |
Memory aid: persona defines how to say it, user profile fills in who you are, rules define how to do it.
Recommended order and dependencies
Do not reverse the order. Lower layers feed the upper ones.
- Write the user layer first. Stack, role, and constraints are inputs to the other two files.
- Write the persona layer next. Style cannot be invented in a vacuum; it must match the user. Architecture-review communication and incident-response communication differ in tone and information density.
- Write the rules layer last. Rules need the goals and style from the first two files so they can be testable, verifiable items.
How to write each file
4.1 User profile: “who I am” as structured facts
Avoid prose self-description. Use fixed fields so you can search and update incrementally:
# User profile- Role: backend engineer, high-concurrency services- Stack: Java / Go, containerized deploy, RDBMS + message queue- Hours: on-call needs shortest-path troubleshooting conclusions- Preferences: conclusion first, then evidence; code samples must run as-is- Hard no: do not skip error handling; do not add unconfirmed new dependencies- Current pain: slow production diagnosis; logs scattered across services
Write preferences and taboos as checkable conditions. “Be concise” is not checkable. “Conclusion in at most three sentences, then evidence” is.
4.2 Persona: constrain expression and reasoning
Persona has two parts: voice (readability) and thinking habits (conclusion quality).
# Persona## Voice- Answer in Chinese; keep technical terms in English- Conclusion first, then argument; no empty openers## Thinking habits- On trade-offs, list at least two options and when each applies- Mark uncertain content as “to be verified”; do not invent APIs or parameters- For destructive actions, state blast radius and wait for confirmation
“If uncertain, label as to be verified” is especially important. It is one of the strongest constraints against invented interface names, parameters, and performance numbers.
4.3 Behavioral guide: collaboration as rule items
The rules layer is about doing work. Each rule should be as verifiable as possible:
# Behavioral guide1. Scope: change only files directly related to the task; no unrelated refactors2. Verification: run the project’s existing build and tests after changes; fix failures before delivery3. Output structure: change notes / blast radius / verification results / residual risk4. High-risk actions: data deletion, permission changes, and production changes need explicit confirmation5. Dependencies: new dependencies must state necessity and alternatives
Keep the list to about ten items and keep numbering stable so reviews can cite them.
Symptom-to-file mapping
- Stiff replies, style drift: check the persona layer first—style is often too abstract.
- Repeated clarification, misunderstood needs: check the user layer—stack and taboo fields are often missing.
- Unstable output format, messy process: check the rules layer—fixed output structure and verification requirements are often missing.
- All three at once: all three files are missing. Build from scratch in the order in section 3.
Iteration and governance
Treat these files like code and put them under version control:
- Review: persona or rules changes should state motive and expected effect.
- Regression: keep a fixed set of prompts; re-run after config changes and compare outputs.
- Layering: personal preferences in the user layer; team-wide norms in the rules layer so personal config does not pollute the team baseline.
- Cleanup: drop long-unused items so rules do not bloat and conflict.
Summary
Deployment answers “can it run.” Configuration answers “does it run like your collaborator.” Separating persona, user, and rules, fixing the write order, and making items checkable is the minimum path from a generic agent to a dedicated teammate. Manage the three files as code so quality can accumulate, reuse, and regress.
