Product Introduction
- Definition: Besydr is a self-learning coding agent supervisor and workflow harness designed to run alongside AI coding assistants like Claude Code, Codex, OpenCode, and pi. It operates as a local infrastructure layer that intercepts prompts, filters context, validates agent outputs against checklists, and manages a persistent local store of project rules, facts, and work memos.
- Core Value Proposition: Besydr exists to solve the reliability drop in AI software engineering where coding agents repeatedly violate explicit constraints, hallucinate task completion, and fail to carry context across sessions. By automating rule enforcement, verification loops, and context pruning, Besydr reduces developer corrections, lowers token consumption, and ensures that coding agents adhere strictly to codebase constraints.
Main Features
- Completion Check and Verification Loop: Before a session begins, Besydr generates a dynamic checklist derived solely from the developer's original prompt. When the coding agent signals that work is complete, an underlying model compares the agent's tool evidence, code diffs, and execution results against the generated checklist. If discrepancies or missing requirements are detected, Besydr automatically feeds the specific gaps back to the agent as its next instruction, repeating this verification cycle up to three times before involving the human developer.
- Self-Learning Lesson and Rule Store: Besydr functions as a background supervisor that analyzes completed sessions to extract and store three distinct types of records: user-stated rules, project facts, and session execution memos. Rules are only cataloged if they directly quote messages typed by the developer. These lessons are automatically retrieved and injected into the agent's context for related future requests (capped at 2,000 tokens) to prevent repetitive corrections.
- Output Condensing and Token Optimization: To counteract context degradation and bloated system prompts, Besydr intercepts oversized tool results (such as verbose Bash outputs, Grep matches, and MCP tool payloads exceeding approximately 5,000 tokens) and condenses them to display only the relevant lines required for the immediate task. This mechanism lowers fresh token consumption per request by 21% to 27% while preserving the original raw logs on disk.
- Team Synchronization and Rule Trials: For collaborative environments, Besydr supports a team server architecture deployed on local infrastructure. Project facts and work memos are shared instantly across team members. A project-specific lesson transitions into an official team rule strictly after two distinct developers independently state it. Furthermore, generated rules undergo automated A/B testing trials across session completions, retiring unused lessons after 90 days and retaining only those that statistically improve completion outcomes.
Problems Solved
- Pain Point: AI coding agents frequently violate explicit constraints, misreport task completion status despite failing tests, and ignore previously established developer corrections across successive repository sessions.
- Target Audience: Full-stack software engineers, DevOps specialists, technical leads, and engineering teams utilizing AI-powered command-line coding agents (Claude Code, OpenAI Codex, OpenCode, and pi) who experience high token overhead and productivity loss due to agent regressions.
- Use Cases: Enforcing strict architectural or testing constraints (e.g., "always preserve existing test suites") across multi-developer repositories; supervising autonomous coding agents during long-running refactoring tasks to catch incomplete implementations before human review; and managing cross-session project context without manual prompt engineering.
Unique Advantages
- Strengths & Limitations (Pros & Cons):
- Strengths: Empirically proven reduction in rule-breaking (dropping from 47 to 4 violations per 100 requests in Claude Code benchmarks); zero telemetry leakage of code or transcripts (all session data remains local); automated rule induction and verification loops; and efficient context window management through intelligent token pruning.
- Limitations: Requires explicit developer corrections quoting exact instructions to generate new rules; completion checks depend heavily on the underlying model's reasoning capabilities; team synchronization requires a dedicated local team server; and the system introduces a minor runtime trade-off by increasing agent execution time by approximately 20 to 21 seconds per request to ensure rigorous verification.
- Key Alternatives & Differentiation: Unlike basic memory tools (such as static system prompt files or
.cursorrules) which lack automated enforcement and output verification, or standalone rule-enforcement extensions that require manual trigger configuration, Besydr closes the feedback loop by dynamically learning from developer corrections, verifying tool evidence against automated checklists, and statistically trialing generated rules against real-world completion metrics.
Frequently Asked Questions (FAQ)
- How does Besydr integrate with my existing coding agents like Claude Code or Codex? Besydr runs locally as a supervision harness that interfaces directly with supported coding agents (Claude Code, Codex, OpenCode, and pi) via documented hook formats and extension points, intercepting prompt initiation, tool execution rounds, and session termination events without requiring manual intervention from the developer.
- Does Besydr send my source code or proprietary repository data to external servers? No. All code, terminal transcripts, and raw tool outputs remain strictly on your local machine. Besydr only communicates with external model gateways (such as OctoHub or a custom user-configured provider) for scoring and checklist generation, and interacts with the optional local team server solely to share generalized project facts, work memos, and verified rules among authorized team members.
- How are rules created and promoted to team-wide standards? Besydr automatically records rules when a developer issues a correction that quotes their own typed text. In team environments running a local Besydr server, a private rule automatically converts into an official team rule only after two distinct team members independently state the exact same rule across their separate sessions.
- What happens if Besydr fails to respond or loses connection during a coding session? Besydr is engineered with fault tolerance in mind; if the supervision harness cannot be reached or fails to return a response within the allotted timeout threshold, the coding agent seamlessly proceeds with its execution workflow as if Besydr were not installed, preventing development pipeline blockages.