Learning HubACFS Academy
Progress
0%
0 of 3333 remaining
  • 1
    Welcome & Overview5 min
  • 2
    Linux Navigation8 min
  • 3
    SSH & Persistence6 min
  • 4
    tmux Basics7 min
  • 5
    Git Essentials10 min
  • 6
    GitHub CLI8 min
  • 7
    Agent Commands10 min
  • 8
    NTM Command Center8 min
  • 9
    NTM Prompt Palette6 min
  • 10
    The Flywheel Loop10 min
    NOW
  • 11
    Keeping Updated4 min
  • 12
    UBS: Code Quality Guardrails8 min
  • 13
    Agent Mail Coordination10 min
  • 14
    CASS: Learning from History8 min
  • 15
    The Memory System8 min
  • 16
    Beads: Issue Tracking8 min
  • 17
    Safety Tools: SLB & CAAM6 min
  • 18
    The Art of Agent Direction12 min
  • 19
    Case Study: cass-memory15 min
  • 20
    Case Study: SLB12 min
  • 21
    RU: Multi-Repo Mastery10 min
  • 22
    DCG: Pre-Execution Safety8 min
  • 23
    Meta Skill: Local Skills10 min
  • 24
    SRPS: System Protection8 min
  • 25
    JFP: Prompt Library6 min
  • 26
    APR: Automated Plan Reviser8 min
  • 27
    PT: Process Triage6 min
  • 28
    XF: X Archive Search6 min
  • 29
    RCH: Remote Compilation8 min
  • 30
    WA: WezTerm Automata8 min
  • 31
    Brenner Bot: Research10 min
  • 32
    GIIL: Cloud Image Downloads6 min
  • 33
    S2P: Source to Prompt6 min
Back to Home
Back
10/33
Lesson 10
10 min

The Flywheel Loop

Put it all together for maximum velocity

New to ACFS?

Complete the setup wizard first to get the most from these lessons.

Go to Choose Your OS
Goal

Understand how all the tools work together.

The ACFS Flywheel

This isn't just a collection of tools. It's a compounding loop:

PlanBeads
CoordinateAgent Mail
ExecuteNTM + Agents
RememberCASS Memory
ScanUBS

Each cycle makes the next one better.

The Twenty Tools (And When To Use Them)

1. NTM

- Your Cockpit
ntm

Use it to:

  • Spawn agent sessions
  • Send prompts to multiple agents
  • Orchestrate parallel work

2. MCP Agent Mail

- Coordination
am

Use it to:

  • Multiple agents need to share context
  • You want agents to "talk" to each other
  • Coordinating complex multi-agent workflows

3. UBS

- Quality Guardrails
ubs

Use it to:

  • Scan code for bugs before committing
  • Run comprehensive static analysis
  • Catch issues early
ubs .  # Scan current directory

4. CASS

- Session Search
cass

Use it to:

  • Search across all agent session history
  • Find previous solutions
  • Review what agents have done
cass search "authentication error" --robot --limit 5

5. CASS Memory (CM)

- Procedural Memory
cm

Use it to:

  • Build persistent agent memory
  • Distill learnings from sessions
  • Give agents context from past work
cm context "Building an API"  # Get relevant memories
cm reflect                     # Update procedural memory

6. Beads Viewer

- Task Management
bv

Use it to:

  • Track tasks and issues
  • Kanban view of work
  • Keep agents focused on goals
bv --robot-triage  # Deterministic triage output

7. CAAM

- Account Switching
caam

Use it to:

  • You hit rate limits
  • You want to switch between accounts
  • Testing with different credentials
caam status         # See current accounts
caam activate claude backup-account

8. SLB

- Safety Guardrails
slb

Use it to:

  • Dangerous commands (when you want them reviewed)
  • Two-person rule for destructive operations
  • Optional safety layer

9. RU

- Multi-Repo Sync
ru

Use it to:

  • Sync dozens of repos with one command
  • AI-driven commit automation
  • Parallel workflow management
ru sync -j4                  # Parallel sync
ru agent-sweep --dry-run    # Preview AI commits

10. DCG

- Pre-Execution Guard
dcg

Use it to:

  • Blocks dangerous commands before execution
  • Protects git, filesystem, and databases
  • Automatic - no manual calls needed
dcg test "rm -rf /" --explain  # Test if blocked
dcg doctor                     # Check status

A Complete Workflow

Here's how a real session might look:

bash
1# 1. Plan your work
2bv --robot-triage # Check tasks
3br ready # See what's ready to work on
4
5# 2. Start your agents
6ntm spawn myproject --cc=2 --cod=1
7
8# 3. Set context
9cm context "Implementing user authentication" --json
10
11# 4. Send initial prompt
12ntm send myproject "Let's implement user authentication.
13Here's the context: [paste cm output]"
14
15# 5. Monitor and guide
16ntm attach myproject # Watch progress
17
18# 6. Scan before committing
19ubs . # Check for bugs
20
21# 7. Update memory
22cm reflect # Distill learnings
23
24# 8. Close the task
25br close <task-id>

The Flywheel Effect

With each cycle:

CASS remembers what worked
CM distills reusable patterns
UBS catches more issues
DCG blocks before damage happens
Agent Mail improves coordination
NTM sessions become more effective
Note
This is why it's called a flywheel - it gets better the more you use it.

Your First Real Task

You're ready! Here's how to start your first project:

bash
1# 1. Create a project directory
2mkcd /data/projects/my-first-project
3
4# 2. Initialize git
5git init
6
7# 3. Initialize beads for task tracking
8br init
9
10# (Recommended) Create a dedicated Beads sync branch
11# Beads uses git worktrees for syncing; syncing to your current branch (often `main`)
12# can cause worktree conflicts. Once you have a `main` branch and a remote, run:
13git branch beads-sync main
14git push -u origin beads-sync
15br config set sync.branch=beads-sync
16
17# 4. Spawn your agents
18ntm spawn my-first-project --cc=2 --cod=1 --gmi=1
19
20# 5. Start building!
21ntm send my-first-project "Let's build something awesome.
22What kind of project should we create?"

Getting Help

acfs doctorCheck everything is working
ntm --helpNTM help
onboardRe-run this tutorial anytime

Ready to level up?

Mark complete to track your learning progress.

Previous
NTM Prompt Palette
Next
Keeping Updated