Skip to main content
reopt Handbook
reopt Handbook
Enterprise Eve Agent Development

Core Architecture

Ch1. Eve Mental ModelCh2. Source Code AtlasCh3. Project Layout and DiscoveryCh4. Compiler and Runtime Graph

Agent Quality Design

Ch5. agent.ts, Models, CompactionCh6. Context, Skills, Dynamic CapabilitiesCh7. Tools, Approval, ConnectionsCh8. Sandbox Secure Runtime

Operational Runtime

Ch9. Channels, Auth, StreamingCh10. Subagents, Workflows, Remote AgentsCh11. Schedules, State, HooksCh12. Evals and Quality Gates

Production Operations

Ch13. Observability and DeploymentCh14. Enterprise PatternsCh15. Migration and Governance

Appendix

Official Docs CrosswalkVerification ReportUpdates
Handbook›엔터프라이즈 Eve 에이전트›Ch6. Context, Skills, Dynamic Capabilities
한국어English

Ch6. Context, Skills, Dynamic Capabilities

Design context, skills, dynamic tools, dynamic instructions, and dynamic skills for high-quality Eve agents.

Key takeaways

  • High-quality Eve agents split context across instructions, skills, dynamic capabilities, and workspace files.
  • Skill descriptions are routing contracts; vague descriptions reduce model reliability.
  • Dynamic capabilities are powerful for tenant-specific authority, but names and event order need governance.

Agent quality is often constrained more by context design than by the model. Eve provides several context surfaces so you do not have to put everything into one prompt.

Context Levers

LeverWhen the model sees itUse
instructions.mdevery turnidentity, safety principles, default style
instructions.tsevery turn after build-time compositiontyped prompt composition
skills/after load_skilllong procedures and playbooks
dynamic instructionsruntime-specific turnstenant/user/channel policy
dynamic skillsruntime-specific procedure setper-team or per-plan playbooks
dynamic toolsruntime-specific tool setleast-privilege capability exposure
sandbox workspacewhen model reads fileslarge artifacts, schemas, reports

Instructions Stay Short And Stable

Good instructions establish durable behavior:

You are the internal release operations agent.

Rules:
- Never perform external write actions without explicit approval.
- Prefer reading repository and deployment evidence before recommending rollback.
- If policy is missing, ask a clarifying question instead of guessing.

Do not bury long procedures in always-on instructions. Move procedures to skills.

Skills Are Procedure Memory

Skills are loaded on demand. Use them for:

  • incident playbooks
  • release checklists
  • customer-support policy
  • data analysis procedures
  • domain-specific formatting rules

Skill files can be markdown or TypeScript-defined skills. The important part is a precise description.

Skill Description Is A Routing Contract

StrongWeak
"Runbook for production rollback after failed Vercel deployment.""Deployment notes."
"Billing refund policy and escalation steps for support agents.""Support policy."
"SQL warehouse analysis workflow for retention metrics.""Analytics stuff."

The model chooses when to load skills based on this contract.

Dynamic Tools

Dynamic tools let a resolver return tool definitions at runtime.

agent/tools/team-tools.ts
import { defineDynamic } from "eve/tools";

export default defineDynamic(async (ctx) => {
  const plan = ctx.session.auth.current?.attributes.plan;
  if (plan !== "enterprise") return {};

  return {
    export_audit_report: {
      description: "Export an audit report for the current tenant.",
      inputSchema: z.object({ range: z.string() }),
      execute: async (input) => exportAuditReport(input),
    },
  };
});

Dynamic tool execute functions must be inline so the runtime can carry the definition across step boundaries.

Dynamic Naming

Dynamic tool names become <fileSlug>__<key>. This makes collisions less likely but also means naming affects traces and evals.

ConcernStandard
key namingstable, descriptive, risk-visible
resolver inputuse channel metadata and auth context carefully
absencereturn {} rather than exposing denied tools
evaluationtest allowed and denied principals

Dynamic Skills And Instructions

Use dynamic skills/instructions when the policy or procedure depends on runtime context.

agent/instructions/team-policy.ts
import { defineDynamic } from "eve/instructions";

export default defineDynamic(async (ctx) => {
  const tier = ctx.session.auth.current?.attributes.plan ?? "unknown";
  return `The caller plan is ${tier}. Apply the matching support policy.`;
});

Guideline: dynamic instructions should be short facts or policy pointers, not full knowledge bases.

Event Order

Channel handlers update state before hooks and dynamic resolvers read it. This enables a channel to project metadata and dynamic capabilities to use that metadata.

Example:

  1. Slack mention arrives.
  2. Channel handler loads thread context and updates channel state.
  3. Stream event is recorded.
  4. Hooks run.
  5. Dynamic resolvers read projected channel metadata.

Prevent Context Pollution

RiskMitigation
all policies always loadedmove procedures to skills
tenant policy leakeddynamic instructions keyed by verified auth context
oversized workspace filesteach agent to read relevant files only
stale skill contentinclude source and update cadence
prompt injection in documentsseparate retrieval from action authority

Evaluation Criteria

CaseExpected behavior
user asks for known workflowloads the right skill
wrong tenantdynamic tool absent
missing contextasks question instead of guessing
large file presentreads targeted sections
destructive requestexplains plan and requires approval

Related docs

Cmd. /workflows

Claude Code Command Master · Watch, pause, resume, or save dynamic workflows.

Custom commands and skills

Claude Code Command Master · Choose the commands for custom commands and skills and follow their availability rules and concrete examples.

Context Management

Claude Code Complete Guide · Keep Claude Code sessions accurate through memory, compaction, and concise handoffs.

Ch4. Compiler and Runtime Graph

How Eve transforms source manifests into compiled manifests and runtime agent graphs.

Cmd. /skills

Codex Command Master · Browse and apply local skills for task-specific behavior.

Ch5. agent.ts, Models, Compaction

Interpret defineAgent configuration as runtime policy for models, output schemas, compaction, and experimental flags.

Ch7. Tools, Approval, Connections

Design Eve authored tools, human approval, MCP/OpenAPI connections, and OAuth boundaries as enterprise security surfaces.

On this page

Context LeversInstructions Stay Short And StableSkills Are Procedure MemorySkill Description Is A Routing ContractDynamic ToolsDynamic NamingDynamic Skills And InstructionsEvent OrderPrevent Context PollutionEvaluation Criteria