惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

aimingoo的专栏
aimingoo的专栏
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Blog — PlanetScale
Blog — PlanetScale
博客园 - Franky
The GitHub Blog
The GitHub Blog
F
Fortinet All Blogs
Microsoft Azure Blog
Microsoft Azure Blog
I
InfoQ
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
T
Tailwind CSS Blog
博客园 - 三生石上(FineUI控件)
Apple Machine Learning Research
Apple Machine Learning Research
D
Docker
Google DeepMind News
Google DeepMind News
GbyAI
GbyAI
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
P
Proofpoint News Feed
N
Netflix TechBlog - Medium
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Engineering at Meta
Engineering at Meta
H
Help Net Security
B
Blog
宝玉的分享
宝玉的分享

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
Building Agentra, An Enterprise AI Engineering Control Pl...
Arijeet Gang · 2026-05-23 · via DEV Community

Open source repository:
https://github.com/arijeetganguli/agentra

PyPI:
https://pypi.org/project/agentra/

AI coding agents are becoming part of everyday engineering workflows.

Cursor, Claude, Copilot, Aider, Windsurf, and autonomous coding systems are now generating infrastructure code, migrations, CI pipelines, shell scripts, and production changes.

That changes the engineering risk model completely.

Most teams are currently relying on:

  1. ad hoc prompt rules
  2. README instructions
  3. tribal knowledge
  4. manual reviews
  5. loosely enforced conventions

That approach breaks down quickly at scale.

AI agents can:

  1. execute unsafe shell commands
  2. generate destructive SQL
  3. leak secrets
  4. create insecure infrastructure
  5. waste huge amounts of tokens
  6. follow prompt injections hidden in repositories
  7. create inconsistent workflows across teams

I started building Agentra to solve this problem.

Agentra is an enterprise AI engineering control plane for coding agents.

The idea is simple:

Treat AI coding workflows with the same rigor as infrastructure and DevSecOps systems.

What Agentra Does

Agentra sits between developers and coding agents.

It provides:

  1. stack aware governance
  2. runtime safety controls
  3. token optimization
  4. prompt injection defense
  5. secure execution policies
  6. context minimization
  7. intelligent onboarding
  8. enterprise policy enforcement

Instead of static prompt templates, Agentra dynamically builds optimized instructions based on the detected project stack.

Example:

ag init

Enter fullscreen mode Exit fullscreen mode

Agentra detects:

  1. frameworks
  2. SDKs
  3. infrastructure tooling
  4. databases
  5. cloud providers
  6. agent platforms

Then it generates optimized governance instructions for:

  1. Claude
  2. Cursor
  3. Copilot
  4. Aider
  5. Windsurf
  6. AGENTS.md
  7. CLAUDE.md

Why Existing Approaches Are Not Enough

Most prompt engineering workflows are:

  1. static
  2. duplicated
  3. token inefficient
  4. difficult to maintain
  5. easy to bypass

Security enforcement is usually disconnected from the actual runtime.

Agentra tries to close that gap.

Core Security Philosophy

Agentra follows several strict principles.

No Destructive Operations By Default

Examples:

  1. never execute DROP/TRUNCATE automatically
  2. require approvals for destructive actions
  3. generate rollback plans
  4. prevent production mutations without confirmation

EDR Safe Execution

Inline shell execution often triggers enterprise security systems.

Instead of:

python -c "..."

Enter fullscreen mode Exit fullscreen mode

Agentra prefers:

create temp file → validate → execute

Enter fullscreen mode Exit fullscreen mode

This reduces security tooling alerts from systems like CrowdStrike.

Secret Safety

Agentra blocks:

  1. hardcoded credentials
  2. secret logging
  3. unsafe token persistence

It prefers:

  1. .env files
  2. secret managers
  3. runtime injection

Prompt Injection Defense

Repositories increasingly contain hidden prompt attacks.

Agentra treats repository instructions as untrusted by default.

Token Optimization Matters

One thing I realized quickly:

Most AI engineering systems waste huge amounts of tokens.

Teams repeatedly inject:

  1. duplicate instructions
  2. irrelevant docs
  3. giant READMEs
  4. unnecessary context

Agentra aggressively minimizes context.

It uses:

  1. instruction deduplication
  2. semantic summarization
  3. relevance filtering
  4. context TTL
  5. dynamic instruction composition

The goal is:

Better outputs at lower cost.

Local First Architecture

Another important design decision:

Agentra is local first.

No hidden telemetry.
No forced cloud dependency.
No black box execution.

Enterprise engineering teams increasingly care about:

  1. governance
  2. auditability
  3. reproducibility
  4. deterministic execution
  5. data control

Local first architecture aligns with those requirements.

Karpathy Inspired Engineering Principles

I also wanted the platform to encourage simpler engineering.

Many AI generated codebases become:

  1. over abstracted
  2. dependency heavy
  3. difficult to debug
  4. operationally fragile

Agentra includes engineering skills inspired by Andrej Karpathy style principles:

  1. simple over clever
  2. readable code first
  3. deterministic workflows
  4. small composable modules
  5. transparent execution
  6. local reproducibility

Enterprise Direction

The long term vision is larger than prompt templates.

Agentra is evolving into:

  1. AI engineering governance
  2. runtime policy enforcement
  3. context orchestration
  4. secure execution infrastructure
  5. multi agent governance

Think:

“DevSecOps for coding agents.”

Current Focus

The initial version focuses on:

  1. stack detection
  2. secure AGENTS.md generation
  3. token optimization
  4. runtime guardrails
  5. enterprise security defaults

The goal is to keep the first release focused and operationally useful.

Final Thoughts

AI coding systems are becoming part of the software delivery lifecycle.

That means:

  1. governance matters
  2. runtime safety matters
  3. context quality matters
  4. token efficiency matters
  5. deterministic execution matters

The industry needs more than prompt templates.

It needs engineering control planes.

That is the direction behind Agentra.

Getting Started

Agentra is available as an open source Python package.

Install

pip install agentra

Enter fullscreen mode Exit fullscreen mode

Initialize In Your Project

ag init

Enter fullscreen mode Exit fullscreen mode

Agentra will:

  1. detect your stack
  2. identify frameworks and SDKs
  3. generate optimized agent instructions
  4. apply enterprise security defaults
  5. create governance aware configuration

GitHub Repository

GitHub:
https://github.com/arijeetganguli/agentra

The repository includes:

  1. CLI tooling
  2. stack detection
  3. policy engine
  4. token optimization
  5. secure execution guardrails
  6. AGENTS.md generation
  7. enterprise governance workflows

Contributions, feedback, and security discussions are welcome.