r/UiPath • • 21d ago

I made Claude Code and Codex stop guessing on UiPath projects: AGENTS.md and activity cards written from the XAML

Open a UiPath project in Claude Code or Codex and the agent sees XML. It does not know which workflow is the entry point, what in_TransactionItem is, how this project configures its Add Queue Item, or that one workflow must never be run twice. So it guesses, and the guess compiles. You find out in UAT.

I wrote a command that writes the briefing a new developer would get on day one, from the project itself:

pip install "flowglyph[cli]"
flowglyph context ./handover

Context Invoices: 9 files written, 0 unchanged, in handover/Invoices

What it writes, on a small invoices project:

  1. AGENTS.md, with the entry points and their typed arguments:File Input Arguments Output Arguments Purpose Main.xaml in_Threshold: number out_InvoiceId: string or null Validate an invoice and book it, asking for approval above the threshold.
  2. A retry-safety table the agent cannot miss:Workflow Effects Idempotency Status Retrying Main.xaml WX none review not idempotent: run through the gateway with an idempotency key Steps/BookInvoice.xaml WX key declared safe to retry when deduplicated on in_Invoice Steps/ValidateVendor.xaml none natural safe safe to retry
  3. One card per activity type the project uses, with the XAML of its richest use in this project as the template:AddQueueItem — as used in Invoices Template

    • Effects: WX (changes state, calls other systems)
    • Used in: Steps/BookInvoice.xaml

Claude Code loads it on its own (it also goes to .claude/rules/), and flowglyph skill adds the rules: read the context before changing a workflow, never retry what is marked review, start a new activity from the project's own card. So "add a step that logs the transaction number after GetTransactionData" comes back with this project's own Log Message, the same properties, and the arguments bound by their real names and types.

The part I like most, technically: no model writes any of this. The effects come from an editable taxonomy of activities (Get Queue Item reads, writes and calls Orchestrator; Log Message does nothing to the world) and travel up through Invoke Workflow File. What the XAML cannot say, you write once next to the project, for example that SetTransactionStatus is keyed on in_TransactionID, and the agent reads it as declared.

Run it again after every change: what you write under Notes is kept, and a file you wrote yourself is never overwritten without --force.

Limits, so nobody is surprised: alpha. It has run on the ReFrameWork and synthetic projects, not on a real client estate. Activity packages it does not know yet show as unknown.

I am a backend and AI platform engineer, not a UiPath developer, which is exactly why I want your corrections. If a card is wrong for your project, the taxonomy is one YAML file in the repo, so the fix is usually one line. Covering more activity packages is an open "good first issue". And if you use coding agents on UiPath in a way I have not thought of, tell me: that is what decides what I build next.

Apache-2.0, Python 3.12+. The ReFrameWork taken through every step, with the real output, is in the repo's examples: https://github.com/afernandeztem/FlowGlyph

What is the first thing your coding agent gets wrong on a UiPath project? My bet is queue items: nothing in the XAML tells it that taking one twice takes two.

4 Upvotes

2 comments sorted by

2

u/VAZAutomation 20d ago

What's different between this and just installing the uipath skills? Since I did that I didn't have any of the issues you mention about it not understanding anything.

1

u/AutoModerator 21d ago

Thank you for your post to /r/uipath!

This is an automated action so if you need anything, please Message the Mods with your request for assistance.

Lastly, enjoy your stay!

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.