private void extractAgent() {
		if (extractState == ExtractState.DEFAULT) {
			Path agentPath = getAgentJarPath();
			if (!Files.isRegularFile(agentPath)) {
				// Not extracted already
				try {
					logger.debug("Extracting agent jar to Recaf directory: {}", agentPath.getFileName());
					Files.createDirectories(config.getAgentDirectory());
					Extractor.extractToPath(agentPath);
					future = ThreadUtil.scheduleAtFixedRate(this::passiveScanUpdate, 0, 1, TimeUnit.SECONDS);
					extractState = ExtractState.SUCCESS;
				} catch (IOException ex) {
					logger.error("Failed to extract agent jar to Recaf directory", ex);
					extractState = ExtractState.FAILURE;
				}
			} else {
				// Already extracted before
				extractState = ExtractState.SUCCESS;
				future = ThreadUtil.scheduleAtFixedRate(this::passiveScanUpdate, 0, 1, TimeUnit.SECONDS);
			}
		}
	}
Extracts the agent jar from Recaf to its own file.
recaf-core/src/main/java/software/coley/recaf/services/attach/BasicAttachManager.java