npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@rickywo/formic

v0.7.4

Published

Local-first agent orchestration and execution environment for AI coding tasks

Readme

Formic - AGI-First Kanban for Autonomous Software Engineering

Formic turns your repository into a self-organizing AI software team. Goals become decomposed task graphs (DAGs), agents coordinate through file leases, and a persistent memory system ensures your team learns from every mistake.

Formic is a local-first operating system for AI agents. It orchestrates Claude Code CLI or GitHub Copilot CLI on your machine, providing the management layer required for truly autonomous development.

Why Formic?

Most AI coding tools stop at conversation. Formic builds the infrastructure for autonomy:

  • Goal-Driven Architecture: High-level objectives are automatically decomposed into dependency-aware task graphs.
  • Industrial Concurrency: Safely run multiple agents in parallel with an exclusive/shared file lease system.
  • Self-Healing Loops: Built-in verifier and critic loops that automatically detect errors and create high-priority fix tasks.
  • Persistent Memory: A reflection system that captures "lessons learned," ensuring agents don't fall into the same pitfall twice.
Goal task     -> architect -> child tasks (queued + blocked DAG)
Standard task -> brief -> plan -> declare -> execute -> verify -> review
Quick task    -> execute -> verify -> review

Key Features

Objective-Based Planning (DAG)

Switch to Objective Mode to input high-level goals. Formic's architect skill breaks goals into 3-8 child tasks, detecting dependencies using Kahn's Algorithm. Prerequisite tasks are queued immediately, while dependent tasks remain blocked until their parents reach done.

Parallel Agent Orchestration

Formic optimizes your compute. Agents perform a declare step to identify file needs, then acquire exclusive or shared leases.

  • Conflict Management: Shared files use optimistic collision detection via git hash-object.
  • Preemption: High-priority tasks can preempt low-priority resource holders.
  • Deadlock Prevention: Automated cycle detection in the wait-for graph ensures the queue never stalls.

Bulletproof Self-Healing

Formic prioritizes project integrity.

  • Safety Net: Creates a git safe-point commit before every execution.
  • Verifier & Critic: When a verify command is configured, Formic runs a closed-loop verification. If tests fail, it auto-creates a "Fix" task with high priority.
  • Emergency Stop: After repeated failures, Formic resets the workspace to the safe-point and pauses the queue for human intervention.

Long-Term Memory & Tool Forging

Formic evolves with your project.

  • The Hippocampus: After every task, the agent reflects on the experience. Lessons are stored in .formic/memory.json and automatically injected into the context of relevant future tasks.
  • Tool Building: Agents can "forge" their own scripts in .formic/tools/ to automate repetitive project-specific actions, which are then made available to the entire team.

Settings Panel

All execution engine parameters — concurrency limits, timeouts, verification commands, lease durations — are configurable at runtime from the dashboard's Settings panel. Changes take effect immediately without a server restart.

Multi-Workspace Support

Switch between project workspaces directly from the UI using the desktop dropdown or mobile bottom sheet. The active workspace is remembered across sessions and browser tabs.

Light Theme

A full light theme with glass-morphic design is available alongside the default dark theme. Select Dark, Light, or Auto (follows system preference) from the Settings panel.

Portable Config Store

Configuration is persisted to ~/.formic/config.json instead of browser localStorage, making settings portable across browsers and machines. Settings survive server restarts and are shared across all connected clients.

Live Demo

Try the Formic dashboard without installing anything: Live Demo

The demo runs entirely in the browser with mock data — no server or API keys required.

Quick Start

1. Requirements

2. Install via npm (recommended)

npm install -g @rickywo/formic

Then navigate to your project and start the server:

cd /path/to/your/project
formic start

3. Install from source

git clone https://github.com/rickywo/Formic.git
cd Formic
npm install
npm run build

# Point to your target workspace
WORKSPACE_PATH=/path/to/your/project npm run start

For development with hot reload:

WORKSPACE_PATH=/path/to/your/project npm run dev

