没有提示,没有说明,没有计划,你现在正同时编写 100~1000 个 AI 代理,解决你代码库中的所有可能的问题。
No prompts, no instructions, no plans, you have 100~1000 AI agent coding in parallel now, solving all possible problems and issues in your codebase.
Full Self Coding (FSC) is a sophisticated framework designed to automate software engineering tasks by integrating multiple AI agents (Claude Code, Gemini CLI) within Docker containers. It provides intelligent codebase analysis, task decomposition, automated code modification, and comprehensive reporting capabilities.
…| Agent Type | Description | Container Image | Key Features |
|---|---|---|---|
| CLAUDE_CODE | Anthropic Claude Code integration | node:latest |
Advanced code analysis, natural language processing |
| GEMINI_CLI | Google Gemini CLI integration | node:latest |
Google's AI model integration, fast response |
| CODEX | OpenAI Codex integration (planned) | - | OpenAI GPT-based code completion |
Install bun.js on your machine
curl -fsSL https://bun.sh/install | bashClone and setup the project
git clone https://github.com/NO-CHATBOT-REVOLUTION/full-self-coding.git
cd full-self-coding
bun installRun on a repository
# Run CLI from source
bun run start
# Or run on a specific repository
full-self-codingThe project is structured as a monorepo with two main packages:
npm install @full-self-coding/corenpm install -g @full-self-coding/cli
# Then run:
full-self-coding-cliFull Self Coding uses a hierarchical configuration system with the following precedence (highest to lowest):
FSC_*).fsc/config.json)~/.config/full-self-coding/config.json)| Field | Type | Default | Description |
|---|---|---|---|
agentType |
SWEAgentType |
CLAUDE_CODE |
AI agent to use (claude-code, gemini-cli) |
maxDockerContainers |
number |
10 |
Maximum Docker containers allowed |
maxParallelDockerContainers |
number |
3 |
Maximum parallel container execution |
dockerTimeoutSeconds |
number |
600 |
Docker command timeout in seconds |
dockerMemoryMB |
number |
1024 |
Docker container memory limit in MB |
dockerCpuCores |
number |
2 |
Docker container CPU core limit |
dockerImageRef |
string |
"node:latest" |
Docker image reference for containers |
maxTasks |
number |
100 |
Maximum tasks to generate during analysis |
minTasks |
number |
1 |
Minimum tasks to generate during analysis |
workStyle |
WorkStyle |
DEFAULT |
Work style (default, bold_genius, careful, etc.) |
customizedWorkStyle |
string |
- | Custom work style description |
codingStyleLevel |
number |
5 |
Coding style level (0-10) |
customizedCodingStyle |
string |
- | Custom coding style description |
anthropicAPIKey |
string |
- | Anthropic API key |
anthropicAPIBaseUrl |
string |
- | Custom Anthropic API base URL |
anthropicAPIKeyExportNeeded |
boolean |
true |
Whether to export Anthropic API key |
googleGeminiApiKey |
string |
- | Google Gemini API key |
googleGeminiAPIKeyExportNeeded |
boolean |
true |
Whether to export Gemini API key |
openAICodexApiKey |
string |
- | OpenAI Codex API key |
openAICodexAPIKeyExportNeeded |
boolean |
true |
Whether to export OpenAI API key |
~/.config/full-self-coding/config.json){
"agentType": "claude-code",
"anthropicAPIKey": "sk-ant-api03-...",
"maxDockerContainers": 8,
"maxParallelDockerContainers": 4,
"dockerTimeoutSeconds": 600,
"dockerMemoryMB": 2048,
"workStyle": "bold_genius",
"customizedWorkStyle": "Focus on rapid prototyping and innovation"
}.fsc/config.json){
"agentType": "gemini-cli",
"googleGeminiApiKey": "AIzaSy...",
"maxTasks": 50,
"minTasks": 5,
"codingStyleLevel": 8,
"customizedCodingStyle": "Follow enterprise coding standards with comprehensive documentation"
}# API Keys
export FSC_ANTHROPIC_API_KEY="sk-ant-api03-..."
export FSC_GOOGLE_GEMINI_API_KEY="AIzaSy..."
export FSC_OPENAI_CODEX_API_KEY="sk-..."
# Docker Settings
export FSC_MAX_DOCKER_CONTAINERS=15
export FSC_DOCKER_TIMEOUT_SECONDS=900
export FSC_DOCKER_MEMORY_MB=4096
# Agent Configuration
export FSC_AGENT_TYPE="claude-code"
export FSC_WORK_STYLE="bold_genius"
export FSC_CODING_STYLE_LEVEL=9The CLI provides various options for configuration and execution:
full-self-coding-cli run [options]| Option | Short | Type | Description |
|---|---|---|---|
--agent-type |
-a |
string |
AI agent type (claude-code, gemini-cli) |
--config |
-c |
string |
Path to configuration file |
--help |
-h |
- | Show help information |
--version |
-V |
- | Show version information |
# Analyze current repository with default settings
full-self-coding-cli run
# Analyze with custom config
full-self-coding-cli run --config ./my-config.jsonimport { analyzeCodebase, TaskSolverManager, createConfig } from '@full-self-coding/core';
// Create configuration
const config = createConfig({
agentType: 'claude-code',
anthropicAPIKey: 'your-api-key'
});
// Analyze repository
const tasks = await analyzeCodebase(config, 'https://github.com/user/repo.git');
// Execute tasks
const taskSolver = new TaskSolverManager(config, 'https://github.com/user/repo.git');
for (const task of tasks) {
taskSolver.addTask(task);
}
await taskSolver.start();Manages configuration loading, validation, and merging.
import { ConfigReader, readConfigWithEnv } from '@full-self-coding/core';
// Read configuration with environment variable support
const config = readConfigWithEnv();
// Create custom configuration
import { createConfig } from '@full-self-coding/core';
const customConfig = createConfig({
agentType: 'claude-code',
anthropicAPIKey: 'your-api-key'
});Methods
readConfigWithEnv(): Config - Read config with environment variablescreateConfig(userConfig: Partial): Config - Create configuration from user configgetGitRemoteUrls(useSSH?: boolean): Promise - Get git remote URLsManages Docker container lifecycle and operations.
import { DockerInstance, DockerRunStatus } from '@full-self-coding/core';
const docker = new DockerInstance();
// Start container
const containerName = await docker.startContainer('node:latest', 'my-task');
// Run commands
const result = await docker.runCommands(['npm', 'install']);
// Copy files
await docker.copyFileToContainer('local.txt', '/app/remote.txt');
await docker.copyFilesToContainer('./src', '/app/src');
// Copy files from container
const content = await docker.copyFileFromContainer('/app/output.txt');
// Shutdown
await docker.shutdownContainer();Methods
startContainer(imageRef: string, taskName?: string): Promise - Start new containerrunCommands(commands: string[], timeout?: number): Promise - Execute commandscopyFileToContainer(localPath: string, containerPath: string): Promise - Copy single filecopyFilesToContainer(localPath: string, containerPath: string): Promise - Copy recursivelycopyFileFromContainer(containerPath: string): Promise - Copy file from containershutdownContainer(): Promise - Stop and remove containerExecutes individual tasks within Docker containers.
import { TaskSolver, SWEAgentType } from '@full-self-coding/core';
const taskSolver = new TaskSolver(
config,
task,
SWEAgentType.CLAUDE_CODE,
'https://github.com/user/repo.git'
);
// Solve the task
await taskSolver.solve();
// Get results
const result = taskSolver.getResult();Methods
solve(shutdown?: boolean): Promise - Execute the taskgetResult(): TaskResult - Get task execution resultAnalyzes codebases and generates task lists.
import { analyzeCodebase } from '@full-self-coding/core';
// Analyze a repository
const tasks = await analyzeCodebase(
config,
'https://github.com/user/repo.git'
);…# Run all tests from project root
bun run test
# Or run from core package
cd packages/core
bun test
# Run with timeout
bun test --timeout 30000packages/core/test/
├── dockerInstance.test.ts # Docker functionality tests
├── configReaderSupplementary.test.ts # Configuration system tests
├── taskSolverClaudeCode.test.ts # Claude Code task solver tests
├── taskSolverGemini.test.ts # Gemini task solver tests
└── integration/ # Integration tests
├── full-workflow.test.ts # End-to-end workflow tests
└── multi-agent.test.ts # Multi-agent integration tests…FSC creates isolated Docker containers for each task execution, ensuring:
You can use custom Docker images:
{
"dockerImageRef": "custom/node:18-alpine",
"dockerMemoryMB": 1536,
"dockerCpuCores": 3
}# Check Docker daemon
docker --version
docker info
# Test container creation
docker run --rm hello-world# Add user to docker group (Linux)
sudo usermod -aG docker $USER
newgrp docker# Verify API key format
echo $FSC_ANTHROPIC_API_KEY | head -c 20
# Test API connectivity
curl -H "x-api-key: $FSC_ANTHROPIC_API_KEY" \
https://api.anthropic.com/v1/messages \
-d '{"model":"claude-3-sonnet-20240229","max_tokens":10,"messages":[{"role":"user","content":"Hi"}]}'Enable debug logging:
export DEBUG=fsc:*
node dist/main.js --debug https://github.com/user/re暂无开放 Issues,或尚未同步最近议题。