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.

    Do not reverse the order. Lower layers feed the upper ones.

    1. Write the user layer first. Stack, role, and constraints are inputs to the other two files.
    2. 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.
    3. 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:

    1. # User profile
    2. - Role: backend engineer, high-concurrency services
    3. - Stack: Java / Go, containerized deploy, RDBMS + message queue
    4. - Hours: on-call needs shortest-path troubleshooting conclusions
    5. - Preferences: conclusion first, then evidence; code samples must run as-is
    6. - Hard no: do not skip error handling; do not add unconfirmed new dependencies
    7. - 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).

    1. # Persona
    2. ## Voice
    3. - Answer in Chinese; keep technical terms in English
    4. - Conclusion first, then argument; no empty openers
    5. ## Thinking habits
    6. - On trade-offs, list at least two options and when each applies
    7. - Mark uncertain content as “to be verified”; do not invent APIs or parameters
    8. - 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:

    1. # Behavioral guide
    2. 1. Scope: change only files directly related to the task; no unrelated refactors
    3. 2. Verification: run the project’s existing build and tests after changes; fix failures before delivery
    4. 3. Output structure: change notes / blast radius / verification results / residual risk
    5. 4. High-risk actions: data deletion, permission changes, and production changes need explicit confirmation
    6. 5. 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.