4. Your First Goal

  1. Open http://localhost:8000.
  2. Click Create New Task and select the Goal task type.
  3. Enter a goal: "Implement a dark mode toggle that persists to local storage."
  4. Watch Formic decompose the goal, queue tasks, and start executing.

Configuration

Environment Variables

These settings are configured via environment variables or a .env file in your workspace root. They control server startup behavior.

| Variable | Description | Default | | --- | --- | --- | | AGENT_TYPE | Agent CLI to use: claude or copilot | claude | | PORT | Server port | 8000 | | WORKSPACE_PATH | Target workspace directory | ./workspace | | QUEUE_ENABLED | Enable/disable the queue processor | true |

Settings Panel (UI)

All execution engine settings are configurable at runtime from the Settings panel in the dashboard — no server restart required. Changes take effect on the next queue poll, workflow execution, or watchdog scan.

| Setting | Description | Default | | --- | --- | --- | | Max Concurrent Sessions | Maximum parallel agent executions | 1 | | Verify Command | Shell command for post-execution verification (e.g., npm test) | (empty) | | Skip Verify | Skip verification step entirely | off | | Max Execute Iterations | Max iterative execution loops per task | 5 | | Step Timeout | Timeout for individual workflow steps | 6000000 ms (100 min) | | Queue Poll Interval | How often the queue checks for new tasks | 5000 ms (5s) | | Max Yield Count | Max lease-conflict yields before skipping a task | 50 | | Lease Duration | File lease duration before expiration | 300000 ms (5 min) | | Watchdog Interval | Lease watchdog scan interval | 30000 ms (30s) |

Settings are persisted to ~/.formic/config.json and survive server restarts.

Task Types

Formic supports three task types:

  • Standard (default): Full workflow — brief → plan → declare → execute → verify → review. Suitable for most feature work.
  • Quick: Single-step execution — skips briefing and planning. Ideal for small fixes, typos, or simple changes.
  • Goal: Architect-driven decomposition — analyzes a high-level goal and breaks it into 3-8 child tasks with dependency ordering. Child tasks follow their own standard or quick workflow.

Visualizing the AGI in Action

Demo — Full Workflow

Goal creation → architect decomposition → lease-aware parallel execution → verification → self-healing recovery.

Formic demo: goal creation, DAG decomposition, parallel execution, self-healing


Kanban Board

Tasks organized across TODO, QUEUED, RUNNING, VERIFYING, REVIEW and DONE. Each card shows its type, priority, and current workflow step at a glance.

Formic kanban board with tasks in TODO and other columns

Goal Decomposition — DAG in Action

A high-level goal is submitted and the architect skill decomposes it into child tasks. The goal card moves to Review while its children are queued across the board — dependency-blocked tasks stay blocked until their prerequisites are done.

Goal task decomposed into child tasks with GOAL badge in Review column

Parallel Agent Execution

Four tasks running simultaneously, each showing its current workflow stage badge (EXECUTING, BRIEFING). The status bar confirms 4 running in parallel, with a QUICK task already done.

Formic kanban showing 4 agents running in parallel with workflow stage badges

Self-Healing Loop — Verifier & Critic

When verification fails, Formic auto-generates a [Fix] QUICK HIGH task in TODO — with the exact failure context pre-filled — and re-queues the original task. The board keeps moving without human intervention.

Self-healing: auto-generated Fix task in TODO alongside re-queued original task

Messaging Integration

Formic supports Telegram and LINE bots for remote task management. See the Messaging Integration Guide for setup instructions.

| Variable | Description | | --- | --- | | TELEGRAM_BOT_TOKEN | Telegram Bot API token (from @BotFather) | | LINE_CHANNEL_ACCESS_TOKEN | LINE Messaging API channel access token | | LINE_CHANNEL_SECRET | LINE Messaging API channel secret |

Contributing

Formic is built for developers who want AI agents to behave like a coordinated software team. If you're improving the platform, prioritize implementation-backed features over roadmap language.

License

MIT