<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Protecting Agentic Workflows on</title><link>http://developer.docs.protegrity.com/docs/using_cursor/agentic_workflows/</link><description>Recent content in Protecting Agentic Workflows on</description><generator>Hugo</generator><language>en</language><atom:link href="http://developer.docs.protegrity.com/docs/using_cursor/agentic_workflows/index.xml" rel="self" type="application/rss+xml"/><item><title>Security Coverage Matrix</title><link>http://developer.docs.protegrity.com/docs/using_cursor/agentic_workflows/security_matrix/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>http://developer.docs.protegrity.com/docs/using_cursor/agentic_workflows/security_matrix/</guid><description>&lt;p>The following table shows the protection applied at each stage of the agent pipeline and the threat each control is designed to mitigate.&lt;/p>
&lt;table>
 &lt;thead>
 &lt;tr>
 &lt;th>Pipeline Step&lt;/th>
 &lt;th>Protection Applied&lt;/th>
 &lt;th>Threat Mitigated&lt;/th>
 &lt;/tr>
 &lt;/thead>
 &lt;tbody>
 &lt;tr>
 &lt;td>&lt;strong>Input&lt;/strong>&lt;/td>
 &lt;td>Discovery and Tokenization&lt;/td>
 &lt;td>Secret/PII in prompts&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;strong>Reasoning&lt;/strong>&lt;/td>
 &lt;td>Guardrails monitoring&lt;/td>
 &lt;td>Prompt injection&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;strong>Tool Calls&lt;/strong>&lt;/td>
 &lt;td>Intent validation and Authentication&lt;/td>
 &lt;td>Unauthorized actions&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;strong>Cross-Agent&lt;/strong>&lt;/td>
 &lt;td>Re-tokenization&lt;/td>
 &lt;td>Data leakage between agents&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;strong>Output&lt;/strong>&lt;/td>
 &lt;td>PII scanning and Re-protect&lt;/td>
 &lt;td>Sensitive data in responses&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;strong>Logs&lt;/strong>&lt;/td>
 &lt;td>Anonymization&lt;/td>
 &lt;td>Identity exposure in debug&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;strong>Storage&lt;/strong>&lt;/td>
 &lt;td>Tokenization&lt;/td>
 &lt;td>PII at rest&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;strong>Continuous&lt;/strong>&lt;/td>
 &lt;td>Semantic Guardrails&lt;/td>
 &lt;td>Policy violations, anomalies&lt;/td>
 &lt;/tr>
 &lt;/tbody>
&lt;/table></description></item><item><title>Sample Code</title><link>http://developer.docs.protegrity.com/docs/using_cursor/agentic_workflows/sample_code/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>http://developer.docs.protegrity.com/docs/using_cursor/agentic_workflows/sample_code/</guid><description>&lt;p>This section covers the full working implementation of the Privacy-Safe Employee Insights Agent, including project structure, module reference, and language-specific examples. Each code snippet includes a brief description, sample prompt for Cursor, and implementation details.&lt;/p>
&lt;h2 id="project-structure">Project Structure&lt;/h2>
&lt;div class="highlight">&lt;pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-fallback" data-lang="fallback">&lt;span style="display:flex;">&lt;span>employee-insights-agent/
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>├── main.py # End-to-end demo (run this)
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>├── config.py # Configuration
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>├── requirements.txt # Dependencies
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>├── modules/
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>│ ├── synthetic_data.py # Step 1: Generate data
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>│ ├── discovery.py # Step 2: Classify fields
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>│ ├── anonymization.py # Step 3: Anonymize for training
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>│ ├── masking.py # Step 4: Mask for operations
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>│ ├── tokenization.py # Step 5: Tokenize for storage
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>│ ├── unprotect.py # Step 6: Authorized access
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>│ └── guardrails.py # Step 7: Semantic guardrails
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>├── webapp/
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>│ ├── app.py # Flask web portal
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>│ └── templates/index.html # Dashboard UI
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>├── samples/
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>│ ├── synthetic_data/ # Domain-specific generation
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>│ ├── guardrails/ # Attack scenario tests
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>│ ├── discovery/ # Codebase scanning
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>│ ├── protection/ # Tokenization workflows
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>│ ├── anonymization/ # RAG + debugging
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>│ └── agentic_workflows/ # Multi-agent protection
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>└── docs/ # This documentation
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h2 id="running-the-demo">Running the Demo&lt;/h2>
&lt;div class="highlight">&lt;pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span>&lt;span style="color:#8f5902;font-style:italic"># Install dependencies&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>pip install -r requirements.txt
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#8f5902;font-style:italic"># Run complete end-to-end demo&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>python main.py
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#8f5902;font-style:italic"># Launch web portal&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>python webapp/app.py
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#8f5902;font-style:italic"># Open: http://localhost:5000&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h2 id="module-reference">Module Reference&lt;/h2>
&lt;p>Each module covers a distinct stage of the data protection pipeline, from generating synthetic data and classifying sensitive fields to tokenizing, masking, anonymizing, and controlling access to real values.&lt;/p></description></item></channel></rss>