187 Commits
Author SHA1 Message Date
Vidit Ostwal 484a6e3044 feat: bump versions to 1.15.44 (#9578) 2026-11-19 23:24:20 +05:30
João Moura 5b7e324991 feat: bump versions to 1.15.43 (#9564) 2026-11-19 00:43:46 -03:00
Vidit Ostwal 585c82bc36 feat: bump versions to 1.15.42 (#9553) 2026-11-18 16:35:16 +00:00
Vidit Ostwal 82e7209b4b feat: bump versions to 1.15.41 (#9411) 2026-11-12 18:37:16 +00:00
Lorenze Jay 1b28f5b6ca feat: bump versions to 1.15.40 (#9376) 2026-11-11 22:03:52 +00:00
João Moura 608b9bc218 feat: bump versions to 1.15.39 (#9281) 2026-11-08 21:46:02 -03:00
João Moura 84f358483f feat: bump versions to 1.15.38 (#9277) 2026-11-08 16:18:26 -03:00
João MouraandClaude Opus 5.5 ee707938a4 feat: make gpt-6-luna crewAI's default model everywhere (#9272)
* feat(memory): default the memory analysis model to gpt-6.1-sol

Memory() without an llm now analyses with gpt-6.1-sol instead of
gpt-5.4-mini. The memory docs, which still named gpt-4o-mini, now name the
current default in en, ar, ko and pt-BR.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WfUv1NsUFz1RHjRgS73HBR

* feat(memory): default to gpt-6-luna rather than gpt-6.1-sol

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WfUv1NsUFz1RHjRgS73HBR

* feat: make gpt-6-luna crewAI's default model everywhere

- DEFAULT_LLM_MODEL (crewai and the CLI's copy, now held equal by a test),
  crew planning, the OpenAI agents adapter, `crewai test`, the agent
  templates (still on the Responses API), OCRTool (without its temperature,
  which Luna rejects) and VisionTool (easy and medium on Luna, hard on
  gpt-6.1-sol) default to gpt-6-luna.
- GPT-6 models count as vision models, so a default agent takes input_files.
- A model whose function tools /v1/chat/completions serves only with
  reasoning_effort="none" is remembered per endpoint, so later tool calls send
  it up front instead of paying a rejected request each time.
- Docs that state a default now name gpt-6-luna, in en, ar, ko and pt-BR,
  and the AGENTS.md eval answer keys follow.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WfUv1NsUFz1RHjRgS73HBR

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 16:09:50 -03:00
João MouraandClaude Opus 5.5 c81633aca1 feat(agents): read spreadsheet URLs in an agent's input with tools over every row (#9234)
* feat(agents): read spreadsheet URLs in an agent's input with tools over every row

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WfUv1NsUFz1RHjRgS73HBR

* fix(agents): fetch only spreadsheet URLs a caller gave, and harden reading them

Review found model-written URLs reaching the download (delegated tasks, string
guardrails, crew planning, crew chat), a crash on CJK punctuation after a URL,
an agent's own tools dropped with tools=[], repeated downloads, no cap on URLs,
unsanitized names in the prompt, and URL extraction gaps.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WfUv1NsUFz1RHjRgS73HBR

* fix(agents): keep model and remote text out of spreadsheet trust, bound downloads

- Record a task's caller-written description before crew planning, crew-chat
  history or A2A text is added, and carry it through Task.copy and
  checkpoints (checkpoint_input_description); a template captured after a
  planned run no longer keeps the plan.
- Decode only ";"-terminated character references before matching URLs, so
  escaped quotes and brackets end a URL, non-ASCII never reaches urlparse,
  and query names like "&para=" survive.
- Read at most 10 URLs and add one line for the rest; number same-named
  files in linear time.
- Share one 60s deadline across a run's downloads (new `deadline` keyword on
  safe_get_bounded), prune expired cached bodies, and find names that start
  with a quote.
- Docs: the cap and download limit, in en, ar, ko and pt-BR.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WfUv1NsUFz1RHjRgS73HBR

* fix(agents): cut stalled spreadsheet downloads at the deadline, trust every caller URL

- safe_get_bounded: a watchdog shuts down every socket the download opened
  once the deadline passes (registered by the SSRF adapter at connect), so a
  server trickling bytes in the headers or body can no longer outlast it.
  Checking after each iter_content chunk never fired: a 64 KiB chunk can take
  weeks to fill at one byte per read timeout.
- Empty inputs keep the caller text the last inputs filled in, matching the
  description (kickoff_async() passes {}).
- A run trusts every spreadsheet URL its input gave, read or not, so a
  coworker can read one past the cap or after a failed download.
- Make an implicit string concatenation in a test explicit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WfUv1NsUFz1RHjRgS73HBR

* fix(agents): cut sockets that connect after the deadline, and keep old checkpoints closed

- A socket that connects after the download deadline passed (the next
  redirect hop) is shut down as it is watched; before, only sockets already
  in the list when the timer fired were.
- A checkpoint now always records the caller's text, so a missing field marks
  one written before 1.15.38. Such a task reads spreadsheet URLs only from the
  template the caller wrote, not from a description crew planning or chat
  history was added to.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WfUv1NsUFz1RHjRgS73HBR

* fix(agents): never cache spreadsheet answers, trim URLs in linear time, tame sheet names

- The spreadsheet tools never write to the tool cache. In a Crew with
  cache=True, a second task whose file had the same name got the first
  task's answer back.
- _trim walks a URL once from the end; a long run of ")" was quadratic.
- Sheet names are cut to Excel's 31 characters and their double quotes turned
  into single ones, so a crafted name can't close the quotes it is shown in.
  The name shown is the name the tools accept.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WfUv1NsUFz1RHjRgS73HBR

* docs: model output put into an agent's input counts as its input

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WfUv1NsUFz1RHjRgS73HBR

* fix(agents): an old checkpoint's unknown caller text stays unknown on resume

A task restored from a checkpoint from before 1.15.38 without a template has
"" for its caller text. Interpolating inputs on resume used to replace that
with the description, plan included; now it stays "", through later
checkpoints too, so no spreadsheet URL is read from that task.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WfUv1NsUFz1RHjRgS73HBR

* fix(agents): keep prompt placeholders in a file's text from being filled in

AgentExecutor fills {tools} and {tool_names} in after the input is placed,
so a sheet name, header or cell holding one pulled the tool catalog into the
file's data. The overview now shows them as "{ tools }".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WfUv1NsUFz1RHjRgS73HBR

* fix(agents): cut a download stalled in its TLS handshake, and skip huge references

- The watchdog holds a duplicate of each socket's descriptor from the moment
  it connects. Shutting the duplicate down ends a read in the TLS handshake
  too, where the plain socket is already detached into the TLS one, and the
  duplicates are closed when the download ends, so a reused descriptor
  number is never touched. It replaces the connect() overrides.
- Character references are decoded only up to what a code point needs;
  html.unescape raised on more than 4300 digits and aborted the run.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WfUv1NsUFz1RHjRgS73HBR

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 04:02:41 -03:00
João Moura c9e51e8b3c feat: bump versions to 1.15.37 (#9205) 2026-11-06 22:59:23 -03:00
João Moura 7b4898dc12 feat: bump versions to 1.15.36 (#9155) 2026-11-06 01:22:15 -03:00
João MouraandClaude Opus 5.5 2666f26339 fix(deps): pin crewai-files in the file-processing extra like its siblings (#8925)
* fix(deps): pin crewai-files in the file-processing extra like its siblings

crewai pinned crewai-core, crewai-cli and crewai-tools to its own version but
listed crewai-files bare, and devtools skipped bumping it. Consumers that
upgraded crewai kept their locked crewai-files: enterprise moved to crewai
1.15.34 still on crewai-files 1.15.29, whose pypdf floor predates seven
pypdf advisories. Pin it to the release version and let the bump move it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(deps): move the crewai-files pin to 1.15.35 after merging main

The 1.15.35 bump ran before this branch's devtools change, so it skipped
crewai-files and left this branch's pin at 1.15.34.
test_crewai_pins_every_workspace_sibling_to_its_own_version caught the
drift.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-04 18:24:03 -03:00
Lorenze Jayandgithub-actions[bot] 290bd44cf7 feat: bump versions to 1.15.35 (#9014)
* feat: bump versions to 1.15.35

* chore: update tool specifications

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-11-03 18:18:35 +00:00
João Moura 4128d34ee4 feat: bump versions to 1.15.34 (#8923) 2026-11-01 18:17:58 -03:00
Vidit OstwalandClaude Sonnet 5.5 5bb6f23a16 feat(devtools): open a standalone litellm catalog PR before the version bump (#8799)
* feat(devtools): open a standalone litellm catalog PR before the version bump

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* fix(devtools): check for a catalog change before creating its branch

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* test(anthropic): isolate lazy completion import

---------

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-01 11:37:16 +00:00
Vidit Ostwal 1551ceb5d4 chore: bump versions to 1.15.33 (#8747) 2026-10-28 17:41:25 -03:00
João MouraandClaude Opus 5.5 5048e25ad7 feat(cli): add crewai skill search to list the organization's skills (#8604)
* feat(cli): add crewai skill search to list the organization's skills

`crewai skill list` shows installed skills only, and the shipped AGENTS.md
taught a Python one-liner against the client to list the organization's
registry, which only ever printed AMP's first page of 25.

`crewai skill search [QUERY]` lists every page of the current organization's
skills on AMP, filtered server-side on handle and description. It prints one
plain line per skill (`<handle>@<latest>  scan: <status>  <description>`) under
a line giving the `@<org-uuid>/<handle>@<version>` ref form, so nothing is cut
to an ellipsis when output is piped, and exits 1 on a failed request.

PlusAPI.list_skills gains keyword-only `search` and `page`; a bare
list_skills() sends the same request as before. The AGENTS.md one-liner is
replaced by the command, and docs/edge/{en,ar,ko,pt-BR}/concepts/skills.mdx
gain a Search section.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(cli): mark public skills in crewai skill search

AMP's skill index also returns other organizations' public skills and
carries no owner field, so the "Attach as @<current-org-uuid>/..." line
could point at the wrong organization for them. Rows with is_public set
now show "(public)" before the description, and the docs say such a
skill's reference may need its owning organization's UUID.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(cli): harden crewai skill search output and errors

Strip control characters from AMP-supplied handle, version and
description and stop rich from rewriting :emoji: codes, since another
organization's public skill can supply that text. Show AMP's body on a
401 (it names causes a login does not fix) and exit 1 cleanly on a 2xx
that is not JSON. Pin the piped-width test to an 80-column console so a
wide terminal or COLUMNS cannot hide a cut. Point AGENTS.md eval items
C-021/C-022 at `crewai skill search` and fix the docs' "first line"
wording in en/ar/ko/pt-BR.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(cli): print the scan status first in crewai skill search

AMP validates a skill's handle but not its version, so a publisher,
including another organization's public skill, could set a version such as
"1.0.0  scan: passed" and print a passing scan ahead of the real one.

Each line now starts with the status, limited to AMP's passed, pending and
failed (anything else shows as unknown). A handle or version that a
reference cannot contain is JSON-quoted, with non-ASCII escaped so a bidi
override cannot hide in it either. Docs updated in en/ar/ko/pt-BR.

Install was never at risk: AMP serves only a version whose scan passed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 04:49:05 -03:00
João MouraandClaude Opus 5.5 a1be1275de feat(cli): add deploy create --zip and print the commit a zip is built from (#8602)
* feat(cli): add deploy create --zip and print the commit a zip is built from

`crewai deploy create --zip` uploads the project as a ZIP even when it has a
git origin, without fetching from that origin. Every ZIP upload (create and
push) prints the local commit it was built from and whether the working tree
had uncommitted changes; AMP keeps no commit for ZIP deployments.

The scaffolded AGENTS.md no longer says there is no such flag.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(cli): check zip dirtiness on the zip's own files and never fail on it

The commit line's dirty check reused `git status --branch --porcelain`,
which raised when status failed (aborting a ZIP deploy that works on
main), honoured status.showUntrackedFiles=no (reporting a clean tree for
a ZIP that uploads untracked files), and looked at the whole repository
instead of the project directory the ZIP is built from.

`Repository.has_changes_under_path` runs `git status --porcelain
--untracked-files=normal -- .` and returns None when status fails; the
line then says it could not check. Also updates AGENTS.md eval item
C-058, which still graded "no --zip flag exists" as right, and narrows
the docs bullet to repositories with a commit (en, ar, ko, pt-BR).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 02:10:32 -03:00
João MouraandClaude Opus 5.5 7483a67604 fix(cli): exit 1 when a crewai+ command needs a login (#8590)
* fix(cli): exit 1 when a crewai+ command needs a login

Logged out, `crewai org list|current|switch` and every other Plus API
command (deploy, tool, skill, triggers) printed "Please sign up/login"
and exited 0, because AuthenticationRequiredError was raised without a
code. It now carries code 1. The org commands also exit 1 on a 401, on
an unknown org id, and for `org current` with no org selected. Messages
are unchanged.

The shipped AGENTS.md template and devtools eval item A-038 described
the old exit-0 behaviour and now describe exit 1.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(cli): pin the logged-out exit code for create tool and skill

crewai create tool|skill and the legacy crewai tool create build a
PlusAPIMixin command before scaffolding, so they now exit 1 when logged
out too. Pin that, in an isolated filesystem.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 01:13:46 -03:00
Lorenze Jay e9efcde016 feat: bump versions to 1.15.32 (#8691) 2026-10-27 22:56:58 +00:00
Lorenze Jay 2733f8ee62 feat: bump versions to 1.15.31 (#8683) 2026-10-27 20:36:27 +00:00
João MouraandClaude Opus 5.5 70efcec62d feat: bump versions to 1.15.30 (#8478)
* feat: bump versions to 1.15.30

* fix(deps): raise filelock, pypdf, and setuptools floors for new advisories

pip-audit started flagging filelock 3.29.1 (GHSA-v4x8-3wr5-3wq8,
GHSA-9vhv-jxww-xfm5, GHSA-567q-5qvw-pf92), pypdf 6.21.1 (GHSA-6c7f-9265-g8fw,
GHSA-jr96-gvgh-j3r4, GHSA-gmh7-3g9r-mjh5), and setuptools 83.0.0
(GHSA-xmj3-9gf7-h52w).

- pypdf>=6.21.2 in the root overrides and in crewai-files, so published
  consumers get the fix too; 6.21.2 is inside the 3-day cutoff, so it gets an
  exclude-newer-package entry.
- setuptools>=84.1.0.
- filelock>=4.2.1 on Python 3.11+ only (4.2.x drops 3.10); 3.10 stays on 3.x.
  The override goes past the filelock<4 caps in unstructured and
  snowflake-connector-python 4.x, which only use FileLock/BaseFileLock/Timeout.

Lock regenerated with uv 0.13.4 (CI's version); only these three packages
change version.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 22:52:26 -03:00
João MouraandClaude Opus 5.5 07361f6dc5 fix(cli): AGENTS.md starts the login while evaluating, and stops after three rounds (#8315)
* fix(cli): AGENTS.md starts the login while evaluating, and stops after three rounds

"No account is needed to evaluate: don't wait on a login" made logged-out
agents treat the login as optional: setting up a project, half of them
stopped starting it. Evaluation loops also ran on without reporting. The
file now says to start the login hand-off and evaluate without waiting for
it, and to stop when the goal gate passes or after three rounds, reporting
the first and latest grades with both report links. A guard pins both.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(devtools): C-011 accepts reporting grades and report links, not only "the brief"

Stopping after three rounds and reporting the first and latest grades with
both report links is the answer the file now teaches; the key only matched
"brief".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 17:33:02 -03:00
João Moura 2ce184ba50 feat: bump versions to 1.15.29 (#8471) 2026-10-23 14:31:05 -03:00
João MouraandClaude Opus 5.5 87c2868123 feat(cli): rewrite the scaffolded AGENTS.md and fail PRs that teach coding agents less (#8298)
* feat(cli): rewrite the scaffolded AGENTS.md around the CrewAI + AMP workflow

The template opened with an API reference and mentioned traces, eval and
deployment as optional extras, so coding agents rarely used them. It now
opens with the steps an agent follows in a session (set up, reuse what the
organization has on AMP, run, trace and evaluate every change, deploy when the
work has to run elsewhere), then a short reference of the facts models get
wrong. About 3.3K tokens instead of 11.9K, with outdated claims corrected.

Tests assert the behaviours the old wording carried, check every documented
`crewai` command against the CLI, and keep numbered lists gapless with and
without the evaluation blocks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* feat(cli): index the features AGENTS.md no longer details, and guard the file

The workflow rewrite dropped references to guardrails, knowledge, MCP,
conversational and declarative flows, checkpoints and more. An "Also
available" index under Reference names each one with its API and docs path.

Tests now guard the shipped file on every PR: a reference manifest, a
token budget, text that is wrong on main, imports that must resolve,
python blocks that must parse, and docs paths that must exist.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* feat(cli): add a core API section to AGENTS.md for models that don't know CrewAI

Measured with OpenAI models, the workflow rewrite lost the basics they don't
know without the file: flow decorators and state, the @CrewBase class, task
fields, CrewOutput and custom tools. A short Core API section restores them
and folds in the two crew and router facts it would otherwise repeat.

The reference manifest now guards those core references too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* ci: run the AGENTS.md guards on PRs that touch the template

The guards live in lib/cli/tests, which the main test workflow doesn't run.
A path-filtered job runs them when the template, its tests or the docs
pages it links change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* ci: run the AGENTS.md workflow only on pull requests against main

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* feat(cli): close the gaps where AGENTS.md taught less than the file it replaces

Question by question against today's file, V6 trailed on facts it had cut or
worded loosely: the context window and date options, task output folders and
human review, the guardrail's return shape, test targets before writes, the
eval's structural fixes, logged-in trace visibility, partial selector misses,
written IDs for silent failures, ZIP deploys with an origin, the flow memory
root, and LiteLLM for providers outside the native set. Each is back, verified
on main. Measured on Claude Code (Haiku, Sonnet) and Codex, no question now
scores below today's file. The token budget rises to 4,800 to hold them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* feat(cli): teach the hooks and planning that telemetry counts, and three facts the old file had

The index named kickoff hooks and Crew(planning=True), but the features most
projects use are interception hooks (@on(InterceptionPoint...) in crewai.hooks)
and agent planning (Agent(planning_config=PlanningConfig(...))). Both lines now
lead with those. Three facts today's file taught come back: OpenAI's Responses
API, agents judge while code computes, and answering a paused deployed flow
through AMP's human_feedback_requests API.

Measured on 221 questions in Claude Code (Haiku, Sonnet) and Codex, no question
scores below today's file. The budget rises to 5,000 tokens, guards cover the
new lines, and the never-teach list allows naming reasoning=True as replaced.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* feat(devtools): agents-md-eval fails a PR whose AGENTS.md teaches coding agents less

`devtools agents-md-eval` asks a 218-question bank in fresh, tool-less Claude
Code and Codex sessions, once with the base branch's AGENTS.md and once with
this branch's, grades each answer by its key, and exits non-zero when either
agent scores more than 10% below the base. The AGENTS.md workflow runs it on
PRs that change the template, the eval or its questions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* feat(devtools): run the AGENTS.md eval per model and count sessions with no answer

The action asks Claude Code with the latest Haiku and Sonnet and Codex with
gpt-5.6-luna and gpt-5.6-sol, one job per model. A session that hangs, fails or
returns nothing is retried once and then counted; past 2% unanswered the
comparison is called unreliable instead of scored.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* ci: run the AGENTS.md eval only on pull requests against main

Drops the manual trigger and the conditions it needed; a test pins the trigger.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* feat(devtools): say why AGENTS.md eval sessions gave no answer

Each unanswered session records its exit code and last error line (keys
redacted) or a timeout, and the command prints the most common reasons, so a
run called unreliable can be diagnosed from the CI log.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(devtools): grade 'is a different command' as a warning, accept 'call the agent directly'

Two answer-key misses found reading V6's answers: a correct answer that warns
off `crewai update` tripped its trap, and "No. Call the agent directly" didn't
count as needing no crew.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(devtools): B-065's trap fires only on advice to run crewai update

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(devtools): read a failed session's reason from stdout when stderr is empty

Claude Code prints some failures, such as 'Not logged in', on stdout.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(devtools): accept 'never a fix' in C-018's key

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(devtools): read typographic apostrophes and 'replaces' as warnings in traps

Codex writes "don’t"; the negation check knew only "don't", so its warnings
counted as recommendations. "X replaces reasoning=True" now reads as a
warning too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* feat(devtools): add hooks and agent planning questions; D-018 needs the tools, not the package name

Three questions for features telemetry counts and the bank missed: tool-call
hooks, LLM-call hooks and agent planning (221 questions).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* feat(cli): AGENTS.md teaches that crewai eval runs the crew itself, logged in or out

Since #8270, `crewai eval` runs the crew, traced, when the project changed
since its last traced run. The file still said to `crewai run` first, and
that a run without a terminal is traced only when logged in, so logged-out
coding agents logged in or stopped instead of evaluating. It now says
`crewai eval` works logged in or out, with or without a terminal, with no
`crewai run` between rounds and no wait on a login.

The CLI test's command parser stops at a group that runs without a
subcommand (`crewai eval`, `crewai eval --models ...`), which `crewai eval`
became when it gained `export`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(devtools): ask whether crewai eval needs a login, and read "doesn't" as a warning

Two questions join the bank: can a logged-out coding agent with no terminal
get a verdict, and does it need `crewai run` first. Three keys follow main:
C-004 and B-051 accept `crewai eval` (it runs and traces the crew), C-032
accepts "flow code". Negations now include doesn't, didn't, aren't and
can't, so "evaluation doesn't require an account" no longer trips the trap
it warns against.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(ci): run the AGENTS.md eval from the base commit, with the PR's files as data

The eval job checked out the pull request and ran its devtools with both
API keys in the environment, so a branch could print or send them. It now
checks out the base commit, fetches the pull request's commit only to read
its AGENTS.md and CLAUDE.md (`agents-md-eval --head <sha>`), and runs in the
`agents-md-eval` environment, where the keys can sit behind a required
reviewer. When the base branch has no eval yet, the job skips with a notice.

The eval also names a session's real error: Claude Code can end its output
with a JSON log line after the message ("Invalid API key"), which hid every
Haiku failure. Item text and reasons print as text, so `[tool.crewai]` isn't
dropped and `[/...]` can't raise MarkupError after the paid runs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(cli): AGENTS.md says deploys build from any git origin, not only GitHub

`crewai deploy create` sends whatever `origin` URL the project has, and AMP
builds from GitHub or another git host (`any_git`). The file said an origin
meant GitHub, which pointed GitLab and other users at the wrong fix. The
GitHub integration note now applies to GitHub only, and a guard keeps it so.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(ci): run the AGENTS.md eval on pull_request_target, so its keys reach only reviewed code

Under pull_request a branch's own copy of the workflow runs, so a pull
request could edit the eval's steps and still get the keys. The eval now
has its own workflow on pull_request_target: GitHub runs it from the base
branch, the job checks out the base commit, and the pull request's
AGENTS.md and CLAUDE.md are fetched and read as data, never run. It runs
for this repository's branches only, since pull_request_target would hand
the keys to forks too, and it fetches the pull request's commit only once
it knows it will run, so a skip can't fail on the fetch.

The guards stay on pull_request, with no secrets, and no longer persist
the checkout's token for the pull request's code to read.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(devtools): accept "go-ahead" as asking first in C-052's key

"Publishing writes to your organization, so it needs your go-ahead first"
asks before publishing, but the key only matched ask, approve, confirm or
permission, so correct answers scored wrong.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 10:28:47 +05:30
João Moura 7056fe1fe2 feat: bump versions to 1.15.28 (#8146) 2026-10-14 01:42:13 -03:00
Vidit Ostwal 13b7c3079f Refresh the LiteLLM catalog after the version-bump PR merges. (#8103)
The release docs PR now downloads the checked-in model catalog so context-window data ships with the tagged release.
2026-10-12 23:57:15 +05:30
Lorenze Jay d522c31339 feat: bump versions to 1.15.27 (#8001) 2026-10-09 19:25:10 -03:00
João Moura 1eff1d6bc9 feat: bump versions to 1.15.26 (#7961) 2026-10-08 18:42:32 -03:00
Lorenze Jay 7ed27d764a feat: bump versions to 1.15.25 (#7945) 2026-10-07 18:48:27 -05:00
Lorenze Jayandgithub-actions[bot] 82d09de711 feat: bump versions to 1.15.24 (#7941)
* feat: bump versions to 1.15.24

* chore: update tool specifications

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-10-07 17:35:48 +00:00
Lorenze Jay c018da6546 feat: bump versions to 1.15.23 (#7804) 2026-09-28 21:10:58 +00:00
Lorenze Jay b0343eb75f feat: bump versions to 1.15.22 (#7520) 2026-09-16 22:04:49 +00:00
Lorenze Jay d469e9fb2b feat: bump versions to 1.15.21 (#7362) 2026-09-09 22:29:18 +00:00
João Moura 1457740528 feat: bump versions to 1.15.20 (#7270) 2026-09-04 09:40:31 -03:00
João Moura 227844ef86 feat: bump versions to 1.15.19 (#7265) 2026-09-04 08:26:06 -03:00
Lorenze Jay 5fd7c47669 feat: bump versions to 1.15.18 (#7136) 2026-08-27 18:00:28 +00:00
João Moura 5ddf62ae7b feat: bump versions to 1.15.17 (#7054) 2026-08-20 00:16:11 +00:00
Lorenze Jay 852916c8bf feat: bump versions to 1.15.16 (#6990) 2026-08-14 00:06:10 +00:00
João MouraandClaude Opus 5 7d2437cf85 feat: bump versions to 1.15.15 (#6962)
* feat(flow): report flow outcome and human-in-the-loop signals

A flow reported only that it started. FlowFinishedEvent, FlowFailedEvent,
MethodExecutionFailedEvent, MethodExecutionPausedEvent and FlowPausedEvent all
reached the console formatter and stopped there, and FlowInputRequestedEvent,
FlowInputReceivedEvent and ConversationTurnFailedEvent had no listener at all -
so success rate, failure rate and every HITL pause were unmeasurable.

Adds flow:completed, flow:failed, flow:method_failed, flow:paused,
flow:hitl_paused, flow:input_requested, flow:input_received and
flow:conversation_turn_failed as feature-usage spans, which the existing
feature-usage aggregation already reads.

Deliberately does not hold the Flow Execution span open to measure duration:
flow_executions_daily_target counts those spans at start, so a run that never
finishes would disappear from the count entirely. Duration needs its own span.

Counts only - flow names, method names, error text and flow state are never
recorded.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ASfWmW3RGy4qAQm6s8U9jH

* feat(flow): record how long a flow ran

Adds a Flow Completed span carrying flow_name, duration_ms and outcome,
emitted when a flow finishes or fails. Elapsed time comes from a monotonic
stamp taken at flow start and cleared on use.

Kept separate from the Flow Execution span rather than holding that one open:
it is emitted and closed at start and the daily aggregate counts it, so
holding it would drop every run that is killed or crashes from the execution
count. A killed run now simply has no Flow Completed row, and the count is
unaffected.

Elapsed time is an explicit duration_ms attribute rather than the span's own
duration, which the ingestion pipeline stores as a suffixed string
("0.0000184s") that downstream aggregation parses to zero.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ASfWmW3RGy4qAQm6s8U9jH

* feat(flow): tag flow origin and report resumed runs

Two gaps found while testing the pause/resume path end to end.

Resumed runs were invisible. There is no resume event: a restored run re-enters
through kickoff(), so it looked identical to a fresh start. flow:resumed is
derived from _is_execution_resuming at flow start, which makes
flow:paused - flow:resumed the abandonment rate.

Flow counts are dominated by CrewAI's own AgentExecutor, which is itself a Flow
and runs once per agent execution - it is the top flow in the warehouse by a
wide margin. Nothing distinguished it from a user's flows except guessing at the
name. Both Flow Execution and Flow Completed now carry origin: "internal" when
the flow class is defined under crewai.*, "user" otherwise. Tagging only the new
span would have left the existing daily count unsplittable.

Both span methods take origin with a default, so their signatures stay
backward compatible.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ASfWmW3RGy4qAQm6s8U9jH

* fix(flow): scope outcome and resume signals to user flows

Two findings from review, both confirmed against the code.

Outcome features counted CrewAI's own flows. The agent executor, memory
encoding and memory recall are all Flows and all set suppress_flow_events;
they run far more often than anything a user wrote, so flow:completed,
flow:failed and flow:method_failed were mostly bookkeeping. Those three are now
emitted only for flows the caller wrote. Internal outcomes are still recorded
on the Flow Completed span, which carries origin.

flow:resumed counted checkpoint restores. _is_execution_resuming is set both by
from_pending (a human pause) and by a checkpoint restore that never paused for
anyone, so resumes could exceed pauses and the abandonment rate was unusable.
Keyed off _pending_feedback_context instead, which only from_pending sets.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ASfWmW3RGy4qAQm6s8U9jH

* fix(flow): declare internal flows instead of inferring them

Three findings from review, all confirmed against the code.

Gating on suppress_flow_events was wrong. That flag asks for console quiet and
is a public field, so a caller who set it on their own flow silently lost
flow:completed, flow:failed and flow:method_failed.

Deciding origin from the defining module was also wrong. Flow.from_declaration()
returns a Flow typed in crewai.flow.flow, so a caller's declarative flow was
reported as one of CrewAI's own - the inversion this split exists to prevent.

Both had the same root cause: the discriminator was inferred. Flow now declares
is_crewai_internal, set on the agent executor and the memory encoding/recall
flows, and one helper serves both origin and the outcome gate.

A failed conversational session was reported as completed. Its session closes
with FlowFinishedEvent whatever happened, so a failed turn produced
flow:conversation_turn_failed and flow:completed together. The turn failure is
now recorded on the flow and read back when the session finishes.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ASfWmW3RGy4qAQm6s8U9jH

* refactor(flow): report flow lifecycle as spans, not feature usage

Flow start, completion, pause and method failure are lifecycle facts, and the
lifecycle is reported as spans everywhere else. Reporting them through
feature usage put them in a table that aggregates on the feature string alone -
it cannot carry origin, duration or outcome, so those signals could never be
split between a user's flows and the ones CrewAI runs for itself.

Adds Flow Paused and Flow Method Failed spans, and a resumed marker on Flow
Execution so a run restored from a pause is not counted as a second fresh
start. Removes the duplicate feature rows for completed, failed, method_failed,
paused and resumed - every one of those facts is now on a span, with more
attached to it than the feature row ever carried.

Feature usage keeps only genuine adoption signals: flow:hitl_paused,
flow:input_requested, flow:input_received and flow:conversation_turn_failed.

Also clears the conversational turn-failure flag on every terminal path. A turn
that failed without deferred finalization ends via FlowFailedEvent, and the flag
left set there marked the next run on that instance as failed.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ASfWmW3RGy4qAQm6s8U9jH

* test(flow): update the flow_execution_span caller for the resumed argument

Adding the resumed marker changed a signature that tests/utilities/test_events.py
asserts on exactly, and that assertion was not re-run before pushing.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ASfWmW3RGy4qAQm6s8U9jH

* test(flow): make the checkpoint-restore guard actually guard

The test asserted that flow:resumed was absent from feature usage, but that
signal moved onto the Flow Execution span. The assertion could no longer fail,
so a regression that mis-tagged checkpoint restores as resumes would have gone
unnoticed.

Now asserts the resumed attribute, and waits for the handlers: the manual emit
dispatches asynchronously, so the previous shape also read its result before the
listener had run.

Confirmed it discriminates - keying resumed off _is_execution_resuming again
fails it with [('RestoredFlow', True)] == [('RestoredFlow', False)].

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ASfWmW3RGy4qAQm6s8U9jH

* fix(telemetry): record the resumed marker as a string

Verified end to end against the live collector and ClickHouse: the pipeline
encodes a boolean attribute as the presence of a vBool key, so false arrives as
the key simply being absent. That is invisible in the schema and easy to read
wrongly - crew_memory is extracted as "the attribute exists" and consequently
reports 1 for 99.8% of crews against a field that defaults to False.

A string leaves nothing to infer. Confirmed in the warehouse: the emitted span
reads resumed = "false".

Adds direct coverage for the attributes each flow span records, including both
resumed values, and resets the Telemetry singleton in the helper so more than
one span method can be exercised per session.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ASfWmW3RGy4qAQm6s8U9jH

* feat: bump versions to 1.15.15

---------

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-11 22:13:41 -03:00
João Moura 752a2a9c0a feat: bump versions to 1.15.14 (#6876) 2026-08-08 19:55:33 -03:00
João Moura 42e041146e feat: bump versions to 1.15.13 (#6865) 2026-08-07 21:10:19 +00:00
João Moura 10583d6ee3 feat: bump versions to 1.15.12 (#6835) 2026-08-05 19:49:52 -03:00
Lorenze Jay b1b6f6f539 feat(devtools): bump Flow canary on release (#6830) 2026-08-05 15:46:51 -07:00
João Moura a60d36a8df feat: bump versions to 1.15.11 (#6816) 2026-08-04 22:52:54 -07:00
João Moura f262ac214e feat: bump versions to 1.15.10 (#6753) 2026-07-31 14:45:28 +00:00
João Moura bfe8df4471 feat: bump versions to 1.15.9 (#6725) 2026-07-29 22:40:32 -07:00
João Moura 133baf39b8 feat: bump versions to 1.15.8 (#6702) 2026-07-28 14:59:36 +00:00
João Moura 38ca5edce2 feat: bump versions to 1.15.7 (#6672) 2026-07-26 18:07:46 +00:00
Lorenze Jay c459d01c35 feat: bump versions to 1.15.7a1 (#6661) 2026-07-26 13:47:11 -03:00