Agently
Start here when the request is expressed as product behavior rather than an
Agently API. Choose the smallest native owner before choosing files or
mechanisms. The request does not need to mention Agently.
When an Agently developer needs to understand model-node duties, tune execution
effects, check data flow or redundant context, or judge model/Host ownership,
use collaborative review without waiting for the phrase "Prompt review".
Route through agently-design for the highlighted flow and handoffs, and
agently-request for related Prompt tables grouped by readability and dependency.
Keep unrelated mechanical work outside this review method.
For multi-round design, Prompt revision or experiment evaluation, begin each
substantive round with a status-left/item-right table and a timestamped,
versioned change-log table. Follow
the collaboration record guidance.
Workflow
- Reduce the request to goals, inputs, outputs, side effects, evidence, and
lifecycle needs.
- Separate model-owned semantic decisions from host-owned validation,
authorization, identity joins, arithmetic, and effects.
- Assign each decision, state, and effect to one existing owner.
- For non-trivial flows, map nodes, value/event edges, invariants, and the
production need for every requested field and stage.
- Implement async-first where the caller owns an async boundary; validate
deterministic contracts separately from model-owned quality.
- Report a framework gap when no native owner can carry a required invariant.
Do not hide the gap behind business-specific glue or a pass-through facade.
Route by Owner
- One request family—provider setup, prompt, structured output, result reuse,
session memory, embeddings, or retrieval—uses
agently-request.
- Actions, MCP, ExecutionResource, TaskWorkspace, RecordStore, service
exposure, RuntimeEvent, or DevTools uses
agently-runtime.
- Process-local task lifetime, sync/async bridging, loop-neutral handles,
settlement, replay channels, or local listeners uses
agently-stage.
- Cross-owner architecture, request/value/event topology, evidence and identity
boundaries, lifecycle, pressure, or information-loss audit uses
agently-design.
- Developer-owned progression, branching, concurrency, approval, wait/resume,
retry, or restart-safe orchestration uses
agently-triggerflow.
- Migration from LangChain, LangGraph, LlamaIndex, CrewAI, or a similar system
uses
agently-migration.
- Explicit model-generated or application-submitted acyclic DAG data is a
low-frequency advanced case. Keep it here and read
references/task-dag.md;
do not introduce TaskDAG for ordinary Agent or workflow work.
Read by Need
- Conditional project shapes and the full-stack reference asset:
references/project-framework.md.
- TaskContext, ContextReader, TaskWorkspace, RecordStore, SkillLibrary, and the
SkillsExecutor compatibility facade:
references/context-and-skills.md.
- Submitted TaskDAG data and the DynamicTask convenience facade:
references/task-dag.md.
- Simulation-first and real-model validation:
references/model-quality-validation.md.
- Cross-layer topology audit methods live in
agently-design, especially its
../agently-design/references/execution-topology-validation.md.
Core Ownership Rules
ModelRequest owns one model interaction and its prompt/output contract.
AgentExecution owns one Agent run and exposes result, text, stream, and
metadata readers.
agent.create_task(...) returns an AgentExecution draft whose internal
AgentTask strategy owns planning, evidence, verification, repair, and replan.
ActionRuntime owns model-callable operations; ExecutionResource owns live
dependency lifetime.
TriggerFlow owns application-visible orchestration and runtime signals.
TaskContext owns task information and creates consumer-bound readers;
TaskWorkspace owns files; RecordStore owns durable records and recovery;
SkillLibrary owns immutable installed Skill revisions.
Agently.skills_executor is management/context compatibility only. Do not
recreate the removed generic Workspace, ContextBuilder, SkillsManager,
Skills route/strategy, skill_activation, or workspace_operation owners.
ModelRequest Boundary
For output that must satisfy a downstream interface:
- runtime facts go in
.input(...);
- authoritative schemas, signatures, and source facts go in
.info(...);
- transformation and call rules go in
.instruct(...);
- the exact consumed shape goes in
.output(...).
Declare the type, semantics, requiredness, enum/format/range, nullability, and
cross-field constraints for every consumed field. Let a structured
ModelRequest own prose-derived intent, routing, planning, relevance, or quality
judgment; let host code validate bounded enums/keys and perform effects.
Do not request hidden chain-of-thought. A bounded process field is justified
only when it has a named role, bounds, consumer, retention rule, and failure
behavior.
Project and Validation Gate
Start one-request applications with composition, settings, the prompt contract,
and tests. Add workflows, services, Actions, local Skills, utilities, or
resources only for a current owner and consumer. A logical node is not
automatically a file or class.
Deterministic tests prove schemas, identities, lifecycle, accounting, file or
record effects, and safety. Semantic quality needs declared criteria and a
structured coding-agent, model, or human review. Classify criticality (hard
gate or soft target) separately from evaluation method (deterministic or
semantic).
For real-model claims, define criteria first, label simulations honestly, use
the smallest authorized representative run, and record raw facts separately
from judgment. Real traces override simulated expectations.
Anti-Patterns
- Custom parsers, retry managers, state stores, or schedulers before checking
the native owner.
- Keyword, substring, regex, tokenization, or hand-written score tables as the
semantic owner.
- Unconsumed output fields, request stages, wrappers, or project directories.
- All-serial complex flows without dependency analysis.
- Full source, identity-heavy records, or raw metadata copied into every
prompt.
- Canned answers, hidden expected-answer fixtures, or test-only production
branches presented as framework capability evidence.
1---2name: agently3description: Use when a model-powered product, assistant, automation, evaluator, or workflow request still needs the right Agently owner, execution shape, or project boundary chosen. Also use for explicit low-frequency TaskDAG or DynamicTask requests.4---56# Agently78Start here when the request is expressed as product behavior rather than an9Agently API. Choose the smallest native owner before choosing files or10mechanisms. The request does not need to mention Agently.1112When an Agently developer needs to understand model-node duties, tune execution13effects, check data flow or redundant context, or judge model/Host ownership,14use collaborative review without waiting for the phrase "Prompt review".15Route through `agently-design` for the highlighted flow and handoffs, and16`agently-request` for related Prompt tables grouped by readability and dependency.17Keep unrelated mechanical work outside this review method.1819For multi-round design, Prompt revision or experiment evaluation, begin each20substantive round with a status-left/item-right table and a timestamped,21versioned change-log table. Follow22[the collaboration record guidance](references/multi-round-collaboration.md).2324## Workflow25261. Reduce the request to goals, inputs, outputs, side effects, evidence, and27 lifecycle needs.282. Separate model-owned semantic decisions from host-owned validation,29 authorization, identity joins, arithmetic, and effects.303. Assign each decision, state, and effect to one existing owner.314. For non-trivial flows, map nodes, value/event edges, invariants, and the32 production need for every requested field and stage.335. Implement async-first where the caller owns an async boundary; validate34 deterministic contracts separately from model-owned quality.356. Report a framework gap when no native owner can carry a required invariant.36 Do not hide the gap behind business-specific glue or a pass-through facade.3738## Route by Owner3940- One request family—provider setup, prompt, structured output, result reuse,41 session memory, embeddings, or retrieval—uses `agently-request`.42- Actions, MCP, ExecutionResource, TaskWorkspace, RecordStore, service43 exposure, RuntimeEvent, or DevTools uses `agently-runtime`.44- Process-local task lifetime, sync/async bridging, loop-neutral handles,45 settlement, replay channels, or local listeners uses `agently-stage`.46- Cross-owner architecture, request/value/event topology, evidence and identity47 boundaries, lifecycle, pressure, or information-loss audit uses48 `agently-design`.49- Developer-owned progression, branching, concurrency, approval, wait/resume,50 retry, or restart-safe orchestration uses `agently-triggerflow`.51- Migration from LangChain, LangGraph, LlamaIndex, CrewAI, or a similar system52 uses `agently-migration`.53- Explicit model-generated or application-submitted acyclic DAG data is a54 low-frequency advanced case. Keep it here and read `references/task-dag.md`;55 do not introduce TaskDAG for ordinary Agent or workflow work.5657## Read by Need5859- Conditional project shapes and the full-stack reference asset:60 `references/project-framework.md`.61- TaskContext, ContextReader, TaskWorkspace, RecordStore, SkillLibrary, and the62 SkillsExecutor compatibility facade: `references/context-and-skills.md`.63- Submitted TaskDAG data and the DynamicTask convenience facade:64 `references/task-dag.md`.65- Simulation-first and real-model validation:66 `references/model-quality-validation.md`.67- Cross-layer topology audit methods live in `agently-design`, especially its68 `../agently-design/references/execution-topology-validation.md`.6970## Core Ownership Rules7172- `ModelRequest` owns one model interaction and its prompt/output contract.73- `AgentExecution` owns one Agent run and exposes result, text, stream, and74 metadata readers.75- `agent.create_task(...)` returns an AgentExecution draft whose internal76 AgentTask strategy owns planning, evidence, verification, repair, and replan.77- `ActionRuntime` owns model-callable operations; `ExecutionResource` owns live78 dependency lifetime.79- `TriggerFlow` owns application-visible orchestration and runtime signals.80- `TaskContext` owns task information and creates consumer-bound readers;81 `TaskWorkspace` owns files; `RecordStore` owns durable records and recovery;82 `SkillLibrary` owns immutable installed Skill revisions.83- `Agently.skills_executor` is management/context compatibility only. Do not84 recreate the removed generic Workspace, ContextBuilder, SkillsManager,85 Skills route/strategy, `skill_activation`, or `workspace_operation` owners.8687## ModelRequest Boundary8889For output that must satisfy a downstream interface:9091- runtime facts go in `.input(...)`;92- authoritative schemas, signatures, and source facts go in `.info(...)`;93- transformation and call rules go in `.instruct(...)`;94- the exact consumed shape goes in `.output(...)`.9596Declare the type, semantics, requiredness, enum/format/range, nullability, and97cross-field constraints for every consumed field. Let a structured98ModelRequest own prose-derived intent, routing, planning, relevance, or quality99judgment; let host code validate bounded enums/keys and perform effects.100101Do not request hidden chain-of-thought. A bounded process field is justified102only when it has a named role, bounds, consumer, retention rule, and failure103behavior.104105## Project and Validation Gate106107Start one-request applications with composition, settings, the prompt contract,108and tests. Add workflows, services, Actions, local Skills, utilities, or109resources only for a current owner and consumer. A logical node is not110automatically a file or class.111112Deterministic tests prove schemas, identities, lifecycle, accounting, file or113record effects, and safety. Semantic quality needs declared criteria and a114structured coding-agent, model, or human review. Classify criticality (hard115gate or soft target) separately from evaluation method (deterministic or116semantic).117118For real-model claims, define criteria first, label simulations honestly, use119the smallest authorized representative run, and record raw facts separately120from judgment. Real traces override simulated expectations.121122## Anti-Patterns123124- Custom parsers, retry managers, state stores, or schedulers before checking125 the native owner.126- Keyword, substring, regex, tokenization, or hand-written score tables as the127 semantic owner.128- Unconsumed output fields, request stages, wrappers, or project directories.129- All-serial complex flows without dependency analysis.130- Full source, identity-heavy records, or raw metadata copied into every131 prompt.132- Canned answers, hidden expected-answer fixtures, or test-only production133 branches presented as framework capability evidence.