Two lines to instantiate a Boss Agent. One YAML file to charter an enterprise.
pip install flowchart-charter-engine
fcc version
fcc --local run library/secops_vulnerability_audit.yaml
fcc monitor # Rich live dashboardfrom flowchartcharter import FlowChartCharterSystem
system = FlowChartCharterSystem()
result = system.execute_charter("Legacy Code Refactor")
print(result["quality"], result["trust"], result["playbook_mode"])GraphRAG answered a real question: what is related, and how do I retrieve it?
In production multi-agent shops, that question is no longer the bottleneck. The bottleneck is:
| GraphRAG failure mode | What it costs |
|---|---|
| Hallucinated retrieval paths | Silent wrong answers with confident prose |
| Token bloat | Re-reason every job from chunks; bill compounds |
| Loop exhaustion | Humans stay in the loop to babysit every hop |
| No accountability | Agents don't fear failure; drift is free |
| No muscle memory | Yesterday's perfect trajectory dies after the chat |
FlowChartCharter flips the objective.
We do not optimize relatedness. We optimize the fastest reliable path to execute, under budget, under schema, under fear of termination — until the engineer can leave the live loop (Coach Trust Hand-Off).
Graph tools remain callable sub-flows when pure discovery is required.
The Charter owns the workflow.
The Head Coach writes one file. The compiler hydrates the entire enterprise.
playbook_name: "Legacy Auth Refactor"
version: "1.0.0"
global_cfo_ceiling: 3500
roster_requisition:
- role: "Data_Sanitizer"
capabilities: ["json_parsing", "regex"]
- role: "Code_Architect"
capabilities: ["python_ast", "security_refactor"]
flow_units:
- id: "U1_Ingest_Clean"
assigned_role: "Data_Sanitizer"
expected_tokens: 500
schema:
clean_code: "string"
variables_found: "list[string]"Schemas become live Pydantic models at runtime. Live-Wire LLM output is forced through them. Failures are not warnings — they are entanglement errors.
Every node carries a termination_risk_index.
- High risk → temperature collapses toward zero, schema locks, creativity caps
- Schema divergence increments the immutable telemetry ledger
- Monday Morning Sync fires bloat, not hard work
Fitness is teleological: success rate + bounded speed − token bloat + synergy.
Agents that wander die. Agents that execute cleanly promote.
Executive Board (CEO strategy · CFO budget gate)
↓
General Manager / Boss Agent (Monday Sync · dossier execution)
↓
Position Managers / Key Players / Coaches
↓
Elastic Phantoms (capability gaps filled at runtime)
JSON blackboard. Volunteer bind. Quantum-inspired path collapse under CFO ceilings.
The engineer is the Head Coach — not a permanent copilot.
Successful trajectories are committed — not text chunks.
- State-vector encode → cosine / ANN retrieve
- HIT: reuse Flow Path + prompt tweak (cheat code)
- MISS: fall back to standard Charter pathing
- Production backends: in-memory · Qdrant · Pinecone
GraphRAG retrieves documents. Muscle-Memory retrieves proven execution.
The Analytics Chief does not guess on Monday morning.
- Ingest daily cycle telemetry
- Close five days of moving-average film
- Emit a Roster Recommendation Dossier
- Boss Agent executes promote / demote / fire / lean re-hire
Board-driven talent management. Not vibes.
pip install flowchart-charter-engine
fcc version
fcc --local run library/secops_vulnerability_audit.yaml
fcc monitor # Rich live dashboardOptional vector SDKs:
pip install "flowchart-charter-engine[vector]"git clone https://github.com/CharleSpectre13/flowchartcharter.git
cd flowchartcharter
pip install -e ".[dev]"
export PYTHONPATH=packages/corefrom flowchartcharter import FlowChartCharterSystem
system = FlowChartCharterSystem(seed=42)
# Living Playbook + Muscle-Memory + Live-Wire (mock offline)
out = system.execute_charter(
"Legacy Code Refactor",
context_entropy=0.35,
)
assert out["trust"] or out["quality"] > 0.8
# Head Coach: load a Charterfile
system.load_playbook("examples/charterfiles/legacy_auth_refactor.yaml")
run = system.execute_compiled("Refactor legacy auth module")
print(run["flow_path"], run["units_ok"], run["quality"])export PYTHONPATH=packages/core
python -m flowchartcharter
# → http://0.0.0.0:8090/docs| Method | Path | Role |
|---|---|---|
POST |
/workload/submit |
JSON job → Boss Agent |
GET |
/roster/status |
Fitness + termination risk |
POST |
/system/load-playbook |
Upload Charterfile YAML |
POST |
/system/execute-compiled |
Run active playbook |
POST |
/system/trigger-monday-sync |
Force talent prune |
POST |
/system/advance-analytics |
Film-room +1 day |
One command boots API + Qdrant Muscle-Memory:
docker compose up --buildengine → http://localhost:8090
qdrant → http://localhost:6333
docs → http://localhost:8090/docs
Live LLM (optional):
export FCC_LLM_PROVIDER=xai # openai | gemini | mock
export FCC_LLM_API_KEY=...
docker compose up --buildF(x) = α · (Q_success / Q_total)
+ β · exp(−Δt / expected_t) # bounded speed
− γ · max(0, tokens − expected)/N # bloat only
+ Q_entanglement
ST-01 Init → ST-02 Bind → ST-03 Super-step (Live-Wire)
→ ST-04 Rhythm Audit → ST-05 Remediate
→ ST-06 Coach Trust Hand-Off
→ ST-07 Monday Morning Sync (dossier-driven)
| Command | Purpose |
|---|---|
fcc run playbook.yaml |
Compile + execute Charterfile |
fcc monitor |
Live Rich TUI (fear, fitness, tokens, film room) |
fcc sync / fcc trigger-sync |
Monday Morning Sync |
fcc audit-film |
Analytics Chief 5-day protocol |
fcc submit "job" |
Ad-hoc Boss Agent workload |
fcc library |
List enterprise / CharterHub playbooks |
Offline-safe: if the API is down, pass --local for in-memory engine.
Community playbook ecosystem: charterhub/ — DockerHub for agent workflows.
GET /metrics — Prometheus (fear index, entanglement errors, token spend, active nodes).
Zero-to-one Charterfiles in library/:
secops_vulnerability_audit.yamllegacy_to_react_migration.yamlunstructured_data_etl.yaml
PYTHONPATH=packages/core python scripts/serve_dashboard.py
# open http://localhost:8090/ui/Every push to main runs Pepe standards:
- pycodestyle · pyflakes · black --check
- compileall · example suite ·
scripts/audit_loop.py - wheel/sdist build artifact
Locally:
python scripts/audit_loop.pypackages/core/flowchartcharter/ # installable core
api_server.py # FastAPI Nervous System
playbook_compiler.py # YAML Charterfile → dynamic Pydantic
production.py # LLMExecutionClient + vector backends
muscle_memory.py / living_playbook.py
analytics.py / survival.py / quantum.py
examples/charterfiles/ # Head Coach DSL samples
docker-compose.yml # API + Qdrant
.github/workflows/audit.yml # CI
Apache-2.0. Open design. Build the charter. Fire the bloat. Exit the loop.
FlowChartCharter — execution first. fear real. memory earned.