Welcome to Barrot-Agent - an intelligent agent system with advanced capabilities for data ingestion, prediction, and deployment.
Barrot-Agent now maintains two independent systems:
Privacy-first search with quantum-enhanced algorithms and edge computing
Comprehensive automation platform with IDE, DAW, Web3, NFT, and more
๐ Learn more about the separation
๐ Note: We are transitioning from
Maintomainas the default branch. See DEFAULT_BRANCH_GUIDE.md for migration instructions.
Clone the repository:
git clone https://github.com/Barrot-Agent/B-Agent.git
cd B-Agent
View the current build manifest:
cat build_manifest.yaml
Access the systems:
This repository now also ships a typed Python package under barrot_agent/ with:
BAgent application wrapperapp.pyDevelopment quickstart:
python -m venv .venv
source .venv/bin/activate
pip install -r requirements-dev.txt
pytest
streamlit run app.py
Canonical JSON assets live in data/ and should be accessed through data/registry.py, not ad-hoc file loads.
B-Agent exposes its GitHub capabilities through two AI-friendly interfaces:
| Interface | Transport | Use with |
|---|---|---|
| GPT Actions HTTP API | HTTP/JSON REST | Custom GPT, OpenAI Actions |
| MCP Server | stdio JSON-RPC | GitHub Copilot Chat, any MCP client |
Both interfaces share the same service layer (barrot_agent/github_service.py).
Copy .env.example to .env and fill in:
# GitHub PAT with repo/issues read+write scope
GITHUB_TOKEN=ghp_...
# Optional defaults (used when owner/repo are omitted from requests)
GITHUB_DEFAULT_OWNER=Barrot-Agent
GITHUB_DEFAULT_REPO=B-Agent
GPT Actions HTTP server (default port 8502):
python scripts/run_gpt_api.py
# OpenAPI schema: http://localhost:8502/openapi.json
# Health check: http://localhost:8502/health
MCP stdio server:
python scripts/run_mcp_server.py
https://<your-host>/openapi.json
listIssues, getIssue, createIssue, and addComment.Add the following to your VS Code settings.json (or .vscode/mcp.json):
{
"mcp": {
"servers": {
"b-agent-github": {
"type": "stdio",
"command": "python",
"args": ["scripts/run_mcp_server.py"],
"cwd": "/path/to/B-Agent",
"env": {
"GITHUB_TOKEN": "${env:GITHUB_TOKEN}",
"GITHUB_DEFAULT_OWNER": "Barrot-Agent",
"GITHUB_DEFAULT_REPO": "B-Agent"
}
}
}
}
}
Copilot Chat will then offer the following tools:
| Tool | Description |
|---|---|
github_list_issues | List repository issues |
github_get_issue | Get a single issue by number |
github_create_issue | Create a new issue |
github_add_comment | Add a comment to an issue |
| Method | Path | Description |
|---|---|---|
GET | /issues | List issues (owner, repo, state, page, per_page) |
GET | /issues/{number} | Get one issue |
POST | /issues | Create issue (owner, repo, title, body, labels) |
POST | /issues/{number}/comments | Add comment (owner, repo, body) |
GET | /openapi.json | OpenAPI 3.1 schema |
GET | /health | Health check |
The UpgradeFlywheel is the system-wide self-improvement orchestrator that unifies all major B-Agent components into a single iterative refinement loop. On each cycle it executes Barrot's signature four-phase process:
| Phase | What happens |
|---|---|
| Observe | SmartAgent analyses the live system state; build_reconfiguration_report snapshots infrastructure coverage gaps. |
| Reason | Observations are synthesised into a ranked list of improvements; a DirectivePlatform REFINE directive is optionally opened so every registered agent contributes insights. |
| Act | Improvements are applied (or described in dry-run mode) and logged as a structured ActionResult. |
| Verify | A second infrastructure snapshot confirms coverage trends; all checks are recorded in a VerificationResult. |
Cycles repeat until either all capability gaps are closed (convergence) or
max_cycles is reached. The full run history is returned as a
FlywheelReport with per-cycle summaries and JSON serialisation.
Minimal usage:
from barrot_agent import UpgradeFlywheel
flywheel = UpgradeFlywheel() # dry_run=True by default
report = flywheel.run(max_cycles=3)
print(report.summary())
With DirectivePlatform agent sessions:
from directive_platform import DirectivePlatform, Agent
from barrot_agent import UpgradeFlywheel
# Register a refinement agent once
dp = DirectivePlatform(platform_dir=".directive_platform")
dp.registry.register(Agent(
agent_id="refine-1",
name="Refinement Agent",
description="Drives iterative improvement cycles",
capabilities=["refine", "analyze"],
))
flywheel = UpgradeFlywheel(
platform_dir=".directive_platform",
agent_ids=["refine-1"],
)
report = flywheel.run(max_cycles=5)
for cycle in report.cycles:
print(cycle.summary())
Key exports (all available from barrot_agent):
| Symbol | Description |
|---|---|
UpgradeFlywheel | Main orchestrator class |
FlywheelReport | Aggregated report across all cycles |
FlywheelCycleResult | Per-cycle record (all four phases) |
ObservationResult | Observe-phase data |
ReasoningResult | Reason-phase improvements + directive IDs |
ActionResult | Act-phase log |
VerificationResult | Verify-phase checks + coverage metric |
Want to access Barrot-Agent from your phone?
The mobile guide covers:
B-Agent/
โโโ barrot_agent/ # ๐ Core Python package
โ โโโ agi/ # AGI reasoning, quantum entanglement, algorithms
โ โโโ analysis/ # Email, vision, signal, character analysis
โ โโโ ingestion/ # Data harvesting and knowledge ingestion
โ โโโ monetization/ # Revenue strategies, grants, MMI compiler
โ โโโ orchestration/ # MCP coordination, sync, service bridges
โ โโโ rendering/ # 3D dataset absorption and rendering
โ โโโ mcp_*.py # MCP integration framework (10-step pipeline)
โ โโโ smart_agent.py # Autonomous plan-act-observe agent
โ โโโ core.py # BAgent application class
โ โโโ config.py # Pydantic configuration
โ โโโ logger.py # Structured logging
โโโ apex_lattice/ # ๐ฌ Static code analysis framework
โ โโโ analyzers/ # Architecture, security, performance analyzers
โโโ directive_platform/ # ๐ฏ Directive & session management platform
โโโ data/ # ๐ฆ Canonical JSON datasets & data registry
โโโ examples/ # ๐ Usage examples for all modules
โโโ scripts/ # ๐ง Operational and utility scripts
โโโ tests/ # โ
Test suite
โโโ ping-pongings/ # ๐ 22-agent entanglement system state
โ โโโ knowledge-base/ # Accumulated knowledge and memory
โ โโโ agents/ # Agent role definitions
โ โโโ protocols/ # Communication protocols
โโโ site/ # ๐ Barrot Agent dashboard (static site)
โโโ search-engine/ # ๐ Standalone privacy-first search engine
โโโ self_hosted_brain/ # ๐ง Self-hosted model server
โโโ app.py # Streamlit demo entrypoint
โโโ pingpong_emitter.py # Ping-pong request emitter
โโโ pyproject.toml # Package metadata & tooling config
/search-engine/)/site/)/coin-app/)ai-tools-config.yaml)/search-engine/)A standalone, privacy-first search engine with:
/site/)Comprehensive automation platform featuring:
Autonomous passive income generation through:
โ Read Coin App Documentation
Cross-chain bridge for seamless asset transfers across multiple blockchains:
Key Features:
โ View Connext Configuration
System prompts and AI models for autonomous operations:
โ View AI Tools Configuration
Barrot can analyze emails to extract useful and actionable information:
Barrot can explore and transform abilities from fictional characters into real-world functionalities:
โ Explore Character Capabilities
โ View Character-Capability-Explorer Spell
The agent can access and process data from:
Barrot continuously learns from the Python ecosystem to enhance its capabilities:
โ View Dependency Ingestion README
โ View Configuration
Usage:
# Run full ingestion
python3 dependency_micro_ingestion.py
# View examples
python3 example_dependency_ingestion.py
The build_manifest.yaml file tracks:
Automated workflows handle:
Barrot defers complex cognitive processing to an external 22-agent entanglement system:
pingpong-config.yamlpingpong_emitter.py Python moduleUsage Example:
from pingpong_emitter import emit_pingpong_request
payload = {
"topic": "MMI Self-Ingestion",
"glyph": "GLYPH_MMI",
"recursion_depth": "โ",
"notes": "Triggering recursive cognition exchange"
}
emit_pingpong_request(payload) # Creates pingpong_request.json
The external system monitors commits to pingpong_request.json and processes requests automatically.
Access the live dashboards at:
# Barrot Agent Dashboard
https://barrot-agent.github.io/Barrot-Agent/site/
# Search Engine
https://barrot-agent.github.io/Barrot-Agent/search-engine/
Monitor workflow runs:
https://github.com/Barrot-Agent/Barrot-Agent/actions
Check current build status:
cat build_manifest.yaml
View recent activity:
cat memory-bundles/outcome-relay.md | tail -20
Barrot-Agent can be deployed to multiple cloud platforms:
app.jsonrender.yamlrailway.jsonfly.toml๐ See Full Deployment Guide
docker build -t barrot-agent .
docker run -p 8080:8080 barrot-agent
Contributions are welcome! Please feel free to:
ISC License - See repository for details
Data Unification (2026-06-17): All root-level markdown docs have been consolidated into the
docs/directory. The originals remain at the root as legacy references.
docs/)| File | Contents |
|---|---|
| docs/ingestion.md | Ingestion manifest, data transformation, micro-ingestion systems |
| docs/agi.md | AGI architecture, implementation summaries, quantum AGI |
| docs/millennium_problems.md | Millennium Problems research, status, transformative insights |
| docs/character_capabilities.md | Character capability system, Chameleon chain, dynamic search |
| docs/email.md | Email processing, feature summary, quickstart |
| docs/monetization.md | MMI, monetization protocols, COIN app, Connext bridge |
| docs/research.md | Advanced propulsion & energy research |
| docs/system.md | System architecture, merge conflict guide, ops |
| docs/STEP5_BARROT_INITIATIVE.md | Data unification initiative โ Step 5 self-directed work |
data/)| File | Contents |
|---|---|
| data/registry.py | Central data registry โ typed loaders with caching |
| data/schemas.py | Canonical TypedDict schemas for all data domains |
| data/merge_conflict_unified.json | Unified merge-conflict knowledge base |
| data/millennium_problems_unified.json | All 7 Millennium Problems with metadata |
| data/mmi_monetization_unified.json | MMI recommendations, protocols, council weights |
| data/character_capabilities_unified.json | Character database + discovered capabilities |
| data/longevity_unified.json | Longevity research knowledge base template |
| data/biomarker_tracking.json | Biomarker timeline and trial tracking template |
| data/reprogramming_protocols.json | Epigenetic reprogramming protocol library template |
python -m pytest tests/test_longevity_modules.py --no-cov
python - <<'PY'
from longevity_micro_ingestion import LongevityMicroIngestion
payload = LongevityMicroIngestion().build_unified_payload(
paper_text="Transient Oct4/Sox2/Klf4/c-Myc expression improved NAD+ and epigenetic clocks.",
trial_records=[],
methylation_samples=[],
biomarker_measurements={}
)
print(payload["research_domain"], payload["omega_ingest"]["compatibility"])
PY
Love Barrot-Agent? Consider becoming a sponsor!
Your sponsorship helps us:
Barrot-Agent - Intelligent automation and data processing at your fingertips ๐ฆโจ
Python
95.8%
JavaScript
2.1%
HTML
1.4%
Welcome to Barrot-Agent - an intelligent agent system with advanced capabilities for data ingestion, prediction, and deployment.
Barrot-Agent now maintains two independent systems:
Privacy-first search with quantum-enhanced algorithms and edge computing
Comprehensive automation platform with IDE, DAW, Web3, NFT, and more
๐ Learn more about the separation
๐ Note: We are transitioning from
Maintomainas the default branch. See DEFAULT_BRANCH_GUIDE.md for migration instructions.
Clone the repository:
git clone https://github.com/Barrot-Agent/B-Agent.git
cd B-Agent
View the current build manifest:
cat build_manifest.yaml
Access the systems:
This repository now also ships a typed Python package under barrot_agent/ with:
BAgent application wrapperapp.pyDevelopment quickstart:
python -m venv .venv
source .venv/bin/activate
pip install -r requirements-dev.txt
pytest
streamlit run app.py
Canonical JSON assets live in data/ and should be accessed through data/registry.py, not ad-hoc file loads.
B-Agent exposes its GitHub capabilities through two AI-friendly interfaces:
| Interface | Transport | Use with |
|---|---|---|
| GPT Actions HTTP API | HTTP/JSON REST | Custom GPT, OpenAI Actions |
| MCP Server | stdio JSON-RPC | GitHub Copilot Chat, any MCP client |
Both interfaces share the same service layer (barrot_agent/github_service.py).
Copy .env.example to .env and fill in:
# GitHub PAT with repo/issues read+write scope
GITHUB_TOKEN=ghp_...
# Optional defaults (used when owner/repo are omitted from requests)
GITHUB_DEFAULT_OWNER=Barrot-Agent
GITHUB_DEFAULT_REPO=B-Agent
GPT Actions HTTP server (default port 8502):
python scripts/run_gpt_api.py
# OpenAPI schema: http://localhost:8502/openapi.json
# Health check: http://localhost:8502/health
MCP stdio server:
python scripts/run_mcp_server.py
https://<your-host>/openapi.json
listIssues, getIssue, createIssue, and addComment.Add the following to your VS Code settings.json (or .vscode/mcp.json):
{
"mcp": {
"servers": {
"b-agent-github": {
"type": "stdio",
"command": "python",
"args": ["scripts/run_mcp_server.py"],
"cwd": "/path/to/B-Agent",
"env": {
"GITHUB_TOKEN": "${env:GITHUB_TOKEN}",
"GITHUB_DEFAULT_OWNER": "Barrot-Agent",
"GITHUB_DEFAULT_REPO": "B-Agent"
}
}
}
}
}
Copilot Chat will then offer the following tools:
| Tool | Description |
|---|---|
github_list_issues | List repository issues |
github_get_issue | Get a single issue by number |
github_create_issue | Create a new issue |
github_add_comment | Add a comment to an issue |
| Method | Path | Description |
|---|---|---|
GET | /issues | List issues (owner, repo, state, page, per_page) |
GET | /issues/{number} | Get one issue |
POST | /issues | Create issue (owner, repo, title, body, labels) |
POST | /issues/{number}/comments | Add comment (owner, repo, body) |
GET | /openapi.json | OpenAPI 3.1 schema |
GET | /health | Health check |
The UpgradeFlywheel is the system-wide self-improvement orchestrator that unifies all major B-Agent components into a single iterative refinement loop. On each cycle it executes Barrot's signature four-phase process:
| Phase | What happens |
|---|---|
| Observe | SmartAgent analyses the live system state; build_reconfiguration_report snapshots infrastructure coverage gaps. |
| Reason | Observations are synthesised into a ranked list of improvements; a DirectivePlatform REFINE directive is optionally opened so every registered agent contributes insights. |
| Act | Improvements are applied (or described in dry-run mode) and logged as a structured ActionResult. |
| Verify | A second infrastructure snapshot confirms coverage trends; all checks are recorded in a VerificationResult. |
Cycles repeat until either all capability gaps are closed (convergence) or
max_cycles is reached. The full run history is returned as a
FlywheelReport with per-cycle summaries and JSON serialisation.
Minimal usage:
from barrot_agent import UpgradeFlywheel
flywheel = UpgradeFlywheel() # dry_run=True by default
report = flywheel.run(max_cycles=3)
print(report.summary())
With DirectivePlatform agent sessions:
from directive_platform import DirectivePlatform, Agent
from barrot_agent import UpgradeFlywheel
# Register a refinement agent once
dp = DirectivePlatform(platform_dir=".directive_platform")
dp.registry.register(Agent(
agent_id="refine-1",
name="Refinement Agent",
description="Drives iterative improvement cycles",
capabilities=["refine", "analyze"],
))
flywheel = UpgradeFlywheel(
platform_dir=".directive_platform",
agent_ids=["refine-1"],
)
report = flywheel.run(max_cycles=5)
for cycle in report.cycles:
print(cycle.summary())
Key exports (all available from barrot_agent):
| Symbol | Description |
|---|---|
UpgradeFlywheel | Main orchestrator class |
FlywheelReport | Aggregated report across all cycles |
FlywheelCycleResult | Per-cycle record (all four phases) |
ObservationResult | Observe-phase data |
ReasoningResult | Reason-phase improvements + directive IDs |
ActionResult | Act-phase log |
VerificationResult | Verify-phase checks + coverage metric |
Want to access Barrot-Agent from your phone?
The mobile guide covers:
B-Agent/
โโโ barrot_agent/ # ๐ Core Python package
โ โโโ agi/ # AGI reasoning, quantum entanglement, algorithms
โ โโโ analysis/ # Email, vision, signal, character analysis
โ โโโ ingestion/ # Data harvesting and knowledge ingestion
โ โโโ monetization/ # Revenue strategies, grants, MMI compiler
โ โโโ orchestration/ # MCP coordination, sync, service bridges
โ โโโ rendering/ # 3D dataset absorption and rendering
โ โโโ mcp_*.py # MCP integration framework (10-step pipeline)
โ โโโ smart_agent.py # Autonomous plan-act-observe agent
โ โโโ core.py # BAgent application class
โ โโโ config.py # Pydantic configuration
โ โโโ logger.py # Structured logging
โโโ apex_lattice/ # ๐ฌ Static code analysis framework
โ โโโ analyzers/ # Architecture, security, performance analyzers
โโโ directive_platform/ # ๐ฏ Directive & session management platform
โโโ data/ # ๐ฆ Canonical JSON datasets & data registry
โโโ examples/ # ๐ Usage examples for all modules
โโโ scripts/ # ๐ง Operational and utility scripts
โโโ tests/ # โ
Test suite
โโโ ping-pongings/ # ๐ 22-agent entanglement system state
โ โโโ knowledge-base/ # Accumulated knowledge and memory
โ โโโ agents/ # Agent role definitions
โ โโโ protocols/ # Communication protocols
โโโ site/ # ๐ Barrot Agent dashboard (static site)
โโโ search-engine/ # ๐ Standalone privacy-first search engine
โโโ self_hosted_brain/ # ๐ง Self-hosted model server
โโโ app.py # Streamlit demo entrypoint
โโโ pingpong_emitter.py # Ping-pong request emitter
โโโ pyproject.toml # Package metadata & tooling config
/search-engine/)/site/)/coin-app/)ai-tools-config.yaml)/search-engine/)A standalone, privacy-first search engine with:
/site/)Comprehensive automation platform featuring:
Autonomous passive income generation through:
โ Read Coin App Documentation
Cross-chain bridge for seamless asset transfers across multiple blockchains:
Key Features:
โ View Connext Configuration
System prompts and AI models for autonomous operations:
โ View AI Tools Configuration
Barrot can analyze emails to extract useful and actionable information:
Barrot can explore and transform abilities from fictional characters into real-world functionalities:
โ Explore Character Capabilities
โ View Character-Capability-Explorer Spell
The agent can access and process data from:
Barrot continuously learns from the Python ecosystem to enhance its capabilities:
โ View Dependency Ingestion README
โ View Configuration
Usage:
# Run full ingestion
python3 dependency_micro_ingestion.py
# View examples
python3 example_dependency_ingestion.py
The build_manifest.yaml file tracks:
Automated workflows handle:
Barrot defers complex cognitive processing to an external 22-agent entanglement system:
pingpong-config.yamlpingpong_emitter.py Python moduleUsage Example:
from pingpong_emitter import emit_pingpong_request
payload = {
"topic": "MMI Self-Ingestion",
"glyph": "GLYPH_MMI",
"recursion_depth": "โ",
"notes": "Triggering recursive cognition exchange"
}
emit_pingpong_request(payload) # Creates pingpong_request.json
The external system monitors commits to pingpong_request.json and processes requests automatically.
Access the live dashboards at:
# Barrot Agent Dashboard
https://barrot-agent.github.io/Barrot-Agent/site/
# Search Engine
https://barrot-agent.github.io/Barrot-Agent/search-engine/
Monitor workflow runs:
https://github.com/Barrot-Agent/Barrot-Agent/actions
Check current build status:
cat build_manifest.yaml
View recent activity:
cat memory-bundles/outcome-relay.md | tail -20
Barrot-Agent can be deployed to multiple cloud platforms:
app.jsonrender.yamlrailway.jsonfly.toml๐ See Full Deployment Guide
docker build -t barrot-agent .
docker run -p 8080:8080 barrot-agent
Contributions are welcome! Please feel free to:
ISC License - See repository for details
Data Unification (2026-06-17): All root-level markdown docs have been consolidated into the
docs/directory. The originals remain at the root as legacy references.
docs/)| File | Contents |
|---|---|
| docs/ingestion.md | Ingestion manifest, data transformation, micro-ingestion systems |
| docs/agi.md | AGI architecture, implementation summaries, quantum AGI |
| docs/millennium_problems.md | Millennium Problems research, status, transformative insights |
| docs/character_capabilities.md | Character capability system, Chameleon chain, dynamic search |
| docs/email.md | Email processing, feature summary, quickstart |
| docs/monetization.md | MMI, monetization protocols, COIN app, Connext bridge |
| docs/research.md | Advanced propulsion & energy research |
| docs/system.md | System architecture, merge conflict guide, ops |
| docs/STEP5_BARROT_INITIATIVE.md | Data unification initiative โ Step 5 self-directed work |
data/)| File | Contents |
|---|---|
| data/registry.py | Central data registry โ typed loaders with caching |
| data/schemas.py | Canonical TypedDict schemas for all data domains |
| data/merge_conflict_unified.json | Unified merge-conflict knowledge base |
| data/millennium_problems_unified.json | All 7 Millennium Problems with metadata |
| data/mmi_monetization_unified.json | MMI recommendations, protocols, council weights |
| data/character_capabilities_unified.json | Character database + discovered capabilities |
| data/longevity_unified.json | Longevity research knowledge base template |
| data/biomarker_tracking.json | Biomarker timeline and trial tracking template |
| data/reprogramming_protocols.json | Epigenetic reprogramming protocol library template |
python -m pytest tests/test_longevity_modules.py --no-cov
python - <<'PY'
from longevity_micro_ingestion import LongevityMicroIngestion
payload = LongevityMicroIngestion().build_unified_payload(
paper_text="Transient Oct4/Sox2/Klf4/c-Myc expression improved NAD+ and epigenetic clocks.",
trial_records=[],
methylation_samples=[],
biomarker_measurements={}
)
print(payload["research_domain"], payload["omega_ingest"]["compatibility"])
PY
Love Barrot-Agent? Consider becoming a sponsor!
Your sponsorship helps us:
Barrot-Agent - Intelligent automation and data processing at your fingertips ๐ฆโจ
Python
95.8%
JavaScript
2.1%
HTML
1.4%